Skip to content

Interface: DomainHost ​

Experimental

What syncDomain reads from a trace's plot context (the runtime's fits).

Properties ​

PropertyModifierTypeDescription
calcreadonlyunknownExperimental
domain?readonlyobjectExperimental The trace's domain; container px.
domain.rectreadonlyReadonly<ViewportRect>-
fullLayout?readonlyobjectExperimental paper_bgcolor: translucent shapes are drawn composited over it.
fullLayout.paper_bgcolor?readonlyunknown-
primitivesreadonlyPrimitiveContextExperimental
tracereadonlyReadonly<Record<string, unknown>>Experimental
viewportreadonlyobjectExperimental The overlay viewport the trace draws in.
viewport.primitivesreadonlyReadonlySet<Primitive<unknown>>-
viewport.sizereadonlyReadonly<ViewportSize>-

Methods ​

add() ​

ts
add(primitive): void;

Experimental

Parameters ​

ParameterType
primitivePrimitive<unknown>

Returns ​

void


invalidate()? ​

ts
optional invalidate(): void;

Experimental

Returns ​

void


remove() ​

ts
remove(primitive): void;

Experimental

Parameters ​

ParameterType
primitivePrimitive<unknown>

Returns ​

void

Released under the MIT License.