Edit in GitHubLog an issue

@express-document-sdk / Stroke

Interface: Stroke

Represents a stroke in the scenegraph. See StrokableNode.

The most convenient way to create a 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.

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.


width

width: number

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

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