@i2analyze/notebook-sdk 1.10.0-dev.2 → 1.10.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -728,6 +728,42 @@ export declare namespace app {
|
|
|
728
728
|
* @i2since 1.5
|
|
729
729
|
*/
|
|
730
730
|
setLabel(label: string | undefined): this;
|
|
731
|
+
/**
|
|
732
|
+
* Sets a badge icon in the given slot on the element.
|
|
733
|
+
*
|
|
734
|
+
* @param slot - The slot position (0 to 5). Slots 0 to 2 are trailing; slots 3 to 5 are leading.
|
|
735
|
+
* @param href - The URL of the badge icon image.
|
|
736
|
+
* @param description - A description of the badge, used as alternative text and in tooltips.
|
|
737
|
+
* @returns The element, with the badge icon in the specified slot set to the specified value.
|
|
738
|
+
* @i2since 1.10
|
|
739
|
+
*/
|
|
740
|
+
setBadge(slot: visual.BadgeSlot, href: string, description?: string): this;
|
|
741
|
+
/**
|
|
742
|
+
* Clears the badge icon in the given slot on the element.
|
|
743
|
+
*
|
|
744
|
+
* @remarks
|
|
745
|
+
* After this call, {@link visual.IElementStyleBase.getBadge | style.getBadge(slot)}
|
|
746
|
+
* returns `undefined` and {@link visual.IElementStyleBase.badges | style.badges}
|
|
747
|
+
* no longer includes an entry for the slot.
|
|
748
|
+
*
|
|
749
|
+
* @param slot - The slot position (0 to 5).
|
|
750
|
+
* @param href - `undefined` is the only valid argument for clearing the slot.
|
|
751
|
+
* @returns The element, with the badge icon in the specified slot cleared.
|
|
752
|
+
* @i2since 1.10
|
|
753
|
+
*/
|
|
754
|
+
setBadge(slot: visual.BadgeSlot, href: undefined): this;
|
|
755
|
+
/**
|
|
756
|
+
* Clears all badge icons on the element.
|
|
757
|
+
*
|
|
758
|
+
* @remarks
|
|
759
|
+
* After this call, {@link visual.IElementStyleBase.badges | style.badges} is
|
|
760
|
+
* empty and {@link visual.IElementStyleBase.getBadge | style.getBadge(slot)}
|
|
761
|
+
* returns `undefined` for every slot.
|
|
762
|
+
*
|
|
763
|
+
* @returns The element, with all badge icons cleared.
|
|
764
|
+
* @i2since 1.10
|
|
765
|
+
*/
|
|
766
|
+
clearBadges(): this;
|
|
731
767
|
}
|
|
732
768
|
/**
|
|
733
769
|
* A set of methods for modifying the appearance of a node.
|
|
@@ -6191,6 +6227,15 @@ export declare namespace visual {
|
|
|
6191
6227
|
* @i2since 1.9
|
|
6192
6228
|
*/
|
|
6193
6229
|
export type LineStyle = 'solid' | 'dashed' | 'dotted' | 'dash-dot' | 'dash-dot-dot';
|
|
6230
|
+
/**
|
|
6231
|
+
* The slot position of a badge icon on a node or edge.
|
|
6232
|
+
*
|
|
6233
|
+
* @remarks
|
|
6234
|
+
* Slots 0, 1, and 2 are trailing positions, displayed after the label of the element.
|
|
6235
|
+
* Slots 3, 4, and 5 are leading positions, displayed before the label of the element.
|
|
6236
|
+
* @i2since 1.10
|
|
6237
|
+
*/
|
|
6238
|
+
export type BadgeSlot = 0 | 1 | 2 | 3 | 4 | 5;
|
|
6194
6239
|
/**
|
|
6195
6240
|
* A label for an element.
|
|
6196
6241
|
* @i2since 1.5
|
|
@@ -6361,6 +6406,23 @@ export declare namespace visual {
|
|
|
6361
6406
|
* @i2since 1.2
|
|
6362
6407
|
*/
|
|
6363
6408
|
readonly color: IElementSetting<string>;
|
|
6409
|
+
/**
|
|
6410
|
+
* Gets the badge icons displayed on the element, in slot order.
|
|
6411
|
+
*
|
|
6412
|
+
* @remarks
|
|
6413
|
+
* The array contains one entry for each populated slot, ordered by slot number.
|
|
6414
|
+
* Empty if no badges are set on the element.
|
|
6415
|
+
* @i2since 1.10
|
|
6416
|
+
*/
|
|
6417
|
+
readonly badges: ReadonlyArray<IBadgeIcon>;
|
|
6418
|
+
/**
|
|
6419
|
+
* Gets the badge icon in the given slot.
|
|
6420
|
+
*
|
|
6421
|
+
* @param slot - The slot position to read.
|
|
6422
|
+
* @returns The badge icon in the slot, or `undefined` if the slot is empty.
|
|
6423
|
+
* @i2since 1.10
|
|
6424
|
+
*/
|
|
6425
|
+
getBadge(slot: BadgeSlot): IBadgeIcon | undefined;
|
|
6364
6426
|
}
|
|
6365
6427
|
/**
|
|
6366
6428
|
* An image for a node element.
|
|
@@ -6373,6 +6435,22 @@ export declare namespace visual {
|
|
|
6373
6435
|
*/
|
|
6374
6436
|
readonly isDefault: boolean;
|
|
6375
6437
|
}
|
|
6438
|
+
/**
|
|
6439
|
+
* A badge icon displayed alongside a node or edge in one of six slot positions.
|
|
6440
|
+
*
|
|
6441
|
+
* @remarks
|
|
6442
|
+
* Extends {@link data.IImage}, so `href` and `description` follow the same
|
|
6443
|
+
* convention as {@link visual.INodeStyle.image}. `description` is required
|
|
6444
|
+
* but may be the empty string.
|
|
6445
|
+
* @i2since 1.10
|
|
6446
|
+
*/
|
|
6447
|
+
export interface IBadgeIcon extends data.IImage {
|
|
6448
|
+
/**
|
|
6449
|
+
* Gets the slot position of the badge.
|
|
6450
|
+
* @i2since 1.10
|
|
6451
|
+
*/
|
|
6452
|
+
readonly slot: BadgeSlot;
|
|
6453
|
+
}
|
|
6376
6454
|
/**
|
|
6377
6455
|
* A style for a node, which affects its appearance.
|
|
6378
6456
|
* @i2since 1.0
|