@industry-theme/repository-composition-panels 0.2.54 → 0.2.56
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-7ZG9gi25.js +593 -0
- package/dist/BufferResource-7ZG9gi25.js.map +1 -0
- package/dist/CanvasRenderer-C3lxf5_p.js +1525 -0
- package/dist/CanvasRenderer-C3lxf5_p.js.map +1 -0
- package/dist/Filter-DTcLrzpd.js +81 -0
- package/dist/Filter-DTcLrzpd.js.map +1 -0
- package/dist/RenderTargetSystem-BMwTjFRu.js +3046 -0
- package/dist/RenderTargetSystem-BMwTjFRu.js.map +1 -0
- package/dist/WebGLRenderer-C1WxucO3.js +3884 -0
- package/dist/WebGLRenderer-C1WxucO3.js.map +1 -0
- package/dist/WebGPURenderer-CStGpA3z.js +2142 -0
- package/dist/WebGPURenderer-CStGpA3z.js.map +1 -0
- package/dist/browserAll-CvLsOAZt.js +2687 -0
- package/dist/browserAll-CvLsOAZt.js.map +1 -0
- package/dist/index-v-8srNgr.js +87198 -0
- package/dist/index-v-8srNgr.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/init-Dc6cN5o5.js +670 -0
- package/dist/init-Dc6cN5o5.js.map +1 -0
- package/dist/panels/CollectionMapPanel.d.ts +68 -0
- package/dist/panels/CollectionMapPanel.d.ts.map +1 -0
- package/dist/panels/GitProjectsMapPanel.d.ts +50 -0
- package/dist/panels/GitProjectsMapPanel.d.ts.map +1 -0
- package/dist/panels/PackageCompositionPanel.d.ts +3 -1
- package/dist/panels/PackageCompositionPanel.d.ts.map +1 -1
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts.map +1 -1
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts.map +1 -1
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts +35 -0
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +1 -0
- package/dist/panels/overworld-map/dataConverter.d.ts +28 -0
- package/dist/panels/overworld-map/dataConverter.d.ts.map +1 -0
- package/dist/panels/overworld-map/genericMapper.d.ts +43 -0
- package/dist/panels/overworld-map/genericMapper.d.ts.map +1 -0
- package/dist/panels/overworld-map/index.d.ts +13 -0
- package/dist/panels/overworld-map/index.d.ts.map +1 -0
- package/dist/panels/overworld-map/isometricUtils.d.ts +102 -0
- package/dist/panels/overworld-map/isometricUtils.d.ts.map +1 -0
- package/dist/panels/overworld-map/spriteGenerator.d.ts +35 -0
- package/dist/panels/overworld-map/spriteGenerator.d.ts.map +1 -0
- package/dist/panels/overworld-map/test-setup.d.ts +6 -0
- package/dist/panels/overworld-map/test-setup.d.ts.map +1 -0
- package/dist/panels/overworld-map/types.d.ts +197 -0
- package/dist/panels/overworld-map/types.d.ts.map +1 -0
- package/dist/panels.bundle.js +39 -60772
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/dependencies.d.ts +2 -24
- package/dist/types/dependencies.d.ts.map +1 -1
- package/dist/webworkerAll-LYLt9MVw.js +3 -0
- package/dist/webworkerAll-LYLt9MVw.js.map +1 -0
- package/package.json +9 -6
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core type definitions for 8-bit overworld map
|
|
3
|
+
*/
|
|
4
|
+
export declare const TILE_SIZE = 32;
|
|
5
|
+
/**
|
|
6
|
+
* Basic point in grid coordinates
|
|
7
|
+
*/
|
|
8
|
+
export interface GridPoint {
|
|
9
|
+
gridX: number;
|
|
10
|
+
gridY: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Theme/Biome types for different package languages
|
|
14
|
+
*/
|
|
15
|
+
export type BiomeTheme = 'grass' | 'desert' | 'water' | 'volcano' | 'ice';
|
|
16
|
+
/**
|
|
17
|
+
* Tile types for the terrain grid
|
|
18
|
+
*/
|
|
19
|
+
export type TileType = 'grass' | 'water' | 'path' | 'mountain' | 'sand' | 'ice' | 'lava' | 'empty';
|
|
20
|
+
/**
|
|
21
|
+
* Individual tile in the grid
|
|
22
|
+
*/
|
|
23
|
+
export interface Tile {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
type: TileType;
|
|
27
|
+
spriteIndex: number;
|
|
28
|
+
biome: BiomeTheme;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Location node types (different building/landmark types)
|
|
32
|
+
*/
|
|
33
|
+
export type LocationNodeType = 'castle' | 'fortress' | 'house' | 'tower' | 'pipe' | 'git-repo' | 'monorepo';
|
|
34
|
+
/**
|
|
35
|
+
* Location node representing a package on the map
|
|
36
|
+
*/
|
|
37
|
+
export interface LocationNode {
|
|
38
|
+
id: string;
|
|
39
|
+
gridX: number;
|
|
40
|
+
gridY: number;
|
|
41
|
+
type: LocationNodeType;
|
|
42
|
+
sprite: string;
|
|
43
|
+
size: number;
|
|
44
|
+
theme: BiomeTheme;
|
|
45
|
+
label: string;
|
|
46
|
+
packageType: 'node' | 'python' | 'cargo' | 'go' | 'package';
|
|
47
|
+
isRoot: boolean;
|
|
48
|
+
color: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Path connection style
|
|
52
|
+
*/
|
|
53
|
+
export type PathStyle = 'dotted' | 'solid' | 'dashed' | 'bridge';
|
|
54
|
+
/**
|
|
55
|
+
* Path connection type
|
|
56
|
+
*/
|
|
57
|
+
export type PathConnectionType = 'dependency' | 'dev-dependency';
|
|
58
|
+
/**
|
|
59
|
+
* Connection path between two locations
|
|
60
|
+
*/
|
|
61
|
+
export interface PathConnection {
|
|
62
|
+
id: string;
|
|
63
|
+
from: string;
|
|
64
|
+
to: string;
|
|
65
|
+
points: GridPoint[];
|
|
66
|
+
type: PathConnectionType;
|
|
67
|
+
style: PathStyle;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Decorative sprite types
|
|
71
|
+
*/
|
|
72
|
+
export type DecorativeSpriteType = 'cloud' | 'tree' | 'bush' | 'rock' | 'flower' | 'mushroom' | 'cactus';
|
|
73
|
+
/**
|
|
74
|
+
* Layer for z-ordering
|
|
75
|
+
*/
|
|
76
|
+
export type RenderLayer = 'background' | 'foreground';
|
|
77
|
+
/**
|
|
78
|
+
* Decorative sprite for visual flair
|
|
79
|
+
*/
|
|
80
|
+
export interface DecorativeSprite {
|
|
81
|
+
id: string;
|
|
82
|
+
gridX: number;
|
|
83
|
+
gridY: number;
|
|
84
|
+
sprite: DecorativeSpriteType;
|
|
85
|
+
layer: RenderLayer;
|
|
86
|
+
animated?: boolean;
|
|
87
|
+
animationSpeed?: number;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Biome zone definition
|
|
91
|
+
*/
|
|
92
|
+
export interface BiomeZone {
|
|
93
|
+
id: string;
|
|
94
|
+
bounds: {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
};
|
|
100
|
+
theme: BiomeTheme;
|
|
101
|
+
backgroundColor: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Camera/viewport configuration
|
|
105
|
+
*/
|
|
106
|
+
export interface Camera {
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
109
|
+
viewportWidth: number;
|
|
110
|
+
viewportHeight: number;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Map limits and configuration
|
|
114
|
+
*/
|
|
115
|
+
export declare const MAX_NODES_PER_MAP = 12;
|
|
116
|
+
export declare const MAP_TRANSITION_THRESHOLD = 10;
|
|
117
|
+
/**
|
|
118
|
+
* Region within a unified map
|
|
119
|
+
*/
|
|
120
|
+
export interface MapRegion {
|
|
121
|
+
id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
bounds: {
|
|
125
|
+
x: number;
|
|
126
|
+
y: number;
|
|
127
|
+
width: number;
|
|
128
|
+
height: number;
|
|
129
|
+
};
|
|
130
|
+
centerX: number;
|
|
131
|
+
centerY: number;
|
|
132
|
+
nodeIds: string[];
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Complete overworld map data structure (unified map with regions)
|
|
136
|
+
*/
|
|
137
|
+
export interface OverworldMap {
|
|
138
|
+
width: number;
|
|
139
|
+
height: number;
|
|
140
|
+
tiles: Tile[];
|
|
141
|
+
nodes: LocationNode[];
|
|
142
|
+
paths: PathConnection[];
|
|
143
|
+
decorations?: DecorativeSprite[];
|
|
144
|
+
biomeZones?: BiomeZone[];
|
|
145
|
+
regions: MapRegion[];
|
|
146
|
+
name: string;
|
|
147
|
+
description?: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Collection of multiple overworld maps (deprecated - use single map with regions)
|
|
151
|
+
* @deprecated Use OverworldMap with regions instead
|
|
152
|
+
*/
|
|
153
|
+
export interface OverworldMapCollection {
|
|
154
|
+
maps: OverworldMap[];
|
|
155
|
+
currentMapIndex: number;
|
|
156
|
+
totalPackages: number;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Isometric coordinate conversion
|
|
160
|
+
*/
|
|
161
|
+
export interface IsometricCoords {
|
|
162
|
+
screenX: number;
|
|
163
|
+
screenY: number;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Sprite definition in atlas
|
|
167
|
+
*/
|
|
168
|
+
export interface SpriteDefinition {
|
|
169
|
+
name: string;
|
|
170
|
+
x: number;
|
|
171
|
+
y: number;
|
|
172
|
+
width: number;
|
|
173
|
+
height: number;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Sprite atlas/tileset
|
|
177
|
+
*/
|
|
178
|
+
export interface SpriteAtlas {
|
|
179
|
+
image?: HTMLImageElement;
|
|
180
|
+
imageUrl?: string;
|
|
181
|
+
sprites: Record<string, SpriteDefinition>;
|
|
182
|
+
tileSize: number;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Map configuration/settings
|
|
186
|
+
*/
|
|
187
|
+
export interface MapConfig {
|
|
188
|
+
showGrid: boolean;
|
|
189
|
+
showPaths: boolean;
|
|
190
|
+
showDecorations: boolean;
|
|
191
|
+
enableAnimations: boolean;
|
|
192
|
+
cameraSpeed: number;
|
|
193
|
+
zoomSpeed: number;
|
|
194
|
+
minZoom: number;
|
|
195
|
+
maxZoom: number;
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CA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