@i2analyze/notebook-sdk 1.10.0-dev.5 → 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 +100 -0
- 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.
|
|
@@ -6589,6 +6643,11 @@ export declare namespace visual {
|
|
|
6589
6643
|
* @i2since 1.2
|
|
6590
6644
|
*/
|
|
6591
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;
|
|
6592
6651
|
}
|
|
6593
6652
|
/**
|
|
6594
6653
|
* A position on a chart surface.
|
|
@@ -6784,6 +6843,47 @@ export declare namespace visual {
|
|
|
6784
6843
|
* @i2since 1.6
|
|
6785
6844
|
*/
|
|
6786
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>;
|
|
6787
6887
|
}
|
|
6788
6888
|
/**
|
|
6789
6889
|
* A node group, which is a collection of nodes that can be moved and selected together.
|