@i2analyze/notebook-sdk 1.10.0-dev.4 → 1.10.0-dev.6
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 +234 -22
- 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.
|
|
@@ -2539,23 +2593,24 @@ export declare namespace commands {
|
|
|
2539
2593
|
* Adds the specified group of actions to the user interface.
|
|
2540
2594
|
*
|
|
2541
2595
|
* @param group - The group to add.
|
|
2596
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroup.onSurface}.
|
|
2542
2597
|
* @returns An object that you can use to add actions or a further group to the new group.
|
|
2543
2598
|
* @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
|
|
2544
2599
|
* @i2since 1.0
|
|
2545
2600
|
*/
|
|
2546
|
-
addGroup(group: IGroup): IActionArea<undefined>;
|
|
2601
|
+
addGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IActionArea<undefined>;
|
|
2547
2602
|
/**
|
|
2548
2603
|
* Adds a dynamic group whose commands are created on demand each time the group is opened.
|
|
2549
2604
|
*
|
|
2550
2605
|
* @remarks
|
|
2551
2606
|
* Unlike {@link commands.IActionArea.addGroup}, the commands in a dynamic group are not created during plug-in
|
|
2552
|
-
* initialization. Instead, the {@link commands.IDynamicGroupConfig.
|
|
2607
|
+
* initialization. Instead, the {@link commands.IDynamicGroupConfig.onPopulate} callback is called each time the
|
|
2553
2608
|
* group is opened, allowing you to create commands that reflect the current application state.
|
|
2554
2609
|
*
|
|
2555
2610
|
* Dynamic groups are always collapsed — they render as a dropdown or submenu.
|
|
2556
2611
|
*
|
|
2557
|
-
* @param config - The configuration for the dynamic group, including the `
|
|
2558
|
-
* @typeParam TCommandType - The type of the command, which determines
|
|
2612
|
+
* @param config - The configuration for the dynamic group, including the `onPopulate` callback.
|
|
2613
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what payload is passed to `onPopulate` and what event API is passed to `onSurface`.
|
|
2559
2614
|
* @throws `Error` if `config.id` is not a valid {@link commands.GroupId | GroupId}.
|
|
2560
2615
|
* @i2since 1.10
|
|
2561
2616
|
*/
|
|
@@ -2569,11 +2624,12 @@ export declare namespace commands {
|
|
|
2569
2624
|
* plug-ins that want to use the same group, and these plug-ins can be deployed independently, then you should use this method.
|
|
2570
2625
|
*
|
|
2571
2626
|
* @param group - The group to add or get.
|
|
2627
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroup.onSurface}.
|
|
2572
2628
|
* @returns An object that you can use to add actions or a further group to the new or existing group.
|
|
2573
2629
|
* @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
|
|
2574
2630
|
* @i2since 1.0
|
|
2575
2631
|
*/
|
|
2576
|
-
addOrGetGroup(group: IGroup): IActionArea<undefined>;
|
|
2632
|
+
addOrGetGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IActionArea<undefined>;
|
|
2577
2633
|
/**
|
|
2578
2634
|
* Locates the area of the user interface that appears immediately after a particular action or group of actions.
|
|
2579
2635
|
*
|
|
@@ -2749,9 +2805,11 @@ export declare namespace commands {
|
|
|
2749
2805
|
}
|
|
2750
2806
|
/**
|
|
2751
2807
|
* A group of actions in either the i2 Notebook application ribbon or a popup menu.
|
|
2808
|
+
*
|
|
2809
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to {@link commands.IGroup.onSurface}. Defaults to `'unscoped'`.
|
|
2752
2810
|
* @i2since 1.0
|
|
2753
2811
|
*/
|
|
2754
|
-
export interface IGroup extends IGroupBase {
|
|
2812
|
+
export interface IGroup<TCommandType extends CommandType = 'unscoped'> extends IGroupBase {
|
|
2755
2813
|
/**
|
|
2756
2814
|
* Gets the icon of the group, which is displayed if the group is collapsed.
|
|
2757
2815
|
* @i2since 1.0
|
|
@@ -2775,6 +2833,36 @@ export declare namespace commands {
|
|
|
2775
2833
|
* @i2since 1.9
|
|
2776
2834
|
*/
|
|
2777
2835
|
readonly type?: GroupType;
|
|
2836
|
+
/**
|
|
2837
|
+
* Gets the command-context type, which determines what event API is passed to {@link commands.IGroup.onSurface}.
|
|
2838
|
+
*
|
|
2839
|
+
* @remarks
|
|
2840
|
+
* Mirrors {@link commands.IDynamicGroupConfig.context} (and, by analogy, {@link commands.ICommandConfig."type"}).
|
|
2841
|
+
* Defaults to `'unscoped'`, which means {@link commands.IGroup.onSurface} receives no event API.
|
|
2842
|
+
* @i2since 1.10
|
|
2843
|
+
*/
|
|
2844
|
+
readonly context?: TCommandType;
|
|
2845
|
+
/**
|
|
2846
|
+
* Runs when an action derived from the group is surfaced, enabling the group to configure the action in response to events.
|
|
2847
|
+
*
|
|
2848
|
+
* @remarks
|
|
2849
|
+
* Mirrors {@link commands.ICommandConfig.onSurface} but applies to groups: use the supplied
|
|
2850
|
+
* {@link commands.IGroupAction} to change the group's label, icon, or enabled/hidden state at any
|
|
2851
|
+
* time during its surfaced lifetime. The signal aborts when the group is removed from the user
|
|
2852
|
+
* interface; the optional returned cleanup function runs at the same time.
|
|
2853
|
+
*
|
|
2854
|
+
* If there is no implementation of `onSurface()`, the group renders with its static configuration
|
|
2855
|
+
* and remains enabled.
|
|
2856
|
+
*
|
|
2857
|
+
* @param groupAction - The group action being surfaced.
|
|
2858
|
+
* @param eventApi - The events that the group can subscribe to, keyed by the group's `context`.
|
|
2859
|
+
* @param signal - A signal that the application uses to tell the group that it is removing it from the user interface.
|
|
2860
|
+
*
|
|
2861
|
+
* @returns A function that the application calls when it removes the group from the user interface.
|
|
2862
|
+
* In its implementation, the group must unsubscribe from any events that it has subscribed to.
|
|
2863
|
+
* @i2since 1.10
|
|
2864
|
+
*/
|
|
2865
|
+
onSurface?(groupAction: IGroupAction, eventApi: CommandEventsMap[TCommandType], signal: AbortSignal): void | (() => void);
|
|
2778
2866
|
}
|
|
2779
2867
|
/**
|
|
2780
2868
|
* A group of actions in a popup menu that do not have a label or an icon.
|
|
@@ -2788,12 +2876,15 @@ export declare namespace commands {
|
|
|
2788
2876
|
*
|
|
2789
2877
|
* @remarks
|
|
2790
2878
|
* A dynamic group solves the limitation that commands can only be created during plug-in initialization.
|
|
2791
|
-
* Instead, the {@link commands.IDynamicGroupConfig.
|
|
2792
|
-
* opened, allowing commands to be created based on the current application state.
|
|
2879
|
+
* Instead, the {@link commands.IDynamicGroupConfig.onPopulate} callback is called each time the group is
|
|
2880
|
+
* opened, allowing commands to be created based on the current application state. The group's
|
|
2881
|
+
* popup-button state (label, icon, enabled, hidden) can be driven separately by an optional
|
|
2882
|
+
* {@link commands.IDynamicGroupConfig.onSurface} callback that runs once when the group is
|
|
2883
|
+
* surfaced on a host.
|
|
2793
2884
|
*
|
|
2794
2885
|
* Dynamic groups are always collapsed — they render as a dropdown/submenu that opens on click.
|
|
2795
2886
|
*
|
|
2796
|
-
* @typeParam TCommandType - The type of the command, which determines what
|
|
2887
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what payload is passed to {@link commands.IDynamicGroupConfig.onPopulate} and what event API is passed to {@link commands.IDynamicGroupConfig.onSurface}.
|
|
2797
2888
|
* @i2since 1.10
|
|
2798
2889
|
*/
|
|
2799
2890
|
export interface IDynamicGroupConfig<TCommandType extends CommandType = CommandType> {
|
|
@@ -2813,30 +2904,55 @@ export declare namespace commands {
|
|
|
2813
2904
|
*/
|
|
2814
2905
|
readonly icon?: IIcon;
|
|
2815
2906
|
/**
|
|
2816
|
-
* Gets the command type
|
|
2907
|
+
* Gets the command-context type for the group.
|
|
2908
|
+
*
|
|
2909
|
+
* @remarks
|
|
2910
|
+
* Determines what payload is passed to {@link commands.IDynamicGroupConfig.onPopulate} and what
|
|
2911
|
+
* event API is passed to {@link commands.IDynamicGroupConfig.onSurface}.
|
|
2817
2912
|
* @i2since 1.10
|
|
2818
2913
|
*/
|
|
2819
|
-
readonly
|
|
2914
|
+
readonly context: TCommandType;
|
|
2820
2915
|
/**
|
|
2821
2916
|
* Populates the group's commands each time the group is opened.
|
|
2822
2917
|
*
|
|
2823
2918
|
* @param commandArea - A scoped area for creating and surfacing commands. Only commands created here are visible in this group.
|
|
2824
|
-
* @param context - The context based on
|
|
2919
|
+
* @param context - The context based on the group's `context` field: `undefined` for `'unscoped'`, {@link commands.IRecordsContext} for `'records'`, the application object for `'application'`.
|
|
2825
2920
|
* @param signal - An AbortSignal that is aborted when the group closes. Use it to cancel any async work started in this callback.
|
|
2826
2921
|
* @returns An optional cleanup function that is called when the group closes, before the signal is aborted.
|
|
2827
2922
|
* @i2since 1.10
|
|
2828
2923
|
*/
|
|
2829
|
-
|
|
2924
|
+
onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void);
|
|
2925
|
+
/**
|
|
2926
|
+
* Runs when the dynamic group's popup button is surfaced, enabling its state to be driven from events.
|
|
2927
|
+
*
|
|
2928
|
+
* @remarks
|
|
2929
|
+
* The lifetime of this callback is the dynamic group's *button* — separate from the per-open
|
|
2930
|
+
* lifecycle of {@link commands.IDynamicGroupConfig.onPopulate}, which populates the popup's
|
|
2931
|
+
* contents. Use this callback to react to long-lived application state; populate the popup's
|
|
2932
|
+
* contents in `onPopulate`.
|
|
2933
|
+
*
|
|
2934
|
+
* If there is no implementation of `onSurface()`, the popup button renders with its static
|
|
2935
|
+
* configuration and remains enabled.
|
|
2936
|
+
*
|
|
2937
|
+
* @param groupAction - The group action being surfaced.
|
|
2938
|
+
* @param eventApi - The events that the group can subscribe to, keyed by the group's `type`.
|
|
2939
|
+
* @param signal - A signal that the application uses to tell the group that it is removing the popup button from the user interface.
|
|
2940
|
+
*
|
|
2941
|
+
* @returns A function that the application calls when it removes the popup button from the user interface.
|
|
2942
|
+
* In its implementation, the group must unsubscribe from any events that it has subscribed to.
|
|
2943
|
+
* @i2since 1.10
|
|
2944
|
+
*/
|
|
2945
|
+
onSurface?(groupAction: IGroupAction, eventApi: CommandEventsMap[TCommandType], signal: AbortSignal): void | (() => void);
|
|
2830
2946
|
}
|
|
2831
2947
|
/**
|
|
2832
|
-
* A scoped area for creating and surfacing commands within a {@link commands.IDynamicGroupConfig.
|
|
2948
|
+
* A scoped area for creating and surfacing commands within a {@link commands.IDynamicGroupConfig.onPopulate} callback.
|
|
2833
2949
|
*
|
|
2834
2950
|
* @remarks
|
|
2835
2951
|
* Methods on this interface work like their equivalents on {@link commands.IActionArea}, but are scoped to the
|
|
2836
|
-
* current
|
|
2952
|
+
* current populate session. Commands created here exist only while the group is open and are automatically
|
|
2837
2953
|
* unregistered when it closes.
|
|
2838
2954
|
*
|
|
2839
|
-
* `getGroup` is restricted to groups created within the same `
|
|
2955
|
+
* `getGroup` is restricted to groups created within the same `onPopulate` call — it throws if you pass an
|
|
2840
2956
|
* external group identifier.
|
|
2841
2957
|
* @i2since 1.10
|
|
2842
2958
|
*/
|
|
@@ -2856,28 +2972,30 @@ export declare namespace commands {
|
|
|
2856
2972
|
*/
|
|
2857
2973
|
after(idOrCommand: CommandId | GroupId | ICommand): IDynamicActionArea;
|
|
2858
2974
|
/**
|
|
2859
|
-
* Returns an area scoped to a group created during this `
|
|
2975
|
+
* Returns an area scoped to a group created during this `onPopulate` call.
|
|
2860
2976
|
*
|
|
2861
|
-
* @param id - The identifier of a group created in this session.
|
|
2977
|
+
* @param id - The identifier of a group created in this populate session.
|
|
2862
2978
|
* @returns A scoped area for the contents of the group.
|
|
2863
|
-
* @throws `Error` if `id` refers to a group that was not created in this session.
|
|
2979
|
+
* @throws `Error` if `id` refers to a group that was not created in this populate session.
|
|
2864
2980
|
* @i2since 1.10
|
|
2865
2981
|
*/
|
|
2866
2982
|
getGroup(id: GroupId): IDynamicActionArea;
|
|
2867
2983
|
/**
|
|
2868
2984
|
* Adds a new group.
|
|
2869
2985
|
* @param group - The group configuration.
|
|
2986
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroup.onSurface}.
|
|
2870
2987
|
* @returns A scoped area for the contents of the new group.
|
|
2871
2988
|
* @i2since 1.10
|
|
2872
2989
|
*/
|
|
2873
|
-
addGroup(group: IGroup): IDynamicActionArea;
|
|
2990
|
+
addGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IDynamicActionArea;
|
|
2874
2991
|
/**
|
|
2875
|
-
* Adds a new group, or returns the existing one if it was already added during this `
|
|
2992
|
+
* Adds a new group, or returns the existing one if it was already added during this `onPopulate` call.
|
|
2876
2993
|
* @param group - The group configuration.
|
|
2994
|
+
* @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroup.onSurface}.
|
|
2877
2995
|
* @returns A scoped area for the contents of the new or existing group.
|
|
2878
2996
|
* @i2since 1.10
|
|
2879
2997
|
*/
|
|
2880
|
-
addOrGetGroup(group: IGroup): IDynamicActionArea;
|
|
2998
|
+
addOrGetGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IDynamicActionArea;
|
|
2881
2999
|
/**
|
|
2882
3000
|
* Surfaces the specified commands in the group.
|
|
2883
3001
|
* @param commandsOrCommandIds - The commands or command identifiers to surface.
|
|
@@ -2885,6 +3003,54 @@ export declare namespace commands {
|
|
|
2885
3003
|
*/
|
|
2886
3004
|
surfaceCommands(...commandsOrCommandIds: (ICommand | CommandId)[]): void;
|
|
2887
3005
|
}
|
|
3006
|
+
/**
|
|
3007
|
+
* A representation of a group of commands in the user interface. A group action is created when a group is surfaced.
|
|
3008
|
+
*
|
|
3009
|
+
* @remarks
|
|
3010
|
+
* Group actions mirror {@link commands.IAction} for individual commands. They are passed to
|
|
3011
|
+
* {@link commands.IGroup.onSurface} (for static groups) and {@link commands.IDynamicGroupConfig.onSurface}
|
|
3012
|
+
* (for the popup button of a dynamic group), allowing the group's label, icon, and enabled/hidden
|
|
3013
|
+
* state to be driven from application state.
|
|
3014
|
+
*
|
|
3015
|
+
* When a group is disabled and expanded, its immediate children are rendered as disabled too —
|
|
3016
|
+
* disabling the group is therefore a render-time cascade, not a mutation of child state.
|
|
3017
|
+
* @i2since 1.10
|
|
3018
|
+
*/
|
|
3019
|
+
export interface IGroupAction {
|
|
3020
|
+
/**
|
|
3021
|
+
* Sets the label of the group. For example, "Layouts".
|
|
3022
|
+
*
|
|
3023
|
+
* @param value - A label for the group.
|
|
3024
|
+
* @i2since 1.10
|
|
3025
|
+
*/
|
|
3026
|
+
setName(value: string): void;
|
|
3027
|
+
/**
|
|
3028
|
+
* Sets whether the group is enabled — that is, whether it is available for users to interact with.
|
|
3029
|
+
*
|
|
3030
|
+
* @remarks
|
|
3031
|
+
* When disabled and expanded, the group's immediate child actions render as disabled; when
|
|
3032
|
+
* disabled and collapsed (or a dynamic group), the popup trigger cannot be opened.
|
|
3033
|
+
*
|
|
3034
|
+
* @param value - `true` to enable the group; `false` to disable it.
|
|
3035
|
+
* @i2since 1.10
|
|
3036
|
+
*/
|
|
3037
|
+
setEnabled(value: boolean): void;
|
|
3038
|
+
/**
|
|
3039
|
+
* Sets whether the group is hidden — that is, whether it is visible to users at all.
|
|
3040
|
+
* Hidden groups do not render their container, label, or children.
|
|
3041
|
+
*
|
|
3042
|
+
* @param value - `true` to hide the group; `false` to show it.
|
|
3043
|
+
* @i2since 1.10
|
|
3044
|
+
*/
|
|
3045
|
+
setHidden(value: boolean): void;
|
|
3046
|
+
/**
|
|
3047
|
+
* Sets the icon for the group.
|
|
3048
|
+
*
|
|
3049
|
+
* @param value - An icon for the group.
|
|
3050
|
+
* @i2since 1.10
|
|
3051
|
+
*/
|
|
3052
|
+
setIcon(value: IIcon): void;
|
|
3053
|
+
}
|
|
2888
3054
|
/**
|
|
2889
3055
|
* A representation of a command in the user interface. An action is created when a command is surfaced.
|
|
2890
3056
|
* @i2since 1.0
|
|
@@ -6477,6 +6643,11 @@ export declare namespace visual {
|
|
|
6477
6643
|
* @i2since 1.2
|
|
6478
6644
|
*/
|
|
6479
6645
|
readonly style: IEdgeStyle;
|
|
6646
|
+
/**
|
|
6647
|
+
* Gets the edge summary that currently contains this edge, or `undefined` if the edge is not summarized.
|
|
6648
|
+
* @i2since 1.10
|
|
6649
|
+
*/
|
|
6650
|
+
readonly summary: IEdgeSummary | undefined;
|
|
6480
6651
|
}
|
|
6481
6652
|
/**
|
|
6482
6653
|
* A position on a chart surface.
|
|
@@ -6672,6 +6843,47 @@ export declare namespace visual {
|
|
|
6672
6843
|
* @i2since 1.6
|
|
6673
6844
|
*/
|
|
6674
6845
|
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
6846
|
+
/**
|
|
6847
|
+
* Gets the effective style of the edge summary line.
|
|
6848
|
+
*
|
|
6849
|
+
* @remarks
|
|
6850
|
+
* Each attribute defaults to a value computed from the member edges (for example, the
|
|
6851
|
+
* shared color of all members, or `undefined` if the members disagree). A plug-in can
|
|
6852
|
+
* override any attribute through {@link app.IEdgeSummaryEditor | editEdgeSummary(...)};
|
|
6853
|
+
* the override takes precedence over the computed value.
|
|
6854
|
+
*
|
|
6855
|
+
* {@link visual.IElementSetting.isDefault | isDefault} is `true` when the computed value
|
|
6856
|
+
* is in effect, and `false` when an override is. The returned object is a live view.
|
|
6857
|
+
* @i2since 1.10
|
|
6858
|
+
*/
|
|
6859
|
+
readonly style: IEdgeSummaryStyle;
|
|
6860
|
+
}
|
|
6861
|
+
/**
|
|
6862
|
+
* The effective style of an edge summary line.
|
|
6863
|
+
* @i2since 1.10
|
|
6864
|
+
*/
|
|
6865
|
+
export interface IEdgeSummaryStyle {
|
|
6866
|
+
/**
|
|
6867
|
+
* Gets the color of the edge summary line.
|
|
6868
|
+
* @i2since 1.10
|
|
6869
|
+
*/
|
|
6870
|
+
readonly color: IElementSetting<string>;
|
|
6871
|
+
/**
|
|
6872
|
+
* Gets the width of the edge summary line.
|
|
6873
|
+
* @i2since 1.10
|
|
6874
|
+
*/
|
|
6875
|
+
readonly width: IElementSetting<number>;
|
|
6876
|
+
/**
|
|
6877
|
+
* Gets the line style of the edge summary line.
|
|
6878
|
+
* @i2since 1.10
|
|
6879
|
+
*/
|
|
6880
|
+
readonly lineStyle: IElementSetting<LineStyle>;
|
|
6881
|
+
/**
|
|
6882
|
+
* Gets the direction of the edge summary line, expressed relative to the natural direction
|
|
6883
|
+
* implied by its 'from' and 'to' ends.
|
|
6884
|
+
* @i2since 1.10
|
|
6885
|
+
*/
|
|
6886
|
+
readonly direction: IElementSetting<data.LinkDirection>;
|
|
6675
6887
|
}
|
|
6676
6888
|
/**
|
|
6677
6889
|
* A node group, which is a collection of nodes that can be moved and selected together.
|