@i2analyze/notebook-sdk 1.10.0-dev.5 → 1.10.0-dev.7
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.
- package/lib/gen/notebook-sdk-public.d.ts +126 -6
- package/package.json +1 -1
|
@@ -597,17 +597,71 @@ export declare namespace app {
|
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
599
|
* A set of methods for modifying the appearance of an edge summary.
|
|
600
|
+
*
|
|
601
|
+
* @remarks
|
|
602
|
+
* Apart from {@link app.IEdgeSummaryEditor.setLabel | setLabel} (which is tracked,
|
|
603
|
+
* persisted, and undoable), every method on this editor sets or clears an **untracked**
|
|
604
|
+
* style override on the summary line.
|
|
605
|
+
*
|
|
606
|
+
* Each style setter accepts `undefined` to clear that single attribute and revert it to
|
|
607
|
+
* the value derived from the member edges. Every style setter throws if the edge summary
|
|
608
|
+
* is no longer live.
|
|
600
609
|
* @i2since 1.6
|
|
601
610
|
*/
|
|
602
611
|
export interface IEdgeSummaryEditor {
|
|
603
612
|
/**
|
|
604
613
|
* Sets or resets the label of the edge summary.
|
|
605
614
|
*
|
|
615
|
+
* @remarks
|
|
616
|
+
* Tracked: the change is persisted to the server and added to the undo stack.
|
|
617
|
+
*
|
|
606
618
|
* @param label - The label to set, or `undefined` to reset the label to the default.
|
|
607
619
|
* @returns The edge summary, with its label set to the specified value.
|
|
608
620
|
* @i2since 1.6
|
|
609
621
|
*/
|
|
610
622
|
setLabel(label: string | undefined): this;
|
|
623
|
+
/**
|
|
624
|
+
* Sets or clears the color override on the edge summary line.
|
|
625
|
+
*
|
|
626
|
+
* @param color - The color to set, or `undefined` to clear the override.
|
|
627
|
+
* @returns This editor, for chaining.
|
|
628
|
+
* @throws `Error` if the value is not `undefined` or a CSS color string.
|
|
629
|
+
* @throws `Error` if the edge summary is no longer live.
|
|
630
|
+
* @i2since 1.10
|
|
631
|
+
*/
|
|
632
|
+
setColor(color: string | undefined): this;
|
|
633
|
+
/**
|
|
634
|
+
* Sets or clears the width override on the edge summary line.
|
|
635
|
+
*
|
|
636
|
+
* @param width - The width to set (1 to 32), or `undefined` to clear the override.
|
|
637
|
+
* @returns This editor, for chaining.
|
|
638
|
+
* @throws `Error` if the value is not `undefined` or a finite number in the range 1 to 32.
|
|
639
|
+
* @throws `Error` if the edge summary is no longer live.
|
|
640
|
+
* @i2since 1.10
|
|
641
|
+
*/
|
|
642
|
+
setWidth(width: number | undefined): this;
|
|
643
|
+
/**
|
|
644
|
+
* Sets or clears the line style override on the edge summary line.
|
|
645
|
+
*
|
|
646
|
+
* @param lineStyle - The line style to set, or `undefined` to clear the override.
|
|
647
|
+
* @returns This editor, for chaining.
|
|
648
|
+
* @throws `Error` if the value is not `undefined` or a recognized
|
|
649
|
+
* {@link visual.LineStyle | LineStyle}.
|
|
650
|
+
* @throws `Error` if the edge summary is no longer live.
|
|
651
|
+
* @i2since 1.10
|
|
652
|
+
*/
|
|
653
|
+
setLineStyle(lineStyle: visual.LineStyle | undefined): this;
|
|
654
|
+
/**
|
|
655
|
+
* Sets or clears the direction override on the edge summary line.
|
|
656
|
+
*
|
|
657
|
+
* @param direction - The direction to set, or `undefined` to clear the override.
|
|
658
|
+
* @returns This editor, for chaining.
|
|
659
|
+
* @throws `Error` if the value is not `undefined` or a recognized
|
|
660
|
+
* {@link data.LinkDirection | LinkDirection}.
|
|
661
|
+
* @throws `Error` if the edge summary is no longer live.
|
|
662
|
+
* @i2since 1.10
|
|
663
|
+
*/
|
|
664
|
+
setDirection(direction: data.LinkDirection | undefined): this;
|
|
611
665
|
}
|
|
612
666
|
/**
|
|
613
667
|
* A set of methods for modifying common record data.
|
|
@@ -2417,7 +2471,10 @@ export declare namespace commands {
|
|
|
2417
2471
|
*/
|
|
2418
2472
|
readonly icon: IIcon;
|
|
2419
2473
|
/**
|
|
2420
|
-
* Gets the identifier of the command
|
|
2474
|
+
* Gets the identifier of the command. This must be a non-empty string.
|
|
2475
|
+
*
|
|
2476
|
+
* @remarks
|
|
2477
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
2421
2478
|
* @i2since 1.0
|
|
2422
2479
|
*/
|
|
2423
2480
|
readonly id: CommandId;
|
|
@@ -2733,7 +2790,10 @@ export declare namespace commands {
|
|
|
2733
2790
|
*/
|
|
2734
2791
|
export interface IGroupBase {
|
|
2735
2792
|
/**
|
|
2736
|
-
* Gets the identifier of the group
|
|
2793
|
+
* Gets the identifier of the group. This must be a non-empty string.
|
|
2794
|
+
*
|
|
2795
|
+
* @remarks
|
|
2796
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
2737
2797
|
* @i2since 1.0
|
|
2738
2798
|
*/
|
|
2739
2799
|
readonly id: GroupId;
|
|
@@ -2835,7 +2895,10 @@ export declare namespace commands {
|
|
|
2835
2895
|
*/
|
|
2836
2896
|
export interface IDynamicGroupConfig<TCommandType extends CommandType = CommandType> {
|
|
2837
2897
|
/**
|
|
2838
|
-
* Gets the identifier of the group
|
|
2898
|
+
* Gets the identifier of the group. This must be a non-empty string.
|
|
2899
|
+
*
|
|
2900
|
+
* @remarks
|
|
2901
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
2839
2902
|
* @i2since 1.10
|
|
2840
2903
|
*/
|
|
2841
2904
|
readonly id: GroupId;
|
|
@@ -2861,13 +2924,21 @@ export declare namespace commands {
|
|
|
2861
2924
|
/**
|
|
2862
2925
|
* Populates the group's commands each time the group is opened.
|
|
2863
2926
|
*
|
|
2927
|
+
* @remarks
|
|
2928
|
+
* May be synchronous or asynchronous. A synchronous callback creates and surfaces every
|
|
2929
|
+
* command before it returns; the host then renders the populated group. An asynchronous
|
|
2930
|
+
* callback returns a `Promise` that resolves once the contents are ready: the host opens the
|
|
2931
|
+
* group immediately with skeleton placeholder rows in place of the real items, and swaps them
|
|
2932
|
+
* in atomically when the promise resolves. If the group closes before the promise resolves
|
|
2933
|
+
* the `signal` is aborted and any surfaced commands are discarded.
|
|
2934
|
+
*
|
|
2864
2935
|
* @param commandArea - A scoped area for creating and surfacing commands. Only commands created here are visible in this group.
|
|
2865
2936
|
* @param context - The context based on the group's `context` field: `undefined` for `'unscoped'`, {@link commands.IRecordsContext} for `'records'`, the application object for `'application'`.
|
|
2866
2937
|
* @param signal - An AbortSignal that is aborted when the group closes. Use it to cancel any async work started in this callback.
|
|
2867
|
-
* @returns An optional cleanup function that is called when the group closes, before the signal is aborted.
|
|
2938
|
+
* @returns An optional cleanup function that is called when the group closes, before the signal is aborted. Async callbacks may resolve with the cleanup function or with `undefined`.
|
|
2868
2939
|
* @i2since 1.10
|
|
2869
2940
|
*/
|
|
2870
|
-
onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void)
|
|
2941
|
+
onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void) | Promise<void | (() => void)>;
|
|
2871
2942
|
/**
|
|
2872
2943
|
* Runs when the dynamic group's popup button is surfaced, enabling its state to be driven from events.
|
|
2873
2944
|
*
|
|
@@ -3211,7 +3282,10 @@ export declare namespace commands {
|
|
|
3211
3282
|
*/
|
|
3212
3283
|
export interface IRibbonTabConfig {
|
|
3213
3284
|
/**
|
|
3214
|
-
* Gets the identifier of the tab
|
|
3285
|
+
* Gets the identifier of the tab. This must be a non-empty string.
|
|
3286
|
+
*
|
|
3287
|
+
* @remarks
|
|
3288
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
3215
3289
|
* @i2since 1.6
|
|
3216
3290
|
*/
|
|
3217
3291
|
readonly id: RibbonTabId;
|
|
@@ -6589,6 +6663,11 @@ export declare namespace visual {
|
|
|
6589
6663
|
* @i2since 1.2
|
|
6590
6664
|
*/
|
|
6591
6665
|
readonly style: IEdgeStyle;
|
|
6666
|
+
/**
|
|
6667
|
+
* Gets the edge summary that currently contains this edge, or `undefined` if the edge is not summarized.
|
|
6668
|
+
* @i2since 1.10
|
|
6669
|
+
*/
|
|
6670
|
+
readonly summary: IEdgeSummary | undefined;
|
|
6592
6671
|
}
|
|
6593
6672
|
/**
|
|
6594
6673
|
* A position on a chart surface.
|
|
@@ -6784,6 +6863,47 @@ export declare namespace visual {
|
|
|
6784
6863
|
* @i2since 1.6
|
|
6785
6864
|
*/
|
|
6786
6865
|
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
6866
|
+
/**
|
|
6867
|
+
* Gets the effective style of the edge summary line.
|
|
6868
|
+
*
|
|
6869
|
+
* @remarks
|
|
6870
|
+
* Each attribute defaults to a value computed from the member edges (for example, the
|
|
6871
|
+
* shared color of all members, or `undefined` if the members disagree). A plug-in can
|
|
6872
|
+
* override any attribute through {@link app.IEdgeSummaryEditor | editEdgeSummary(...)};
|
|
6873
|
+
* the override takes precedence over the computed value.
|
|
6874
|
+
*
|
|
6875
|
+
* {@link visual.IElementSetting.isDefault | isDefault} is `true` when the computed value
|
|
6876
|
+
* is in effect, and `false` when an override is. The returned object is a live view.
|
|
6877
|
+
* @i2since 1.10
|
|
6878
|
+
*/
|
|
6879
|
+
readonly style: IEdgeSummaryStyle;
|
|
6880
|
+
}
|
|
6881
|
+
/**
|
|
6882
|
+
* The effective style of an edge summary line.
|
|
6883
|
+
* @i2since 1.10
|
|
6884
|
+
*/
|
|
6885
|
+
export interface IEdgeSummaryStyle {
|
|
6886
|
+
/**
|
|
6887
|
+
* Gets the color of the edge summary line.
|
|
6888
|
+
* @i2since 1.10
|
|
6889
|
+
*/
|
|
6890
|
+
readonly color: IElementSetting<string>;
|
|
6891
|
+
/**
|
|
6892
|
+
* Gets the width of the edge summary line.
|
|
6893
|
+
* @i2since 1.10
|
|
6894
|
+
*/
|
|
6895
|
+
readonly width: IElementSetting<number>;
|
|
6896
|
+
/**
|
|
6897
|
+
* Gets the line style of the edge summary line.
|
|
6898
|
+
* @i2since 1.10
|
|
6899
|
+
*/
|
|
6900
|
+
readonly lineStyle: IElementSetting<LineStyle>;
|
|
6901
|
+
/**
|
|
6902
|
+
* Gets the direction of the edge summary line, expressed relative to the natural direction
|
|
6903
|
+
* implied by its 'from' and 'to' ends.
|
|
6904
|
+
* @i2since 1.10
|
|
6905
|
+
*/
|
|
6906
|
+
readonly direction: IElementSetting<data.LinkDirection>;
|
|
6787
6907
|
}
|
|
6788
6908
|
/**
|
|
6789
6909
|
* A node group, which is a collection of nodes that can be moved and selected together.
|