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

get size(): number

Methods

Symbol.iterator

[Symbol.iterator](): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>

entries()

entries(): IterableIterator<[StyleProp<any>, SharedStyle<unknown>]>

equals()

equals(other: ReadonlySharedStyleMap): boolean
Parameters
NameDescription

other

ReadonlySharedStyleMap
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(): IterableIterator<StyleProp<any>>

values()

values(): IterableIterator<SharedStyle<unknown>>

Polyline2dRectangle2d