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](): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>entries()
entries(): IterableIterator<[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(): IterableIterator<StyleProp<any>>values()
values(): IterableIterator<SharedStyle<unknown>>Prev
Polyline2dNext
Rectangle2d