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](): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>

entries()

entries(): IterableIterator<[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

Returns

SharedStyle<T> | undefined

getAsKnownValue()

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

Parameters

NameDescription

prop

Returns

T | undefined

keys()

keys(): IterableIterator<StyleProp<any>>

values()

values(): IterableIterator<SharedStyle<unknown>>

Prev
Polyline2d
Next
Rectangle2d