ReadonlySharedStyleMap
Table of contents
Public class
A map of StyleProps to their SharedStyle values. See Editor.getSharedStyles.
Signature
class ReadonlySharedStyleMap {}
Source
packages/editor/src/lib/utils/SharedStylesMap.ts
Constructor
Public constructor
Constructs a new instance of the ReadonlySharedStyleMap
class
Parameters
Name | Description |
---|---|
|
|
References
Properties
size
Public readonly property
Signature
get size(): number
Methods
[Symbol.iterator]()
Public method
Signature
[Symbol.iterator](): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>
References
entries()
Public method
Signature
entries(): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>
References
equals()
Public method
Signature
equals(other: ReadonlySharedStyleMap): boolean
Parameters
Name | Description |
---|---|
|
|
Returns
boolean
References
get()
Public method
Signature
get<T>(prop: StyleProp<T>): SharedStyle<T> | undefined
Parameters
Name | Description |
---|---|
|
|
Returns
SharedStyle<T> | undefined
References
getAsKnownValue()
Public method
Signature
getAsKnownValue<T>(prop: StyleProp<T>): T | undefined
Parameters
Name | Description |
---|---|
|
|
Returns
T | undefined
References
keys()
Public method
Signature
keys(): IterableIterator<StyleProp<any>>
References
values()
Public method
Signature
values(): IterableIterator<SharedStyle<unknown>>
References