Class: Property<T>
Type parameters​
Name | Type |
---|---|
T | unknown |
Constructors​
constructor​
• new Property<T
>(document
, name
, value
)
Type parameters​
Name | Type |
---|---|
T | unknown |
Parameters​
Name | Type |
---|---|
document | Document |
name | string |
value | T |
Defined in​
Properties​
textBaselineMapping​
â–ª Static
Readonly
textBaselineMapping: Record
<string
, string
>
Defined in​
isNormalizedColor​
• Private
isNormalizedColor: boolean
= false
Defined in​
document​
• Private
Readonly
document: Document
Defined in​
name​
• Private
Readonly
name: string
Defined in​
value​
• Private
value: T
Defined in​
Methods​
empty​
â–¸ Static
empty(document
): Property
<string
>
Parameters​
Name | Type |
---|---|
document | Document |
Returns​
Property
<string
>
Defined in​
split​
â–¸ split(separator?
): Property
<string
>[]
Parameters​
Name | Type | Default value |
---|---|---|
separator | string | ' ' |
Returns​
Property
<string
>[]
Defined in​
hasValue​
â–¸ hasValue(zeroIsValue?
): boolean
Parameters​
Name | Type |
---|---|
zeroIsValue? | boolean |
Returns​
boolean
Defined in​
isString​
â–¸ isString(regexp?
): boolean
Parameters​
Name | Type |
---|---|
regexp? | RegExp |
Returns​
boolean
Defined in​
isUrlDefinition​
â–¸ isUrlDefinition(): boolean
Returns​
boolean
Defined in​
isPixels​
â–¸ isPixels(): boolean
Returns​
boolean
Defined in​
setValue​
â–¸ setValue(value
): Property
<T
>
Parameters​
Name | Type |
---|---|
value | T |
Returns​
Property
<T
>
Defined in​
getValue​
â–¸ getValue(def?
): T
Parameters​
Name | Type |
---|---|
def? | T |
Returns​
T
Defined in​
getNumber​
â–¸ getNumber(def?
): number
Parameters​
Name | Type |
---|---|
def? | T |
Returns​
number
Defined in​
getString​
â–¸ getString(def?
): string
Parameters​
Name | Type |
---|---|
def? | T |
Returns​
string
Defined in​
getColor​
â–¸ getColor(def?
): string
Parameters​
Name | Type |
---|---|
def? | T |
Returns​
string
Defined in​
getDpi​
â–¸ getDpi(): number
Returns​
number
Defined in​
getRem​
â–¸ getRem(): number
Returns​
number
Defined in​
getEm​
â–¸ getEm(): number
Returns​
number
Defined in​
getUnits​
â–¸ getUnits(): string
Returns​
string
Defined in​
getPixels​
â–¸ getPixels(axis?
, processPercent?
): number
Parameters​
Name | Type |
---|---|
axis? | Axis |
processPercent? | boolean |
Returns​
number
Defined in​
â–¸ getPixels(isFontSize?
): number
Parameters​
Name | Type |
---|---|
isFontSize? | boolean |
Returns​
number
Defined in​
getMilliseconds​
â–¸ getMilliseconds(): number
Returns​
number
Defined in​
getRadians​
â–¸ getRadians(): number
Returns​
number
Defined in​
getDefinition​
â–¸ getDefinition<T
>(): T
Type parameters​
Name | Type |
---|---|
T | extends Element <T > |
Returns​
T
Defined in​
getFillStyleDefinition​
â–¸ getFillStyleDefinition(element
, opacity
): string
| CanvasGradient
| CanvasPattern
Parameters​
Name | Type |
---|---|
element | Element | PathElement |
opacity | Property <unknown > |
Returns​
string
| CanvasGradient
| CanvasPattern
Defined in​
getTextBaseline​
â–¸ getTextBaseline(): string
Returns​
string
Defined in​
addOpacity​
â–¸ addOpacity(opacity
): Property
<string
>
Parameters​
Name | Type |
---|---|
opacity | Property <unknown > |
Returns​
Property
<string
>