ReadonlySharedStyleMap
See source codeTable of contents
A map of StyleProps to their SharedStyle values. See Editor.getSharedStyles.
class ReadonlySharedStyleMap {}Constructor
Constructs a new instance of the ReadonlySharedStyleMap class
Parameters
| Name | Description |
|---|---|
| |
Properties
size
readonly
get size(): numberMethods
[Symbol.iterator](): MapIterator<[StyleProp<any>, SharedStyle<unknown>]>entries( )
entries(): MapIterator<[StyleProp<any>, SharedStyle<unknown>]>equals( )
equals(other: ReadonlySharedStyleMap): booleanParameters
| Name | Description |
|---|---|
|
Returns
booleanget( )
get<T>(prop: StyleProp<T>): SharedStyle<T> | undefinedParameters
| Name | Description |
|---|---|
| |
Returns
SharedStyle<T> | undefinedgetAsKnownValue( )
getAsKnownValue<T>(prop: StyleProp<T>): T | undefinedParameters
| Name | Description |
|---|---|
| |
Returns
T | undefinedkeys( )
keys(): MapIterator<StyleProp<any>>values( )
values(): MapIterator<SharedStyle<unknown>>Prev
Polyline2dNext
Rectangle2d