ReadonlySharedStyleMap

See source code
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

NameDescription

entries

Iterable<
  [StyleProp<unknown>, SharedStyle<unknown>]
>;

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

NameDescription

other

Returns

boolean;

get( )

get<T>(prop: StyleProp<T>): SharedStyle<T> | undefined;

Parameters

NameDescription

prop

StyleProp<T>;

Returns

SharedStyle<T> | undefined;

getAsKnownValue( )

getAsKnownValue<T>(prop: StyleProp<T>): T | undefined;

Parameters

NameDescription

prop

StyleProp<T>;

Returns

T | undefined;

keys( )

keys(): MapIterator<StyleProp<any>>;

values( )

values(): MapIterator<SharedStyle<unknown>>;

Prev
Polyline2d
Next
Rectangle2d