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