Edit in GitHubLog an issue

@express-document-sdk / SolidColorStroke

Interface: SolidColorStroke

Represents a solid-color stroke, with optional dashes.

The most convenient way to create a solid-color stroke is via Editor.makeStroke(). This also futureproofs your code in case any other required fields are added to the Stroke descriptor in the future.

Extends

Properties

color

color: Color

The color of a stroke.


dashOffset

dashOffset: number

Number of pixels the beginning of dash pattern should be offset along the stroke.


dashPattern

dashPattern: number[]

If empty, this is a solid stroke. If non-empty, the values alternate between length of a rendered and blank segment, repeated along the length of the stroke. The first value represents the first solid segment. Array must be of even length. Values cannot be negative.


position

position: StrokePosition

The position of the stroke relative to the outline of the shape.


type

readonly type: color

The stroke type.

Overrides

Stroke.type


width

width: number

The thickness of a stroke. Must be from MIN_STROKE_WIDTH to MAX_STROKE_WIDTH.

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.