@industry-theme/repository-composition-panels 0.7.24 → 0.7.25
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/{browserAll-B8SGpKNH.js → browserAll-BM_t45Ek.js} +3 -3
- package/dist/{browserAll-B8SGpKNH.js.map → browserAll-BM_t45Ek.js.map} +1 -1
- package/dist/{index-Du-HFyPY.js → index-BxddM8lM.js} +72 -38
- package/dist/{index-Du-HFyPY.js.map → index-BxddM8lM.js.map} +1 -1
- package/dist/{init-BU3NCsD0.js → init-B7PWGH3z.js} +2 -2
- package/dist/{init-BU3NCsD0.js.map → init-B7PWGH3z.js.map} +1 -1
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/RepoSprite.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts +5 -0
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/spriteRenderer.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-DpyaP0Cp.js +3 -0
- package/dist/webworkerAll-DpyaP0Cp.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-C72I_Byi.js +0 -3
- package/dist/webworkerAll-C72I_Byi.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from "./index-
|
|
2
|
-
import "./init-
|
|
1
|
+
import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from "./index-BxddM8lM.js";
|
|
2
|
+
import "./init-B7PWGH3z.js";
|
|
3
3
|
extensions.add(AccessibilitySystem);
|
|
4
4
|
extensions.mixin(Container, accessibilityTarget);
|
|
5
5
|
extensions.add(EventSystem);
|
|
6
6
|
extensions.mixin(Container, FederatedContainer);
|
|
7
|
-
//# sourceMappingURL=browserAll-
|
|
7
|
+
//# sourceMappingURL=browserAll-BM_t45Ek.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAll-
|
|
1
|
+
{"version":3,"file":"browserAll-BM_t45Ek.js","sources":["../node_modules/pixi.js/lib/accessibility/init.mjs","../node_modules/pixi.js/lib/events/init.mjs"],"sourcesContent":["import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { AccessibilitySystem } from './AccessibilitySystem.mjs';\nimport { accessibilityTarget } from './accessibilityTarget.mjs';\n\n\"use strict\";\nextensions.add(AccessibilitySystem);\nextensions.mixin(Container, accessibilityTarget);\n//# sourceMappingURL=init.mjs.map\n","import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { EventSystem } from './EventSystem.mjs';\nimport { FederatedContainer } from './FederatedEventTarget.mjs';\n\n\"use strict\";\nextensions.add(EventSystem);\nextensions.mixin(Container, FederatedContainer);\n//# sourceMappingURL=init.mjs.map\n"],"names":[],"mappings":";;AAMA,WAAW,IAAI,mBAAmB;AAClC,WAAW,MAAM,WAAW,mBAAmB;ACD/C,WAAW,IAAI,WAAW;AAC1B,WAAW,MAAM,WAAW,kBAAkB;","x_google_ignoreList":[0,1]}
|
|
@@ -106207,7 +106207,7 @@ const browserExt = {
|
|
|
106207
106207
|
},
|
|
106208
106208
|
test: () => true,
|
|
106209
106209
|
load: async () => {
|
|
106210
|
-
await import("./browserAll-
|
|
106210
|
+
await import("./browserAll-BM_t45Ek.js");
|
|
106211
106211
|
}
|
|
106212
106212
|
};
|
|
106213
106213
|
const webworkerExt = {
|
|
@@ -106218,7 +106218,7 @@ const webworkerExt = {
|
|
|
106218
106218
|
},
|
|
106219
106219
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
106220
106220
|
load: async () => {
|
|
106221
|
-
await import("./webworkerAll-
|
|
106221
|
+
await import("./webworkerAll-DpyaP0Cp.js");
|
|
106222
106222
|
}
|
|
106223
106223
|
};
|
|
106224
106224
|
class ObservablePoint {
|
|
@@ -148732,6 +148732,43 @@ function generateCobblestoneGround(sizeMultiplier) {
|
|
|
148732
148732
|
}
|
|
148733
148733
|
return ground;
|
|
148734
148734
|
}
|
|
148735
|
+
function generateNeutralGround(sizeMultiplier) {
|
|
148736
|
+
const footprint = calculateFootprint(sizeMultiplier);
|
|
148737
|
+
const ground = new Graphics();
|
|
148738
|
+
const halfW = footprint.width;
|
|
148739
|
+
const halfH = footprint.height;
|
|
148740
|
+
const stoneBase = 9143160;
|
|
148741
|
+
const stoneDark = 7037784;
|
|
148742
|
+
const stoneLight = 10195848;
|
|
148743
|
+
ground.moveTo(0, -halfH);
|
|
148744
|
+
ground.lineTo(halfW, 0);
|
|
148745
|
+
ground.lineTo(0, halfH);
|
|
148746
|
+
ground.lineTo(-halfW, 0);
|
|
148747
|
+
ground.closePath();
|
|
148748
|
+
ground.fill(stoneBase);
|
|
148749
|
+
const textureCount = Math.max(5, Math.floor(7 * sizeMultiplier));
|
|
148750
|
+
for (let i2 = 0; i2 < textureCount; i2++) {
|
|
148751
|
+
const angle = i2 / textureCount * Math.PI * 2;
|
|
148752
|
+
const radius = 0.25 + i2 % 3 * 0.15;
|
|
148753
|
+
const x2 = Math.cos(angle) * halfW * radius;
|
|
148754
|
+
const y2 = Math.sin(angle) * halfH * radius;
|
|
148755
|
+
const dotSize = Math.max(2, 3 * sizeMultiplier);
|
|
148756
|
+
ground.circle(x2, y2, dotSize);
|
|
148757
|
+
ground.fill(i2 % 2 === 0 ? stoneLight : stoneDark);
|
|
148758
|
+
}
|
|
148759
|
+
const pebbleSize = Math.max(1.5, 2 * sizeMultiplier);
|
|
148760
|
+
const pebbleSpots = [
|
|
148761
|
+
{ x: -halfW * 0.3, y: -halfH * 0.15 },
|
|
148762
|
+
{ x: halfW * 0.25, y: halfH * 0.2 },
|
|
148763
|
+
{ x: -halfW * 0.15, y: halfH * 0.35 },
|
|
148764
|
+
{ x: halfW * 0.35, y: -halfH * 0.25 }
|
|
148765
|
+
];
|
|
148766
|
+
for (const spot of pebbleSpots) {
|
|
148767
|
+
ground.circle(spot.x, spot.y, pebbleSize);
|
|
148768
|
+
ground.fill(stoneDark);
|
|
148769
|
+
}
|
|
148770
|
+
return ground;
|
|
148771
|
+
}
|
|
148735
148772
|
function generateLicenseSign(license, config) {
|
|
148736
148773
|
switch (license) {
|
|
148737
148774
|
case "MIT":
|
|
@@ -149309,13 +149346,10 @@ class IsometricRenderer {
|
|
|
149309
149346
|
}
|
|
149310
149347
|
let licenseGround;
|
|
149311
149348
|
let licenseSign;
|
|
149349
|
+
const footprint = calculateFootprint(sizeMultiplier);
|
|
149312
149350
|
if (node2.license) {
|
|
149313
149351
|
const licenseType = node2.license;
|
|
149314
|
-
const footprint = calculateFootprint(sizeMultiplier);
|
|
149315
149352
|
licenseGround = generateLicenseGround(licenseType, sizeMultiplier);
|
|
149316
|
-
licenseGround.x = screenX;
|
|
149317
|
-
licenseGround.y = screenY;
|
|
149318
|
-
licenseGround.zIndex = screenY;
|
|
149319
149353
|
licenseSign = generateLicenseSign(licenseType, {
|
|
149320
149354
|
name: node2.label,
|
|
149321
149355
|
sizeMultiplier
|
|
@@ -149324,7 +149358,12 @@ class IsometricRenderer {
|
|
|
149324
149358
|
licenseSign.y = screenY + footprint.height * 0.75;
|
|
149325
149359
|
licenseSign.zIndex = container.zIndex + 0.15;
|
|
149326
149360
|
label.visible = false;
|
|
149361
|
+
} else {
|
|
149362
|
+
licenseGround = generateNeutralGround(sizeMultiplier);
|
|
149327
149363
|
}
|
|
149364
|
+
licenseGround.x = screenX;
|
|
149365
|
+
licenseGround.y = screenY;
|
|
149366
|
+
licenseGround.zIndex = screenY;
|
|
149328
149367
|
const instance = {
|
|
149329
149368
|
sprite: container,
|
|
149330
149369
|
// Container acts as the sprite
|
|
@@ -149370,9 +149409,9 @@ class IsometricRenderer {
|
|
|
149370
149409
|
licenseGround.zIndex = pos.screenY;
|
|
149371
149410
|
}
|
|
149372
149411
|
if (licenseSign) {
|
|
149373
|
-
const
|
|
149412
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149374
149413
|
licenseSign.x = pos.screenX;
|
|
149375
|
-
licenseSign.y = pos.screenY +
|
|
149414
|
+
licenseSign.y = pos.screenY + footprint2.height * 0.75;
|
|
149376
149415
|
licenseSign.zIndex = getIsometricZIndex(gridX, gridY) + 0.15;
|
|
149377
149416
|
}
|
|
149378
149417
|
instance.gridPosition = { gridX, gridY };
|
|
@@ -149460,13 +149499,10 @@ class IsometricRenderer {
|
|
|
149460
149499
|
label.zIndex = sprite.zIndex + 0.2;
|
|
149461
149500
|
let licenseGround;
|
|
149462
149501
|
let licenseSign;
|
|
149502
|
+
const footprint = calculateFootprint(sizeMultiplier);
|
|
149463
149503
|
if (node2.license) {
|
|
149464
149504
|
const licenseType = node2.license;
|
|
149465
|
-
const footprint = calculateFootprint(sizeMultiplier);
|
|
149466
149505
|
licenseGround = generateLicenseGround(licenseType, sizeMultiplier);
|
|
149467
|
-
licenseGround.x = screenX;
|
|
149468
|
-
licenseGround.y = screenY;
|
|
149469
|
-
licenseGround.zIndex = screenY;
|
|
149470
149506
|
licenseSign = generateLicenseSign(licenseType, {
|
|
149471
149507
|
name: node2.label,
|
|
149472
149508
|
sizeMultiplier
|
|
@@ -149475,11 +149511,16 @@ class IsometricRenderer {
|
|
|
149475
149511
|
licenseSign.y = screenY + footprint.height * 0.75;
|
|
149476
149512
|
licenseSign.zIndex = sprite.zIndex + 0.15;
|
|
149477
149513
|
label.visible = false;
|
|
149514
|
+
} else {
|
|
149515
|
+
licenseGround = generateNeutralGround(sizeMultiplier);
|
|
149478
149516
|
}
|
|
149517
|
+
licenseGround.x = screenX;
|
|
149518
|
+
licenseGround.y = screenY;
|
|
149519
|
+
licenseGround.zIndex = screenY;
|
|
149479
149520
|
let ownerAvatar;
|
|
149480
149521
|
if (node2.ownerAvatar) {
|
|
149481
149522
|
try {
|
|
149482
|
-
const
|
|
149523
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149483
149524
|
const avatarSize = 24;
|
|
149484
149525
|
ownerAvatar = new Container();
|
|
149485
149526
|
const background = new Graphics();
|
|
@@ -149509,7 +149550,7 @@ class IsometricRenderer {
|
|
|
149509
149550
|
ownerAvatar.addChild(avatar);
|
|
149510
149551
|
}
|
|
149511
149552
|
ownerAvatar.x = screenX;
|
|
149512
|
-
ownerAvatar.y = screenY +
|
|
149553
|
+
ownerAvatar.y = screenY + footprint2.height - avatarSize / 2;
|
|
149513
149554
|
ownerAvatar.zIndex = sprite.zIndex + 0.12;
|
|
149514
149555
|
} catch {
|
|
149515
149556
|
ownerAvatar = void 0;
|
|
@@ -149519,7 +149560,7 @@ class IsometricRenderer {
|
|
|
149519
149560
|
if (node2.stars && node2.stars > 0) {
|
|
149520
149561
|
const tier = getStarTier(node2.stars);
|
|
149521
149562
|
if (tier) {
|
|
149522
|
-
const
|
|
149563
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149523
149564
|
starDecoration = new Container();
|
|
149524
149565
|
let decoration;
|
|
149525
149566
|
switch (tier.decorationType) {
|
|
@@ -149570,7 +149611,7 @@ class IsometricRenderer {
|
|
|
149570
149611
|
countText.visible = false;
|
|
149571
149612
|
});
|
|
149572
149613
|
starDecoration.addChild(countText);
|
|
149573
|
-
starDecoration.x = screenX -
|
|
149614
|
+
starDecoration.x = screenX - footprint2.width / 2;
|
|
149574
149615
|
starDecoration.y = screenY;
|
|
149575
149616
|
starDecoration.zIndex = sprite.zIndex + 0.11;
|
|
149576
149617
|
}
|
|
@@ -149579,7 +149620,7 @@ class IsometricRenderer {
|
|
|
149579
149620
|
if (node2.collaborators && node2.collaborators > 0) {
|
|
149580
149621
|
const tier = getCollaboratorTier(node2.collaborators);
|
|
149581
149622
|
if (tier) {
|
|
149582
|
-
const
|
|
149623
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149583
149624
|
collaboratorDecoration = new Container();
|
|
149584
149625
|
let decoration;
|
|
149585
149626
|
switch (tier.decorationType) {
|
|
@@ -149634,7 +149675,7 @@ class IsometricRenderer {
|
|
|
149634
149675
|
countText.visible = false;
|
|
149635
149676
|
});
|
|
149636
149677
|
collaboratorDecoration.addChild(countText);
|
|
149637
|
-
collaboratorDecoration.x = screenX +
|
|
149678
|
+
collaboratorDecoration.x = screenX + footprint2.width / 2;
|
|
149638
149679
|
collaboratorDecoration.y = screenY;
|
|
149639
149680
|
collaboratorDecoration.zIndex = sprite.zIndex + 0.11;
|
|
149640
149681
|
}
|
|
@@ -149683,26 +149724,26 @@ class IsometricRenderer {
|
|
|
149683
149724
|
licenseGround.zIndex = pos.screenY;
|
|
149684
149725
|
}
|
|
149685
149726
|
if (licenseSign) {
|
|
149686
|
-
const
|
|
149727
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149687
149728
|
licenseSign.x = pos.screenX;
|
|
149688
|
-
licenseSign.y = pos.screenY +
|
|
149729
|
+
licenseSign.y = pos.screenY + footprint2.height * 0.75;
|
|
149689
149730
|
licenseSign.zIndex = getIsometricZIndex(gridX, gridY) + 0.15;
|
|
149690
149731
|
}
|
|
149691
149732
|
if (ownerAvatar) {
|
|
149692
|
-
const
|
|
149733
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149693
149734
|
ownerAvatar.x = pos.screenX;
|
|
149694
|
-
ownerAvatar.y = pos.screenY +
|
|
149735
|
+
ownerAvatar.y = pos.screenY + footprint2.height - 12;
|
|
149695
149736
|
ownerAvatar.zIndex = getIsometricZIndex(gridX, gridY) + 0.12;
|
|
149696
149737
|
}
|
|
149697
149738
|
if (starDecoration) {
|
|
149698
|
-
const
|
|
149699
|
-
starDecoration.x = pos.screenX -
|
|
149739
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149740
|
+
starDecoration.x = pos.screenX - footprint2.width / 2;
|
|
149700
149741
|
starDecoration.y = pos.screenY;
|
|
149701
149742
|
starDecoration.zIndex = getIsometricZIndex(gridX, gridY) + 0.11;
|
|
149702
149743
|
}
|
|
149703
149744
|
if (collaboratorDecoration) {
|
|
149704
|
-
const
|
|
149705
|
-
collaboratorDecoration.x = pos.screenX +
|
|
149745
|
+
const footprint2 = calculateFootprint(sizeMultiplier);
|
|
149746
|
+
collaboratorDecoration.x = pos.screenX + footprint2.width / 2;
|
|
149706
149747
|
collaboratorDecoration.y = pos.screenY;
|
|
149707
149748
|
collaboratorDecoration.zIndex = getIsometricZIndex(gridX, gridY) + 0.11;
|
|
149708
149749
|
}
|
|
@@ -154077,13 +154118,8 @@ const RepoSprite = ({
|
|
|
154077
154118
|
boundary.stroke();
|
|
154078
154119
|
mainContainer.addChild(boundary);
|
|
154079
154120
|
}
|
|
154080
|
-
|
|
154081
|
-
|
|
154082
|
-
license,
|
|
154083
|
-
size
|
|
154084
|
-
);
|
|
154085
|
-
mainContainer.addChild(licenseGround);
|
|
154086
|
-
}
|
|
154121
|
+
const ground = license ? generateLicenseGround(license, size) : generateNeutralGround(size);
|
|
154122
|
+
mainContainer.addChild(ground);
|
|
154087
154123
|
if (packages && packages.length > 1) {
|
|
154088
154124
|
const positions = getPackagePositions$1(
|
|
154089
154125
|
packages.length,
|
|
@@ -154769,10 +154805,8 @@ async function renderSpriteInternal(options) {
|
|
|
154769
154805
|
boundary.stroke();
|
|
154770
154806
|
mainContainer.addChild(boundary);
|
|
154771
154807
|
}
|
|
154772
|
-
|
|
154773
|
-
|
|
154774
|
-
mainContainer.addChild(licenseGround);
|
|
154775
|
-
}
|
|
154808
|
+
const ground = license ? generateLicenseGround(license, size) : generateNeutralGround(size);
|
|
154809
|
+
mainContainer.addChild(ground);
|
|
154776
154810
|
if (packages && packages.length > 1) {
|
|
154777
154811
|
const positions = getPackagePositions(
|
|
154778
154812
|
packages.length,
|
|
@@ -155512,4 +155546,4 @@ export {
|
|
|
155512
155546
|
RepoCardStatic as y,
|
|
155513
155547
|
renderSpriteToDataUrl as z
|
|
155514
155548
|
};
|
|
155515
|
-
//# sourceMappingURL=index-
|
|
155549
|
+
//# sourceMappingURL=index-BxddM8lM.js.map
|