@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.
- package/dist/types/wcardinal/ui/shape/variant/e-shape-polygon-triangulated-impl.d.ts +3 -2
- package/dist/wcardinal/ui/shape/variant/e-shape-polygon-triangulated-impl.js +85 -47
- package/dist/wcardinal/ui/shape/variant/e-shape-polygon-triangulated-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/hit-test-polygon.js +1 -1
- package/dist/wcardinal/ui/shape/variant/hit-test-polygon.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +87 -49
- package/dist/wcardinal-ui.js +87 -49
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.459.0-beta.
|
|
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
|
-
|
|
50268
|
-
|
|
50269
|
-
|
|
50270
|
-
|
|
50271
|
-
vertices
|
|
50272
|
-
|
|
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
|
-
|
|
50279
|
-
|
|
50280
|
-
|
|
50281
|
-
|
|
50282
|
-
distances
|
|
50283
|
-
|
|
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
|
-
|
|
50289
|
-
|
|
50290
|
-
|
|
50291
|
-
|
|
50292
|
-
lengths
|
|
50293
|
-
|
|
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
|
-
|
|
50299
|
-
|
|
50300
|
-
|
|
50301
|
-
|
|
50302
|
-
clippings
|
|
50303
|
-
|
|
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
|
-
|
|
50309
|
-
|
|
50310
|
-
|
|
50311
|
-
|
|
50312
|
-
uvs
|
|
50313
|
-
|
|
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
|
-
|
|
50319
|
-
|
|
50320
|
-
|
|
50321
|
-
|
|
50322
|
-
indices
|
|
50323
|
-
|
|
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;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.459.0-beta.
|
|
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
|
-
|
|
50265
|
-
|
|
50266
|
-
|
|
50267
|
-
|
|
50268
|
-
vertices
|
|
50269
|
-
|
|
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
|
-
|
|
50276
|
-
|
|
50277
|
-
|
|
50278
|
-
|
|
50279
|
-
distances
|
|
50280
|
-
|
|
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
|
-
|
|
50286
|
-
|
|
50287
|
-
|
|
50288
|
-
|
|
50289
|
-
lengths
|
|
50290
|
-
|
|
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
|
-
|
|
50296
|
-
|
|
50297
|
-
|
|
50298
|
-
|
|
50299
|
-
clippings
|
|
50300
|
-
|
|
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
|
-
|
|
50306
|
-
|
|
50307
|
-
|
|
50308
|
-
|
|
50309
|
-
uvs
|
|
50310
|
-
|
|
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
|
-
|
|
50316
|
-
|
|
50317
|
-
|
|
50318
|
-
|
|
50319
|
-
indices
|
|
50320
|
-
|
|
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;
|