data property
Object?
get
data
Gets or sets the data object in the model that should be associated with this vertex, if any. The value will be non-null if this vertex is virtualized, not represented by a real Node in the Diagram. Each data object should have a 'bounds' property that is a Rect or any JavaScript Object with 'x', 'y', 'width', and 'height' properties that are real numbers, and non-negative numbers for the width and the height. Setting this data property will also set the #bounds and #focus properties.
Implementation
_i2.Object? get data => _i4.getProperty(
this,
'data',
);
set
data
(Object? value)
Implementation
set data(_i2.Object? value) {
_i4.setProperty(
this,
'data',
value ?? _i5.undefined,
);
}