Class geometryStyle

A style specification for geometry objects.

class

geometryStyle

Index

Constructor methods

Methods

Constructor methods

constructor(options?: styleObj): geometryStyle

Parameters

Returns

geometryStyle

Methods

public getDashArray(): string

Gets the dash array as a string.

Returns

string

Dash array as astring.

public getFillColor(): string

Gets fill color as a CSS style string.

Returns

string

Fill color as a CSS style string.

public getFillOpacity(): number

Gets fill opacity in decimal format.

Returns

number

Fill opacity.

public getOutlineColor(): string

Gets path outline color as a CSS style string.

Returns

string

Outline color as a CSS style string.

public getOutlineOpacity(): number

Gets path outline opacity in decimal format.

Returns

number

Outline opacity.

public getOutlineThicknessPix(): number

Gets path outline thickness in pixels.

Returns

number

Thickness of path outline.

public setDashArray(da: string)

Sets dash array string from a CSS style string. Defaults to solid stroke if no dash array string is provided.

Parameters

  • da: string

public setFillColor(c: string)

Sets fill color as a CSS style string.

Parameters

  • c: string

    Fill color as a CSS style string.

public setFillOpacity(o: number)

Sets fill opacity to a decimal between 0 and 1.

Parameters

  • o: number

    Fill opacity.

public setOutlineColor(c: string)

Sets path outline color from a CSS style string.

Parameters

  • c: string

    Outline color as a CSS style string.

public setOutlineOpacity(o: number)

Set path outline opacity to a decimal between 0 and 1.

Parameters

  • o: number

    Outline opacity.

public setOutlineThicknessPix(t: number)

Sets path outline thickness in pixels.

Parameters

  • t: number

    Desired thickness.