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(): number
Methods
[Symbol.iterator](): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>
entries()
entries(): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>
equals()
equals(other: ReadonlySharedStyleMap): boolean
Parameters
Name | Description |
---|---|
|
Returns
boolean
get()
get<T>(prop: StyleProp<T>): SharedStyle<T> | undefined
Parameters
Name | Description |
---|---|
|
|
Returns
SharedStyle<T> | undefined
getAsKnownValue()
getAsKnownValue<T>(prop: StyleProp<T>): T | undefined
Parameters
Name | Description |
---|---|
|
|
Returns
T | undefined
keys()
keys(): IterableIterator<StyleProp<any>>
values()
values(): IterableIterator<SharedStyle<unknown>>
Prev
Polyline2dNext
Rectangle2d