@i2analyze/notebook-sdk 1.1.0-dev.20 → 1.1.0-dev.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @i2analyze/notebook-sdk
2
2
 
3
+ ## 1.1.0-dev.21
4
+
5
+ ### Minor Changes
6
+
7
+ - Remove removeRecord
8
+ - Add removeRecords and removeElements APIs
9
+
3
10
  ## 1.1.0-dev.20
4
11
 
5
12
  ### Minor Changes
@@ -277,6 +277,11 @@ export declare namespace app {
277
277
  * @i2since 1.1
278
278
  */
279
279
  export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
280
+ /**
281
+ * A common specifier for an element, for use in mutation APIs.
282
+ * @i2since 1.1
283
+ */
284
+ export type ElementSpecifier = visual.ElementId | visual.IElement;
280
285
  /**
281
286
  * The identifier of a record group.
282
287
  * @i2since 1.1
@@ -701,13 +706,6 @@ export declare namespace app {
701
706
  * @i2since 1.1
702
707
  */
703
708
  editRecord(record: RecordSpecifier): IRecordEditor;
704
- /**
705
- * Removes a record from the chart.
706
- *
707
- * @param record - The record to be removed.
708
- * @i2since 1.1
709
- */
710
- removeRecord(record: RecordSpecifier): void;
711
709
  /**
712
710
  * Moves a node to a particular location on the chart.
713
711
  *
@@ -727,6 +725,20 @@ export declare namespace app {
727
725
  xDelta: number;
728
726
  yDelta: number;
729
727
  }): void;
728
+ /**
729
+ * Removes records from the chart.
730
+ *
731
+ * @param records - The record or records to be removed.
732
+ * @i2since 1.1
733
+ */
734
+ removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): void;
735
+ /**
736
+ * Removes elements from the chart.
737
+ *
738
+ * @param elements - The element or elements to be removed.
739
+ * @i2since 1.1
740
+ */
741
+ removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): void;
730
742
  /**
731
743
  * Removes the selected records from the chart.
732
744
  * @i2since 1.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.1.0-dev.20",
3
+ "version": "1.1.0-dev.21",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {