@i2analyze/notebook-sdk 1.9.0-dev.9 → 1.9.0
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/README.md +1 -0
- package/lib/gen/notebook-sdk-public.d.ts +272 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ This npm package provides the JavaScript library for developing plug-ins and a t
|
|
|
8
8
|
|
|
9
9
|
| `@i2analyze/notebook-sdk` version | i2 Analyze version |
|
|
10
10
|
| --------------------------------- | ------------------ |
|
|
11
|
+
| 1.9.\* | 4.4.7.\* and later |
|
|
11
12
|
| 1.8.\* | 4.4.6.\* and later |
|
|
12
13
|
| 1.7.\* | 4.4.5.\* and later |
|
|
13
14
|
| 1.6.\* | 4.4.4.5 and later |
|
|
@@ -78,9 +78,11 @@ export declare namespace app {
|
|
|
78
78
|
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
79
79
|
* @param responseHandler - A callback that receives the changes caused by the mutations.
|
|
80
80
|
* @param options - An object that can control the transaction.
|
|
81
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
81
82
|
* @i2since 1.1
|
|
83
|
+
* @deprecated Use the options-only overload and await the returned Promise instead.
|
|
82
84
|
*/
|
|
83
|
-
runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler
|
|
85
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler: MutationResponseHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
84
86
|
/**
|
|
85
87
|
* Queues a function that performs tracked mutations on the application contents at the next available opportunity.
|
|
86
88
|
*
|
|
@@ -90,9 +92,10 @@ export declare namespace app {
|
|
|
90
92
|
*
|
|
91
93
|
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
92
94
|
* @param options - An object that can control the transaction.
|
|
95
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
93
96
|
* @i2since 1.1
|
|
94
97
|
*/
|
|
95
|
-
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions):
|
|
98
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
96
99
|
/**
|
|
97
100
|
* Queues a function that performs untracked mutations on the application contents at the next available opportunity,
|
|
98
101
|
* and can respond to the changes that the mutations cause.
|
|
@@ -104,9 +107,11 @@ export declare namespace app {
|
|
|
104
107
|
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
105
108
|
* @param responseHandler - A callback that receives the changes produced by the mutations.
|
|
106
109
|
* @param options - An object that can control the transaction.
|
|
110
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
107
111
|
* @i2since 1.1
|
|
112
|
+
* @deprecated Use the options-only overload and await the returned Promise instead.
|
|
108
113
|
*/
|
|
109
|
-
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler
|
|
114
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler: MutationResponseHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
110
115
|
/**
|
|
111
116
|
* Queues a function that performs untracked mutations on the application contents at the next available opportunity.
|
|
112
117
|
*
|
|
@@ -116,14 +121,25 @@ export declare namespace app {
|
|
|
116
121
|
*
|
|
117
122
|
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
118
123
|
* @param options - An object that can control the transaction.
|
|
124
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
119
125
|
* @i2since 1.1
|
|
120
126
|
*/
|
|
121
|
-
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions):
|
|
127
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
122
128
|
/**
|
|
123
129
|
* Gets the identifiers of the system dialog actions.
|
|
124
130
|
* @i2since 1.4
|
|
125
131
|
*/
|
|
126
132
|
readonly systemActions: dialog.ISystemDialogActions;
|
|
133
|
+
/**
|
|
134
|
+
* Gets the brush sets manager for controlling chart brushing.
|
|
135
|
+
* @i2since 1.9
|
|
136
|
+
*/
|
|
137
|
+
readonly brushSets: visual.IBrushSetsManager;
|
|
138
|
+
/**
|
|
139
|
+
* Gets a library of functions for creating objects to use in mutations.
|
|
140
|
+
* @i2since 1.9
|
|
141
|
+
*/
|
|
142
|
+
readonly valueFactory: IValueFactory;
|
|
127
143
|
}
|
|
128
144
|
/**
|
|
129
145
|
* A report on the result of one or more mutations.
|
|
@@ -349,6 +365,22 @@ export declare namespace app {
|
|
|
349
365
|
* @i2since 1.1
|
|
350
366
|
*/
|
|
351
367
|
setMessage(text: string): void;
|
|
368
|
+
/**
|
|
369
|
+
* Reports numeric progress and optionally yields the UI thread to keep the application responsive.
|
|
370
|
+
*
|
|
371
|
+
* @remarks
|
|
372
|
+
* Use this method in tight loops to show a determinate progress bar and prevent the application
|
|
373
|
+
* from becoming unresponsive. The returned promise should be awaited on each iteration.
|
|
374
|
+
*
|
|
375
|
+
* To yield the UI thread without showing a progress bar (when the total is not known),
|
|
376
|
+
* pass `0` for both `done` and `total`.
|
|
377
|
+
*
|
|
378
|
+
* @param done - The amount of work completed so far.
|
|
379
|
+
* @param total - The total amount of work. When greater than `0`, a determinate progress bar is shown.
|
|
380
|
+
* @returns A promise that resolves after optionally yielding the UI thread.
|
|
381
|
+
* @i2since 1.9
|
|
382
|
+
*/
|
|
383
|
+
setProgress(done: number, total: number): Promise<void>;
|
|
352
384
|
}
|
|
353
385
|
/**
|
|
354
386
|
* A common specifier for a record, for use in mutation APIs.
|
|
@@ -1080,6 +1112,23 @@ export declare namespace app {
|
|
|
1080
1112
|
* @i2since 1.1
|
|
1081
1113
|
*/
|
|
1082
1114
|
createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
|
|
1115
|
+
/**
|
|
1116
|
+
* Creates a color range from a configuration that maps brush indices to CSS color strings.
|
|
1117
|
+
*
|
|
1118
|
+
* @remarks
|
|
1119
|
+
* The returned color range resolves colors for any index within the range of the provided keys.
|
|
1120
|
+
* If an index matches a key exactly, its color is returned directly. If an index falls between
|
|
1121
|
+
* two keys, the color is interpolated linearly between the colors of the two nearest keys.
|
|
1122
|
+
*
|
|
1123
|
+
* This supports both discrete and continuous (gradient) color ranges, depending on the
|
|
1124
|
+
* configuration you provide. See {@link visual.ColorRangeConfig} for details.
|
|
1125
|
+
*
|
|
1126
|
+
* @param config - A mapping of brush indices to CSS color strings.
|
|
1127
|
+
* @returns A new color range.
|
|
1128
|
+
* @throws `Error` if the configuration is empty or contains invalid color strings.
|
|
1129
|
+
* @i2since 1.9
|
|
1130
|
+
*/
|
|
1131
|
+
createBrushColorRange(config: visual.ColorRangeConfig): visual.IBrushColorRange;
|
|
1083
1132
|
}
|
|
1084
1133
|
/**
|
|
1085
1134
|
* A set of methods for performing tracked mutations, which require an entry in the undo stack.
|
|
@@ -2087,6 +2136,11 @@ export declare namespace chart {
|
|
|
2087
2136
|
* @i2since 1.5
|
|
2088
2137
|
*/
|
|
2089
2138
|
readonly chartschemachange: ChartSchemaChangeListener;
|
|
2139
|
+
/**
|
|
2140
|
+
* Gets the type of the callback method that listens for "brushsetchange" events.
|
|
2141
|
+
* @i2since 1.9
|
|
2142
|
+
*/
|
|
2143
|
+
readonly brushsetchange: BrushSetChangeListener;
|
|
2090
2144
|
}
|
|
2091
2145
|
/**
|
|
2092
2146
|
* A mapping of chart event types to their listener options types.
|
|
@@ -2113,6 +2167,11 @@ export declare namespace chart {
|
|
|
2113
2167
|
* @i2since 1.5
|
|
2114
2168
|
*/
|
|
2115
2169
|
readonly chartschemachange: app.ISubscriptionOptions;
|
|
2170
|
+
/**
|
|
2171
|
+
* Gets the type of the object that provides control over "brushsetchange" event listeners.
|
|
2172
|
+
* @i2since 1.9
|
|
2173
|
+
*/
|
|
2174
|
+
readonly brushsetchange: app.ISubscriptionOptions;
|
|
2116
2175
|
}
|
|
2117
2176
|
/**
|
|
2118
2177
|
* A callback function that handles chart selection events.
|
|
@@ -2146,6 +2205,14 @@ export declare namespace chart {
|
|
|
2146
2205
|
* @i2since 1.0
|
|
2147
2206
|
*/
|
|
2148
2207
|
export type ViewListener = (view: IChartView & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
2208
|
+
/**
|
|
2209
|
+
* A callback function that handles brush set change events.
|
|
2210
|
+
*
|
|
2211
|
+
* @param brushSet - The brush set that changed.
|
|
2212
|
+
* @param applicationContents - The contents of the application, including the current chart.
|
|
2213
|
+
* @i2since 1.9
|
|
2214
|
+
*/
|
|
2215
|
+
export type BrushSetChangeListener = (brushSet: visual.IBrushSet, applicationContents: app.IApplicationContents) => void;
|
|
2149
2216
|
/**
|
|
2150
2217
|
* Constraints that control a view-fitting operation.
|
|
2151
2218
|
*
|
|
@@ -4327,7 +4394,7 @@ export declare namespace dialog {
|
|
|
4327
4394
|
*
|
|
4328
4395
|
* @i2since 1.4
|
|
4329
4396
|
*/
|
|
4330
|
-
export interface IDialogApi extends app.IApplication {
|
|
4397
|
+
export interface IDialogApi extends app.IApplication, app.IApplicationContents {
|
|
4331
4398
|
/**
|
|
4332
4399
|
* Updates the label or the enabled state of the specified dialog action.
|
|
4333
4400
|
*
|
|
@@ -4471,15 +4538,18 @@ export declare function getToolViewApi(): Promise<toolview.IToolViewApi>;
|
|
|
4471
4538
|
* @public
|
|
4472
4539
|
* @i2since 1.0
|
|
4473
4540
|
*/
|
|
4474
|
-
export declare interface IEntryPointApi extends app.IApplication {
|
|
4541
|
+
export declare interface IEntryPointApi extends app.IApplication, app.IApplicationContents {
|
|
4475
4542
|
/**
|
|
4476
4543
|
* Allows plug-ins to indicate when their registrations are complete, so that the i2 Notebook user interface can start.
|
|
4477
4544
|
*
|
|
4478
4545
|
* @remarks
|
|
4479
4546
|
* If a plug-in does not call this method after completing registration, i2 Notebook abandons its attempt to load it.
|
|
4547
|
+
*
|
|
4548
|
+
* When the plug-in awaits the returned promise, the `chart` and `view` properties become available.
|
|
4549
|
+
* @returns A promise that resolves when the application has finished loading.
|
|
4480
4550
|
* @i2since 1.0
|
|
4481
4551
|
*/
|
|
4482
|
-
initializationComplete(): void
|
|
4552
|
+
initializationComplete(): Promise<void>;
|
|
4483
4553
|
/**
|
|
4484
4554
|
* Gets an object that can be used to perform plug-in logging operations.
|
|
4485
4555
|
* @i2since 1.0
|
|
@@ -5972,7 +6042,7 @@ export declare namespace toolview {
|
|
|
5972
6042
|
* A collection of methods and properties that allow plug-in tool views to interact with i2 Notebook.
|
|
5973
6043
|
* @i2since 1.0
|
|
5974
6044
|
*/
|
|
5975
|
-
export interface IToolViewApi extends IToolView, app.IApplication {
|
|
6045
|
+
export interface IToolViewApi extends IToolView, app.IApplication, app.IApplicationContents {
|
|
5976
6046
|
/**
|
|
5977
6047
|
* Gets an object that can be used to perform plug-in logging operations.
|
|
5978
6048
|
* @i2since 1.0
|
|
@@ -6106,7 +6176,7 @@ export declare namespace visual {
|
|
|
6106
6176
|
* The style of a line on an i2 Notebook chart. The default value is `'solid'`.
|
|
6107
6177
|
* @i2since 1.9
|
|
6108
6178
|
*/
|
|
6109
|
-
export type LineStyle = 'solid' | 'dashed' | 'dotted';
|
|
6179
|
+
export type LineStyle = 'solid' | 'dashed' | 'dotted' | 'dash-dot' | 'dash-dot-dot';
|
|
6110
6180
|
/**
|
|
6111
6181
|
* A label for an element.
|
|
6112
6182
|
* @i2since 1.5
|
|
@@ -6459,6 +6529,199 @@ export declare namespace visual {
|
|
|
6459
6529
|
*/
|
|
6460
6530
|
readonly borderStyle: IElementSetting<LineStyle | null>;
|
|
6461
6531
|
}
|
|
6532
|
+
/**
|
|
6533
|
+
* An index that represents the priority or importance of a record in a brush set.
|
|
6534
|
+
* Higher values indicate higher importance.
|
|
6535
|
+
* @i2since 1.9
|
|
6536
|
+
*/
|
|
6537
|
+
export type BrushIndex = number;
|
|
6538
|
+
/**
|
|
6539
|
+
* A color range that maps brush indices to CSS color strings.
|
|
6540
|
+
* @i2since 1.9
|
|
6541
|
+
*/
|
|
6542
|
+
export interface IBrushColorRange {
|
|
6543
|
+
/**
|
|
6544
|
+
* Returns the CSS color string for the given brush index.
|
|
6545
|
+
*
|
|
6546
|
+
* @remarks
|
|
6547
|
+
* The behavior of this method depends on the implementation. For color ranges created with
|
|
6548
|
+
* `app.IValueFactory.createBrushColorRange`, if the index matches a key exactly, the corresponding
|
|
6549
|
+
* color is returned; if it falls between two keys, the color is interpolated linearly between
|
|
6550
|
+
* the colors of the two nearest keys; and if it is outside the range of defined keys, an `Error`
|
|
6551
|
+
* is thrown.
|
|
6552
|
+
*
|
|
6553
|
+
* @param index - The brush index to get the color for.
|
|
6554
|
+
* @returns A CSS color string (for example, '#FF0000', 'rgb(255, 0, 0)', 'red').
|
|
6555
|
+
* @i2since 1.9
|
|
6556
|
+
*/
|
|
6557
|
+
getColor(index: BrushIndex): string;
|
|
6558
|
+
}
|
|
6559
|
+
/**
|
|
6560
|
+
* A configuration for creating a color range, specified as a mapping of brush indices to CSS color strings.
|
|
6561
|
+
*
|
|
6562
|
+
* @remarks
|
|
6563
|
+
* The keys are brush indices and the values are CSS color strings. You must provide at least one entry.
|
|
6564
|
+
*
|
|
6565
|
+
* For a **discrete** color range, provide a color for every index you intend to use.
|
|
6566
|
+
* For example, `{ 0: '#FF0000', 1: '#00FF00', 2: '#0000FF' }` maps index 0 to red, 1 to green, and 2 to blue.
|
|
6567
|
+
*
|
|
6568
|
+
* For a **continuous** (gradient) color range, provide colors only at key indices.
|
|
6569
|
+
* For example, `{ 0: '#FF0000', 100: '#0000FF' }` maps index 0 to red and index 100 to blue;
|
|
6570
|
+
* intermediate indices are interpolated linearly between the two colors.
|
|
6571
|
+
*
|
|
6572
|
+
* @i2since 1.9
|
|
6573
|
+
*/
|
|
6574
|
+
export type ColorRangeConfig = Record<BrushIndex, string>;
|
|
6575
|
+
/**
|
|
6576
|
+
* A brush set that maps records to brush indices and applies colors based on a color range.
|
|
6577
|
+
* @i2since 1.9
|
|
6578
|
+
*/
|
|
6579
|
+
export interface IBrushSet {
|
|
6580
|
+
/**
|
|
6581
|
+
* Gets the unique identifier of the brush set.
|
|
6582
|
+
* @i2since 1.9
|
|
6583
|
+
*/
|
|
6584
|
+
readonly id: string;
|
|
6585
|
+
/**
|
|
6586
|
+
* Indicates whether the brush set is currently active.
|
|
6587
|
+
*
|
|
6588
|
+
* @remarks
|
|
6589
|
+
* Only one plug-in-owned brush set can be active at a time.
|
|
6590
|
+
* @i2since 1.9
|
|
6591
|
+
*/
|
|
6592
|
+
readonly isActive: boolean;
|
|
6593
|
+
/**
|
|
6594
|
+
* Gets the current color range for this brush set, or `null` if no color range is set.
|
|
6595
|
+
* @i2since 1.9
|
|
6596
|
+
*/
|
|
6597
|
+
readonly colorRange: IBrushColorRange | null;
|
|
6598
|
+
/**
|
|
6599
|
+
* Sets the color range for this brush set.
|
|
6600
|
+
*
|
|
6601
|
+
* @param range - The color range to use for mapping brush indices to colors.
|
|
6602
|
+
* @i2since 1.9
|
|
6603
|
+
*/
|
|
6604
|
+
setColorRange(range: IBrushColorRange): void;
|
|
6605
|
+
/**
|
|
6606
|
+
* Sets the brush index for a single record.
|
|
6607
|
+
*
|
|
6608
|
+
* @param record - The record, or the identifier of the record.
|
|
6609
|
+
* @param index - The brush index to assign to the record.
|
|
6610
|
+
* @throws `Error` if the record does not exist on the chart.
|
|
6611
|
+
* @i2since 1.9
|
|
6612
|
+
*/
|
|
6613
|
+
set(record: app.RecordSpecifier, index: BrushIndex): void;
|
|
6614
|
+
/**
|
|
6615
|
+
* Sets the brush index for multiple records.
|
|
6616
|
+
*
|
|
6617
|
+
* @param entries - An iterable of `[record, index]` tuples for multiple records.
|
|
6618
|
+
* @throws `Error` if one or more of the records do not exist on the chart.
|
|
6619
|
+
* @i2since 1.9
|
|
6620
|
+
*/
|
|
6621
|
+
set(entries: Iterable<[app.RecordSpecifier, BrushIndex]>): void;
|
|
6622
|
+
/**
|
|
6623
|
+
* Removes specific records from the brush set.
|
|
6624
|
+
*
|
|
6625
|
+
* @param records - An iterable of records, or record identifiers, to remove.
|
|
6626
|
+
* @throws `Error` if one or more of the records do not exist on the chart.
|
|
6627
|
+
* @i2since 1.9
|
|
6628
|
+
*/
|
|
6629
|
+
remove(records: Iterable<app.RecordSpecifier> | app.RecordSpecifier): void;
|
|
6630
|
+
/**
|
|
6631
|
+
* Gets the brush index for a record, or `undefined` if the record is not in the brush set.
|
|
6632
|
+
*
|
|
6633
|
+
* @param recordId - The identifier of the record.
|
|
6634
|
+
* @returns The brush index, or `undefined` if the record is not brushed.
|
|
6635
|
+
* @i2since 1.9
|
|
6636
|
+
*/
|
|
6637
|
+
getBrushIndex(recordId: records.AnalyzeRecordId): BrushIndex | undefined;
|
|
6638
|
+
/**
|
|
6639
|
+
* Removes all record mappings from the brush set.
|
|
6640
|
+
* @i2since 1.9
|
|
6641
|
+
*/
|
|
6642
|
+
clear(): void;
|
|
6643
|
+
}
|
|
6644
|
+
/**
|
|
6645
|
+
* A manager for brush sets that controls their lifecycle and provides color resolution.
|
|
6646
|
+
* @i2since 1.9
|
|
6647
|
+
*/
|
|
6648
|
+
export interface IBrushSetsManager {
|
|
6649
|
+
/**
|
|
6650
|
+
* Creates a new brush set.
|
|
6651
|
+
*
|
|
6652
|
+
* @returns The newly created brush set.
|
|
6653
|
+
* @i2since 1.9
|
|
6654
|
+
*/
|
|
6655
|
+
create(): IBrushSet;
|
|
6656
|
+
/**
|
|
6657
|
+
* Activates a brush set, making it the active brush set and deactivating any other plug-in-owned brush sets.
|
|
6658
|
+
*
|
|
6659
|
+
* @remarks
|
|
6660
|
+
* Only one plug-in-owned brush set can be active at a time. Activating a brush set automatically
|
|
6661
|
+
* deactivates the previously active plug-in brush set.
|
|
6662
|
+
*
|
|
6663
|
+
* @param brushSet - The brush set to activate.
|
|
6664
|
+
* @throws `Error` if the brush set does not have a color range set.
|
|
6665
|
+
* @i2since 1.9
|
|
6666
|
+
*/
|
|
6667
|
+
activate(brushSet: IBrushSet): void;
|
|
6668
|
+
/**
|
|
6669
|
+
* Deactivates a brush set.
|
|
6670
|
+
*
|
|
6671
|
+
* @param brushSet - The brush set to deactivate.
|
|
6672
|
+
* @i2since 1.9
|
|
6673
|
+
*/
|
|
6674
|
+
deactivate(brushSet: IBrushSet): void;
|
|
6675
|
+
/**
|
|
6676
|
+
* Deletes a brush set, removing it from the manager.
|
|
6677
|
+
*
|
|
6678
|
+
* @param brushSet - The brush set to delete.
|
|
6679
|
+
* @i2since 1.9
|
|
6680
|
+
*/
|
|
6681
|
+
delete(brushSet: IBrushSet): void;
|
|
6682
|
+
/**
|
|
6683
|
+
* Gets the currently active plug-in-owned brush set, or `null` if no plug-in brush set is active.
|
|
6684
|
+
*
|
|
6685
|
+
* @remarks
|
|
6686
|
+
* This property only returns plug-in-owned brush sets. System-owned overlay brush sets
|
|
6687
|
+
* (used internally by features like Find-on-Chart) are not exposed through this property.
|
|
6688
|
+
* @i2since 1.9
|
|
6689
|
+
*/
|
|
6690
|
+
readonly activeBrushSet: IBrushSet | null;
|
|
6691
|
+
/**
|
|
6692
|
+
* Gets the CSS color string for a record based on the active brush sets.
|
|
6693
|
+
*
|
|
6694
|
+
* @remarks
|
|
6695
|
+
* This method resolves colors using a two-layer precedence system:
|
|
6696
|
+
*
|
|
6697
|
+
* 1. System overlay brush sets (for example, Find-on-Chart) take precedence
|
|
6698
|
+
* 2. Falls back to the active plug-in-owned brush set
|
|
6699
|
+
* 3. Returns `null` if the record is not brushed in any active set.
|
|
6700
|
+
*
|
|
6701
|
+
* @param recordId - The identifier of the record.
|
|
6702
|
+
* @returns The CSS color string for the record, or `null` if the record is not brushed.
|
|
6703
|
+
* @i2since 1.9
|
|
6704
|
+
*/
|
|
6705
|
+
getColorForRecord(recordId: records.AnalyzeRecordId): string | null;
|
|
6706
|
+
/**
|
|
6707
|
+
* Gets the CSS color string for a chart element based on the active brush sets.
|
|
6708
|
+
*
|
|
6709
|
+
* @remarks
|
|
6710
|
+
* For elements that represent multiple records, this method uses the maximum brush index
|
|
6711
|
+
* across all constituent records. Higher brush indices represent higher importance.
|
|
6712
|
+
*
|
|
6713
|
+
* Color resolution uses a two-layer precedence system:
|
|
6714
|
+
*
|
|
6715
|
+
* 1. System overlay brush sets (for example, Find-on-Chart) take precedence
|
|
6716
|
+
* 2. Falls back to the active plug-in-owned brush set
|
|
6717
|
+
* 3. Returns `null` if no constituent records are brushed in any active set.
|
|
6718
|
+
*
|
|
6719
|
+
* @param elementId - The identifier of the chart element.
|
|
6720
|
+
* @returns The CSS color string for the element, or `null` if the element is not brushed.
|
|
6721
|
+
* @i2since 1.9
|
|
6722
|
+
*/
|
|
6723
|
+
getColorForElement(elementId: ElementId): string | null;
|
|
6724
|
+
}
|
|
6462
6725
|
}
|
|
6463
6726
|
|
|
6464
6727
|
export { }
|