@industry-theme/repository-composition-panels 0.6.26 → 0.6.28
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-BJY-eIgx.js} +2 -2
- package/dist/{BufferResource-BpwdsDX0.js.map → BufferResource-BJY-eIgx.js.map} +1 -1
- package/dist/{CanvasRenderer-CPXgnUH1.js → CanvasRenderer-CGAV4ORs.js} +3 -3
- package/dist/{CanvasRenderer-CPXgnUH1.js.map → CanvasRenderer-CGAV4ORs.js.map} +1 -1
- package/dist/{Filter-mj7HIghB.js → Filter-CdK3OzeQ.js} +2 -2
- package/dist/{Filter-mj7HIghB.js.map → Filter-CdK3OzeQ.js.map} +1 -1
- package/dist/{RenderTargetSystem-hvP6wkm5.js → RenderTargetSystem-ll-Ig4tx.js} +3 -3
- package/dist/{RenderTargetSystem-hvP6wkm5.js.map → RenderTargetSystem-ll-Ig4tx.js.map} +1 -1
- package/dist/{WebGLRenderer-CSpWLo6L.js → WebGLRenderer-CuaFmyj0.js} +4 -4
- package/dist/{WebGLRenderer-CSpWLo6L.js.map → WebGLRenderer-CuaFmyj0.js.map} +1 -1
- package/dist/{WebGPURenderer-Dlw7vvZU.js → WebGPURenderer-kV50nNAY.js} +4 -4
- package/dist/{WebGPURenderer-Dlw7vvZU.js.map → WebGPURenderer-kV50nNAY.js.map} +1 -1
- package/dist/{browserAll-C1iy5xbx.js → browserAll-Cr8EGZ6x.js} +3 -3
- package/dist/{browserAll-C1iy5xbx.js.map → browserAll-Cr8EGZ6x.js.map} +1 -1
- package/dist/{index-BwWx2Yhi.js → index-g-V2DE-H.js} +140 -57
- package/dist/{index-BwWx2Yhi.js.map → index-g-V2DE-H.js.map} +1 -1
- package/dist/{init-DGC3XtNO.js → init-DNm4hBfO.js} +3 -3
- package/dist/{init-DGC3XtNO.js.map → init-DNm4hBfO.js.map} +1 -1
- package/dist/panels/CollectionMapPanel.d.ts +6 -0
- package/dist/panels/CollectionMapPanel.d.ts.map +1 -1
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts +6 -0
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts +6 -0
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts +10 -0
- 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-DmkQ4StC.js +3 -0
- package/dist/webworkerAll-DmkQ4StC.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-Cr8EGZ6x.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-DmkQ4StC.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-kV50nNAY.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-CuaFmyj0.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-CGAV4ORs.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
|
}
|
|
@@ -132694,6 +132693,9 @@ class IsometricRenderer {
|
|
|
132694
132693
|
constructor(config) {
|
|
132695
132694
|
this.viewport = config.viewport;
|
|
132696
132695
|
this.atlas = config.atlas;
|
|
132696
|
+
this.onPackageHover = config.onPackageHover;
|
|
132697
|
+
this.onPackageHoverEnd = config.onPackageHoverEnd;
|
|
132698
|
+
this.onPackageClick = config.onPackageClick;
|
|
132697
132699
|
this.tileWidth = config.tileWidth ?? ISO_TILE_WIDTH;
|
|
132698
132700
|
this.tileHeight = config.tileHeight ?? ISO_TILE_HEIGHT;
|
|
132699
132701
|
this.gridColor = config.gridColor ?? 3355443;
|
|
@@ -132752,6 +132754,9 @@ class IsometricRenderer {
|
|
|
132752
132754
|
nodes.addChild(instance.weathering);
|
|
132753
132755
|
}
|
|
132754
132756
|
nodes.addChild(instance.label);
|
|
132757
|
+
if (instance.hoverLabel) {
|
|
132758
|
+
nodes.addChild(instance.hoverLabel);
|
|
132759
|
+
}
|
|
132755
132760
|
}
|
|
132756
132761
|
return {
|
|
132757
132762
|
background,
|
|
@@ -132956,6 +132961,19 @@ class IsometricRenderer {
|
|
|
132956
132961
|
positions.push({ x: offsetX, y: offsetY });
|
|
132957
132962
|
}
|
|
132958
132963
|
}
|
|
132964
|
+
const hoverLabel = new Text({
|
|
132965
|
+
text: "",
|
|
132966
|
+
style: {
|
|
132967
|
+
fontSize: 10,
|
|
132968
|
+
fill: 8965375,
|
|
132969
|
+
// Light blue to match hover tint
|
|
132970
|
+
fontFamily: "Arial",
|
|
132971
|
+
fontWeight: "500"
|
|
132972
|
+
},
|
|
132973
|
+
resolution: 2
|
|
132974
|
+
});
|
|
132975
|
+
hoverLabel.anchor.set(0.5, 0);
|
|
132976
|
+
hoverLabel.visible = false;
|
|
132959
132977
|
for (let i2 = 0; i2 < node2.subdivisions.length; i2++) {
|
|
132960
132978
|
const sub = node2.subdivisions[i2];
|
|
132961
132979
|
const texture = this.atlas[sub.sprite];
|
|
@@ -132979,22 +132997,47 @@ class IsometricRenderer {
|
|
|
132979
132997
|
const grayValue = Math.floor((1 - fadeAmount + fadeAmount * 0.6) * 255);
|
|
132980
132998
|
sprite.tint = grayValue << 16 | grayValue << 8 | grayValue;
|
|
132981
132999
|
}
|
|
132982
|
-
|
|
132983
|
-
|
|
132984
|
-
|
|
132985
|
-
|
|
132986
|
-
|
|
132987
|
-
|
|
132988
|
-
|
|
132989
|
-
|
|
132990
|
-
|
|
132991
|
-
|
|
133000
|
+
sprite.eventMode = "static";
|
|
133001
|
+
sprite.cursor = "pointer";
|
|
133002
|
+
const originalTint = sprite.tint;
|
|
133003
|
+
const packageName = sub.name;
|
|
133004
|
+
const nodeId = node2.id;
|
|
133005
|
+
sprite.on("pointerover", () => {
|
|
133006
|
+
var _a;
|
|
133007
|
+
sprite.tint = 8965375;
|
|
133008
|
+
hoverLabel.text = packageName;
|
|
133009
|
+
hoverLabel.visible = true;
|
|
133010
|
+
(_a = this.onPackageHover) == null ? void 0 : _a.call(this, nodeId, packageName);
|
|
133011
|
+
});
|
|
133012
|
+
sprite.on("pointerout", () => {
|
|
133013
|
+
var _a;
|
|
133014
|
+
sprite.tint = originalTint;
|
|
133015
|
+
hoverLabel.visible = false;
|
|
133016
|
+
(_a = this.onPackageHoverEnd) == null ? void 0 : _a.call(this, nodeId, packageName);
|
|
132992
133017
|
});
|
|
132993
|
-
|
|
132994
|
-
|
|
132995
|
-
|
|
132996
|
-
|
|
133018
|
+
sprite.on("pointerdown", () => {
|
|
133019
|
+
var _a;
|
|
133020
|
+
(_a = this.onPackageClick) == null ? void 0 : _a.call(this, nodeId, packageName);
|
|
133021
|
+
});
|
|
133022
|
+
container.addChild(sprite);
|
|
133023
|
+
if (subCount <= 5) {
|
|
133024
|
+
const subLabel = new Text({
|
|
133025
|
+
text: sub.name,
|
|
133026
|
+
style: {
|
|
133027
|
+
fontSize: 10,
|
|
133028
|
+
fill: 16777215,
|
|
133029
|
+
fontFamily: "Arial",
|
|
133030
|
+
fontWeight: "400"
|
|
133031
|
+
},
|
|
133032
|
+
resolution: 2
|
|
133033
|
+
});
|
|
133034
|
+
subLabel.x = offset.x;
|
|
133035
|
+
subLabel.y = offset.y + sprite.height * 0.15 + 4;
|
|
133036
|
+
subLabel.anchor.set(0.5, 0);
|
|
133037
|
+
container.addChild(subLabel);
|
|
133038
|
+
}
|
|
132997
133039
|
}
|
|
133040
|
+
const decorationBaseY = footprintHeight * 0.5;
|
|
132998
133041
|
if (node2.stars && node2.stars > 0) {
|
|
132999
133042
|
const tier = getStarTier(node2.stars);
|
|
133000
133043
|
if (tier) {
|
|
@@ -133010,25 +133053,24 @@ class IsometricRenderer {
|
|
|
133010
133053
|
decoration = generateStatueSprite(tier.color);
|
|
133011
133054
|
break;
|
|
133012
133055
|
}
|
|
133013
|
-
const decorationX = 0;
|
|
133014
|
-
const decorationY = -footprintHeight * 0.35;
|
|
133056
|
+
const decorationX = node2.collaborators && node2.collaborators > 0 ? 35 : 0;
|
|
133015
133057
|
decoration.x = decorationX;
|
|
133016
|
-
decoration.y =
|
|
133017
|
-
decoration.scale.set(
|
|
133058
|
+
decoration.y = decorationBaseY;
|
|
133059
|
+
decoration.scale.set(1.8);
|
|
133018
133060
|
container.addChild(decoration);
|
|
133019
133061
|
const countText = new Text({
|
|
133020
133062
|
text: formatStarCount(node2.stars),
|
|
133021
133063
|
style: {
|
|
133022
|
-
fontSize:
|
|
133064
|
+
fontSize: 10,
|
|
133023
133065
|
fill: 16777215,
|
|
133024
133066
|
fontFamily: "Arial",
|
|
133025
133067
|
fontWeight: "bold",
|
|
133026
|
-
stroke: { color: 0, width:
|
|
133068
|
+
stroke: { color: 0, width: 2 }
|
|
133027
133069
|
},
|
|
133028
133070
|
resolution: 2
|
|
133029
133071
|
});
|
|
133030
133072
|
countText.x = decorationX;
|
|
133031
|
-
countText.y =
|
|
133073
|
+
countText.y = decorationBaseY + 18;
|
|
133032
133074
|
countText.anchor.set(0.5, 0);
|
|
133033
133075
|
container.addChild(countText);
|
|
133034
133076
|
}
|
|
@@ -133051,25 +133093,24 @@ class IsometricRenderer {
|
|
|
133051
133093
|
decoration = generateBandstandSprite(tier.color);
|
|
133052
133094
|
break;
|
|
133053
133095
|
}
|
|
133054
|
-
const decorationX = -
|
|
133055
|
-
const decorationY = -footprintHeight * 0.35;
|
|
133096
|
+
const decorationX = node2.stars && node2.stars > 0 ? -35 : 0;
|
|
133056
133097
|
decoration.x = decorationX;
|
|
133057
|
-
decoration.y =
|
|
133058
|
-
decoration.scale.set(
|
|
133098
|
+
decoration.y = decorationBaseY;
|
|
133099
|
+
decoration.scale.set(1.8);
|
|
133059
133100
|
container.addChild(decoration);
|
|
133060
133101
|
const countText = new Text({
|
|
133061
133102
|
text: formatCollaboratorCount(node2.collaborators),
|
|
133062
133103
|
style: {
|
|
133063
|
-
fontSize:
|
|
133104
|
+
fontSize: 10,
|
|
133064
133105
|
fill: 16777215,
|
|
133065
133106
|
fontFamily: "Arial",
|
|
133066
133107
|
fontWeight: "bold",
|
|
133067
|
-
stroke: { color: 0, width:
|
|
133108
|
+
stroke: { color: 0, width: 2 }
|
|
133068
133109
|
},
|
|
133069
133110
|
resolution: 2
|
|
133070
133111
|
});
|
|
133071
133112
|
countText.x = decorationX;
|
|
133072
|
-
countText.y =
|
|
133113
|
+
countText.y = decorationBaseY + 18;
|
|
133073
133114
|
countText.anchor.set(0.5, 0);
|
|
133074
133115
|
container.addChild(countText);
|
|
133075
133116
|
}
|
|
@@ -133097,6 +133138,9 @@ class IsometricRenderer {
|
|
|
133097
133138
|
label.y = screenY + footprintHeight * 0.6 + 12;
|
|
133098
133139
|
label.anchor.set(0.5, 0);
|
|
133099
133140
|
label.zIndex = highlight.zIndex + 0.2;
|
|
133141
|
+
hoverLabel.x = screenX;
|
|
133142
|
+
hoverLabel.y = label.y + 14;
|
|
133143
|
+
hoverLabel.zIndex = label.zIndex + 0.1;
|
|
133100
133144
|
container.zIndex = highlight.zIndex;
|
|
133101
133145
|
let weathering;
|
|
133102
133146
|
if (node2.aging && node2.aging.weatheringLevel > 0.3) {
|
|
@@ -133114,6 +133158,7 @@ class IsometricRenderer {
|
|
|
133114
133158
|
// Container acts as the sprite
|
|
133115
133159
|
highlight,
|
|
133116
133160
|
label,
|
|
133161
|
+
hoverLabel,
|
|
133117
133162
|
weathering,
|
|
133118
133163
|
gridPosition: { gridX: node2.gridX, gridY: node2.gridY },
|
|
133119
133164
|
size: sizeMultiplier,
|
|
@@ -133123,6 +133168,8 @@ class IsometricRenderer {
|
|
|
133123
133168
|
container.y = pos.screenY;
|
|
133124
133169
|
label.x = pos.screenX;
|
|
133125
133170
|
label.y = pos.screenY + footprintHeight * 0.6 + 12;
|
|
133171
|
+
hoverLabel.x = pos.screenX;
|
|
133172
|
+
hoverLabel.y = label.y + 14;
|
|
133126
133173
|
highlight.clear();
|
|
133127
133174
|
const hoverSize = 4 * sizeMultiplier;
|
|
133128
133175
|
const tileWidth = hoverSize * this.tileWidth;
|
|
@@ -133147,6 +133194,7 @@ class IsometricRenderer {
|
|
|
133147
133194
|
container.destroy({ children: true });
|
|
133148
133195
|
highlight.destroy();
|
|
133149
133196
|
label.destroy();
|
|
133197
|
+
hoverLabel.destroy();
|
|
133150
133198
|
weathering == null ? void 0 : weathering.destroy();
|
|
133151
133199
|
}
|
|
133152
133200
|
};
|
|
@@ -133341,7 +133389,10 @@ class IsometricInteractionManager {
|
|
|
133341
133389
|
if (!this.dragState || !this.dragState.isDragging) return;
|
|
133342
133390
|
event.stopPropagation();
|
|
133343
133391
|
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(
|
|
133392
|
+
const worldStartPos = this.viewport ? this.viewport.toWorld(
|
|
133393
|
+
this.dragState.dragStartPos.x,
|
|
133394
|
+
this.dragState.dragStartPos.y
|
|
133395
|
+
) : this.worldContainer.toLocal(this.dragState.dragStartPos);
|
|
133345
133396
|
const deltaX = worldPos.x - worldStartPos.x;
|
|
133346
133397
|
const deltaY = worldPos.y - worldStartPos.y;
|
|
133347
133398
|
const tileWidth = this.config.tileWidth ?? 64;
|
|
@@ -133350,10 +133401,17 @@ class IsometricInteractionManager {
|
|
|
133350
133401
|
const deltaGridY = (deltaY / (tileHeight / 2) - deltaX / (tileWidth / 2)) / 2;
|
|
133351
133402
|
let newGridX = this.dragState.spriteStartPos.gridX + deltaGridX;
|
|
133352
133403
|
let newGridY = this.dragState.spriteStartPos.gridY + deltaGridY;
|
|
133353
|
-
const clamped = this.clampToMapBounds(
|
|
133404
|
+
const clamped = this.clampToMapBounds(
|
|
133405
|
+
newGridX,
|
|
133406
|
+
newGridY,
|
|
133407
|
+
this.dragState.instance.size
|
|
133408
|
+
);
|
|
133354
133409
|
newGridX = clamped.gridX;
|
|
133355
133410
|
newGridY = clamped.gridY;
|
|
133356
|
-
if (this.wouldCollide(this.dragState.nodeId, {
|
|
133411
|
+
if (this.wouldCollide(this.dragState.nodeId, {
|
|
133412
|
+
gridX: newGridX,
|
|
133413
|
+
gridY: newGridY
|
|
133414
|
+
})) {
|
|
133357
133415
|
return;
|
|
133358
133416
|
}
|
|
133359
133417
|
const movedDistance = Math.sqrt(
|
|
@@ -133363,7 +133421,10 @@ class IsometricInteractionManager {
|
|
|
133363
133421
|
this.dragState.hasMoved = true;
|
|
133364
133422
|
}
|
|
133365
133423
|
this.dragState.instance.update(newGridX, newGridY);
|
|
133366
|
-
this.updateNearbyHighlights(this.dragState.nodeId, {
|
|
133424
|
+
this.updateNearbyHighlights(this.dragState.nodeId, {
|
|
133425
|
+
gridX: newGridX,
|
|
133426
|
+
gridY: newGridY
|
|
133427
|
+
});
|
|
133367
133428
|
(_b = (_a = this.events).onDragMove) == null ? void 0 : _b.call(_a, this.dragState.nodeId, newGridX, newGridY);
|
|
133368
133429
|
};
|
|
133369
133430
|
this.onPointerUp = (event) => {
|
|
@@ -133444,7 +133505,10 @@ class IsometricInteractionManager {
|
|
|
133444
133505
|
isDragging: true,
|
|
133445
133506
|
hasMoved: false,
|
|
133446
133507
|
dragStartPos: { x: event.global.x, y: event.global.y },
|
|
133447
|
-
spriteStartPos: {
|
|
133508
|
+
spriteStartPos: {
|
|
133509
|
+
gridX: instance.gridPosition.gridX,
|
|
133510
|
+
gridY: instance.gridPosition.gridY
|
|
133511
|
+
},
|
|
133448
133512
|
nearbySprites: /* @__PURE__ */ new Set()
|
|
133449
133513
|
};
|
|
133450
133514
|
instance.sprite.cursor = "grabbing";
|
|
@@ -133516,7 +133580,11 @@ class IsometricInteractionManager {
|
|
|
133516
133580
|
const { nodeId, instance, nearbySprites, hasMoved } = this.dragState;
|
|
133517
133581
|
let snappedGridX = Math.round(instance.gridPosition.gridX);
|
|
133518
133582
|
let snappedGridY = Math.round(instance.gridPosition.gridY);
|
|
133519
|
-
const clamped = this.clampToMapBounds(
|
|
133583
|
+
const clamped = this.clampToMapBounds(
|
|
133584
|
+
snappedGridX,
|
|
133585
|
+
snappedGridY,
|
|
133586
|
+
instance.size
|
|
133587
|
+
);
|
|
133520
133588
|
snappedGridX = clamped.gridX;
|
|
133521
133589
|
snappedGridY = clamped.gridY;
|
|
133522
133590
|
if (this.wouldCollide(nodeId, { gridX: snappedGridX, gridY: snappedGridY })) {
|
|
@@ -133619,7 +133687,10 @@ class IsometricInteractionManager {
|
|
|
133619
133687
|
updateHighlightColor(instance, isSelected) {
|
|
133620
133688
|
const color2 = isSelected ? this.selectedColor : this.hoverColor;
|
|
133621
133689
|
instance.highlight.clear();
|
|
133622
|
-
const pos = gridToScreen(
|
|
133690
|
+
const pos = gridToScreen(
|
|
133691
|
+
instance.gridPosition.gridX,
|
|
133692
|
+
instance.gridPosition.gridY
|
|
133693
|
+
);
|
|
133623
133694
|
const hoverSize = 4 * instance.size;
|
|
133624
133695
|
const tileWidth = hoverSize * (this.config.tileWidth ?? 64);
|
|
133625
133696
|
const tileHeight = hoverSize * (this.config.tileHeight ?? 32);
|
|
@@ -134513,6 +134584,9 @@ const OverworldMapPanelContent = ({
|
|
|
134513
134584
|
onProjectMoved,
|
|
134514
134585
|
onNodeClicked,
|
|
134515
134586
|
selectedNodeId,
|
|
134587
|
+
onPackageHover,
|
|
134588
|
+
onPackageHoverEnd,
|
|
134589
|
+
onPackageClick,
|
|
134516
134590
|
isEditingRegions = false,
|
|
134517
134591
|
customRegions = [],
|
|
134518
134592
|
onAddRegion,
|
|
@@ -134667,7 +134741,10 @@ const OverworldMapPanelContent = ({
|
|
|
134667
134741
|
tileWidth: ISO_TILE_WIDTH$1,
|
|
134668
134742
|
tileHeight: ISO_TILE_HEIGHT$1,
|
|
134669
134743
|
gridColor: 3355443,
|
|
134670
|
-
regionColor: 16737792
|
|
134744
|
+
regionColor: 16737792,
|
|
134745
|
+
onPackageHover,
|
|
134746
|
+
onPackageHoverEnd,
|
|
134747
|
+
onPackageClick
|
|
134671
134748
|
});
|
|
134672
134749
|
rendererRef.current = renderer;
|
|
134673
134750
|
const scene = renderer.renderScene(mapData, true);
|
|
@@ -135461,7 +135538,10 @@ const CollectionMapPanelContent = ({
|
|
|
135461
135538
|
regionCallbacks,
|
|
135462
135539
|
addRepositoryToCollection,
|
|
135463
135540
|
onRepositoryClicked,
|
|
135464
|
-
selectedRepositoryId
|
|
135541
|
+
selectedRepositoryId,
|
|
135542
|
+
onPackageHover,
|
|
135543
|
+
onPackageHoverEnd,
|
|
135544
|
+
onPackageClick
|
|
135465
135545
|
}) => {
|
|
135466
135546
|
var _a;
|
|
135467
135547
|
const customRegions = React2__default.useMemo(
|
|
@@ -135956,6 +136036,9 @@ This indicates a sprite was rendered without valid backing data.`
|
|
|
135956
136036
|
onProjectMoved: handleProjectMoved,
|
|
135957
136037
|
onNodeClicked: onRepositoryClicked,
|
|
135958
136038
|
selectedNodeId: selectedRepositoryId,
|
|
136039
|
+
onPackageHover,
|
|
136040
|
+
onPackageHoverEnd,
|
|
136041
|
+
onPackageClick,
|
|
135959
136042
|
onViewportReady: handleViewportReady,
|
|
135960
136043
|
onAddRegion: async (position2) => {
|
|
135961
136044
|
const order2 = position2.row * 10 + position2.col;
|
|
@@ -137219,4 +137302,4 @@ export {
|
|
|
137219
137302
|
UPDATE_PRIORITY as y,
|
|
137220
137303
|
removeItems as z
|
|
137221
137304
|
};
|
|
137222
|
-
//# sourceMappingURL=index-
|
|
137305
|
+
//# sourceMappingURL=index-g-V2DE-H.js.map
|