@wcardinal/wcardinal-ui 0.459.0-beta.2 → 0.459.0-beta.4

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.459.0-beta.2
2
+ Winter Cardinal UI v0.459.0-beta.4
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -50117,7 +50117,7 @@ var EShapePolygonTriangulatedImpl = /** @class */ (function () {
50117
50117
  enumerable: false,
50118
50118
  configurable: true
50119
50119
  });
50120
- EShapePolygonTriangulatedImpl.prototype.set = function (parentPointsId, vertices, distances, lengths, clippings, uvs, indices) {
50120
+ EShapePolygonTriangulatedImpl.prototype.set = function (parentPointsId, vertices, distances, lengths, clippings, uvs, indices, boundary) {
50121
50121
  var isChanged = false;
50122
50122
  // Parent Vertex ID
50123
50123
  if (parentPointsId != null) {
@@ -50192,6 +50192,14 @@ var EShapePolygonTriangulatedImpl = /** @class */ (function () {
50192
50192
  this._nindices = indicesLength / 3;
50193
50193
  isChanged = true;
50194
50194
  }
50195
+ // Boundary
50196
+ if (boundary != null) {
50197
+ this._boundary[0] = boundary[0];
50198
+ this._boundary[1] = boundary[1];
50199
+ this._boundary[2] = boundary[2];
50200
+ this._boundary[3] = boundary[3];
50201
+ isChanged = true;
50202
+ }
50195
50203
  // Done
50196
50204
  if (isChanged) {
50197
50205
  this._id += 1;
@@ -50237,7 +50245,7 @@ var EShapePolygonTriangulatedImpl = /** @class */ (function () {
50237
50245
  return result;
50238
50246
  };
50239
50247
  EShapePolygonTriangulatedImpl.prototype.copy = function (source) {
50240
- this.set(this._parent.points.id, source.vertices, source.distances, source.lengths, source.clippings, source.uvs, source.indices);
50248
+ this.set(this._parent.points.id, source.vertices, source.distances, source.lengths, source.clippings, source.uvs, source.indices, source.boundary);
50241
50249
  return this;
50242
50250
  };
50243
50251
  EShapePolygonTriangulatedImpl.prototype.serialize = function (manager) {
@@ -50248,7 +50256,8 @@ var EShapePolygonTriangulatedImpl = /** @class */ (function () {
50248
50256
  manager.addResource(JSON.stringify(this._lengths)),
50249
50257
  manager.addResource(JSON.stringify(this._clippings)),
50250
50258
  manager.addResource(JSON.stringify(this._uvs)),
50251
- manager.addResource(JSON.stringify(this._indices))
50259
+ manager.addResource(JSON.stringify(this._indices)),
50260
+ manager.addResource(JSON.stringify(this._boundary))
50252
50261
  ];
50253
50262
  return manager.addResource(JSON.stringify(serialized));
50254
50263
  };
@@ -50264,66 +50273,95 @@ var EShapePolygonTriangulatedImpl = /** @class */ (function () {
50264
50273
  // Parent Points Id
50265
50274
  this._parentPointsId = this._parent.points.id;
50266
50275
  // Vertices
50267
- var vertexId = parsed[0];
50268
- if (0 <= vertexId && vertexId < resourcesLength) {
50269
- var vertices = manager.getExtension(vertexId);
50270
- if (vertices == null) {
50271
- vertices = JSON.parse(resources[vertexId]);
50272
- manager.setExtension(vertexId, vertices);
50276
+ {
50277
+ var vertexId = parsed[0];
50278
+ if (0 <= vertexId && vertexId < resourcesLength) {
50279
+ var vertices = manager.getExtension(vertexId);
50280
+ if (vertices == null) {
50281
+ vertices = JSON.parse(resources[vertexId]);
50282
+ manager.setExtension(vertexId, vertices);
50283
+ }
50284
+ this._vertices = vertices;
50285
+ this._nvertices = vertices.length >> 1;
50273
50286
  }
50274
- this._vertices = vertices;
50275
- this._nvertices = vertices.length >> 1;
50276
50287
  }
50277
50288
  // Distances
50278
- var distanceId = parsed[1];
50279
- if (0 <= distanceId && distanceId < resourcesLength) {
50280
- var distances = manager.getExtension(distanceId);
50281
- if (distances == null) {
50282
- distances = JSON.parse(resources[distanceId]);
50283
- manager.setExtension(distanceId, distances);
50289
+ {
50290
+ var distanceId = parsed[1];
50291
+ if (0 <= distanceId && distanceId < resourcesLength) {
50292
+ var distances = manager.getExtension(distanceId);
50293
+ if (distances == null) {
50294
+ distances = JSON.parse(resources[distanceId]);
50295
+ manager.setExtension(distanceId, distances);
50296
+ }
50297
+ this._distances = distances;
50284
50298
  }
50285
- this._distances = distances;
50286
50299
  }
50287
50300
  // Lengths
50288
- var lengthId = parsed[2];
50289
- if (0 <= lengthId && lengthId < resourcesLength) {
50290
- var lengths = manager.getExtension(lengthId);
50291
- if (lengths == null) {
50292
- lengths = JSON.parse(resources[lengthId]);
50293
- manager.setExtension(lengthId, lengths);
50301
+ {
50302
+ var lengthId = parsed[2];
50303
+ if (0 <= lengthId && lengthId < resourcesLength) {
50304
+ var lengths = manager.getExtension(lengthId);
50305
+ if (lengths == null) {
50306
+ lengths = JSON.parse(resources[lengthId]);
50307
+ manager.setExtension(lengthId, lengths);
50308
+ }
50309
+ this._lengths = lengths;
50294
50310
  }
50295
- this._lengths = lengths;
50296
50311
  }
50297
50312
  // Clippings
50298
- var clippingId = parsed[3];
50299
- if (0 <= clippingId && clippingId < resourcesLength) {
50300
- var clippings = manager.getExtension(clippingId);
50301
- if (clippings == null) {
50302
- clippings = JSON.parse(resources[clippingId]);
50303
- manager.setExtension(clippingId, clippings);
50313
+ {
50314
+ var clippingId = parsed[3];
50315
+ if (0 <= clippingId && clippingId < resourcesLength) {
50316
+ var clippings = manager.getExtension(clippingId);
50317
+ if (clippings == null) {
50318
+ clippings = JSON.parse(resources[clippingId]);
50319
+ manager.setExtension(clippingId, clippings);
50320
+ }
50321
+ this._clippings = clippings;
50304
50322
  }
50305
- this._clippings = clippings;
50306
50323
  }
50307
50324
  // UVs
50308
- var uvId = parsed[4];
50309
- if (0 <= uvId && uvId < resourcesLength) {
50310
- var uvs = manager.getExtension(uvId);
50311
- if (uvs == null) {
50312
- uvs = JSON.parse(resources[uvId]);
50313
- manager.setExtension(uvId, uvs);
50325
+ {
50326
+ var uvId = parsed[4];
50327
+ if (0 <= uvId && uvId < resourcesLength) {
50328
+ var uvs = manager.getExtension(uvId);
50329
+ if (uvs == null) {
50330
+ uvs = JSON.parse(resources[uvId]);
50331
+ manager.setExtension(uvId, uvs);
50332
+ }
50333
+ this._uvs = uvs;
50314
50334
  }
50315
- this._uvs = uvs;
50316
50335
  }
50317
50336
  // Indices
50318
- var indexId = parsed[5];
50319
- if (0 <= indexId && indexId < resourcesLength) {
50320
- var indices = manager.getExtension(indexId);
50321
- if (indices == null) {
50322
- indices = JSON.parse(resources[indexId]);
50323
- manager.setExtension(indexId, indices);
50337
+ {
50338
+ var indexId = parsed[5];
50339
+ if (0 <= indexId && indexId < resourcesLength) {
50340
+ var indices = manager.getExtension(indexId);
50341
+ if (indices == null) {
50342
+ indices = JSON.parse(resources[indexId]);
50343
+ manager.setExtension(indexId, indices);
50344
+ }
50345
+ this._indices = indices;
50346
+ this._nindices = indices.length / 3;
50347
+ }
50348
+ }
50349
+ // Boundary
50350
+ {
50351
+ var boundaryId = parsed[6];
50352
+ if (boundaryId != null) {
50353
+ if (0 <= boundaryId && boundaryId < resourcesLength) {
50354
+ var boundary = manager.getExtension(boundaryId);
50355
+ if (boundary == null) {
50356
+ boundary = JSON.parse(resources[boundaryId]);
50357
+ manager.setExtension(boundaryId, boundary);
50358
+ }
50359
+ this._boundary = boundary;
50360
+ }
50361
+ }
50362
+ else {
50363
+ toPointsBoundary(this._vertices, this._boundary);
50324
50364
  }
50325
- this._indices = indices;
50326
- this._nindices = indices.length / 3;
50327
50365
  }
50328
50366
  this._id += 1;
50329
50367
  }
@@ -50385,7 +50423,7 @@ var hitTestPolygon = function (shape, x, y, ax, ay, sw, ss) {
50385
50423
  if (!filled && sw <= 0) {
50386
50424
  return false;
50387
50425
  }
50388
- var values = shape.points.values;
50426
+ var values = shape.points.formatted.values;
50389
50427
  var valuesLength = values.length;
50390
50428
  if (6 <= valuesLength) {
50391
50429
  var count = 0;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.459.0-beta.2
2
+ Winter Cardinal UI v0.459.0-beta.4
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -50114,7 +50114,7 @@
50114
50114
  enumerable: false,
50115
50115
  configurable: true
50116
50116
  });
50117
- EShapePolygonTriangulatedImpl.prototype.set = function (parentPointsId, vertices, distances, lengths, clippings, uvs, indices) {
50117
+ EShapePolygonTriangulatedImpl.prototype.set = function (parentPointsId, vertices, distances, lengths, clippings, uvs, indices, boundary) {
50118
50118
  var isChanged = false;
50119
50119
  // Parent Vertex ID
50120
50120
  if (parentPointsId != null) {
@@ -50189,6 +50189,14 @@
50189
50189
  this._nindices = indicesLength / 3;
50190
50190
  isChanged = true;
50191
50191
  }
50192
+ // Boundary
50193
+ if (boundary != null) {
50194
+ this._boundary[0] = boundary[0];
50195
+ this._boundary[1] = boundary[1];
50196
+ this._boundary[2] = boundary[2];
50197
+ this._boundary[3] = boundary[3];
50198
+ isChanged = true;
50199
+ }
50192
50200
  // Done
50193
50201
  if (isChanged) {
50194
50202
  this._id += 1;
@@ -50234,7 +50242,7 @@
50234
50242
  return result;
50235
50243
  };
50236
50244
  EShapePolygonTriangulatedImpl.prototype.copy = function (source) {
50237
- this.set(this._parent.points.id, source.vertices, source.distances, source.lengths, source.clippings, source.uvs, source.indices);
50245
+ this.set(this._parent.points.id, source.vertices, source.distances, source.lengths, source.clippings, source.uvs, source.indices, source.boundary);
50238
50246
  return this;
50239
50247
  };
50240
50248
  EShapePolygonTriangulatedImpl.prototype.serialize = function (manager) {
@@ -50245,7 +50253,8 @@
50245
50253
  manager.addResource(JSON.stringify(this._lengths)),
50246
50254
  manager.addResource(JSON.stringify(this._clippings)),
50247
50255
  manager.addResource(JSON.stringify(this._uvs)),
50248
- manager.addResource(JSON.stringify(this._indices))
50256
+ manager.addResource(JSON.stringify(this._indices)),
50257
+ manager.addResource(JSON.stringify(this._boundary))
50249
50258
  ];
50250
50259
  return manager.addResource(JSON.stringify(serialized));
50251
50260
  };
@@ -50261,66 +50270,95 @@
50261
50270
  // Parent Points Id
50262
50271
  this._parentPointsId = this._parent.points.id;
50263
50272
  // Vertices
50264
- var vertexId = parsed[0];
50265
- if (0 <= vertexId && vertexId < resourcesLength) {
50266
- var vertices = manager.getExtension(vertexId);
50267
- if (vertices == null) {
50268
- vertices = JSON.parse(resources[vertexId]);
50269
- manager.setExtension(vertexId, vertices);
50273
+ {
50274
+ var vertexId = parsed[0];
50275
+ if (0 <= vertexId && vertexId < resourcesLength) {
50276
+ var vertices = manager.getExtension(vertexId);
50277
+ if (vertices == null) {
50278
+ vertices = JSON.parse(resources[vertexId]);
50279
+ manager.setExtension(vertexId, vertices);
50280
+ }
50281
+ this._vertices = vertices;
50282
+ this._nvertices = vertices.length >> 1;
50270
50283
  }
50271
- this._vertices = vertices;
50272
- this._nvertices = vertices.length >> 1;
50273
50284
  }
50274
50285
  // Distances
50275
- var distanceId = parsed[1];
50276
- if (0 <= distanceId && distanceId < resourcesLength) {
50277
- var distances = manager.getExtension(distanceId);
50278
- if (distances == null) {
50279
- distances = JSON.parse(resources[distanceId]);
50280
- manager.setExtension(distanceId, distances);
50286
+ {
50287
+ var distanceId = parsed[1];
50288
+ if (0 <= distanceId && distanceId < resourcesLength) {
50289
+ var distances = manager.getExtension(distanceId);
50290
+ if (distances == null) {
50291
+ distances = JSON.parse(resources[distanceId]);
50292
+ manager.setExtension(distanceId, distances);
50293
+ }
50294
+ this._distances = distances;
50281
50295
  }
50282
- this._distances = distances;
50283
50296
  }
50284
50297
  // Lengths
50285
- var lengthId = parsed[2];
50286
- if (0 <= lengthId && lengthId < resourcesLength) {
50287
- var lengths = manager.getExtension(lengthId);
50288
- if (lengths == null) {
50289
- lengths = JSON.parse(resources[lengthId]);
50290
- manager.setExtension(lengthId, lengths);
50298
+ {
50299
+ var lengthId = parsed[2];
50300
+ if (0 <= lengthId && lengthId < resourcesLength) {
50301
+ var lengths = manager.getExtension(lengthId);
50302
+ if (lengths == null) {
50303
+ lengths = JSON.parse(resources[lengthId]);
50304
+ manager.setExtension(lengthId, lengths);
50305
+ }
50306
+ this._lengths = lengths;
50291
50307
  }
50292
- this._lengths = lengths;
50293
50308
  }
50294
50309
  // Clippings
50295
- var clippingId = parsed[3];
50296
- if (0 <= clippingId && clippingId < resourcesLength) {
50297
- var clippings = manager.getExtension(clippingId);
50298
- if (clippings == null) {
50299
- clippings = JSON.parse(resources[clippingId]);
50300
- manager.setExtension(clippingId, clippings);
50310
+ {
50311
+ var clippingId = parsed[3];
50312
+ if (0 <= clippingId && clippingId < resourcesLength) {
50313
+ var clippings = manager.getExtension(clippingId);
50314
+ if (clippings == null) {
50315
+ clippings = JSON.parse(resources[clippingId]);
50316
+ manager.setExtension(clippingId, clippings);
50317
+ }
50318
+ this._clippings = clippings;
50301
50319
  }
50302
- this._clippings = clippings;
50303
50320
  }
50304
50321
  // UVs
50305
- var uvId = parsed[4];
50306
- if (0 <= uvId && uvId < resourcesLength) {
50307
- var uvs = manager.getExtension(uvId);
50308
- if (uvs == null) {
50309
- uvs = JSON.parse(resources[uvId]);
50310
- manager.setExtension(uvId, uvs);
50322
+ {
50323
+ var uvId = parsed[4];
50324
+ if (0 <= uvId && uvId < resourcesLength) {
50325
+ var uvs = manager.getExtension(uvId);
50326
+ if (uvs == null) {
50327
+ uvs = JSON.parse(resources[uvId]);
50328
+ manager.setExtension(uvId, uvs);
50329
+ }
50330
+ this._uvs = uvs;
50311
50331
  }
50312
- this._uvs = uvs;
50313
50332
  }
50314
50333
  // Indices
50315
- var indexId = parsed[5];
50316
- if (0 <= indexId && indexId < resourcesLength) {
50317
- var indices = manager.getExtension(indexId);
50318
- if (indices == null) {
50319
- indices = JSON.parse(resources[indexId]);
50320
- manager.setExtension(indexId, indices);
50334
+ {
50335
+ var indexId = parsed[5];
50336
+ if (0 <= indexId && indexId < resourcesLength) {
50337
+ var indices = manager.getExtension(indexId);
50338
+ if (indices == null) {
50339
+ indices = JSON.parse(resources[indexId]);
50340
+ manager.setExtension(indexId, indices);
50341
+ }
50342
+ this._indices = indices;
50343
+ this._nindices = indices.length / 3;
50344
+ }
50345
+ }
50346
+ // Boundary
50347
+ {
50348
+ var boundaryId = parsed[6];
50349
+ if (boundaryId != null) {
50350
+ if (0 <= boundaryId && boundaryId < resourcesLength) {
50351
+ var boundary = manager.getExtension(boundaryId);
50352
+ if (boundary == null) {
50353
+ boundary = JSON.parse(resources[boundaryId]);
50354
+ manager.setExtension(boundaryId, boundary);
50355
+ }
50356
+ this._boundary = boundary;
50357
+ }
50358
+ }
50359
+ else {
50360
+ toPointsBoundary(this._vertices, this._boundary);
50321
50361
  }
50322
- this._indices = indices;
50323
- this._nindices = indices.length / 3;
50324
50362
  }
50325
50363
  this._id += 1;
50326
50364
  }
@@ -50382,7 +50420,7 @@
50382
50420
  if (!filled && sw <= 0) {
50383
50421
  return false;
50384
50422
  }
50385
- var values = shape.points.values;
50423
+ var values = shape.points.formatted.values;
50386
50424
  var valuesLength = values.length;
50387
50425
  if (6 <= valuesLength) {
50388
50426
  var count = 0;