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
NameDescription

entries

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

StyleProp, SharedStyle


Properties

size

Public readonly property

Signature
get size(): number

Methods

[Symbol.iterator]()

Public method

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

StyleProp, SharedStyle


entries()

Public method

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

StyleProp, SharedStyle


equals()

Public method

Signature
equals(other: ReadonlySharedStyleMap): boolean
Parameters
NameDescription

other

ReadonlySharedStyleMap
Returns
boolean
References

ReadonlySharedStyleMap


get()

Public method

Signature
get<T>(prop: StyleProp<T>): SharedStyle<T> | undefined
Parameters
NameDescription

prop

StyleProp<T>
Returns
SharedStyle<T> | undefined
References

StyleProp, SharedStyle


getAsKnownValue()

Public method

Signature
getAsKnownValue<T>(prop: StyleProp<T>): T | undefined
Parameters
NameDescription

prop

StyleProp<T>
Returns
T | undefined
References

StyleProp


keys()

Public method

Signature
keys(): IterableIterator<StyleProp<unknown>>
References

StyleProp


values()

Public method

Signature
values(): IterableIterator<SharedStyle<unknown>>
References

SharedStyle


rangeIntersectionRectangle2d