@wcardinal/wcardinal-ui 0.361.0 → 0.362.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.361.0
2
+ Winter Cardinal UI v0.362.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -51134,6 +51134,9 @@ var DThemeWhiteDiagramEditor = /** @class */ (function (_super) {
51134
51134
  DThemeWhiteDiagramEditor.prototype.isSnapTargetEnabled = function () {
51135
51135
  return true;
51136
51136
  };
51137
+ DThemeWhiteDiagramEditor.prototype.getBaseLayerLabel = function () {
51138
+ return "Base Layer";
51139
+ };
51137
51140
  return DThemeWhiteDiagramEditor;
51138
51141
  }(DThemeWhiteDiagramBase));
51139
51142
 
@@ -60418,6 +60421,9 @@ var DThemeDarkDiagramEditor = /** @class */ (function (_super) {
60418
60421
  DThemeDarkDiagramEditor.prototype.isSnapTargetEnabled = function () {
60419
60422
  return true;
60420
60423
  };
60424
+ DThemeDarkDiagramEditor.prototype.getBaseLayerLabel = function () {
60425
+ return "Base Layer";
60426
+ };
60421
60427
  return DThemeDarkDiagramEditor;
60422
60428
  }(DThemeDarkDiagramBase));
60423
60429
 
@@ -81943,6 +81949,7 @@ var DDiagramCanvasEditor = /** @class */ (function (_super) {
81943
81949
  label: this.label,
81944
81950
  width: this.width,
81945
81951
  height: this.height,
81952
+ category: this.category,
81946
81953
  summary: this.summary,
81947
81954
  description: this.description,
81948
81955
  background: {
@@ -83366,16 +83373,21 @@ var DDiagramEditor = /** @class */ (function (_super) {
83366
83373
  this.emit("deleted", null, this);
83367
83374
  return Promise.resolve(null);
83368
83375
  };
83369
- DDiagramEditor.prototype.create = function (name, width, height) {
83376
+ DDiagramEditor.prototype.create = function (options) {
83370
83377
  return this.set({
83371
83378
  version: DDiagramSerializedVersion,
83372
83379
  id: undefined,
83373
- name: name,
83374
- width: width,
83375
- height: height,
83380
+ name: options.name,
83381
+ label: options.label,
83382
+ width: options.width,
83383
+ height: options.height,
83384
+ category: options.category,
83385
+ summary: options.summary,
83386
+ description: options.description,
83387
+ background: options.background,
83376
83388
  resources: [],
83377
83389
  data: [],
83378
- layers: [["Default layer"]],
83390
+ layers: [[this.theme.getBaseLayerLabel()]],
83379
83391
  items: [],
83380
83392
  snap: undefined
83381
83393
  });
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.361.0
2
+ Winter Cardinal UI v0.362.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -63387,6 +63387,7 @@
63387
63387
  label: this.label,
63388
63388
  width: this.width,
63389
63389
  height: this.height,
63390
+ category: this.category,
63390
63391
  summary: this.summary,
63391
63392
  description: this.description,
63392
63393
  background: {
@@ -64810,16 +64811,21 @@
64810
64811
  this.emit("deleted", null, this);
64811
64812
  return Promise.resolve(null);
64812
64813
  };
64813
- DDiagramEditor.prototype.create = function (name, width, height) {
64814
+ DDiagramEditor.prototype.create = function (options) {
64814
64815
  return this.set({
64815
64816
  version: DDiagramSerializedVersion,
64816
64817
  id: undefined,
64817
- name: name,
64818
- width: width,
64819
- height: height,
64818
+ name: options.name,
64819
+ label: options.label,
64820
+ width: options.width,
64821
+ height: options.height,
64822
+ category: options.category,
64823
+ summary: options.summary,
64824
+ description: options.description,
64825
+ background: options.background,
64820
64826
  resources: [],
64821
64827
  data: [],
64822
- layers: [["Default layer"]],
64828
+ layers: [[this.theme.getBaseLayerLabel()]],
64823
64829
  items: [],
64824
64830
  snap: undefined
64825
64831
  });