@industry-theme/repository-composition-panels 0.7.12 → 0.7.14
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-C7fE0rET.js → BufferResource-DME1VWVJ.js} +2 -2
- package/dist/{BufferResource-C7fE0rET.js.map → BufferResource-DME1VWVJ.js.map} +1 -1
- package/dist/{CanvasRenderer-_Iy-Pv92.js → CanvasRenderer-Md8Ayshs.js} +3 -3
- package/dist/{CanvasRenderer-_Iy-Pv92.js.map → CanvasRenderer-Md8Ayshs.js.map} +1 -1
- package/dist/{Filter-CXBBYFva.js → Filter-Bi2t_gmW.js} +2 -2
- package/dist/{Filter-CXBBYFva.js.map → Filter-Bi2t_gmW.js.map} +1 -1
- package/dist/{RenderTargetSystem-DWOQgrs8.js → RenderTargetSystem-D98tiHim.js} +3 -3
- package/dist/{RenderTargetSystem-DWOQgrs8.js.map → RenderTargetSystem-D98tiHim.js.map} +1 -1
- package/dist/{WebGLRenderer-DRGMbCDS.js → WebGLRenderer-2YtxQhbh.js} +4 -4
- package/dist/{WebGLRenderer-DRGMbCDS.js.map → WebGLRenderer-2YtxQhbh.js.map} +1 -1
- package/dist/{WebGPURenderer-DCNOo2ZZ.js → WebGPURenderer-kS6gO2Xc.js} +4 -4
- package/dist/{WebGPURenderer-DCNOo2ZZ.js.map → WebGPURenderer-kS6gO2Xc.js.map} +1 -1
- package/dist/{browserAll-DlgkhdaB.js → browserAll-TZZf5l7B.js} +3 -3
- package/dist/{browserAll-DlgkhdaB.js.map → browserAll-TZZf5l7B.js.map} +1 -1
- package/dist/{index-71kRarFy.js → index-pPFTSf2O.js} +20 -10
- package/dist/{index-71kRarFy.js.map → index-pPFTSf2O.js.map} +1 -1
- package/dist/{init-DWmYCOyt.js → init-CfSmqCnm.js} +3 -3
- package/dist/{init-DWmYCOyt.js.map → init-CfSmqCnm.js.map} +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-TcJuZTza.js +3 -0
- package/dist/webworkerAll-TcJuZTza.js.map +1 -0
- package/package.json +1 -1
- package/dist/assets/orchestrators/index.d.ts +0 -28
- package/dist/assets/orchestrators/index.d.ts.map +0 -1
- package/dist/index.d.ts +0 -35
- package/dist/index.d.ts.map +0 -1
- package/dist/mocks/panelContext.d.ts +0 -24
- package/dist/mocks/panelContext.d.ts.map +0 -1
- package/dist/panels/CollectionMapPanel.d.ts +0 -132
- package/dist/panels/CollectionMapPanel.d.ts.map +0 -1
- package/dist/panels/GitChangesPanel.d.ts +0 -48
- package/dist/panels/GitChangesPanel.d.ts.map +0 -1
- package/dist/panels/PackageCompositionPanel.d.ts +0 -37
- package/dist/panels/PackageCompositionPanel.d.ts.map +0 -1
- package/dist/panels/SearchPanel.d.ts +0 -33
- package/dist/panels/SearchPanel.d.ts.map +0 -1
- package/dist/panels/TelemetryCoveragePanel.d.ts +0 -48
- package/dist/panels/TelemetryCoveragePanel.d.ts.map +0 -1
- package/dist/panels/components/DependencyInfoModal.d.ts +0 -8
- package/dist/panels/components/DependencyInfoModal.d.ts.map +0 -1
- package/dist/panels/components/DependencyRow.d.ts +0 -8
- package/dist/panels/components/DependencyRow.d.ts.map +0 -1
- package/dist/panels/components/EmptyDependencies.d.ts +0 -7
- package/dist/panels/components/EmptyDependencies.d.ts.map +0 -1
- package/dist/panels/components/FilterBar.d.ts +0 -19
- package/dist/panels/components/FilterBar.d.ts.map +0 -1
- package/dist/panels/components/InheritedConfigIndicator.d.ts +0 -27
- package/dist/panels/components/InheritedConfigIndicator.d.ts.map +0 -1
- package/dist/panels/components/LensReadinessSection.d.ts +0 -8
- package/dist/panels/components/LensReadinessSection.d.ts.map +0 -1
- package/dist/panels/components/OrchestratorBadge.d.ts +0 -11
- package/dist/panels/components/OrchestratorBadge.d.ts.map +0 -1
- package/dist/panels/components/OtherScriptsSection.d.ts +0 -9
- package/dist/panels/components/OtherScriptsSection.d.ts.map +0 -1
- package/dist/panels/components/PackageDetailCard.d.ts +0 -18
- package/dist/panels/components/PackageDetailCard.d.ts.map +0 -1
- package/dist/panels/components/PackageLoadingGraph.d.ts +0 -3
- package/dist/panels/components/PackageLoadingGraph.d.ts.map +0 -1
- package/dist/panels/components/PackageManagerIcon.d.ts +0 -10
- package/dist/panels/components/PackageManagerIcon.d.ts.map +0 -1
- package/dist/panels/components/PackageSummaryCard.d.ts +0 -10
- package/dist/panels/components/PackageSummaryCard.d.ts.map +0 -1
- package/dist/panels/components/index.d.ts +0 -11
- package/dist/panels/components/index.d.ts.map +0 -1
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts +0 -20
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts.map +0 -1
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts +0 -20
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts.map +0 -1
- package/dist/panels/dependency-graph/forceLayout.d.ts +0 -38
- package/dist/panels/dependency-graph/forceLayout.d.ts.map +0 -1
- package/dist/panels/dependency-graph/index.d.ts +0 -5
- package/dist/panels/dependency-graph/index.d.ts.map +0 -1
- package/dist/panels/overworld-map/BuildingSizeTest.d.ts +0 -11
- package/dist/panels/overworld-map/BuildingSizeTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/LayoutEngineTest.d.ts +0 -24
- package/dist/panels/overworld-map/LayoutEngineTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/LicenseSignTest.d.ts +0 -7
- package/dist/panels/overworld-map/LicenseSignTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts +0 -62
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +0 -1
- package/dist/panels/overworld-map/PackageExpansionTest.d.ts +0 -25
- package/dist/panels/overworld-map/PackageExpansionTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/RegionEditingTest.d.ts +0 -10
- package/dist/panels/overworld-map/RegionEditingTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/collaboratorDecoration.d.ts +0 -30
- package/dist/panels/overworld-map/collaboratorDecoration.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts +0 -159
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricPathManager.d.ts +0 -50
- package/dist/panels/overworld-map/components/IsometricPathManager.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricPixiCanvas.d.ts +0 -88
- package/dist/panels/overworld-map/components/IsometricPixiCanvas.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts +0 -141
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/RegionTracker.d.ts +0 -62
- package/dist/panels/overworld-map/components/RegionTracker.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts +0 -19
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/collaboratorDecorationSprites.d.ts +0 -25
- package/dist/panels/overworld-map/components/collaboratorDecorationSprites.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts +0 -122
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/starDecorationSprites.d.ts +0 -18
- package/dist/panels/overworld-map/components/starDecorationSprites.d.ts.map +0 -1
- package/dist/panels/overworld-map/genericMapper.d.ts +0 -81
- package/dist/panels/overworld-map/genericMapper.d.ts.map +0 -1
- package/dist/panels/overworld-map/index.d.ts +0 -11
- package/dist/panels/overworld-map/index.d.ts.map +0 -1
- package/dist/panels/overworld-map/isometricUtils.d.ts +0 -150
- package/dist/panels/overworld-map/isometricUtils.d.ts.map +0 -1
- package/dist/panels/overworld-map/packageExpansion.d.ts +0 -15
- package/dist/panels/overworld-map/packageExpansion.d.ts.map +0 -1
- package/dist/panels/overworld-map/spriteGenerator.d.ts +0 -53
- package/dist/panels/overworld-map/spriteGenerator.d.ts.map +0 -1
- package/dist/panels/overworld-map/spriteLayoutEngine.d.ts +0 -103
- package/dist/panels/overworld-map/spriteLayoutEngine.d.ts.map +0 -1
- package/dist/panels/overworld-map/starDecoration.d.ts +0 -29
- package/dist/panels/overworld-map/starDecoration.d.ts.map +0 -1
- package/dist/panels/overworld-map/test-setup.d.ts +0 -6
- package/dist/panels/overworld-map/test-setup.d.ts.map +0 -1
- package/dist/panels/overworld-map/types.d.ts +0 -228
- package/dist/panels/overworld-map/types.d.ts.map +0 -1
- package/dist/services/LocalSearchService.d.ts +0 -70
- package/dist/services/LocalSearchService.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -32
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools.bundle.js +0 -106
- package/dist/types/composition.d.ts +0 -22
- package/dist/types/composition.d.ts.map +0 -1
- package/dist/types/dependencies.d.ts +0 -26
- package/dist/types/dependencies.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -94
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/envParser.d.ts +0 -29
- package/dist/utils/envParser.d.ts.map +0 -1
- package/dist/utils/licenseColors.d.ts +0 -13
- package/dist/utils/licenseColors.d.ts.map +0 -1
- package/dist/utils/repositoryAging.d.ts +0 -26
- package/dist/utils/repositoryAging.d.ts.map +0 -1
- package/dist/utils/repositoryScaling.d.ts +0 -40
- package/dist/utils/repositoryScaling.d.ts.map +0 -1
- package/dist/webworkerAll-6jsPbrwc.js +0 -3
- package/dist/webworkerAll-6jsPbrwc.js.map +0 -1
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* License Sign Sprite Generators
|
|
3
|
-
* Creates pixel art sign/archway sprites to display repository names
|
|
4
|
-
* with visual treatment based on license type
|
|
5
|
-
*
|
|
6
|
-
* Dimensions are based on the footprint formula from IsometricRenderer:
|
|
7
|
-
* - footprintTiles = 4 * sizeMultiplier
|
|
8
|
-
* - footprintWidth = (footprintTiles * TILE_WIDTH) / 2 (TILE_WIDTH = 64)
|
|
9
|
-
* - footprintHeight = (footprintTiles * TILE_HEIGHT) / 2 (TILE_HEIGHT = 32)
|
|
10
|
-
*
|
|
11
|
-
* For size 1.0: tiles = 4, width = 128px (half), height = 64px (half)
|
|
12
|
-
* Full diamond footprint is 256px wide × 128px tall
|
|
13
|
-
*/
|
|
14
|
-
import { Graphics, Container } from 'pixi.js';
|
|
15
|
-
/**
|
|
16
|
-
* Calculate footprint dimensions from size multiplier
|
|
17
|
-
* Matches the formula in IsometricRenderer.ts:405-407
|
|
18
|
-
*
|
|
19
|
-
* @returns tiles - Total tiles across (e.g., 4 for size 1.0)
|
|
20
|
-
* @returns width - Half-width in pixels (center to edge), use for positioning
|
|
21
|
-
* @returns height - Half-height in pixels (center to edge), use for positioning
|
|
22
|
-
*
|
|
23
|
-
* Example for size 1.0:
|
|
24
|
-
* tiles = 4, width = 128px, height = 64px
|
|
25
|
-
* Full diamond is 256px wide × 128px tall
|
|
26
|
-
*/
|
|
27
|
-
export declare function calculateFootprint(sizeMultiplier: number): {
|
|
28
|
-
tiles: number;
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
export interface LicenseSignConfig {
|
|
33
|
-
/** Repository name to display */
|
|
34
|
-
name: string;
|
|
35
|
-
/** Size multiplier matching the building (1.0 - 4.0) */
|
|
36
|
-
sizeMultiplier: number;
|
|
37
|
-
/** Optional: override arch width (defaults to 50% of footprint width) */
|
|
38
|
-
archWidth?: number;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Generate a MIT license sign - wooden flower arch
|
|
42
|
-
* Welcoming, open feel with climbing flowers and vines
|
|
43
|
-
*
|
|
44
|
-
* The arch is positioned to span the front edge of the diamond footprint,
|
|
45
|
-
* with posts at 25% from the bottom corner on each side.
|
|
46
|
-
*
|
|
47
|
-
* @returns Container with origin at (0, 0) - caller should position at
|
|
48
|
-
* (screenX, screenY + footprint.height * 0.75) to align with diamond
|
|
49
|
-
*/
|
|
50
|
-
export declare function generateMITFlowerArch(config: LicenseSignConfig): Container;
|
|
51
|
-
/**
|
|
52
|
-
* Generate open grass ground treatment (for permissive licenses)
|
|
53
|
-
* Returns a graphics object to render beneath the building
|
|
54
|
-
* Dimensions match the building's footprint (highlight area)
|
|
55
|
-
*/
|
|
56
|
-
export declare function generateOpenGrassGround(sizeMultiplier: number): Graphics;
|
|
57
|
-
/**
|
|
58
|
-
* Generate an Apache 2.0 license sign - two posts with shield emblem in center
|
|
59
|
-
* More formal/official feel than MIT, but still welcoming
|
|
60
|
-
* Features a shield emblem with a feather (Apache logo reference)
|
|
61
|
-
* Same width as MIT sign (spans 25% from bottom corner on each side)
|
|
62
|
-
*/
|
|
63
|
-
export declare function generateApacheSign(config: LicenseSignConfig): Container;
|
|
64
|
-
/**
|
|
65
|
-
* Generate a GPL license sign - iron/wrought iron arch
|
|
66
|
-
* More formal and sturdy looking, represents "freedom with responsibility"
|
|
67
|
-
* Features dark iron posts and a flag with GPL text
|
|
68
|
-
*/
|
|
69
|
-
export declare function generateGPLSign(config: LicenseSignConfig): Container;
|
|
70
|
-
/**
|
|
71
|
-
* Generate picket fence ground treatment (for GPL license)
|
|
72
|
-
* Grass with a white picket fence around the perimeter
|
|
73
|
-
* Represents "open but with clear boundaries/rules"
|
|
74
|
-
*/
|
|
75
|
-
export declare function generatePicketFenceGround(sizeMultiplier: number): Graphics;
|
|
76
|
-
/**
|
|
77
|
-
* Generate cobblestone path ground treatment (for Apache license)
|
|
78
|
-
* Grass with a cobblestone path leading to the building - welcoming but defined
|
|
79
|
-
*/
|
|
80
|
-
export declare function generateCobblestoneGround(sizeMultiplier: number): Graphics;
|
|
81
|
-
/**
|
|
82
|
-
* License type enum for future expansion
|
|
83
|
-
*/
|
|
84
|
-
export type LicenseType = 'MIT' | 'BSD' | 'ISC' | 'Apache-2.0' | 'GPL-3.0' | 'LGPL-3.0' | 'MPL-2.0' | 'Unlicense' | 'Proprietary' | 'Unknown';
|
|
85
|
-
/**
|
|
86
|
-
* Get the appropriate sign generator for a license type
|
|
87
|
-
*/
|
|
88
|
-
export declare function generateLicenseSign(license: LicenseType, config: LicenseSignConfig): Container;
|
|
89
|
-
/**
|
|
90
|
-
* Get the appropriate ground treatment for a license type
|
|
91
|
-
*/
|
|
92
|
-
export declare function generateLicenseGround(license: LicenseType, sizeMultiplier: number): Graphics;
|
|
93
|
-
/**
|
|
94
|
-
* Configuration for generating a complete licensed building
|
|
95
|
-
*/
|
|
96
|
-
export interface LicensedBuildingConfig {
|
|
97
|
-
/** Repository name to display on sign */
|
|
98
|
-
name: string;
|
|
99
|
-
/** Size multiplier (1.0 - 4.0) */
|
|
100
|
-
size: number;
|
|
101
|
-
/** License type */
|
|
102
|
-
license: LicenseType;
|
|
103
|
-
/** Building color (optional) */
|
|
104
|
-
color?: number;
|
|
105
|
-
/** GitHub star count (optional) */
|
|
106
|
-
stars?: number;
|
|
107
|
-
/** Contributor count (optional) */
|
|
108
|
-
collaborators?: number;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Generate a complete licensed building with ground treatment and sign
|
|
112
|
-
* All elements are combined into a single Container that moves together
|
|
113
|
-
*
|
|
114
|
-
* The container is positioned with origin at (0, 0) which corresponds to
|
|
115
|
-
* the isometric grid position. The ground is centered at origin, the building
|
|
116
|
-
* is positioned at origin (its natural anchor point), and the sign is at the
|
|
117
|
-
* front edge of the diamond.
|
|
118
|
-
*
|
|
119
|
-
* @returns Container with ground, building, and sign as children
|
|
120
|
-
*/
|
|
121
|
-
export declare function generateLicensedBuilding(config: LicensedBuildingConfig): Container;
|
|
122
|
-
//# sourceMappingURL=licenseSignSprites.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"licenseSignSprites.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/licenseSignSprites.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAQ,SAAS,EAAE,M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G;AACH,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,sBAAsB,GAC7B,SAAS,CAiCX"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Star Decoration Sprite Generators
|
|
3
|
-
* Creates pixel art sprites for flags, trophies, and statues based on GitHub stars
|
|
4
|
-
*/
|
|
5
|
-
import { Graphics } from 'pixi.js';
|
|
6
|
-
/**
|
|
7
|
-
* Generate a pixel art flag sprite
|
|
8
|
-
*/
|
|
9
|
-
export declare function generateFlagSprite(color: number): Graphics;
|
|
10
|
-
/**
|
|
11
|
-
* Generate a pixel art trophy sprite
|
|
12
|
-
*/
|
|
13
|
-
export declare function generateTrophySprite(color: number): Graphics;
|
|
14
|
-
/**
|
|
15
|
-
* Generate a pixel art statue sprite
|
|
16
|
-
*/
|
|
17
|
-
export declare function generateStatueSprite(color: number): Graphics;
|
|
18
|
-
//# sourceMappingURL=starDecorationSprites.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"starDecorationSprites.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/starDecorationSprites.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAkB1D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAsB5D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CA8B5D"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic mapper for converting any node/edge data to OverworldMap format
|
|
3
|
-
* Use this to create maps for repos, services, or any connected entities
|
|
4
|
-
*/
|
|
5
|
-
import type { OverworldMap, OverworldMapCollection, BiomeTheme, LocationNodeType } from './types';
|
|
6
|
-
import type { CustomRegion } from '@principal-ai/alexandria-collections';
|
|
7
|
-
import type { AgingMetrics } from '../../utils/repositoryAging';
|
|
8
|
-
/**
|
|
9
|
-
* Generic node - represents any entity (package, repo, service, etc.)
|
|
10
|
-
*/
|
|
11
|
-
export interface PackageInfo {
|
|
12
|
-
name: string;
|
|
13
|
-
size: number;
|
|
14
|
-
language?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface GenericNode {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
isRoot?: boolean;
|
|
20
|
-
category?: string;
|
|
21
|
-
language?: string;
|
|
22
|
-
importance?: number;
|
|
23
|
-
size?: number;
|
|
24
|
-
aging?: AgingMetrics;
|
|
25
|
-
packages?: PackageInfo[];
|
|
26
|
-
stars?: number;
|
|
27
|
-
collaborators?: number;
|
|
28
|
-
license?: string;
|
|
29
|
-
ownerAvatar?: string;
|
|
30
|
-
dependencies?: string[];
|
|
31
|
-
devDependencies?: string[];
|
|
32
|
-
regionId?: string;
|
|
33
|
-
layout?: {
|
|
34
|
-
gridX?: number;
|
|
35
|
-
gridY?: number;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Region layout configuration for multi-region maps
|
|
40
|
-
*/
|
|
41
|
-
export interface RegionLayout {
|
|
42
|
-
/** Number of columns in the region grid */
|
|
43
|
-
columns: number;
|
|
44
|
-
/** Number of rows in the region grid */
|
|
45
|
-
rows: number;
|
|
46
|
-
/** Direction to fill regions: 'row-major' (left-to-right, then down) or 'column-major' (top-to-bottom, then right) */
|
|
47
|
-
fillDirection?: 'row-major' | 'column-major';
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Options for generic mapping
|
|
51
|
-
*/
|
|
52
|
-
export interface GenericMapperOptions {
|
|
53
|
-
includeDevDependencies?: boolean;
|
|
54
|
-
mapPadding?: number;
|
|
55
|
-
customRegions?: CustomRegion[];
|
|
56
|
-
regionLayout?: RegionLayout;
|
|
57
|
-
getCategoryTheme?: (category: string) => BiomeTheme;
|
|
58
|
-
getNodeType?: (node: GenericNode) => LocationNodeType;
|
|
59
|
-
getNodeColor?: (node: GenericNode) => string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Convert generic nodes to a single OverworldMap
|
|
63
|
-
* Now uses automatic layout engine
|
|
64
|
-
*/
|
|
65
|
-
export declare function nodesToOverworldMap(nodes: GenericNode[], options?: GenericMapperOptions): OverworldMap;
|
|
66
|
-
/**
|
|
67
|
-
* Convert generic nodes to unified OverworldMap with automatic layout
|
|
68
|
-
* Uses circle packing algorithm for collision-free placement
|
|
69
|
-
*/
|
|
70
|
-
export declare function nodesToUnifiedOverworldMap(nodes: GenericNode[], options?: GenericMapperOptions): OverworldMap;
|
|
71
|
-
/**
|
|
72
|
-
* Convert generic nodes to single-region OverworldMap
|
|
73
|
-
* Uses manual positioning (kept for backward compatibility)
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Convert generic nodes to OverworldMapCollection
|
|
77
|
-
* @deprecated Use nodesToUnifiedOverworldMap instead for better UX
|
|
78
|
-
* Automatically splits into multiple maps if too many nodes
|
|
79
|
-
*/
|
|
80
|
-
export declare function nodesToOverworldMapCollection(nodes: GenericNode[], options?: GenericMapperOptions): OverworldMapCollection;
|
|
81
|
-
//# sourceMappingURL=genericMapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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AM,CAAC;IAChB,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,aAAa,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAG/B,YAAY,CAAC,EAAE,YAAY,CAAC;IAG5B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,UAAU,CAAC;IACpD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,gBAAgB,CAAC;IACtD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC;CAC9C;AAqKD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,WAAW,EAAE,EACpB,OAAO,GAAE,oBAAyB,GACjC,YAAY,CAGd;AAqED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,WAAW,EAAE,EACpB,OAAO,GAAE,oBAAyB,GACjC,YAAY,CAsdd;AAED;;;GAGG;AAEH;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,WAAW,EAAE,EACpB,OAAO,GAAE,oBAAyB,GACjC,sBAAsB,CAgCxB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Overworld Map Panel - 8-bit dependency visualization
|
|
3
|
-
*/
|
|
4
|
-
export { OverworldMapPanelContent, OverworldMapPanelPreview, } from './OverworldMapPanel';
|
|
5
|
-
export type { OverworldMapPanelProps } from './OverworldMapPanel';
|
|
6
|
-
export type { OverworldMap, OverworldMapCollection, MapRegion, LocationNode, PathConnection, Tile, BiomeTheme, LocationNodeType, Camera, GridPoint, } from './types';
|
|
7
|
-
export { MAX_NODES_PER_MAP, MAP_TRANSITION_THRESHOLD } from './types';
|
|
8
|
-
export { gridToScreen, screenToGrid, getIsometricZIndex, ISO_TILE_WIDTH, ISO_TILE_HEIGHT, } from './isometricUtils';
|
|
9
|
-
export { nodesToOverworldMap, nodesToUnifiedOverworldMap, nodesToOverworldMapCollection, } from './genericMapper';
|
|
10
|
-
export type { GenericNode, GenericMapperOptions, } from './genericMapper';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,YAAY,EACV,YAAY,EACZ,sBAAsB,EACtB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,SAAS,GACV,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,EACX,oBAAoB,GACrB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Isometric rendering utilities for converting between grid and screen coordinates
|
|
3
|
-
*/
|
|
4
|
-
import type { Viewport } from 'pixi-viewport';
|
|
5
|
-
import { type GridPoint, type IsometricCoords } from './types';
|
|
6
|
-
export { TILE_SIZE } from './types';
|
|
7
|
-
/**
|
|
8
|
-
* Isometric tile dimensions
|
|
9
|
-
* For 32x32 logical tiles, we use a 2:1 ratio diamond
|
|
10
|
-
*/
|
|
11
|
-
export declare const ISO_TILE_WIDTH: number;
|
|
12
|
-
export declare const ISO_TILE_HEIGHT = 32;
|
|
13
|
-
/**
|
|
14
|
-
* Convert grid coordinates to isometric screen coordinates
|
|
15
|
-
* @param gridX Grid X position
|
|
16
|
-
* @param gridY Grid Y position
|
|
17
|
-
* @returns Screen coordinates {screenX, screenY}
|
|
18
|
-
*/
|
|
19
|
-
export declare function gridToScreen(gridX: number, gridY: number): IsometricCoords;
|
|
20
|
-
/**
|
|
21
|
-
* Convert screen coordinates back to grid coordinates
|
|
22
|
-
* @param screenX Screen X position
|
|
23
|
-
* @param screenY Screen Y position
|
|
24
|
-
* @returns Grid coordinates {gridX, gridY}
|
|
25
|
-
*/
|
|
26
|
-
export declare function screenToGrid(screenX: number, screenY: number): GridPoint;
|
|
27
|
-
/**
|
|
28
|
-
* Get the bounding box for an isometric tile
|
|
29
|
-
* @param gridX Grid X position
|
|
30
|
-
* @param gridY Grid Y position
|
|
31
|
-
* @returns Corner points of the diamond in screen space
|
|
32
|
-
*/
|
|
33
|
-
export declare function getTileBounds(gridX: number, gridY: number): {
|
|
34
|
-
top: {
|
|
35
|
-
x: number;
|
|
36
|
-
y: number;
|
|
37
|
-
};
|
|
38
|
-
right: {
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
};
|
|
42
|
-
bottom: {
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
};
|
|
46
|
-
left: {
|
|
47
|
-
x: number;
|
|
48
|
-
y: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Calculate the correct render order (z-index) for isometric tiles
|
|
53
|
-
* Tiles further "back" (higher Y + higher X) should render first
|
|
54
|
-
* @param gridX Grid X position
|
|
55
|
-
* @param gridY Grid Y position
|
|
56
|
-
* @returns Z-index value
|
|
57
|
-
*/
|
|
58
|
-
export declare function getIsometricZIndex(gridX: number, gridY: number): number;
|
|
59
|
-
/**
|
|
60
|
-
* Get the center point of a tile in screen coordinates
|
|
61
|
-
* @param gridX Grid X position
|
|
62
|
-
* @param gridY Grid Y position
|
|
63
|
-
* @returns Center point in screen space
|
|
64
|
-
*/
|
|
65
|
-
export declare function getTileCenter(gridX: number, gridY: number): IsometricCoords;
|
|
66
|
-
/**
|
|
67
|
-
* Check if a point in screen space is inside an isometric tile
|
|
68
|
-
* @param screenX Screen X coordinate to test
|
|
69
|
-
* @param screenY Screen Y coordinate to test
|
|
70
|
-
* @param gridX Grid X of tile
|
|
71
|
-
* @param gridY Grid Y of tile
|
|
72
|
-
* @returns true if point is inside the diamond
|
|
73
|
-
*/
|
|
74
|
-
export declare function isPointInTile(screenX: number, screenY: number, gridX: number, gridY: number): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Create a path between two grid points for drawing connections
|
|
77
|
-
* Uses simple straight line for now, can be enhanced with pathfinding
|
|
78
|
-
* @param from Starting grid point
|
|
79
|
-
* @param to Ending grid point
|
|
80
|
-
* @param segments Number of segments (for smooth curves)
|
|
81
|
-
* @returns Array of screen coordinates
|
|
82
|
-
*/
|
|
83
|
-
export declare function createIsometricPath(from: GridPoint, to: GridPoint, segments?: number): IsometricCoords[];
|
|
84
|
-
/**
|
|
85
|
-
* Calculate the optimal map dimensions to fit all nodes
|
|
86
|
-
* Adds padding around the edges
|
|
87
|
-
* @param nodes Array of grid points
|
|
88
|
-
* @param padding Padding in tiles
|
|
89
|
-
* @returns Map dimensions {width, height}
|
|
90
|
-
*/
|
|
91
|
-
export declare function calculateMapBounds(nodes: GridPoint[], padding?: number): {
|
|
92
|
-
width: number;
|
|
93
|
-
height: number;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Offset all grid positions by a delta (useful for centering)
|
|
97
|
-
* @param nodes Array of grid points
|
|
98
|
-
* @param deltaX X offset
|
|
99
|
-
* @param deltaY Y offset
|
|
100
|
-
* @returns New array with offset positions
|
|
101
|
-
*/
|
|
102
|
-
export declare function offsetGridPositions(nodes: GridPoint[], deltaX: number, deltaY: number): GridPoint[];
|
|
103
|
-
/**
|
|
104
|
-
* Region bounds for camera calculations
|
|
105
|
-
*/
|
|
106
|
-
export interface RegionBounds {
|
|
107
|
-
x: number;
|
|
108
|
-
y: number;
|
|
109
|
-
width: number;
|
|
110
|
-
height: number;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Camera position result for centering on a region
|
|
114
|
-
*/
|
|
115
|
-
export interface RegionCameraPosition {
|
|
116
|
-
/** Screen X coordinate to center the camera on */
|
|
117
|
-
centerX: number;
|
|
118
|
-
/** Screen Y coordinate to center the camera on */
|
|
119
|
-
centerY: number;
|
|
120
|
-
/** Width of the region in screen pixels */
|
|
121
|
-
screenWidth: number;
|
|
122
|
-
/** Height of the region in screen pixels */
|
|
123
|
-
screenHeight: number;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Calculate the camera position needed to center on a region
|
|
127
|
-
* This computes the screen coordinates for the center point and the
|
|
128
|
-
* screen dimensions of the region for zoom calculations.
|
|
129
|
-
*
|
|
130
|
-
* @param regionCenterX Grid X coordinate of the region center
|
|
131
|
-
* @param regionCenterY Grid Y coordinate of the region center
|
|
132
|
-
* @param bounds The region bounds in grid coordinates
|
|
133
|
-
* @returns Camera position with center point and screen dimensions
|
|
134
|
-
*/
|
|
135
|
-
export declare function calculateRegionCameraPosition(regionCenterX: number, regionCenterY: number, bounds: RegionBounds): RegionCameraPosition;
|
|
136
|
-
/**
|
|
137
|
-
* Convert DOM event coordinates to grid coordinates
|
|
138
|
-
* This handles the full transformation pipeline:
|
|
139
|
-
* 1. DOM event (clientX, clientY) -> viewport screen coords
|
|
140
|
-
* 2. Viewport screen coords -> world coords (accounting for pan/zoom)
|
|
141
|
-
* 3. World coords -> grid coords (isometric conversion)
|
|
142
|
-
*
|
|
143
|
-
* @param clientX DOM event clientX (screen position)
|
|
144
|
-
* @param clientY DOM event clientY (screen position)
|
|
145
|
-
* @param viewport PIXI Viewport instance
|
|
146
|
-
* @param canvasElement The canvas element (for getting bounding rect)
|
|
147
|
-
* @returns Grid coordinates {gridX, gridY}
|
|
148
|
-
*/
|
|
149
|
-
export declare function domEventToGridCoords(clientX: number, clientY: number, viewport: Viewport | null, canvasElement: HTMLElement | null): GridPoint;
|
|
150
|
-
//# sourceMappingURL=isometricUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isometricUtils.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/isometricUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAgB,CAAC;AAC5C,eAAO,MAAM,eAAe,KAAY,CAAC;AAEzC;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,eAAe,CAK1E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAOxE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;EAYzD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,eAAe,CAO3E;AAED;;;;;;;GAOG;AACH,wBAAgB,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WAAW,GAAG,IAAI,GAChC,SAAS,CAoBX"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package Expansion Utilities
|
|
3
|
-
*
|
|
4
|
-
* Converts repositories with multiple packages into multiple GenericNode instances,
|
|
5
|
-
* with each node sized based on individual package file counts.
|
|
6
|
-
*/
|
|
7
|
-
import type { AlexandriaEntryWithMetrics } from '../CollectionMapPanel';
|
|
8
|
-
/**
|
|
9
|
-
* Add package metadata to a repository node for subdivision rendering
|
|
10
|
-
*
|
|
11
|
-
* @param repository - Repository with optional packages array
|
|
12
|
-
* @returns Array of PackageInfo for rendering subdivision, or undefined if no packages
|
|
13
|
-
*/
|
|
14
|
-
export declare function extractPackageInfo(repository: AlexandriaEntryWithMetrics): import('./genericMapper').PackageInfo[] | undefined;
|
|
15
|
-
//# sourceMappingURL=packageExpansion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"packageExpansion.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/packageExpansion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAwBxE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,0BAA0B,GACrC,OAAO,iBAAiB,EAAE,WAAW,EAAE,GAAG,SAAS,CAmCrD"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Procedural pixel art sprite generator for placeholder graphics
|
|
3
|
-
* Creates simple isometric tiles and buildings using Canvas API
|
|
4
|
-
*/
|
|
5
|
-
import type { BiomeTheme, LocationNodeType } from './types';
|
|
6
|
-
/**
|
|
7
|
-
* Color palettes for different biomes (NES-style limited colors)
|
|
8
|
-
*/
|
|
9
|
-
export declare const BIOME_COLORS: Record<BiomeTheme, {
|
|
10
|
-
primary: string;
|
|
11
|
-
secondary: string;
|
|
12
|
-
accent: string;
|
|
13
|
-
}>;
|
|
14
|
-
/**
|
|
15
|
-
* Generate a simple grass background texture (for tiling)
|
|
16
|
-
*/
|
|
17
|
-
export declare function generateGrassBackgroundTile(): HTMLCanvasElement;
|
|
18
|
-
/**
|
|
19
|
-
* Generate an isometric grass tile
|
|
20
|
-
*/
|
|
21
|
-
export declare function generateGrassTile(theme?: BiomeTheme): HTMLCanvasElement;
|
|
22
|
-
/**
|
|
23
|
-
* Generate an isometric path tile
|
|
24
|
-
*/
|
|
25
|
-
export declare function generatePathTile(): HTMLCanvasElement;
|
|
26
|
-
/**
|
|
27
|
-
* Generate an isometric bridge tile (wooden planks over water)
|
|
28
|
-
*/
|
|
29
|
-
export declare function generateBridgeTile(): HTMLCanvasElement;
|
|
30
|
-
/**
|
|
31
|
-
* Generate a simple isometric building/location sprite
|
|
32
|
-
*/
|
|
33
|
-
export declare function generateLocationSprite(type: LocationNodeType, theme: BiomeTheme, size?: number): HTMLCanvasElement;
|
|
34
|
-
/**
|
|
35
|
-
* Generate a decorative sprite (cloud, tree, etc.)
|
|
36
|
-
*/
|
|
37
|
-
export declare function generateDecorativeSprite(type: 'cloud' | 'tree' | 'bush' | 'rock'): HTMLCanvasElement;
|
|
38
|
-
/**
|
|
39
|
-
* Load an image from a URL and draw it to a canvas
|
|
40
|
-
*/
|
|
41
|
-
export declare function loadCustomSprite(imagePath: string): Promise<HTMLCanvasElement | null>;
|
|
42
|
-
/**
|
|
43
|
-
* Generate a complete sprite atlas from all tile types
|
|
44
|
-
* Returns a texture map for PixiJS
|
|
45
|
-
* @param customSprites Optional map of sprite keys to custom image paths
|
|
46
|
-
*/
|
|
47
|
-
export declare function generateSpriteAtlas(customSprites?: Record<string, string>): Promise<Record<string, HTMLCanvasElement>>;
|
|
48
|
-
/**
|
|
49
|
-
* Synchronous version of generateSpriteAtlas for backwards compatibility
|
|
50
|
-
* Does not support custom sprites
|
|
51
|
-
*/
|
|
52
|
-
export declare function generateSpriteAtlasSync(): Record<string, HTMLCanvasElement>;
|
|
53
|
-
//# sourceMappingURL=spriteGenerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spriteGenerator.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/spriteGenerator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,UAAU,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CA0BnG,CAAC;AAYF;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,iBAAiB,CA8B/D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,UAAoB,GAAG,iBAAiB,CAsBhF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,iBAAiB,CAqBpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,iBAAiB,CAwCtD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,UAAU,EACjB,IAAI,GAAE,MAAU,GACf,iBAAiB,CAqcnB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,iBAAiB,CAwCpG;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAmB3F;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CA6E5C;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CA4B3E"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sprite Layout Engine
|
|
3
|
-
* Handles collision-free placement of sprites in regions using circle packing
|
|
4
|
-
*/
|
|
5
|
-
export interface LayoutNode {
|
|
6
|
-
id: string;
|
|
7
|
-
gridX: number;
|
|
8
|
-
gridY: number;
|
|
9
|
-
size: number;
|
|
10
|
-
language?: string;
|
|
11
|
-
lastEditedAt?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface RegionBounds {
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
}
|
|
17
|
-
export interface LayoutOptions {
|
|
18
|
-
/** Minimum spacing between sprite boundaries in tiles (default: 0.5) */
|
|
19
|
-
spacing?: number;
|
|
20
|
-
/** Start position offset from top-left (default: boundary radius of first sprite) */
|
|
21
|
-
startOffset?: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Layout sprites in a region using circle packing
|
|
25
|
-
* Places sprites starting from top-left, largest first
|
|
26
|
-
*
|
|
27
|
-
* @param nodes - Nodes to layout (must have id and size)
|
|
28
|
-
* @param bounds - Region boundaries
|
|
29
|
-
* @param options - Layout options
|
|
30
|
-
* @returns Array of nodes with assigned positions, and array of nodes that didn't fit
|
|
31
|
-
*/
|
|
32
|
-
export declare function layoutSpritesInRegion(nodes: Array<{
|
|
33
|
-
id: string;
|
|
34
|
-
size: number;
|
|
35
|
-
language?: string;
|
|
36
|
-
}>, bounds: RegionBounds, options?: LayoutOptions): {
|
|
37
|
-
placed: LayoutNode[];
|
|
38
|
-
overflow: Array<{
|
|
39
|
-
id: string;
|
|
40
|
-
size: number;
|
|
41
|
-
language?: string;
|
|
42
|
-
}>;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Calculate region capacity metrics
|
|
46
|
-
*/
|
|
47
|
-
export interface RegionCapacity {
|
|
48
|
-
totalArea: number;
|
|
49
|
-
usedArea: number;
|
|
50
|
-
remainingArea: number;
|
|
51
|
-
utilization: number;
|
|
52
|
-
isFull: boolean;
|
|
53
|
-
}
|
|
54
|
-
export declare function calculateRegionCapacity(placedNodes: LayoutNode[], bounds: RegionBounds): RegionCapacity;
|
|
55
|
-
/**
|
|
56
|
-
* Region with positioned nodes
|
|
57
|
-
*/
|
|
58
|
-
export interface LayoutRegion {
|
|
59
|
-
regionId: string;
|
|
60
|
-
gridPosition: {
|
|
61
|
-
row: number;
|
|
62
|
-
col: number;
|
|
63
|
-
};
|
|
64
|
-
bounds: {
|
|
65
|
-
x: number;
|
|
66
|
-
y: number;
|
|
67
|
-
width: number;
|
|
68
|
-
height: number;
|
|
69
|
-
};
|
|
70
|
-
nodes: LayoutNode[];
|
|
71
|
-
capacity: RegionCapacity;
|
|
72
|
-
ageBucket?: AgeBucket;
|
|
73
|
-
name?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Age bucket definitions for region grouping
|
|
77
|
-
*/
|
|
78
|
-
export declare enum AgeBucket {
|
|
79
|
-
LAST_MONTH = "last-month",
|
|
80
|
-
LAST_3_MONTHS = "last-3-months",
|
|
81
|
-
LAST_YEAR = "last-year",
|
|
82
|
-
OLDER = "older"
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Layout sprites across multiple regions if needed
|
|
86
|
-
* Groups nodes by age (last edited) before packing:
|
|
87
|
-
* - Last month → First region(s)
|
|
88
|
-
* - Last 3 months → Next region(s)
|
|
89
|
-
* - Last year → Next region(s)
|
|
90
|
-
* - Older → Final region(s)
|
|
91
|
-
*
|
|
92
|
-
* @param nodes - Nodes to layout
|
|
93
|
-
* @param regionSize - Size of each region in tiles (default: 25)
|
|
94
|
-
* @param options - Layout options
|
|
95
|
-
* @returns Array of regions with positioned nodes
|
|
96
|
-
*/
|
|
97
|
-
export declare function layoutSpritesMultiRegion(nodes: Array<{
|
|
98
|
-
id: string;
|
|
99
|
-
size: number;
|
|
100
|
-
language?: string;
|
|
101
|
-
lastEditedAt?: string;
|
|
102
|
-
}>, regionSize?: number, options?: LayoutOptions): LayoutRegion[];
|
|
103
|
-
//# sourceMappingURL=spriteLayoutEngine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spriteLayoutEngine.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/spriteLayoutEngine.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2FD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EAC7D,MAAM,EAAE,YAAY,EACpB,OAAO,GAAE,aAAkB,GAC1B;IAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CA2B5F;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,UAAU,EAAE,EACzB,MAAM,EAAE,YAAY,GACnB,cAAc,CAoBhB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,KAAK,UAAU;CAChB;AAyCD;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACpF,UAAU,GAAE,MAAW,EACvB,OAAO,GAAE,aAAkB,GAC1B,YAAY,EAAE,CAyFhB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GitHub Star Decoration System
|
|
3
|
-
* Determines decoration type and visual style based on star count
|
|
4
|
-
*/
|
|
5
|
-
export interface StarTier {
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
name: string;
|
|
9
|
-
decorationType: 'flag' | 'trophy' | 'statue';
|
|
10
|
-
color: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const STAR_TIERS: StarTier[];
|
|
13
|
-
/**
|
|
14
|
-
* Get the star tier for a given star count
|
|
15
|
-
*/
|
|
16
|
-
export declare function getStarTier(stars: number): StarTier | null;
|
|
17
|
-
/**
|
|
18
|
-
* Format star count for display (e.g., 1.2k, 45.3k, 1.2M)
|
|
19
|
-
*/
|
|
20
|
-
export declare function formatStarCount(stars: number): string;
|
|
21
|
-
/**
|
|
22
|
-
* Calculate extra size multiplier needed to accommodate star decorations
|
|
23
|
-
* Decorations need roughly 20-30% extra horizontal space
|
|
24
|
-
*
|
|
25
|
-
* @param stars - GitHub star count
|
|
26
|
-
* @returns Extra size multiplier to add (0.0 - 0.4)
|
|
27
|
-
*/
|
|
28
|
-
export declare function getDecorationSizeBonus(stars: number): number;
|
|
29
|
-
//# sourceMappingURL=starDecoration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"starDecoration.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/starDecoration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,QAAQ,EA6EhC,CAAC;AAEF;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAU1D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAiB5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/test-setup.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|