@lv-x-software-house/x_view 1.2.8-dev.15 → 1.2.8-dev.16
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/index.js +26 -11
- package/dist/index.mjs +26 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1378,7 +1378,12 @@ var userActionHandlers = {
|
|
|
1378
1378
|
)
|
|
1379
1379
|
);
|
|
1380
1380
|
targetFinalPositions.push(endPosition);
|
|
1381
|
-
const targetMesh = createNodeMesh(
|
|
1381
|
+
const targetMesh = createNodeMesh(
|
|
1382
|
+
nodeData,
|
|
1383
|
+
startPosition,
|
|
1384
|
+
glowTexture,
|
|
1385
|
+
!!nodeData.is_quest
|
|
1386
|
+
);
|
|
1382
1387
|
targetMesh.scale.set(0.01, 0.01, 0.01);
|
|
1383
1388
|
graphGroup.add(targetMesh);
|
|
1384
1389
|
if (targetMesh.userData.labelObject) {
|
|
@@ -16174,11 +16179,19 @@ function XViewScene({
|
|
|
16174
16179
|
}
|
|
16175
16180
|
}
|
|
16176
16181
|
Object.values(nodeObjects).forEach((mesh) => {
|
|
16177
|
-
const
|
|
16178
|
-
if (
|
|
16179
|
-
mesh.remove(
|
|
16180
|
-
if (
|
|
16181
|
-
|
|
16182
|
+
const oldTimelineLabel = mesh.getObjectByName("timelineLabel");
|
|
16183
|
+
if (oldTimelineLabel) {
|
|
16184
|
+
mesh.remove(oldTimelineLabel);
|
|
16185
|
+
if (oldTimelineLabel.material.map)
|
|
16186
|
+
oldTimelineLabel.material.map.dispose();
|
|
16187
|
+
oldTimelineLabel.material.dispose();
|
|
16188
|
+
}
|
|
16189
|
+
const oldQuestDateLabel = mesh.getObjectByName("questDateLabel");
|
|
16190
|
+
if (oldQuestDateLabel) {
|
|
16191
|
+
mesh.remove(oldQuestDateLabel);
|
|
16192
|
+
if (oldQuestDateLabel.material.map)
|
|
16193
|
+
oldQuestDateLabel.material.map.dispose();
|
|
16194
|
+
oldQuestDateLabel.material.dispose();
|
|
16182
16195
|
}
|
|
16183
16196
|
delete mesh.userData.timelineIntervalBar;
|
|
16184
16197
|
delete mesh.userData.timelineEndLabel;
|
|
@@ -16419,11 +16432,13 @@ function XViewScene({
|
|
|
16419
16432
|
const versionTween = new import_tween2.Tween(mesh.position).to({ x: baseX, y, z: 0 }, 1500).easing(import_tween2.Easing.Cubic.InOut);
|
|
16420
16433
|
tweenGroup.add(versionTween);
|
|
16421
16434
|
versionTween.start();
|
|
16422
|
-
|
|
16423
|
-
|
|
16424
|
-
|
|
16425
|
-
|
|
16426
|
-
|
|
16435
|
+
if (!mesh.getObjectByName("questDateLabel")) {
|
|
16436
|
+
const startLabelText = type === "interval" ? startDate.getFullYear().toString() : label;
|
|
16437
|
+
const startLabel = createTextSprite(startLabelText, 48);
|
|
16438
|
+
startLabel.name = "timelineLabel";
|
|
16439
|
+
startLabel.position.set(0, -2.5, 0);
|
|
16440
|
+
mesh.add(startLabel);
|
|
16441
|
+
}
|
|
16427
16442
|
if (type === "interval") {
|
|
16428
16443
|
const relativeEndY = timeToYMap.get(endDate.getTime()) - timeToYMap.get(startDate.getTime());
|
|
16429
16444
|
if (relativeEndY > 0) {
|
package/dist/index.mjs
CHANGED
|
@@ -1339,7 +1339,12 @@ var userActionHandlers = {
|
|
|
1339
1339
|
)
|
|
1340
1340
|
);
|
|
1341
1341
|
targetFinalPositions.push(endPosition);
|
|
1342
|
-
const targetMesh = createNodeMesh(
|
|
1342
|
+
const targetMesh = createNodeMesh(
|
|
1343
|
+
nodeData,
|
|
1344
|
+
startPosition,
|
|
1345
|
+
glowTexture,
|
|
1346
|
+
!!nodeData.is_quest
|
|
1347
|
+
);
|
|
1343
1348
|
targetMesh.scale.set(0.01, 0.01, 0.01);
|
|
1344
1349
|
graphGroup.add(targetMesh);
|
|
1345
1350
|
if (targetMesh.userData.labelObject) {
|
|
@@ -16237,11 +16242,19 @@ function XViewScene({
|
|
|
16237
16242
|
}
|
|
16238
16243
|
}
|
|
16239
16244
|
Object.values(nodeObjects).forEach((mesh) => {
|
|
16240
|
-
const
|
|
16241
|
-
if (
|
|
16242
|
-
mesh.remove(
|
|
16243
|
-
if (
|
|
16244
|
-
|
|
16245
|
+
const oldTimelineLabel = mesh.getObjectByName("timelineLabel");
|
|
16246
|
+
if (oldTimelineLabel) {
|
|
16247
|
+
mesh.remove(oldTimelineLabel);
|
|
16248
|
+
if (oldTimelineLabel.material.map)
|
|
16249
|
+
oldTimelineLabel.material.map.dispose();
|
|
16250
|
+
oldTimelineLabel.material.dispose();
|
|
16251
|
+
}
|
|
16252
|
+
const oldQuestDateLabel = mesh.getObjectByName("questDateLabel");
|
|
16253
|
+
if (oldQuestDateLabel) {
|
|
16254
|
+
mesh.remove(oldQuestDateLabel);
|
|
16255
|
+
if (oldQuestDateLabel.material.map)
|
|
16256
|
+
oldQuestDateLabel.material.map.dispose();
|
|
16257
|
+
oldQuestDateLabel.material.dispose();
|
|
16245
16258
|
}
|
|
16246
16259
|
delete mesh.userData.timelineIntervalBar;
|
|
16247
16260
|
delete mesh.userData.timelineEndLabel;
|
|
@@ -16482,11 +16495,13 @@ function XViewScene({
|
|
|
16482
16495
|
const versionTween = new Tween2(mesh.position).to({ x: baseX, y, z: 0 }, 1500).easing(Easing2.Cubic.InOut);
|
|
16483
16496
|
tweenGroup.add(versionTween);
|
|
16484
16497
|
versionTween.start();
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16498
|
+
if (!mesh.getObjectByName("questDateLabel")) {
|
|
16499
|
+
const startLabelText = type === "interval" ? startDate.getFullYear().toString() : label;
|
|
16500
|
+
const startLabel = createTextSprite(startLabelText, 48);
|
|
16501
|
+
startLabel.name = "timelineLabel";
|
|
16502
|
+
startLabel.position.set(0, -2.5, 0);
|
|
16503
|
+
mesh.add(startLabel);
|
|
16504
|
+
}
|
|
16490
16505
|
if (type === "interval") {
|
|
16491
16506
|
const relativeEndY = timeToYMap.get(endDate.getTime()) - timeToYMap.get(startDate.getTime());
|
|
16492
16507
|
if (relativeEndY > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.2.8-dev.
|
|
3
|
+
"version": "1.2.8-dev.16",
|
|
4
4
|
"description": "Pacote privado contendo os componentes e lógica de renderização 3D do X View.",
|
|
5
5
|
"author": "iv.x - Engenharia de Software - ivxsoftwarehouse@gmail.com",
|
|
6
6
|
"license": "UNLICENSED",
|