@i2analyze/notebook-sdk 1.6.0-dev.10 → 1.6.0-dev.12

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.
@@ -975,7 +975,7 @@ export declare namespace app {
975
975
  * @returns The type-editing object.
976
976
  * @i2since 1.6
977
977
  */
978
- editItemType(itemType: schema.ItemTypeSpecifier): schema.IItemTypeEditor | schema.IPropertyTypeFactory;
978
+ editItemType(itemType: schema.ItemTypeSpecifier): schema.IItemTypeEditor | schema.IPropertyTypesEditor;
979
979
  }
980
980
  /**
981
981
  * A collection of elements and records that together represent a selection on the chart surface.
@@ -4379,11 +4379,27 @@ export declare namespace schema {
4379
4379
  */
4380
4380
  export interface IChartLinkTypeData extends IChartItemTypeDataBase {
4381
4381
  }
4382
+ /**
4383
+ * A part of a label that consists of a property type.
4384
+ * @i2since 1.6
4385
+ */
4386
+ export interface IChartPropertyLabelPartData {
4387
+ /**
4388
+ * Gets the type or id of the property whose value is used for the label part.
4389
+ * @i2since 1.6
4390
+ */
4391
+ readonly propertyType: PropertyTypeSpecifier;
4392
+ /**
4393
+ * Gets the type of label part.
4394
+ * @i2since 1.6
4395
+ */
4396
+ readonly type: 'chartProperty';
4397
+ }
4382
4398
  /**
4383
4399
  * A set of data for creating a label definition.
4384
4400
  * @i2since 1.6
4385
4401
  */
4386
- export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPart | IPendingPropertyLabelPart;
4402
+ export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPartData | IPendingPropertyLabelPart;
4387
4403
  /**
4388
4404
  * A part of a label that consists of a pending custom property type.
4389
4405
  * @i2since 1.6
@@ -4431,9 +4447,9 @@ export declare namespace schema {
4431
4447
  * A set of methods for modifying a custom item type.
4432
4448
  * @i2since 1.6
4433
4449
  */
4434
- export interface IItemTypeEditor extends IPropertyTypeFactory {
4450
+ export interface IItemTypeEditor extends IPropertyTypesEditor {
4435
4451
  /**
4436
- * Indicates that the item type is a custom type.
4452
+ * Indicates whether the item type is a custom type.
4437
4453
  * @i2since 1.6
4438
4454
  */
4439
4455
  readonly isCustomType: true;
@@ -4458,21 +4474,23 @@ export declare namespace schema {
4458
4474
  * A set of methods for adding and editing custom property types on schema and custom item types.
4459
4475
  * @i2since 1.6
4460
4476
  */
4461
- export interface IPropertyTypeFactory {
4477
+ export interface IPropertyTypesEditor {
4462
4478
  /**
4463
4479
  * Indicates whether the item type is a custom type.
4464
4480
  * @i2since 1.6
4465
4481
  */
4466
- isCustomType: boolean;
4482
+ readonly isCustomType: boolean;
4467
4483
  /**
4468
4484
  * Creates a custom property type that is added to the chart schema on committal.
4469
4485
  *
4470
4486
  * @param propertyTypeTemplate - The data for creating the custom property type.
4471
- * @param insertAfter - The position of the new property type. If this is not provided, the new property type is added at the end of the list.
4487
+ * @param insertAfter - The position of the new property type.
4488
+ * If this is not provided, the new property type is added at the end of the list.
4489
+ * If this is null, the new property type is added at the beginning of the list.
4472
4490
  * @returns The new, pending property type.
4473
4491
  * @i2since 1.6
4474
4492
  */
4475
- addPropertyType(propertyTypeTemplate: IPropertyTypeData, insertAfter?: CustomPropertyTypeSpecifier): IPendingPropertyType;
4493
+ addPropertyType(propertyTypeTemplate: IPropertyTypeData, insertAfter?: PropertyTypeSpecifier | IPendingPropertyType | null): IPendingPropertyType;
4476
4494
  /**
4477
4495
  * Gets an object with methods for editing a custom property type.
4478
4496
  *
@@ -4480,7 +4498,7 @@ export declare namespace schema {
4480
4498
  * @returns The type-editing object.
4481
4499
  * @i2since 1.6
4482
4500
  */
4483
- editPropertyType(propertyType: CustomPropertyTypeSpecifier): IPropertyTypeEditor;
4501
+ editPropertyType(propertyType: PropertyTypeSpecifier | IPendingPropertyType): IPropertyTypeEditor;
4484
4502
  /**
4485
4503
  * Gets an object with methods for editing a custom property type.
4486
4504
  *
@@ -4491,11 +4509,6 @@ export declare namespace schema {
4491
4509
  */
4492
4510
  editPropertyType(typeId: AnalyzePropertyTypeId, logicalType: CustomLogicalType): IPropertyTypeEditor;
4493
4511
  }
4494
- /**
4495
- * A common specifier for a custom property type.
4496
- * @i2since 1.6
4497
- */
4498
- export type CustomPropertyTypeSpecifier = IChartPropertyType | IPendingPropertyType;
4499
4512
  /**
4500
4513
  * A custom property type that has been created in a transaction handler, but has not yet been added to a chart schema.
4501
4514
  * @i2since 1.6
@@ -4528,11 +4541,12 @@ export declare namespace schema {
4528
4541
  /**
4529
4542
  * Moves the property type after the specified property type.
4530
4543
  *
4531
- * @param propertyType - The property type that serves as the reference for positioning. Null moves the property type to the beginning of the list.
4544
+ * @param propertyType - The property type that serves as the reference for positioning.
4545
+ * Passing null moves the property type to the beginning of the list.
4532
4546
  * @returns This property type editor, with the edited properties in place.
4533
4547
  * @i2since 1.6
4534
4548
  */
4535
- moveAfter(propertyType: CustomPropertyTypeSpecifier | null): this;
4549
+ moveAfter(propertyType: PropertyTypeSpecifier | IPendingPropertyType | null): this;
4536
4550
  }
4537
4551
  /**
4538
4552
  * The type of a schema.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.6.0-dev.10",
3
+ "version": "1.6.0-dev.12",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {