Back to Website
Show / Hide Table of Contents

Class StrokeSettings

Package: @aurigma/design-atoms-model

Constructors

(constructor)(object)

Constructs a new instance of the StrokeSettings class

Declaration
constructor(object?: {
        color?: Color;
        size?: number;
        lineJoin?: LineJoin;
    });
Parameters
Type Name Description
{ color?: Color; size?: number; lineJoin?: LineJoin; } object

Properties

_propertyChanged

Declaration
protected _propertyChanged: EventWithSenderArg<StrokeSettings, string>;
Property Value
Type Description
EventWithSenderArg<StrokeSettings, string>

color

Declaration
get color(): Color;

set color(value: Color);
Property Value
Type Description
Color

lineJoin

Declaration
get lineJoin(): LineJoin;

set lineJoin(value: LineJoin);
Property Value
Type Description
LineJoin

size

Declaration
get size(): number;

set size(value: number);
Property Value
Type Description
number

type

Declaration
type: string;
Property Value
Type Description
string

type

Declaration
static type: string;
Property Value
Type Description
string

Methods

addPropertyChanged(listener)

Declaration
addPropertyChanged(listener: (sender: StrokeSettings, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: StrokeSettings, eventArgs: string) => void listener
Returns
Type Description
void

clone()

Declaration
clone(): StrokeSettings;
Returns
Type Description
StrokeSettings

equals(settings)

Declaration
equals(settings: StrokeSettings): boolean;
Parameters
Type Name Description
StrokeSettings settings
Returns
Type Description
boolean

equals(a, b)

Declaration
static equals(a: StrokeSettings, b: StrokeSettings): boolean;
Parameters
Type Name Description
StrokeSettings a
StrokeSettings b
Returns
Type Description
boolean

getSimplifiedObject()

Declaration
getSimplifiedObject(): {
        color: import("../../Colors").IColor;
        size: number;
        lineJoin: LineJoin;
    };
Returns
Type Description
{ color: import("../../Colors").IColor; size: number; lineJoin: LineJoin; }

removePropertyChanged(listener)

Declaration
removePropertyChanged(listener: (sender: StrokeSettings, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: StrokeSettings, eventArgs: string) => void listener
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback