LogoPixi’VN
pixi-jsVariables

Variable: styleAttributes

> const styleAttributes: object

Defined in: node_modules/pixi.js/lib/scene/graphics/shared/svg/parseSVGStyle.d.ts:12

A map of SVG style attributes and their default values. Each attribute has a type and default value used for SVG parsing.

  • 'paint' type can be a color or gradient
  • 'number' type is a numeric value
  • 'string' type is a text value

Type Declaration

fill

> fill: object

fill.default

> default: number

fill.type

> type: string

fill-opacity

> fill-opacity: object

fill-opacity.default

> default: number

fill-opacity.type

> type: string

opacity

> opacity: object

opacity.default

> default: number

opacity.type

> type: string

stroke

> stroke: object

stroke.default

> default: number

stroke.type

> type: string

stroke-dasharray

> stroke-dasharray: object

stroke-dasharray.default

> default: string

stroke-dasharray.type

> type: string

stroke-dashoffset

> stroke-dashoffset: object

stroke-dashoffset.default

> default: number

stroke-dashoffset.type

> type: string

stroke-linecap

> stroke-linecap: object

stroke-linecap.default

> default: string

stroke-linecap.type

> type: string

stroke-linejoin

> stroke-linejoin: object

stroke-linejoin.default

> default: string

stroke-linejoin.type

> type: string

stroke-miterlimit

> stroke-miterlimit: object

stroke-miterlimit.default

> default: number

stroke-miterlimit.type

> type: string

stroke-opacity

> stroke-opacity: object

stroke-opacity.default

> default: number

stroke-opacity.type

> type: string

stroke-width

> stroke-width: object

stroke-width.default

> default: number

stroke-width.type

> type: string

Advanced