@industry-theme/repository-composition-panels 0.6.26 → 0.6.27
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/{BufferResource-BpwdsDX0.js → BufferResource-C47OKi0O.js} +2 -2
- package/dist/{BufferResource-BpwdsDX0.js.map → BufferResource-C47OKi0O.js.map} +1 -1
- package/dist/{CanvasRenderer-CPXgnUH1.js → CanvasRenderer-DhUZFLbi.js} +3 -3
- package/dist/{CanvasRenderer-CPXgnUH1.js.map → CanvasRenderer-DhUZFLbi.js.map} +1 -1
- package/dist/{Filter-mj7HIghB.js → Filter-noYxQPld.js} +2 -2
- package/dist/{Filter-mj7HIghB.js.map → Filter-noYxQPld.js.map} +1 -1
- package/dist/{RenderTargetSystem-hvP6wkm5.js → RenderTargetSystem-CMsce37q.js} +3 -3
- package/dist/{RenderTargetSystem-hvP6wkm5.js.map → RenderTargetSystem-CMsce37q.js.map} +1 -1
- package/dist/{WebGLRenderer-CSpWLo6L.js → WebGLRenderer-DSxUjrMa.js} +4 -4
- package/dist/{WebGLRenderer-CSpWLo6L.js.map → WebGLRenderer-DSxUjrMa.js.map} +1 -1
- package/dist/{WebGPURenderer-Dlw7vvZU.js → WebGPURenderer-tD3JsvvF.js} +4 -4
- package/dist/{WebGPURenderer-Dlw7vvZU.js.map → WebGPURenderer-tD3JsvvF.js.map} +1 -1
- package/dist/{browserAll-C1iy5xbx.js → browserAll-DxhH90WQ.js} +3 -3
- package/dist/{browserAll-C1iy5xbx.js.map → browserAll-DxhH90WQ.js.map} +1 -1
- package/dist/{index-BwWx2Yhi.js → index-Bpxci5n3.js} +78 -55
- package/dist/{index-BwWx2Yhi.js.map → index-Bpxci5n3.js.map} +1 -1
- package/dist/{init-DGC3XtNO.js → init-BpPH8764.js} +3 -3
- package/dist/{init-DGC3XtNO.js.map → init-BpPH8764.js.map} +1 -1
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-B32qMs3y.js +3 -0
- package/dist/webworkerAll-B32qMs3y.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-BmgxtxZy.js +0 -3
- package/dist/webworkerAll-BmgxtxZy.js.map +0 -1
|
@@ -105943,7 +105943,7 @@ const browserExt = {
|
|
|
105943
105943
|
},
|
|
105944
105944
|
test: () => true,
|
|
105945
105945
|
load: async () => {
|
|
105946
|
-
await import("./browserAll-
|
|
105946
|
+
await import("./browserAll-DxhH90WQ.js");
|
|
105947
105947
|
}
|
|
105948
105948
|
};
|
|
105949
105949
|
const webworkerExt = {
|
|
@@ -105954,7 +105954,7 @@ const webworkerExt = {
|
|
|
105954
105954
|
},
|
|
105955
105955
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
105956
105956
|
load: async () => {
|
|
105957
|
-
await import("./webworkerAll-
|
|
105957
|
+
await import("./webworkerAll-B32qMs3y.js");
|
|
105958
105958
|
}
|
|
105959
105959
|
};
|
|
105960
105960
|
class ObservablePoint {
|
|
@@ -118197,19 +118197,19 @@ async function autoDetectRenderer(options) {
|
|
|
118197
118197
|
for (let i2 = 0; i2 < preferredOrder.length; i2++) {
|
|
118198
118198
|
const rendererType = preferredOrder[i2];
|
|
118199
118199
|
if (rendererType === "webgpu" && await isWebGPUSupported()) {
|
|
118200
|
-
const { WebGPURenderer } = await import("./WebGPURenderer-
|
|
118200
|
+
const { WebGPURenderer } = await import("./WebGPURenderer-tD3JsvvF.js");
|
|
118201
118201
|
RendererClass = WebGPURenderer;
|
|
118202
118202
|
finalOptions = { ...options, ...options.webgpu };
|
|
118203
118203
|
break;
|
|
118204
118204
|
} else if (rendererType === "webgl" && isWebGLSupported(
|
|
118205
118205
|
options.failIfMajorPerformanceCaveat ?? AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat
|
|
118206
118206
|
)) {
|
|
118207
|
-
const { WebGLRenderer } = await import("./WebGLRenderer-
|
|
118207
|
+
const { WebGLRenderer } = await import("./WebGLRenderer-DSxUjrMa.js");
|
|
118208
118208
|
RendererClass = WebGLRenderer;
|
|
118209
118209
|
finalOptions = { ...options, ...options.webgl };
|
|
118210
118210
|
break;
|
|
118211
118211
|
} else if (rendererType === "canvas") {
|
|
118212
|
-
const { CanvasRenderer } = await import("./CanvasRenderer-
|
|
118212
|
+
const { CanvasRenderer } = await import("./CanvasRenderer-DhUZFLbi.js");
|
|
118213
118213
|
RendererClass = CanvasRenderer;
|
|
118214
118214
|
finalOptions = { ...options, ...options.canvasOptions };
|
|
118215
118215
|
break;
|
|
@@ -132568,6 +132568,7 @@ function generateBuildingSprite(config) {
|
|
|
132568
132568
|
building.lineTo(isoWidth / 2, -height);
|
|
132569
132569
|
building.lineTo(isoWidth / 2, 0);
|
|
132570
132570
|
building.stroke();
|
|
132571
|
+
const decorationBaseY = isoDepthY + 12;
|
|
132571
132572
|
if (stars && stars > 0) {
|
|
132572
132573
|
const tier = getStarTier(stars);
|
|
132573
132574
|
if (tier) {
|
|
@@ -132583,25 +132584,24 @@ function generateBuildingSprite(config) {
|
|
|
132583
132584
|
decoration = generateStatueSprite(tier.color);
|
|
132584
132585
|
break;
|
|
132585
132586
|
}
|
|
132586
|
-
const decorationX =
|
|
132587
|
-
const decorationY = -10;
|
|
132587
|
+
const decorationX = collaborators && collaborators > 0 ? 35 : 0;
|
|
132588
132588
|
decoration.x = decorationX;
|
|
132589
|
-
decoration.y =
|
|
132590
|
-
decoration.scale.set(
|
|
132589
|
+
decoration.y = decorationBaseY;
|
|
132590
|
+
decoration.scale.set(1.8);
|
|
132591
132591
|
building.addChild(decoration);
|
|
132592
132592
|
const countText = new Text({
|
|
132593
132593
|
text: formatStarCount(stars),
|
|
132594
132594
|
style: {
|
|
132595
|
-
fontSize:
|
|
132595
|
+
fontSize: 10,
|
|
132596
132596
|
fill: 16777215,
|
|
132597
132597
|
fontFamily: "Arial",
|
|
132598
132598
|
fontWeight: "bold",
|
|
132599
|
-
stroke: { color: 0, width:
|
|
132599
|
+
stroke: { color: 0, width: 2 }
|
|
132600
132600
|
},
|
|
132601
132601
|
resolution: 2
|
|
132602
132602
|
});
|
|
132603
132603
|
countText.x = decorationX;
|
|
132604
|
-
countText.y =
|
|
132604
|
+
countText.y = decorationBaseY + 18;
|
|
132605
132605
|
countText.anchor.set(0.5, 0);
|
|
132606
132606
|
building.addChild(countText);
|
|
132607
132607
|
}
|
|
@@ -132624,25 +132624,24 @@ function generateBuildingSprite(config) {
|
|
|
132624
132624
|
decoration = generateBandstandSprite(tier.color);
|
|
132625
132625
|
break;
|
|
132626
132626
|
}
|
|
132627
|
-
const decorationX = -
|
|
132628
|
-
const decorationY = -10;
|
|
132627
|
+
const decorationX = stars && stars > 0 ? -35 : 0;
|
|
132629
132628
|
decoration.x = decorationX;
|
|
132630
|
-
decoration.y =
|
|
132631
|
-
decoration.scale.set(
|
|
132629
|
+
decoration.y = decorationBaseY;
|
|
132630
|
+
decoration.scale.set(1.8);
|
|
132632
132631
|
building.addChild(decoration);
|
|
132633
132632
|
const countText = new Text({
|
|
132634
132633
|
text: formatCollaboratorCount(collaborators),
|
|
132635
132634
|
style: {
|
|
132636
|
-
fontSize:
|
|
132635
|
+
fontSize: 10,
|
|
132637
132636
|
fill: 16777215,
|
|
132638
132637
|
fontFamily: "Arial",
|
|
132639
132638
|
fontWeight: "bold",
|
|
132640
|
-
stroke: { color: 0, width:
|
|
132639
|
+
stroke: { color: 0, width: 2 }
|
|
132641
132640
|
},
|
|
132642
132641
|
resolution: 2
|
|
132643
132642
|
});
|
|
132644
132643
|
countText.x = decorationX;
|
|
132645
|
-
countText.y =
|
|
132644
|
+
countText.y = decorationBaseY + 18;
|
|
132646
132645
|
countText.anchor.set(0.5, 0);
|
|
132647
132646
|
building.addChild(countText);
|
|
132648
132647
|
}
|
|
@@ -132980,21 +132979,24 @@ class IsometricRenderer {
|
|
|
132980
132979
|
sprite.tint = grayValue << 16 | grayValue << 8 | grayValue;
|
|
132981
132980
|
}
|
|
132982
132981
|
container.addChild(sprite);
|
|
132983
|
-
|
|
132984
|
-
|
|
132985
|
-
|
|
132986
|
-
|
|
132987
|
-
|
|
132988
|
-
|
|
132989
|
-
|
|
132990
|
-
|
|
132991
|
-
|
|
132992
|
-
|
|
132993
|
-
|
|
132994
|
-
|
|
132995
|
-
|
|
132996
|
-
|
|
132982
|
+
if (subCount <= 5) {
|
|
132983
|
+
const subLabel = new Text({
|
|
132984
|
+
text: sub.name,
|
|
132985
|
+
style: {
|
|
132986
|
+
fontSize: 10,
|
|
132987
|
+
fill: 16777215,
|
|
132988
|
+
fontFamily: "Arial",
|
|
132989
|
+
fontWeight: "400"
|
|
132990
|
+
},
|
|
132991
|
+
resolution: 2
|
|
132992
|
+
});
|
|
132993
|
+
subLabel.x = offset.x;
|
|
132994
|
+
subLabel.y = offset.y + sprite.height * 0.15 + 4;
|
|
132995
|
+
subLabel.anchor.set(0.5, 0);
|
|
132996
|
+
container.addChild(subLabel);
|
|
132997
|
+
}
|
|
132997
132998
|
}
|
|
132999
|
+
const decorationBaseY = footprintHeight * 0.5;
|
|
132998
133000
|
if (node2.stars && node2.stars > 0) {
|
|
132999
133001
|
const tier = getStarTier(node2.stars);
|
|
133000
133002
|
if (tier) {
|
|
@@ -133010,25 +133012,24 @@ class IsometricRenderer {
|
|
|
133010
133012
|
decoration = generateStatueSprite(tier.color);
|
|
133011
133013
|
break;
|
|
133012
133014
|
}
|
|
133013
|
-
const decorationX = 0;
|
|
133014
|
-
const decorationY = -footprintHeight * 0.35;
|
|
133015
|
+
const decorationX = node2.collaborators && node2.collaborators > 0 ? 35 : 0;
|
|
133015
133016
|
decoration.x = decorationX;
|
|
133016
|
-
decoration.y =
|
|
133017
|
-
decoration.scale.set(
|
|
133017
|
+
decoration.y = decorationBaseY;
|
|
133018
|
+
decoration.scale.set(1.8);
|
|
133018
133019
|
container.addChild(decoration);
|
|
133019
133020
|
const countText = new Text({
|
|
133020
133021
|
text: formatStarCount(node2.stars),
|
|
133021
133022
|
style: {
|
|
133022
|
-
fontSize:
|
|
133023
|
+
fontSize: 10,
|
|
133023
133024
|
fill: 16777215,
|
|
133024
133025
|
fontFamily: "Arial",
|
|
133025
133026
|
fontWeight: "bold",
|
|
133026
|
-
stroke: { color: 0, width:
|
|
133027
|
+
stroke: { color: 0, width: 2 }
|
|
133027
133028
|
},
|
|
133028
133029
|
resolution: 2
|
|
133029
133030
|
});
|
|
133030
133031
|
countText.x = decorationX;
|
|
133031
|
-
countText.y =
|
|
133032
|
+
countText.y = decorationBaseY + 18;
|
|
133032
133033
|
countText.anchor.set(0.5, 0);
|
|
133033
133034
|
container.addChild(countText);
|
|
133034
133035
|
}
|
|
@@ -133051,25 +133052,24 @@ class IsometricRenderer {
|
|
|
133051
133052
|
decoration = generateBandstandSprite(tier.color);
|
|
133052
133053
|
break;
|
|
133053
133054
|
}
|
|
133054
|
-
const decorationX = -
|
|
133055
|
-
const decorationY = -footprintHeight * 0.35;
|
|
133055
|
+
const decorationX = node2.stars && node2.stars > 0 ? -35 : 0;
|
|
133056
133056
|
decoration.x = decorationX;
|
|
133057
|
-
decoration.y =
|
|
133058
|
-
decoration.scale.set(
|
|
133057
|
+
decoration.y = decorationBaseY;
|
|
133058
|
+
decoration.scale.set(1.8);
|
|
133059
133059
|
container.addChild(decoration);
|
|
133060
133060
|
const countText = new Text({
|
|
133061
133061
|
text: formatCollaboratorCount(node2.collaborators),
|
|
133062
133062
|
style: {
|
|
133063
|
-
fontSize:
|
|
133063
|
+
fontSize: 10,
|
|
133064
133064
|
fill: 16777215,
|
|
133065
133065
|
fontFamily: "Arial",
|
|
133066
133066
|
fontWeight: "bold",
|
|
133067
|
-
stroke: { color: 0, width:
|
|
133067
|
+
stroke: { color: 0, width: 2 }
|
|
133068
133068
|
},
|
|
133069
133069
|
resolution: 2
|
|
133070
133070
|
});
|
|
133071
133071
|
countText.x = decorationX;
|
|
133072
|
-
countText.y =
|
|
133072
|
+
countText.y = decorationBaseY + 18;
|
|
133073
133073
|
countText.anchor.set(0.5, 0);
|
|
133074
133074
|
container.addChild(countText);
|
|
133075
133075
|
}
|
|
@@ -133341,7 +133341,10 @@ class IsometricInteractionManager {
|
|
|
133341
133341
|
if (!this.dragState || !this.dragState.isDragging) return;
|
|
133342
133342
|
event.stopPropagation();
|
|
133343
133343
|
const worldPos = this.viewport ? this.viewport.toWorld(event.global.x, event.global.y) : this.worldContainer.toLocal(event.global);
|
|
133344
|
-
const worldStartPos = this.viewport ? this.viewport.toWorld(
|
|
133344
|
+
const worldStartPos = this.viewport ? this.viewport.toWorld(
|
|
133345
|
+
this.dragState.dragStartPos.x,
|
|
133346
|
+
this.dragState.dragStartPos.y
|
|
133347
|
+
) : this.worldContainer.toLocal(this.dragState.dragStartPos);
|
|
133345
133348
|
const deltaX = worldPos.x - worldStartPos.x;
|
|
133346
133349
|
const deltaY = worldPos.y - worldStartPos.y;
|
|
133347
133350
|
const tileWidth = this.config.tileWidth ?? 64;
|
|
@@ -133350,10 +133353,17 @@ class IsometricInteractionManager {
|
|
|
133350
133353
|
const deltaGridY = (deltaY / (tileHeight / 2) - deltaX / (tileWidth / 2)) / 2;
|
|
133351
133354
|
let newGridX = this.dragState.spriteStartPos.gridX + deltaGridX;
|
|
133352
133355
|
let newGridY = this.dragState.spriteStartPos.gridY + deltaGridY;
|
|
133353
|
-
const clamped = this.clampToMapBounds(
|
|
133356
|
+
const clamped = this.clampToMapBounds(
|
|
133357
|
+
newGridX,
|
|
133358
|
+
newGridY,
|
|
133359
|
+
this.dragState.instance.size
|
|
133360
|
+
);
|
|
133354
133361
|
newGridX = clamped.gridX;
|
|
133355
133362
|
newGridY = clamped.gridY;
|
|
133356
|
-
if (this.wouldCollide(this.dragState.nodeId, {
|
|
133363
|
+
if (this.wouldCollide(this.dragState.nodeId, {
|
|
133364
|
+
gridX: newGridX,
|
|
133365
|
+
gridY: newGridY
|
|
133366
|
+
})) {
|
|
133357
133367
|
return;
|
|
133358
133368
|
}
|
|
133359
133369
|
const movedDistance = Math.sqrt(
|
|
@@ -133363,7 +133373,10 @@ class IsometricInteractionManager {
|
|
|
133363
133373
|
this.dragState.hasMoved = true;
|
|
133364
133374
|
}
|
|
133365
133375
|
this.dragState.instance.update(newGridX, newGridY);
|
|
133366
|
-
this.updateNearbyHighlights(this.dragState.nodeId, {
|
|
133376
|
+
this.updateNearbyHighlights(this.dragState.nodeId, {
|
|
133377
|
+
gridX: newGridX,
|
|
133378
|
+
gridY: newGridY
|
|
133379
|
+
});
|
|
133367
133380
|
(_b = (_a = this.events).onDragMove) == null ? void 0 : _b.call(_a, this.dragState.nodeId, newGridX, newGridY);
|
|
133368
133381
|
};
|
|
133369
133382
|
this.onPointerUp = (event) => {
|
|
@@ -133444,7 +133457,10 @@ class IsometricInteractionManager {
|
|
|
133444
133457
|
isDragging: true,
|
|
133445
133458
|
hasMoved: false,
|
|
133446
133459
|
dragStartPos: { x: event.global.x, y: event.global.y },
|
|
133447
|
-
spriteStartPos: {
|
|
133460
|
+
spriteStartPos: {
|
|
133461
|
+
gridX: instance.gridPosition.gridX,
|
|
133462
|
+
gridY: instance.gridPosition.gridY
|
|
133463
|
+
},
|
|
133448
133464
|
nearbySprites: /* @__PURE__ */ new Set()
|
|
133449
133465
|
};
|
|
133450
133466
|
instance.sprite.cursor = "grabbing";
|
|
@@ -133516,7 +133532,11 @@ class IsometricInteractionManager {
|
|
|
133516
133532
|
const { nodeId, instance, nearbySprites, hasMoved } = this.dragState;
|
|
133517
133533
|
let snappedGridX = Math.round(instance.gridPosition.gridX);
|
|
133518
133534
|
let snappedGridY = Math.round(instance.gridPosition.gridY);
|
|
133519
|
-
const clamped = this.clampToMapBounds(
|
|
133535
|
+
const clamped = this.clampToMapBounds(
|
|
133536
|
+
snappedGridX,
|
|
133537
|
+
snappedGridY,
|
|
133538
|
+
instance.size
|
|
133539
|
+
);
|
|
133520
133540
|
snappedGridX = clamped.gridX;
|
|
133521
133541
|
snappedGridY = clamped.gridY;
|
|
133522
133542
|
if (this.wouldCollide(nodeId, { gridX: snappedGridX, gridY: snappedGridY })) {
|
|
@@ -133619,7 +133639,10 @@ class IsometricInteractionManager {
|
|
|
133619
133639
|
updateHighlightColor(instance, isSelected) {
|
|
133620
133640
|
const color2 = isSelected ? this.selectedColor : this.hoverColor;
|
|
133621
133641
|
instance.highlight.clear();
|
|
133622
|
-
const pos = gridToScreen(
|
|
133642
|
+
const pos = gridToScreen(
|
|
133643
|
+
instance.gridPosition.gridX,
|
|
133644
|
+
instance.gridPosition.gridY
|
|
133645
|
+
);
|
|
133623
133646
|
const hoverSize = 4 * instance.size;
|
|
133624
133647
|
const tileWidth = hoverSize * (this.config.tileWidth ?? 64);
|
|
133625
133648
|
const tileHeight = hoverSize * (this.config.tileHeight ?? 32);
|
|
@@ -137219,4 +137242,4 @@ export {
|
|
|
137219
137242
|
UPDATE_PRIORITY as y,
|
|
137220
137243
|
removeItems as z
|
|
137221
137244
|
};
|
|
137222
|
-
//# sourceMappingURL=index-
|
|
137245
|
+
//# sourceMappingURL=index-Bpxci5n3.js.map
|