TreeMap
Defined in: js-api/src/viewer.ts:1051
Base class for controls that have a visual root and a set of properties.
Extends
Constructors
Constructor
new TreeMap(
dart):TreeMap
Defined in: js-api/src/viewer.ts:1052
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
TreeMap
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | Viewer._functions | js-api/src/widgets/base.ts:204 |
_properties | protected | Property[] | [] | - | Viewer._properties | js-api/src/widgets/base.ts:203 |
_root | protected | HTMLElement | undefined | - | Viewer._root | js-api/src/u2core/component.ts:445 |
_u2 | readonly | ComponentState | undefined | - | Viewer._u2 | js-api/src/u2core/component.ts:82 |
componentMeta? | public | ComponentMetaBase | undefined | The registry metadata of the tag that built this component, stamped by the spec renderer — the single source the introspection surface below is generated from. | Viewer.componentMeta | js-api/src/u2core/component.ts:77 |
dart | public | any | undefined | - | Viewer.dart | js-api/src/widgets/base.ts:209 |
factory | public | Func | null | null | Constructor function. No parameters, returns [Widget]. | Viewer.factory | js-api/src/widgets/base.ts:201 |
isDetached | public | boolean | false | Whether detach has been called. | Viewer.isDetached | js-api/src/widgets/base.ts:211 |
props | public | ITreeMapSettings & ObjectPropertyBag | undefined | Property bag over this widget's properties; read and write them by name. | Viewer.props | js-api/src/widgets/base.ts:206 |
specProps? | public | Record<string, unknown> | undefined | The props the registry's create was handed, stamped alongside componentMeta: the last resort of the property read below, for a component that keeps a prop under another name or not at all (a create wrapping a bare element). Construction-time values — a live one always wins. | Viewer.specProps | js-api/src/u2core/component.ts:81 |
subs | public | Subscription[] | undefined | Subscriptions cancelled when the widget is detached. | Viewer.subs | js-api/src/widgets/base.ts:208 |
tags | public | any | undefined | Viewer tags: a string map persisted with the layout. | Viewer.tags | js-api/src/viewer.ts:123 |
temp | public | any | undefined | Contains auxiliary information | Viewer.temp | js-api/src/widgets/base.ts:198 |
CORE_VIEWER_TYPES | static | string[] | undefined | Viewer types that ship with the platform and are available synchronously. | Viewer.CORE_VIEWER_TYPES | js-api/src/viewer.ts:530 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: js-api/src/viewer.ts:150
AI briefing of the underlying Dart viewer.
Returns
string | null
Set Signature
set aiDescription(
x):void
Defined in: js-api/src/viewer.ts:155
A short AI-facing briefing, seeded from the registry's usage or description.
Parameters
| Parameter | Type |
|---|---|
x | string | null |
Returns
void
Inherited from
ambientAdoption
Get Signature
get
protectedambientAdoption():boolean
Defined in: js-api/src/widgets/base.ts:263
A widget wrapper minted inside somebody's effect scope must not be auto-disposed with it.
Returns
boolean
Inherited from
children
Get Signature
get children():
Widget<any>[]
Defined in: js-api/src/widgets/base.ts:298
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Inherited from
dataFrame
Get Signature
get dataFrame():
DataFrame
Defined in: js-api/src/viewer.ts:326
Returns
Set Signature
set dataFrame(
t):void
Defined in: js-api/src/viewer.ts:327
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
Returns
void
Inherited from
descriptor
Get Signature
get descriptor():
WidgetDescriptor
Defined in: js-api/src/viewer.ts:141
Descriptor of this widget.
Returns
Inherited from
filter
Get Signature
get filter():
BitSet
Defined in: js-api/src/viewer.ts:134
combined filter of the viewer
Returns
Set Signature
set filter(
f):void
Defined in: js-api/src/viewer.ts:137
Parameters
| Parameter | Type |
|---|---|
f | BitSet |
Returns
void
Inherited from
helpUrl
Get Signature
get helpUrl():
string
Defined in: js-api/src/viewer.ts:330
Help URL
Returns
string
Set Signature
set helpUrl(
s):void
Defined in: js-api/src/viewer.ts:331
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
immediateRendering
Get Signature
get immediateRendering():
boolean
Defined in: js-api/src/viewer.ts:336
Repaints as soon as the current task completes instead of on the next animation frame or after the render delay; property sets within one task still coalesce into one repaint. For automated tests: a property set is painted once the test yields one macrotask.
Returns
boolean
Set Signature
set immediateRendering(
x):void
Defined in: js-api/src/viewer.ts:337
Parameters
| Parameter | Type |
|---|---|
x | boolean |
Returns
void
Inherited from
isRenderPending
Get Signature
get isRenderPending():
boolean
Defined in: js-api/src/viewer.ts:341
True while a change is on its way to the canvas: a debounced refresh is armed, or a repaint is requested and not yet done. A test waits on this instead of a timeout.
Returns
boolean
Inherited from
meta
Get Signature
get meta():
ViewerMetaHelper
Defined in: js-api/src/viewer.ts:299
Formula lines and annotation regions of this viewer.
Returns
Inherited from
name
Get Signature
get name():
string|undefined
Defined in: js-api/src/u2core/component.ts:469
A named control carries its name in the DOM: data-u2-name is the stable automation id
selectors, tutorials and agents address the control by — the same attribute the spec renderer
stamps on named nodes, so hand-built and spec-built UI share one selector vocabulary.
Derived names (an input's label fallback) never stamp — see Component.deriveName.
Returns
string | undefined
Set Signature
set name(
x):void
Defined in: js-api/src/u2core/component.ts:473
Unique within a spec: the anchor for selection, patches and automation. An accessor pair
(not a field), so a platform descendant's own name accessors override it legally (TS2611).
Parameters
| Parameter | Type |
|---|---|
x | string | undefined |
Returns
void