dacha
    Preparing search index...

    Class Shape

    Draws a rectangle, a rectangle with round corners, a circle, an ellipse or a line.

    Shape

    Hierarchy (View Summary)

    Index
    actor?: Actor

    The actor that has this component. It is undefined until the component is added to an actor.

    blending: "normal" | "addition" | "subtract" | "multiply"

    Blending mode of the shape

    disabled: boolean

    Whether the shape is disabled

    fill?: string

    Fill color of the shape

    geometry: ShapeGeometry

    Geometry of the shape

    opacity: number

    Opacity of the shape

    pixelLine: boolean

    Whether the shape stroke should remain 1 pixel wide regardless of the scale

    sortingLayer: string

    Sorting layer of the shape

    sortOffset: Point

    Center point of the shape

    strokeAlignment: number

    Alignment of the stroke relative to the path

    0 - Outside of the shape 0.5 - Center of the path 1 - Inside of the shape

    strokeColor?: string

    Color of the stroke

    strokeWidth: number

    Width of the stroke

    • Returns the component of the same class on the parent actor.

      Returns Component<object> | undefined

      The component, or undefined if the actor has no parent actor or the parent has no such component.