ReadonlySharedStyleMap
Table of contents
A map of StyleProps to their SharedStyle values. See Editor.getSharedStyles.
class ReadonlySharedStyleMap {}
Constructs a new instance of the ReadonlySharedStyleMap
class
Parameters
Name | Description |
---|---|
|
|
Properties
get size(): number
Methods
[Symbol.iterator](): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>
entries(): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>
equals(other: ReadonlySharedStyleMap): boolean
Parameters
Name | Description |
---|---|
|
|
Returns
boolean
get<T>(prop: StyleProp<T>): SharedStyle<T> | undefined
Parameters
Name | Description |
---|---|
|
|
Returns
SharedStyle<T> | undefined
getAsKnownValue<T>(prop: StyleProp<T>): T | undefined
Parameters
Name | Description |
---|---|
|
|
Returns
T | undefined
keys(): IterableIterator<StyleProp<any>>
values(): IterableIterator<SharedStyle<unknown>>