@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,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Collaborator Decoration System
|
|
3
|
-
* Defines tiers and decorations for repository collaborators
|
|
4
|
-
*/
|
|
5
|
-
export interface CollaboratorTier {
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
name: string;
|
|
9
|
-
decorationType: 'bench' | 'pavilion' | 'gazebo' | 'bandstand';
|
|
10
|
-
color: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Tier definitions for collaborator decorations
|
|
14
|
-
* Uses community space metaphor: bench → pavilion → gazebo → bandstand
|
|
15
|
-
*/
|
|
16
|
-
export declare const COLLABORATOR_TIERS: CollaboratorTier[];
|
|
17
|
-
/**
|
|
18
|
-
* Get the collaborator tier for a given count
|
|
19
|
-
*/
|
|
20
|
-
export declare function getCollaboratorTier(count: number): CollaboratorTier | null;
|
|
21
|
-
/**
|
|
22
|
-
* Calculate size bonus for layout to accommodate decoration
|
|
23
|
-
* Community spaces are compact, so smaller bonuses than stars
|
|
24
|
-
*/
|
|
25
|
-
export declare function getCollaboratorDecorationSizeBonus(count: number): number;
|
|
26
|
-
/**
|
|
27
|
-
* Format collaborator count for display
|
|
28
|
-
*/
|
|
29
|
-
export declare function formatCollaboratorCount(count: number): string;
|
|
30
|
-
//# sourceMappingURL=collaboratorDecoration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaboratorDecoration.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/collaboratorDecoration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC9D,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EA4ChD,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAM1E;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgBxE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ7D"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IsometricInteractionManager - Manages all sprite interactions
|
|
3
|
-
*
|
|
4
|
-
* This component handles:
|
|
5
|
-
* - Sprite drag-and-drop with viewport pause/resume
|
|
6
|
-
* - Grid snapping on release
|
|
7
|
-
* - Hover state management
|
|
8
|
-
* - Intersection detection with visual feedback
|
|
9
|
-
* - Region boundary constraints
|
|
10
|
-
* - Event callbacks for React integration
|
|
11
|
-
*/
|
|
12
|
-
import type { Viewport } from 'pixi-viewport';
|
|
13
|
-
import type { Container } from 'pixi.js';
|
|
14
|
-
import type { SpriteInstance } from './IsometricRenderer';
|
|
15
|
-
import type { GridPoint, MapRegion } from '../types';
|
|
16
|
-
export interface IsometricInteractionConfig {
|
|
17
|
-
viewport: Viewport | null;
|
|
18
|
-
worldContainer: Container;
|
|
19
|
-
tileWidth?: number;
|
|
20
|
-
tileHeight?: number;
|
|
21
|
-
regionSize?: number;
|
|
22
|
-
highlightColor?: number;
|
|
23
|
-
selectedColor?: number;
|
|
24
|
-
intersectionColor?: number;
|
|
25
|
-
containerOffset?: {
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
};
|
|
29
|
-
mapBounds?: {
|
|
30
|
-
minX: number;
|
|
31
|
-
minY: number;
|
|
32
|
-
maxX: number;
|
|
33
|
-
maxY: number;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export interface IsometricInteractionEvents {
|
|
37
|
-
onDragStart?: (nodeId: string) => void;
|
|
38
|
-
onDragMove?: (nodeId: string, gridX: number, gridY: number) => void;
|
|
39
|
-
onDragEnd?: (nodeId: string, gridX: number, gridY: number) => void;
|
|
40
|
-
onClick?: (nodeId: string | null) => void;
|
|
41
|
-
onHover?: (nodeId: string) => void;
|
|
42
|
-
onHoverEnd?: (nodeId: string) => void;
|
|
43
|
-
onRegionChange?: (region: MapRegion | null) => void;
|
|
44
|
-
/** Fired when hovering over a specific package within a monorepo */
|
|
45
|
-
onPackageHover?: (nodeId: string, packageName: string) => void;
|
|
46
|
-
/** Fired when hover ends on a specific package within a monorepo */
|
|
47
|
-
onPackageHoverEnd?: (nodeId: string, packageName: string) => void;
|
|
48
|
-
/** Fired when clicking on a specific package within a monorepo */
|
|
49
|
-
onPackageClick?: (nodeId: string, packageName: string) => void;
|
|
50
|
-
}
|
|
51
|
-
export declare class IsometricInteractionManager {
|
|
52
|
-
private viewport;
|
|
53
|
-
private worldContainer;
|
|
54
|
-
private config;
|
|
55
|
-
private events;
|
|
56
|
-
private sprites;
|
|
57
|
-
private dragState;
|
|
58
|
-
private hoveredNodeId;
|
|
59
|
-
private selectedNodeId;
|
|
60
|
-
private draggingEnabled;
|
|
61
|
-
private mapBounds;
|
|
62
|
-
private clickConsumedBySprite;
|
|
63
|
-
private readonly hoverColor;
|
|
64
|
-
private readonly selectedColor;
|
|
65
|
-
constructor(config: IsometricInteractionConfig, events?: IsometricInteractionEvents);
|
|
66
|
-
/**
|
|
67
|
-
* Set up background click handler to deselect when clicking on empty space
|
|
68
|
-
*/
|
|
69
|
-
private setupBackgroundDeselect;
|
|
70
|
-
/**
|
|
71
|
-
* Register a sprite for interaction
|
|
72
|
-
* Extracted from IsometricGridTest.tsx lines 172-243
|
|
73
|
-
*/
|
|
74
|
-
registerSprite(id: string, instance: SpriteInstance): void;
|
|
75
|
-
/**
|
|
76
|
-
* Unregister a sprite
|
|
77
|
-
*/
|
|
78
|
-
unregisterSprite(id: string): void;
|
|
79
|
-
/**
|
|
80
|
-
* Clear all sprite registrations
|
|
81
|
-
* Used when scene is recreated but interaction manager persists
|
|
82
|
-
*/
|
|
83
|
-
clearSprites(): void;
|
|
84
|
-
/**
|
|
85
|
-
* Handle pointer down - start dragging
|
|
86
|
-
*/
|
|
87
|
-
private onPointerDown;
|
|
88
|
-
/**
|
|
89
|
-
* Clamp grid position to map bounds, accounting for sprite boundary size
|
|
90
|
-
*/
|
|
91
|
-
private clampToMapBounds;
|
|
92
|
-
/**
|
|
93
|
-
* Handle global pointer move - update drag
|
|
94
|
-
* Extracted from IsometricGridTest.tsx lines 192-211
|
|
95
|
-
*/
|
|
96
|
-
private onGlobalPointerMove;
|
|
97
|
-
/**
|
|
98
|
-
* Handle pointer up - end dragging and snap to grid
|
|
99
|
-
* Extracted from IsometricGridTest.tsx lines 221-231
|
|
100
|
-
*/
|
|
101
|
-
private onPointerUp;
|
|
102
|
-
/**
|
|
103
|
-
* Handle pointer up outside - end dragging
|
|
104
|
-
*/
|
|
105
|
-
private onPointerUpOutside;
|
|
106
|
-
/**
|
|
107
|
-
* Update highlights for sprites near the dragged sprite
|
|
108
|
-
* Shows highlights for sprites within 1 tile of the dragged sprite's boundary
|
|
109
|
-
*/
|
|
110
|
-
private updateNearbyHighlights;
|
|
111
|
-
/**
|
|
112
|
-
* Finish dragging - snap to grid and cleanup
|
|
113
|
-
*/
|
|
114
|
-
private finishDrag;
|
|
115
|
-
/**
|
|
116
|
-
* Handle pointer over - show highlight
|
|
117
|
-
*/
|
|
118
|
-
private onPointerOver;
|
|
119
|
-
/**
|
|
120
|
-
* Handle pointer out - hide highlight (unless dragging or selected)
|
|
121
|
-
*/
|
|
122
|
-
private onPointerOut;
|
|
123
|
-
/**
|
|
124
|
-
* Enable or disable dragging
|
|
125
|
-
*/
|
|
126
|
-
setDraggable(enabled: boolean): void;
|
|
127
|
-
/**
|
|
128
|
-
* Set the selected node
|
|
129
|
-
*/
|
|
130
|
-
setSelected(nodeId: string | null): void;
|
|
131
|
-
/**
|
|
132
|
-
* Get the currently selected node ID
|
|
133
|
-
*/
|
|
134
|
-
getSelectedNodeId(): string | null;
|
|
135
|
-
/**
|
|
136
|
-
* Update highlight color based on selected state
|
|
137
|
-
*/
|
|
138
|
-
private updateHighlightColor;
|
|
139
|
-
/**
|
|
140
|
-
* Check if position would cause boundary overlap with other sprites
|
|
141
|
-
* Boundary size is 4 × size tiles, extending 2 × size in each direction
|
|
142
|
-
*/
|
|
143
|
-
private wouldCollide;
|
|
144
|
-
/**
|
|
145
|
-
* Check intersections between dragged sprite and other sprites
|
|
146
|
-
* Returns array of intersecting sprite IDs
|
|
147
|
-
* Extracted from OverworldMapPanel.tsx lines 745-763
|
|
148
|
-
*/
|
|
149
|
-
checkIntersections(draggedId: string, position: GridPoint): string[];
|
|
150
|
-
/**
|
|
151
|
-
* Check if a sprite is currently being dragged
|
|
152
|
-
*/
|
|
153
|
-
isDragging(): boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Cleanup resources
|
|
156
|
-
*/
|
|
157
|
-
destroy(): void;
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=IsometricInteractionManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsometricInteractionManager.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/IsometricInteractionManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAyB,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;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,CAAC,YAAY;IA2BpB;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,MAAM,EAAE;IA0CpE;;OAEG;IACH,UAAU,IAAI,OAAO;IAIrB;;OAEG;IACH,OAAO,IAAI,IAAI;CAkBhB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IsometricPathManager - Manages dynamic path updates during sprite drag
|
|
3
|
-
*
|
|
4
|
-
* This helper class handles:
|
|
5
|
-
* - Tracking node-to-path relationships
|
|
6
|
-
* - Updating only affected paths during drag
|
|
7
|
-
* - Reusing Graphics objects for efficiency
|
|
8
|
-
*/
|
|
9
|
-
import type { Graphics } from 'pixi.js';
|
|
10
|
-
import type { GridPoint } from '../types';
|
|
11
|
-
import type { IsometricRenderer } from './IsometricRenderer';
|
|
12
|
-
export interface PathConnectionData {
|
|
13
|
-
id: string;
|
|
14
|
-
fromNodeId: string;
|
|
15
|
-
toNodeId: string;
|
|
16
|
-
graphics: Graphics;
|
|
17
|
-
}
|
|
18
|
-
export declare class IsometricPathManager {
|
|
19
|
-
private pathConnections;
|
|
20
|
-
private nodePositions;
|
|
21
|
-
private renderer;
|
|
22
|
-
private nodeToPathsIndex;
|
|
23
|
-
constructor(pathConnections: PathConnectionData[], nodePositions: Map<string, GridPoint>, renderer: IsometricRenderer);
|
|
24
|
-
/**
|
|
25
|
-
* Build index of node-to-paths relationships for fast lookup
|
|
26
|
-
*/
|
|
27
|
-
private buildIndex;
|
|
28
|
-
/**
|
|
29
|
-
* Update paths connected to a moving node
|
|
30
|
-
* Extracted from OverworldMapPanel.tsx lines 569, 636, 739
|
|
31
|
-
*/
|
|
32
|
-
updateNodePosition(nodeId: string, gridX: number, gridY: number): void;
|
|
33
|
-
/**
|
|
34
|
-
* Get all paths connected to a node
|
|
35
|
-
*/
|
|
36
|
-
getConnectedPaths(nodeId: string): PathConnectionData[];
|
|
37
|
-
/**
|
|
38
|
-
* Add a new path (for dynamic path creation)
|
|
39
|
-
*/
|
|
40
|
-
addPath(path: PathConnectionData): void;
|
|
41
|
-
/**
|
|
42
|
-
* Remove a path (for dynamic path removal)
|
|
43
|
-
*/
|
|
44
|
-
removePath(pathId: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Cleanup resources
|
|
47
|
-
*/
|
|
48
|
-
destroy(): void;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=IsometricPathManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsometricPathManager.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/IsometricPathManager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAoB;IAGpC,OAAO,CAAC,gBAAgB,CAAgD;gBAGtE,eAAe,EAAE,kBAAkB,EAAE,EACrC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EACrC,QAAQ,EAAE,iBAAiB;IAU7B;;OAEG;IACH,OAAO,CAAC,UAAU;IAgBlB;;;OAGG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAkBtE;;OAEG;IACH,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE;IAIvD;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAevC;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IA4BhC;;OAEG;IACH,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IsometricPixiCanvas - Manages Pixi Application lifecycle and pixi-viewport integration
|
|
3
|
-
*
|
|
4
|
-
* This component handles:
|
|
5
|
-
* - Pixi.js Application initialization and cleanup
|
|
6
|
-
* - pixi-viewport integration with plugins (drag, wheel, pinch, decelerate)
|
|
7
|
-
* - Camera animation with easing
|
|
8
|
-
* - Responsive resize handling
|
|
9
|
-
* - Region-aware viewport scaling
|
|
10
|
-
*/
|
|
11
|
-
import { Application } from 'pixi.js';
|
|
12
|
-
import { Viewport } from 'pixi-viewport';
|
|
13
|
-
export interface IsometricPixiCanvasConfig {
|
|
14
|
-
container: HTMLElement;
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
worldWidth: number;
|
|
18
|
-
worldHeight: number;
|
|
19
|
-
backgroundColor?: number;
|
|
20
|
-
minZoom?: number;
|
|
21
|
-
maxZoom?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface IsometricPixiCanvasEvents {
|
|
24
|
-
onViewportMove?: (x: number, y: number) => void;
|
|
25
|
-
onZoom?: (scale: number) => void;
|
|
26
|
-
}
|
|
27
|
-
export declare class IsometricPixiCanvas {
|
|
28
|
-
private _app;
|
|
29
|
-
private _viewport;
|
|
30
|
-
private config;
|
|
31
|
-
private events;
|
|
32
|
-
private resizeObserver;
|
|
33
|
-
private animationFrameId;
|
|
34
|
-
constructor(config: IsometricPixiCanvasConfig, events?: IsometricPixiCanvasEvents);
|
|
35
|
-
/**
|
|
36
|
-
* Initialize Pixi Application and viewport
|
|
37
|
-
* Returns the app and viewport instances for further setup
|
|
38
|
-
*/
|
|
39
|
-
init(): Promise<{
|
|
40
|
-
app: Application;
|
|
41
|
-
viewport: Viewport;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Get the Pixi Application instance
|
|
45
|
-
*/
|
|
46
|
-
get app(): Application;
|
|
47
|
-
/**
|
|
48
|
-
* Get the pixi-viewport instance
|
|
49
|
-
*/
|
|
50
|
-
get viewport(): Viewport;
|
|
51
|
-
/**
|
|
52
|
-
* Get the HTML canvas element
|
|
53
|
-
*/
|
|
54
|
-
get canvas(): HTMLCanvasElement;
|
|
55
|
-
/**
|
|
56
|
-
* Setup resize observer for responsive handling
|
|
57
|
-
* Extracted from OverworldMapPanel.tsx lines 830-886
|
|
58
|
-
*/
|
|
59
|
-
private setupResizeObserver;
|
|
60
|
-
/**
|
|
61
|
-
* Resize the canvas and viewport
|
|
62
|
-
*/
|
|
63
|
-
resize(width: number, height: number): void;
|
|
64
|
-
/**
|
|
65
|
-
* Move viewport center immediately or smoothly
|
|
66
|
-
*/
|
|
67
|
-
moveCenter(x: number, y: number, immediate?: boolean): void;
|
|
68
|
-
/**
|
|
69
|
-
* Animate viewport to a position with easing
|
|
70
|
-
* Extracted from OverworldMapPanel.tsx lines 772-825
|
|
71
|
-
*/
|
|
72
|
-
animateTo(targetX: number, targetY: number, duration?: number, easing?: (t: number) => number): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Fit viewport to a region with padding
|
|
75
|
-
* Extracted from OverworldMapPanel.tsx lines 772-800 (scale calculation)
|
|
76
|
-
*/
|
|
77
|
-
fitToRegion(bounds: {
|
|
78
|
-
x: number;
|
|
79
|
-
y: number;
|
|
80
|
-
width: number;
|
|
81
|
-
height: number;
|
|
82
|
-
}, padding?: number): void;
|
|
83
|
-
/**
|
|
84
|
-
* Cleanup resources
|
|
85
|
-
*/
|
|
86
|
-
destroy(): void;
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=IsometricPixiCanvas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsometricPixiCanvas.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/IsometricPixiCanvas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,WAAW,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAUD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,IAAI,CAA4B;IACxC,OAAO,CAAC,SAAS,CAAyB;IAC1C,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,gBAAgB,CAAuB;gBAEnC,MAAM,EAAE,yBAAyB,EAAE,MAAM,GAAE,yBAA8B;IAKrF;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC;QAAE,GAAG,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAE,CAAC;IAuD/D;;OAEG;IACH,IAAI,GAAG,IAAI,WAAW,CAKrB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,QAAQ,CAKvB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,iBAAiB,CAE9B;IAED;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAgB3B;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAU3C;;OAEG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,IAAI;IAazD;;;OAGG;IACG,SAAS,CACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,QAAQ,SAAM,EACd,MAAM,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;IAsChB;;;OAGG;IACH,WAAW,CACT,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAC/D,OAAO,SAAK,GACX,IAAI;IAoBP;;OAEG;IACH,OAAO,IAAI,IAAI;CAyBhB"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IsometricRenderer - Unified rendering for all map elements
|
|
3
|
-
*
|
|
4
|
-
* This component handles:
|
|
5
|
-
* - Grid rendering with region boundaries
|
|
6
|
-
* - Terrain tile rendering with z-index sorting
|
|
7
|
-
* - Path rendering with arrows and styling
|
|
8
|
-
* - Sprite rendering with scaling, aging, and weathering effects
|
|
9
|
-
* - Dynamic updates for dragging
|
|
10
|
-
*/
|
|
11
|
-
import { Container, Graphics, Sprite, Text, Texture } from 'pixi.js';
|
|
12
|
-
import type { Viewport } from 'pixi-viewport';
|
|
13
|
-
import type { OverworldMap, Tile, PathConnection, LocationNode, GridPoint } from '../types';
|
|
14
|
-
export interface SpriteInstance {
|
|
15
|
-
sprite: Sprite;
|
|
16
|
-
highlight: Graphics;
|
|
17
|
-
label: Text;
|
|
18
|
-
hoverLabel?: Text;
|
|
19
|
-
weathering?: Graphics;
|
|
20
|
-
licenseGround?: Graphics | Container;
|
|
21
|
-
licenseSign?: Container;
|
|
22
|
-
ownerAvatar?: Container;
|
|
23
|
-
starDecoration?: Container;
|
|
24
|
-
collaboratorDecoration?: Container;
|
|
25
|
-
gridPosition: {
|
|
26
|
-
gridX: number;
|
|
27
|
-
gridY: number;
|
|
28
|
-
};
|
|
29
|
-
size: number;
|
|
30
|
-
spriteKey: string;
|
|
31
|
-
update(gridX: number, gridY: number): void;
|
|
32
|
-
destroy(): void;
|
|
33
|
-
}
|
|
34
|
-
export interface SceneContainers {
|
|
35
|
-
background: Container;
|
|
36
|
-
tiles: Container;
|
|
37
|
-
licenseGrounds: Container;
|
|
38
|
-
bridges: Container;
|
|
39
|
-
paths: Container;
|
|
40
|
-
nodes: Container;
|
|
41
|
-
spriteInstances: Map<string, SpriteInstance>;
|
|
42
|
-
pathGraphics: Map<string, Graphics>;
|
|
43
|
-
}
|
|
44
|
-
export interface IsometricRendererConfig {
|
|
45
|
-
viewport: Viewport;
|
|
46
|
-
atlas: Record<string, Texture>;
|
|
47
|
-
tileWidth?: number;
|
|
48
|
-
tileHeight?: number;
|
|
49
|
-
gridColor?: number;
|
|
50
|
-
regionColor?: number;
|
|
51
|
-
/** Callback when hovering over a package within a monorepo */
|
|
52
|
-
onPackageHover?: (nodeId: string, packageName: string) => void;
|
|
53
|
-
/** Callback when hover ends on a package within a monorepo */
|
|
54
|
-
onPackageHoverEnd?: (nodeId: string, packageName: string) => void;
|
|
55
|
-
/** Callback when clicking on a package within a monorepo */
|
|
56
|
-
onPackageClick?: (nodeId: string, packageName: string) => void;
|
|
57
|
-
}
|
|
58
|
-
export declare class IsometricRenderer {
|
|
59
|
-
private viewport;
|
|
60
|
-
private atlas;
|
|
61
|
-
private tileWidth;
|
|
62
|
-
private tileHeight;
|
|
63
|
-
private gridColor;
|
|
64
|
-
private regionColor;
|
|
65
|
-
private onPackageHover?;
|
|
66
|
-
private onPackageHoverEnd?;
|
|
67
|
-
private onPackageClick?;
|
|
68
|
-
constructor(config: IsometricRendererConfig);
|
|
69
|
-
/**
|
|
70
|
-
* Add a texture to the atlas
|
|
71
|
-
*/
|
|
72
|
-
addTexture(key: string, texture: Texture): void;
|
|
73
|
-
/**
|
|
74
|
-
* Check if a texture exists in the atlas
|
|
75
|
-
*/
|
|
76
|
-
hasTexture(key: string): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Get all texture keys in the atlas
|
|
79
|
-
*/
|
|
80
|
-
getTextureKeys(): string[];
|
|
81
|
-
/**
|
|
82
|
-
* Main rendering method - creates all scene elements
|
|
83
|
-
*/
|
|
84
|
-
renderScene(mapData: OverworldMap, showGrid?: boolean): SceneContainers;
|
|
85
|
-
/**
|
|
86
|
-
* Render isometric grid with region boundaries
|
|
87
|
-
* Only draws grid cells for existing regions (not the entire world)
|
|
88
|
-
*/
|
|
89
|
-
renderGrid(gridWidth: number, gridHeight: number, regions: OverworldMap['regions']): Graphics;
|
|
90
|
-
/**
|
|
91
|
-
* Render terrain tiles with z-index sorting
|
|
92
|
-
* Extracted from OverworldMapPanel.tsx lines 223-393
|
|
93
|
-
*/
|
|
94
|
-
renderTerrain(tiles: Tile[]): Container;
|
|
95
|
-
/**
|
|
96
|
-
* Render paths with arrows and styling
|
|
97
|
-
* Extracted from OverworldMapPanel.tsx lines 395-455
|
|
98
|
-
*/
|
|
99
|
-
renderPaths(paths: PathConnection[], nodePositions: Map<string, GridPoint>): Map<string, Graphics>;
|
|
100
|
-
/**
|
|
101
|
-
* Draw a path between two points
|
|
102
|
-
* @param graphics Graphics object to draw on
|
|
103
|
-
* @param fromPos Starting grid position
|
|
104
|
-
* @param toPos Ending grid position
|
|
105
|
-
* @param isDev Whether this is a dev dependency
|
|
106
|
-
*/
|
|
107
|
-
private drawPath;
|
|
108
|
-
/**
|
|
109
|
-
* Render a node with multiple sub-packages as a grouped cluster
|
|
110
|
-
*/
|
|
111
|
-
private renderSubdividedNode;
|
|
112
|
-
/**
|
|
113
|
-
* Render sprites with scaling, aging, and weathering effects
|
|
114
|
-
* Extracted from OverworldMapPanel.tsx lines 457-507
|
|
115
|
-
*/
|
|
116
|
-
renderSprites(nodes: LocationNode[]): Map<string, SpriteInstance>;
|
|
117
|
-
/**
|
|
118
|
-
* Create highlight boundary for a sprite
|
|
119
|
-
* Extracted from IsometricGridTest.tsx lines 144-158
|
|
120
|
-
*/
|
|
121
|
-
private createHighlight;
|
|
122
|
-
/**
|
|
123
|
-
* Create weathering overlay for aged sprites
|
|
124
|
-
* Extracted from OverworldMapPanel.tsx lines 478-498
|
|
125
|
-
*/
|
|
126
|
-
private createWeathering;
|
|
127
|
-
/**
|
|
128
|
-
* Update a path between two positions
|
|
129
|
-
* Used during sprite dragging
|
|
130
|
-
*/
|
|
131
|
-
updatePath(pathGraphics: Graphics, fromPos: GridPoint, toPos: GridPoint): void;
|
|
132
|
-
/**
|
|
133
|
-
* Update sprite position
|
|
134
|
-
*/
|
|
135
|
-
updateSpritePosition(instance: SpriteInstance, gridX: number, gridY: number): void;
|
|
136
|
-
/**
|
|
137
|
-
* Cleanup resources
|
|
138
|
-
*/
|
|
139
|
-
destroy(): void;
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=IsometricRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsometricRenderer.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/IsometricRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EACV,YAAY,EACZ,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,UAAU,CAAC;AA6BlB,MAAM,WAAW,cAAc;IAC7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M,EAAE,SAAS,CAAC,GACpC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC;IAiBxB;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;IAkEhB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAoc5B;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC;IA2YjE;;;OAGG;IACH,OAAO,CAAC,eAAe;IA0BvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA4BxB;;;OAGG;IACH,UAAU,CACR,YAAY,EAAE,QAAQ,EACtB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,SAAS,GACf,IAAI;IAKP;;OAEG;IACH,oBAAoB,CAClB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,IAAI;IAIP;;OAEG;IACH,OAAO,IAAI,IAAI;CAGhB"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RegionTracker - Tracks current region from viewport position
|
|
3
|
-
*
|
|
4
|
-
* This helper class handles:
|
|
5
|
-
* - Region detection from viewport position
|
|
6
|
-
* - Change detection with callback
|
|
7
|
-
* - Skip animation flag for user-initiated drags
|
|
8
|
-
*/
|
|
9
|
-
import type { MapRegion } from '../types';
|
|
10
|
-
export type RegionChangeCallback = (region: MapRegion | null, skipAnimation: boolean) => void;
|
|
11
|
-
export declare class RegionTracker {
|
|
12
|
-
private regions;
|
|
13
|
-
private regionSize;
|
|
14
|
-
private currentRegion;
|
|
15
|
-
private changeCallback;
|
|
16
|
-
constructor(regions: MapRegion[], regionSize: number);
|
|
17
|
-
/**
|
|
18
|
-
* Get region at viewport center
|
|
19
|
-
* Extracted from OverworldMapPanel.tsx lines 148-182
|
|
20
|
-
*/
|
|
21
|
-
getCurrentRegion(viewportCenterX: number, viewportCenterY: number): MapRegion | null;
|
|
22
|
-
/**
|
|
23
|
-
* Track viewport position and emit change events
|
|
24
|
-
* @param viewportCenterX Current viewport center X
|
|
25
|
-
* @param viewportCenterY Current viewport center Y
|
|
26
|
-
* @param skipAnimation Whether to skip animation (e.g., during user drag)
|
|
27
|
-
*/
|
|
28
|
-
trackPosition(viewportCenterX: number, viewportCenterY: number, skipAnimation?: boolean): void;
|
|
29
|
-
/**
|
|
30
|
-
* Register callback for region changes
|
|
31
|
-
*/
|
|
32
|
-
onRegionChange(callback: RegionChangeCallback): void;
|
|
33
|
-
/**
|
|
34
|
-
* Update region list (for dynamic maps)
|
|
35
|
-
*/
|
|
36
|
-
updateRegions(regions: MapRegion[]): void;
|
|
37
|
-
/**
|
|
38
|
-
* Get the current region (read-only)
|
|
39
|
-
*/
|
|
40
|
-
get current(): MapRegion | null;
|
|
41
|
-
/**
|
|
42
|
-
* Get all regions (read-only)
|
|
43
|
-
*/
|
|
44
|
-
getAllRegions(): MapRegion[];
|
|
45
|
-
/**
|
|
46
|
-
* Find region by ID
|
|
47
|
-
*/
|
|
48
|
-
findRegionById(id: string): MapRegion | null;
|
|
49
|
-
/**
|
|
50
|
-
* Get next region (for navigation)
|
|
51
|
-
*/
|
|
52
|
-
getNextRegion(): MapRegion | null;
|
|
53
|
-
/**
|
|
54
|
-
* Get previous region (for navigation)
|
|
55
|
-
*/
|
|
56
|
-
getPreviousRegion(): MapRegion | null;
|
|
57
|
-
/**
|
|
58
|
-
* Cleanup resources
|
|
59
|
-
*/
|
|
60
|
-
destroy(): void;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=RegionTracker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegionTracker.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/RegionTracker.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;AAE9F,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAA0B;IAC/C,OAAO,CAAC,cAAc,CAAqC;gBAE/C,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM;IAKpD;;;OAGG;IACH,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAiBpF;;;;;OAKG;IACH,aAAa,CACX,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,MAAM,EACvB,aAAa,UAAQ,GACpB,IAAI;IAcP;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAIpD;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI;IAYzC;;OAEG;IACH,IAAI,OAAO,IAAI,SAAS,GAAG,IAAI,CAE9B;IAED;;OAEG;IACH,aAAa,IAAI,SAAS,EAAE;IAI5B;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAI5C;;OAEG;IACH,aAAa,IAAI,SAAS,GAAG,IAAI;IAUjC;;OAEG;IACH,iBAAiB,IAAI,SAAS,GAAG,IAAI;IAUrC;;OAEG;IACH,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Building Sprite Generator
|
|
3
|
-
* Creates isometric building sprites for repository visualization
|
|
4
|
-
* Note: Star and collaborator decorations are handled separately in IsometricRenderer
|
|
5
|
-
*/
|
|
6
|
-
import { Graphics } from 'pixi.js';
|
|
7
|
-
export interface BuildingSpriteConfig {
|
|
8
|
-
size: number;
|
|
9
|
-
color?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Generate a simple isometric building sprite
|
|
13
|
-
* Based on the cuboid building from IsometricGridTest
|
|
14
|
-
*
|
|
15
|
-
* @param config Building configuration
|
|
16
|
-
* @returns Graphics object ready for texture generation
|
|
17
|
-
*/
|
|
18
|
-
export declare function generateBuildingSprite(config: BuildingSpriteConfig): Graphics;
|
|
19
|
-
//# sourceMappingURL=buildingSpriteGenerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildingSpriteGenerator.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/buildingSpriteGenerator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,oBAAoB,GAAG,QAAQ,CA+E7E"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Collaborator Decoration Sprites
|
|
3
|
-
* Pixel art generators for community space decorations
|
|
4
|
-
*/
|
|
5
|
-
import { Graphics } from 'pixi.js';
|
|
6
|
-
/**
|
|
7
|
-
* Generate a simple bench sprite (1-10 collaborators)
|
|
8
|
-
*/
|
|
9
|
-
export declare function generateBenchSprite(color: number): Graphics;
|
|
10
|
-
/**
|
|
11
|
-
* Generate a pavilion sprite (11-50 collaborators)
|
|
12
|
-
* Simple covered structure with posts
|
|
13
|
-
*/
|
|
14
|
-
export declare function generatePavilionSprite(color: number): Graphics;
|
|
15
|
-
/**
|
|
16
|
-
* Generate a gazebo sprite (51-250 collaborators)
|
|
17
|
-
* Octagonal structure with detailed roof
|
|
18
|
-
*/
|
|
19
|
-
export declare function generateGazeboSprite(color: number): Graphics;
|
|
20
|
-
/**
|
|
21
|
-
* Generate a bandstand sprite (251+ collaborators)
|
|
22
|
-
* Large performance structure
|
|
23
|
-
*/
|
|
24
|
-
export declare function generateBandstandSprite(color: number): Graphics;
|
|
25
|
-
//# sourceMappingURL=collaboratorDecorationSprites.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaboratorDecorationSprites.d.ts","sourceRoot":"","sources":["../../../../src/panels/overworld-map/components/collaboratorDecorationSprites.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAwB3D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAoC9D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAuD5D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CA+D/D"}
|