project-graph-mcp 2.3.2 → 2.4.0
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/package.json +3 -2
- package/src/analysis/analysis-cache.ctx +9 -0
- package/src/analysis/analysis-cache.js +1 -1
- package/src/analysis/complexity.ctx +6 -0
- package/src/analysis/complexity.js +1 -1
- package/src/analysis/custom-rules.ctx +14 -0
- package/src/analysis/custom-rules.js +1 -1
- package/src/analysis/db-analysis.ctx +7 -0
- package/src/analysis/db-analysis.js +1 -1
- package/src/analysis/dead-code.ctx +6 -0
- package/src/analysis/dead-code.js +1 -1
- package/src/analysis/full-analysis.ctx +9 -0
- package/src/analysis/full-analysis.js +1 -1
- package/src/analysis/jsdoc-checker.ctx +10 -0
- package/src/analysis/jsdoc-checker.js +1 -1
- package/src/analysis/jsdoc-generator.ctx +9 -0
- package/src/analysis/jsdoc-generator.js +1 -1
- package/src/analysis/large-files.ctx +6 -0
- package/src/analysis/large-files.js +1 -1
- package/src/analysis/outdated-patterns.ctx +7 -0
- package/src/analysis/outdated-patterns.js +1 -1
- package/src/analysis/similar-functions.ctx +6 -0
- package/src/analysis/similar-functions.js +1 -1
- package/src/analysis/test-annotations.ctx +11 -0
- package/src/analysis/test-annotations.js +1 -1
- package/src/analysis/type-checker.ctx +6 -0
- package/src/analysis/type-checker.js +1 -1
- package/src/analysis/undocumented.ctx +8 -0
- package/src/analysis/undocumented.js +1 -1
- package/src/cli/cli-handlers.ctx +7 -0
- package/src/cli/cli-handlers.js +1 -1
- package/src/cli/cli.ctx +6 -0
- package/src/cli/cli.js +1 -1
- package/src/compact/ai-context.ctx +6 -0
- package/src/compact/ai-context.js +1 -1
- package/src/compact/compact-migrate.ctx +8 -0
- package/src/compact/compact-migrate.js +1 -1
- package/src/compact/compact.ctx +11 -0
- package/src/compact/compact.js +1 -1
- package/src/compact/compress.ctx +7 -0
- package/src/compact/compress.js +1 -1
- package/src/compact/ctx-resolver.ctx +2 -0
- package/src/compact/ctx-resolver.js +1 -1
- package/src/compact/ctx-to-jsdoc.ctx +11 -0
- package/src/compact/ctx-to-jsdoc.js +1 -1
- package/src/compact/doc-dialect.ctx +11 -0
- package/src/compact/doc-dialect.js +2 -2
- package/src/compact/expand.ctx +14 -0
- package/src/compact/expand.js +1 -1
- package/src/compact/framework-references.ctx +7 -0
- package/src/compact/framework-references.js +1 -1
- package/src/compact/instructions.ctx +6 -0
- package/src/compact/instructions.js +1 -1
- package/src/compact/jsdoc-builder.ctx +4 -0
- package/src/compact/jsdoc-builder.js +1 -1
- package/src/compact/mode-config.ctx +8 -0
- package/src/compact/mode-config.js +1 -1
- package/src/compact/split-declarations.ctx +6 -0
- package/src/compact/split-declarations.js +1 -1
- package/src/compact/validate-pipeline.ctx +12 -0
- package/src/compact/validate-pipeline.js +1 -1
- package/src/core/event-bus.ctx +9 -0
- package/src/core/event-bus.js +1 -1
- package/src/core/file-walker.ctx +1 -0
- package/src/core/file-walker.js +1 -1
- package/src/core/filters.ctx +12 -0
- package/src/core/filters.js +1 -1
- package/src/core/graph-builder.ctx +7 -0
- package/src/core/graph-builder.js +1 -1
- package/src/core/parser.ctx +12 -0
- package/src/core/parser.js +1 -1
- package/src/core/utils.ctx +1 -0
- package/src/core/utils.js +1 -1
- package/src/core/workspace.ctx +7 -0
- package/src/core/workspace.js +1 -1
- package/src/lang/lang-go.ctx +8 -0
- package/src/lang/lang-go.js +1 -1
- package/src/lang/lang-python.ctx +5 -0
- package/src/lang/lang-python.js +1 -1
- package/src/lang/lang-sql.ctx +10 -0
- package/src/lang/lang-sql.js +1 -1
- package/src/lang/lang-typescript.ctx +6 -0
- package/src/lang/lang-typescript.js +1 -1
- package/src/lang/lang-utils.ctx +5 -0
- package/src/lang/lang-utils.js +1 -1
- package/src/mcp/mcp-server.ctx +6 -0
- package/src/mcp/mcp-server.js +1 -1
- package/src/mcp/tool-defs.ctx +2 -0
- package/src/mcp/tool-defs.js +1 -1
- package/src/mcp/tools.ctx +13 -0
- package/src/mcp/tools.js +1 -1
- package/src/network/backend-lifecycle.ctx +10 -0
- package/src/network/backend-lifecycle.js +1 -1
- package/src/network/backend.ctx +5 -0
- package/src/network/backend.js +1 -1
- package/src/network/local-gateway.ctx +9 -0
- package/src/network/local-gateway.js +1 -1
- package/src/network/mdns.ctx +6 -0
- package/src/network/mdns.js +1 -1
- package/src/network/server.ctx +2 -0
- package/src/network/server.js +2 -2
- package/src/network/web-server.ctx +17 -0
- package/src/network/web-server.js +2 -2
- package/web/follow-controller.js +94 -25
- package/web/panels/dep-graph.js +207 -21
- package/project-graph-mcp-2.3.0.tgz +0 -0
- package/vendor/symbiote-node/CHANGELOG.md +0 -31
- package/vendor/symbiote-node/LICENSE +0 -21
- package/vendor/symbiote-node/README.md +0 -206
- package/vendor/symbiote-node/canvas/AutoLayout.js +0 -725
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.css.js +0 -73
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.js +0 -93
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.tpl.js +0 -9
- package/vendor/symbiote-node/canvas/CanvasConnectionRenderer.js +0 -962
- package/vendor/symbiote-node/canvas/ConnectionRenderer.js +0 -1468
- package/vendor/symbiote-node/canvas/FlowSimulator.js +0 -323
- package/vendor/symbiote-node/canvas/ForceLayout.js +0 -189
- package/vendor/symbiote-node/canvas/ForceWorker.js +0 -1325
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.css.js +0 -97
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.js +0 -176
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.tpl.js +0 -12
- package/vendor/symbiote-node/canvas/LODManager.js +0 -88
- package/vendor/symbiote-node/canvas/Minimap/Minimap.css.js +0 -71
- package/vendor/symbiote-node/canvas/Minimap/Minimap.js +0 -207
- package/vendor/symbiote-node/canvas/Minimap/Minimap.tpl.js +0 -9
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.css.js +0 -261
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.js +0 -1840
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.tpl.js +0 -22
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.css.js +0 -97
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.js +0 -132
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.tpl.js +0 -21
- package/vendor/symbiote-node/canvas/NodeViewManager.js +0 -584
- package/vendor/symbiote-node/canvas/PinExpansion.js +0 -131
- package/vendor/symbiote-node/canvas/PseudoConnection.js +0 -80
- package/vendor/symbiote-node/canvas/SubgraphManager.js +0 -201
- package/vendor/symbiote-node/canvas/SubgraphRouter.js +0 -443
- package/vendor/symbiote-node/canvas/ViewportActions.js +0 -446
- package/vendor/symbiote-node/core/Connection.js +0 -45
- package/vendor/symbiote-node/core/Editor.js +0 -451
- package/vendor/symbiote-node/core/Frame.js +0 -31
- package/vendor/symbiote-node/core/GraphMermaid.js +0 -348
- package/vendor/symbiote-node/core/GraphText.js +0 -210
- package/vendor/symbiote-node/core/Node.js +0 -143
- package/vendor/symbiote-node/core/Portal.js +0 -104
- package/vendor/symbiote-node/core/Socket.js +0 -185
- package/vendor/symbiote-node/core/SubgraphNode.js +0 -125
- package/vendor/symbiote-node/engine/AgentUICommands.js +0 -100
- package/vendor/symbiote-node/engine/Executor.js +0 -371
- package/vendor/symbiote-node/engine/Graph.js +0 -314
- package/vendor/symbiote-node/engine/GraphServer.js +0 -353
- package/vendor/symbiote-node/engine/HandlerLoader.js +0 -145
- package/vendor/symbiote-node/engine/History.js +0 -83
- package/vendor/symbiote-node/engine/Lifecycle.js +0 -118
- package/vendor/symbiote-node/engine/Persistence.js +0 -84
- package/vendor/symbiote-node/engine/Registry.js +0 -264
- package/vendor/symbiote-node/engine/SocketTypes.js +0 -79
- package/vendor/symbiote-node/engine/cli.js +0 -404
- package/vendor/symbiote-node/engine/index.js +0 -56
- package/vendor/symbiote-node/engine/nanoid.js +0 -28
- package/vendor/symbiote-node/engine/package.json +0 -26
- package/vendor/symbiote-node/engine/packs/ai/beat-detect.handler.js +0 -215
- package/vendor/symbiote-node/engine/packs/ai/content-adapt.handler.js +0 -238
- package/vendor/symbiote-node/engine/packs/ai/face-detect.handler.js +0 -287
- package/vendor/symbiote-node/engine/packs/ai/grok-generate.handler.js +0 -565
- package/vendor/symbiote-node/engine/packs/ai/kling-lipsync.handler.js +0 -414
- package/vendor/symbiote-node/engine/packs/ai/lesson-generate.handler.js +0 -343
- package/vendor/symbiote-node/engine/packs/ai/opencode.handler.js +0 -164
- package/vendor/symbiote-node/engine/packs/ai/replicate-lipsync.handler.js +0 -341
- package/vendor/symbiote-node/engine/packs/ai/tts.handler.js +0 -241
- package/vendor/symbiote-node/engine/packs/ai/whisper.handler.js +0 -191
- package/vendor/symbiote-node/engine/packs/data/db-query.handler.js +0 -67
- package/vendor/symbiote-node/engine/packs/data/news-accumulate.handler.js +0 -281
- package/vendor/symbiote-node/engine/packs/data/personas.handler.js +0 -160
- package/vendor/symbiote-node/engine/packs/data/prompt-loader.handler.js +0 -193
- package/vendor/symbiote-node/engine/packs/data/roles.handler.js +0 -216
- package/vendor/symbiote-node/engine/packs/data/rss-feed.handler.js +0 -244
- package/vendor/symbiote-node/engine/packs/debug/inject.handler.js +0 -52
- package/vendor/symbiote-node/engine/packs/flow/agent.handler.js +0 -73
- package/vendor/symbiote-node/engine/packs/flow/if.handler.js +0 -107
- package/vendor/symbiote-node/engine/packs/flow/loop.handler.js +0 -58
- package/vendor/symbiote-node/engine/packs/flow/merge.handler.js +0 -60
- package/vendor/symbiote-node/engine/packs/flow/retry.handler.js +0 -65
- package/vendor/symbiote-node/engine/packs/flow/switch.handler.js +0 -64
- package/vendor/symbiote-node/engine/packs/flow/wait-all.handler.js +0 -39
- package/vendor/symbiote-node/engine/packs/io/http-request.handler.js +0 -82
- package/vendor/symbiote-node/engine/packs/io/read-file.handler.js +0 -60
- package/vendor/symbiote-node/engine/packs/io/write-file.handler.js +0 -63
- package/vendor/symbiote-node/engine/packs/transform/anchor-match.handler.js +0 -494
- package/vendor/symbiote-node/engine/packs/transform/effects-skeleton.handler.js +0 -417
- package/vendor/symbiote-node/engine/packs/transform/json-parse.handler.js +0 -43
- package/vendor/symbiote-node/engine/packs/transform/lipsync-select.handler.js +0 -339
- package/vendor/symbiote-node/engine/packs/transform/riopla-adapt.handler.js +0 -432
- package/vendor/symbiote-node/engine/packs/transform/set.handler.js +0 -57
- package/vendor/symbiote-node/engine/packs/transform/template-builder.handler.js +0 -134
- package/vendor/symbiote-node/engine/packs/transform/template.handler.js +0 -79
- package/vendor/symbiote-node/engine/packs/transform/timeline-build.handler.js +0 -399
- package/vendor/symbiote-node/engine/packs/util/delay.handler.js +0 -39
- package/vendor/symbiote-node/engine/packs/util/log.handler.js +0 -44
- package/vendor/symbiote-node/engine/packs/video-pack.js +0 -323
- package/vendor/symbiote-node/index.js +0 -103
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.css.js +0 -361
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.js +0 -332
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.tpl.js +0 -96
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.css.js +0 -104
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.js +0 -133
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.tpl.js +0 -33
- package/vendor/symbiote-node/interactions/ConnectFlow.js +0 -307
- package/vendor/symbiote-node/interactions/Drag.js +0 -102
- package/vendor/symbiote-node/interactions/Selector.js +0 -132
- package/vendor/symbiote-node/interactions/SnapGrid.js +0 -65
- package/vendor/symbiote-node/interactions/Zoom.js +0 -140
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.css.js +0 -88
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.js +0 -254
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.tpl.js +0 -11
- package/vendor/symbiote-node/layout/Layout/Layout.css.js +0 -88
- package/vendor/symbiote-node/layout/Layout/Layout.js +0 -622
- package/vendor/symbiote-node/layout/Layout/Layout.tpl.js +0 -25
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.css.js +0 -293
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.js +0 -467
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.tpl.js +0 -33
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.css.js +0 -46
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.js +0 -102
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.tpl.js +0 -6
- package/vendor/symbiote-node/layout/LayoutRouter/LayoutRouter.js +0 -156
- package/vendor/symbiote-node/layout/LayoutRouter/routerSync.js +0 -250
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.css.js +0 -379
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.js +0 -263
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.tpl.js +0 -20
- package/vendor/symbiote-node/layout/LayoutSidebar/SidebarSection.js +0 -183
- package/vendor/symbiote-node/layout/LayoutTree.js +0 -246
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.css.js +0 -43
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.js +0 -89
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.tpl.js +0 -14
- package/vendor/symbiote-node/layout/index.js +0 -16
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.css.js +0 -61
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.js +0 -79
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.tpl.js +0 -19
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.css.js +0 -41
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.js +0 -24
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.tpl.js +0 -16
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.css.js +0 -65
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.js +0 -29
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.tpl.js +0 -13
- package/vendor/symbiote-node/node/GraphNode/GraphNode.css.js +0 -683
- package/vendor/symbiote-node/node/GraphNode/GraphNode.js +0 -92
- package/vendor/symbiote-node/node/GraphNode/GraphNode.tpl.js +0 -17
- package/vendor/symbiote-node/node/NodeSocket/NodeSocket.js +0 -25
- package/vendor/symbiote-node/node/NodeSocket/NodeSocket.tpl.js +0 -7
- package/vendor/symbiote-node/node/PortItem/PortItem.css.js +0 -90
- package/vendor/symbiote-node/node/PortItem/PortItem.js +0 -87
- package/vendor/symbiote-node/node/PortItem/PortItem.tpl.js +0 -10
- package/vendor/symbiote-node/package.json +0 -59
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.css.js +0 -143
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.js +0 -131
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.tpl.js +0 -16
- package/vendor/symbiote-node/plugins/History.js +0 -384
- package/vendor/symbiote-node/plugins/Readonly.js +0 -59
- package/vendor/symbiote-node/shapes/CircleShape.js +0 -80
- package/vendor/symbiote-node/shapes/CommentShape.js +0 -35
- package/vendor/symbiote-node/shapes/DiamondShape.js +0 -115
- package/vendor/symbiote-node/shapes/NodeShape.js +0 -80
- package/vendor/symbiote-node/shapes/PillShape.js +0 -91
- package/vendor/symbiote-node/shapes/RectShape.js +0 -72
- package/vendor/symbiote-node/shapes/SVGShape.js +0 -494
- package/vendor/symbiote-node/shapes/index.js +0 -53
- package/vendor/symbiote-node/themes/Palette.js +0 -32
- package/vendor/symbiote-node/themes/Skin.js +0 -113
- package/vendor/symbiote-node/themes/Theme.js +0 -84
- package/vendor/symbiote-node/themes/carbon.js +0 -137
- package/vendor/symbiote-node/themes/dark.js +0 -137
- package/vendor/symbiote-node/themes/ebook.js +0 -138
- package/vendor/symbiote-node/themes/grey.js +0 -137
- package/vendor/symbiote-node/themes/light.js +0 -137
- package/vendor/symbiote-node/themes/neon.js +0 -138
- package/vendor/symbiote-node/themes/pcb.js +0 -273
- package/vendor/symbiote-node/themes/synthwave.js +0 -137
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.css.js +0 -86
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.js +0 -128
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.tpl.js +0 -29
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview ActionZone - Corner widget for split/join gestures
|
|
3
|
-
* Inspired by Blender's AZONE_AREA implementation.
|
|
4
|
-
*
|
|
5
|
-
* Triangular hit area at panel corners:
|
|
6
|
-
* - Drag inward (mouse stays inside panel) → split panel
|
|
7
|
-
* - Drag outward (mouse exits panel) → join panels
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import Symbiote from '@symbiotejs/symbiote';
|
|
11
|
-
import { template } from './ActionZone.tpl.js';
|
|
12
|
-
import { styles } from './ActionZone.css.js';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Minimum drag distance before gesture is recognized
|
|
16
|
-
*/
|
|
17
|
-
const DRAG_THRESHOLD = 15;
|
|
18
|
-
|
|
19
|
-
export class ActionZone extends Symbiote {
|
|
20
|
-
static isoMode = true;
|
|
21
|
-
|
|
22
|
-
init$ = {
|
|
23
|
-
// Position: 'tl' | 'tr' | 'bl' | 'br'
|
|
24
|
-
'@corner': 'tl',
|
|
25
|
-
|
|
26
|
-
// Panel ID (inherited from parent node)
|
|
27
|
-
panelId: '',
|
|
28
|
-
|
|
29
|
-
// Drag state
|
|
30
|
-
isDragging: false,
|
|
31
|
-
dragStartX: 0,
|
|
32
|
-
dragStartY: 0,
|
|
33
|
-
gestureType: null, // 'split-h' | 'split-v' | 'join'
|
|
34
|
-
|
|
35
|
-
// Panel bounds at drag start (for zone checking)
|
|
36
|
-
panelBounds: null,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
renderCallback() {
|
|
40
|
-
// Bind pointer events directly to component
|
|
41
|
-
this.onpointerdown = (e) => this._onPointerDown(e);
|
|
42
|
-
this.onpointermove = (e) => this._onPointerMove(e);
|
|
43
|
-
this.onpointerup = (e) => this._onPointerUp(e);
|
|
44
|
-
this.onpointercancel = (e) => this._onPointerUp(e);
|
|
45
|
-
this.onlostpointercapture = (e) => this._onPointerUp(e);
|
|
46
|
-
|
|
47
|
-
// Global fallback for touchpad edge cases
|
|
48
|
-
this._globalPointerUp = (e) => {
|
|
49
|
-
if (this.$.isDragging) {
|
|
50
|
-
this._onPointerUp(e);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
if (typeof document !== 'undefined') {
|
|
54
|
-
document.addEventListener('pointerup', this._globalPointerUp);
|
|
55
|
-
document.addEventListener('pointercancel', this._globalPointerUp);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
disconnectedCallback() {
|
|
60
|
-
if (this._globalPointerUp && typeof document !== 'undefined') {
|
|
61
|
-
document.removeEventListener('pointerup', this._globalPointerUp);
|
|
62
|
-
document.removeEventListener('pointercancel', this._globalPointerUp);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Start drag operation
|
|
68
|
-
* @param {PointerEvent} e
|
|
69
|
-
*/
|
|
70
|
-
_onPointerDown(e) {
|
|
71
|
-
e.preventDefault();
|
|
72
|
-
e.stopPropagation();
|
|
73
|
-
|
|
74
|
-
// Get panel bounds at drag start
|
|
75
|
-
const panelNode = this.closest('layout-node');
|
|
76
|
-
if (panelNode) {
|
|
77
|
-
const rect = panelNode.getBoundingClientRect();
|
|
78
|
-
this.$.panelBounds = {
|
|
79
|
-
left: rect.left,
|
|
80
|
-
top: rect.top,
|
|
81
|
-
right: rect.right,
|
|
82
|
-
bottom: rect.bottom
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
this.$.isDragging = true;
|
|
87
|
-
this.$.dragStartX = e.clientX;
|
|
88
|
-
this.$.dragStartY = e.clientY;
|
|
89
|
-
this.$.gestureType = null;
|
|
90
|
-
|
|
91
|
-
this.setPointerCapture(e.pointerId);
|
|
92
|
-
this.setAttribute('dragging', '');
|
|
93
|
-
|
|
94
|
-
// Notify parent to prepare for potential split/join
|
|
95
|
-
this.dispatchEvent(new CustomEvent('action-zone-start', {
|
|
96
|
-
bubbles: true,
|
|
97
|
-
composed: true,
|
|
98
|
-
detail: { panelId: this.$.panelId, corner: this.$['@corner'] }
|
|
99
|
-
}));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Track drag and detect gesture
|
|
104
|
-
* @param {PointerEvent} e
|
|
105
|
-
*/
|
|
106
|
-
_onPointerMove(e) {
|
|
107
|
-
if (!this.$.isDragging) return;
|
|
108
|
-
|
|
109
|
-
const dx = e.clientX - this.$.dragStartX;
|
|
110
|
-
const dy = e.clientY - this.$.dragStartY;
|
|
111
|
-
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
112
|
-
|
|
113
|
-
if (distance < DRAG_THRESHOLD) {
|
|
114
|
-
this.$.gestureType = null;
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Detect gesture based on current mouse position relative to panel bounds
|
|
119
|
-
const gesture = this._detectGesture(e.clientX, e.clientY, dx, dy);
|
|
120
|
-
|
|
121
|
-
if (gesture !== this.$.gestureType) {
|
|
122
|
-
this.$.gestureType = gesture;
|
|
123
|
-
|
|
124
|
-
// Notify parent to show preview
|
|
125
|
-
this.dispatchEvent(new CustomEvent('action-zone-gesture', {
|
|
126
|
-
bubbles: true,
|
|
127
|
-
composed: true,
|
|
128
|
-
detail: {
|
|
129
|
-
panelId: this.$.panelId,
|
|
130
|
-
corner: this.$['@corner'],
|
|
131
|
-
gesture: gesture,
|
|
132
|
-
dx, dy
|
|
133
|
-
}
|
|
134
|
-
}));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Complete or cancel gesture
|
|
140
|
-
* @param {PointerEvent} e
|
|
141
|
-
*/
|
|
142
|
-
_onPointerUp(e) {
|
|
143
|
-
if (!this.$.isDragging) return;
|
|
144
|
-
|
|
145
|
-
// Safe release - may fail if pointerId is invalid from global fallback
|
|
146
|
-
try {
|
|
147
|
-
if (e?.pointerId !== undefined) {
|
|
148
|
-
this.releasePointerCapture(e.pointerId);
|
|
149
|
-
}
|
|
150
|
-
} catch (err) {
|
|
151
|
-
// Ignore - pointer may already be released
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
this.removeAttribute('dragging');
|
|
155
|
-
|
|
156
|
-
const gesture = this.$.gestureType;
|
|
157
|
-
|
|
158
|
-
if (gesture) {
|
|
159
|
-
// Execute the gesture
|
|
160
|
-
this.dispatchEvent(new CustomEvent('action-zone-execute', {
|
|
161
|
-
bubbles: true,
|
|
162
|
-
composed: true,
|
|
163
|
-
detail: {
|
|
164
|
-
panelId: this.$.panelId,
|
|
165
|
-
corner: this.$['@corner'],
|
|
166
|
-
gesture: gesture
|
|
167
|
-
}
|
|
168
|
-
}));
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// Reset state
|
|
172
|
-
this.$.isDragging = false;
|
|
173
|
-
this.$.gestureType = null;
|
|
174
|
-
this.$.panelBounds = null;
|
|
175
|
-
|
|
176
|
-
// Hide preview
|
|
177
|
-
this.dispatchEvent(new CustomEvent('action-zone-end', {
|
|
178
|
-
bubbles: true,
|
|
179
|
-
composed: true,
|
|
180
|
-
detail: { panelId: this.$.panelId }
|
|
181
|
-
}));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Detect gesture type based on mouse position relative to panel bounds
|
|
186
|
-
* @param {number} mouseX
|
|
187
|
-
* @param {number} mouseY
|
|
188
|
-
* @param {number} dx
|
|
189
|
-
* @param {number} dy
|
|
190
|
-
* @returns {'split-h' | 'split-v' | 'join' | null}
|
|
191
|
-
*/
|
|
192
|
-
_detectGesture(mouseX, mouseY, dx, dy) {
|
|
193
|
-
const bounds = this.$.panelBounds;
|
|
194
|
-
|
|
195
|
-
if (!bounds) {
|
|
196
|
-
return this._detectGestureByDirection(dx, dy);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
const isOutside = (
|
|
200
|
-
mouseX < bounds.left ||
|
|
201
|
-
mouseX > bounds.right ||
|
|
202
|
-
mouseY < bounds.top ||
|
|
203
|
-
mouseY > bounds.bottom
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
if (isOutside) {
|
|
207
|
-
return 'join';
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return this._detectGestureByDirection(dx, dy);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Detect gesture purely by drag direction
|
|
215
|
-
* @param {number} dx
|
|
216
|
-
* @param {number} dy
|
|
217
|
-
* @returns {'split-h' | 'split-v' | 'join' | null}
|
|
218
|
-
*/
|
|
219
|
-
_detectGestureByDirection(dx, dy) {
|
|
220
|
-
const corner = this.$['@corner'];
|
|
221
|
-
const absDx = Math.abs(dx);
|
|
222
|
-
const absDy = Math.abs(dy);
|
|
223
|
-
const isHorizontal = absDx > absDy;
|
|
224
|
-
|
|
225
|
-
let isInward = false;
|
|
226
|
-
|
|
227
|
-
switch (corner) {
|
|
228
|
-
case 'tl':
|
|
229
|
-
isInward = (isHorizontal && dx > 0) || (!isHorizontal && dy > 0);
|
|
230
|
-
break;
|
|
231
|
-
case 'tr':
|
|
232
|
-
isInward = (isHorizontal && dx < 0) || (!isHorizontal && dy > 0);
|
|
233
|
-
break;
|
|
234
|
-
case 'bl':
|
|
235
|
-
isInward = (isHorizontal && dx > 0) || (!isHorizontal && dy < 0);
|
|
236
|
-
break;
|
|
237
|
-
case 'br':
|
|
238
|
-
isInward = (isHorizontal && dx < 0) || (!isHorizontal && dy < 0);
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
if (isInward) {
|
|
243
|
-
return isHorizontal ? 'split-h' : 'split-v';
|
|
244
|
-
} else {
|
|
245
|
-
return 'join';
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
ActionZone.template = template;
|
|
251
|
-
ActionZone.rootStyles = styles;
|
|
252
|
-
|
|
253
|
-
ActionZone.reg('action-zone');
|
|
254
|
-
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { css } from '@symbiotejs/symbiote';
|
|
2
|
-
|
|
3
|
-
export const styles = css`
|
|
4
|
-
panel-layout {
|
|
5
|
-
display: block;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
position: relative;
|
|
10
|
-
font-family: var(--font-main);
|
|
11
|
-
|
|
12
|
-
&[hidden] {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.layout-root {
|
|
17
|
-
display: flex;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* Fullscreen tab bar */
|
|
23
|
-
.fullscreen-tab-bar {
|
|
24
|
-
position: fixed;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
height: 28px;
|
|
29
|
-
background: var(--bg-deeper, #1a1a1a);
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: stretch;
|
|
32
|
-
gap: 0;
|
|
33
|
-
z-index: 10002;
|
|
34
|
-
padding: 0;
|
|
35
|
-
|
|
36
|
-
&[hidden] {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.tab-list {
|
|
42
|
-
display: contents;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.fullscreen-tab {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
gap: 6px;
|
|
49
|
-
padding: 0 12px;
|
|
50
|
-
height: 28px;
|
|
51
|
-
border: none;
|
|
52
|
-
border-left: none;
|
|
53
|
-
border-right: none;
|
|
54
|
-
background: var(--bg-deeper, #1a1a1a);
|
|
55
|
-
color: var(--text-muted, #666);
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
font-size: 12px;
|
|
58
|
-
font-family: inherit;
|
|
59
|
-
transition: background 0.15s, color 0.15s;
|
|
60
|
-
|
|
61
|
-
.material-symbols-outlined {
|
|
62
|
-
font-size: 16px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
background: var(--bg-header, #2d2d2d);
|
|
67
|
-
color: var(--text-main, #e0e0e0);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&[active] {
|
|
71
|
-
height: 29px;
|
|
72
|
-
margin-bottom: -1px;
|
|
73
|
-
position: relative;
|
|
74
|
-
z-index: 1;
|
|
75
|
-
background: var(--bg-header, #2d2d2d);
|
|
76
|
-
color: var(--text-main, #e0e0e0);
|
|
77
|
-
border-left: 1px solid var(--layout-border, #333);
|
|
78
|
-
border-right: 1px solid var(--layout-border, #333);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.tab-filler {
|
|
83
|
-
flex: 1;
|
|
84
|
-
height: 28px;
|
|
85
|
-
background: var(--bg-deeper, #1a1a1a);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`;
|