@fps-games/editor 0.2.1-beta.1 → 0.2.1-beta.2
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/agent-bridge/capabilities/ui-regions.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.js +16 -0
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
- package/dist/build-info.json +43 -43
- package/dist/internal/material-preview.d.ts +22 -0
- package/dist/internal/material-preview.d.ts.map +1 -0
- package/dist/internal/material-preview.js +186 -0
- package/dist/internal/material-preview.js.map +1 -0
- package/dist/internal/project-model-preview.d.ts +4 -0
- package/dist/internal/project-model-preview.d.ts.map +1 -0
- package/dist/internal/project-model-preview.js +359 -0
- package/dist/internal/project-model-preview.js.map +1 -0
- package/dist/local-editor-agent-context.d.ts +12 -1
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +47 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +15 -2
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +310 -21
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-tools.d.ts +1 -0
- package/dist/local-editor-tools.d.ts.map +1 -1
- package/dist/local-editor-tools.js +3 -0
- package/dist/local-editor-tools.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +4 -0
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +27 -0
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +9 -3
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +5 -2
- package/dist/playable-standard-project.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js +24 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +10 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +96 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js +85 -22
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +2 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +150 -4
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +249 -15
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +6 -6
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts +35 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js +136 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts +46 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js +283 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts +12 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js +67 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js +219 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js +42 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts +27 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js +288 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +29 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +20 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +321 -60
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts +2 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +4 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +63 -3
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +88 -16
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +2 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +1463 -356
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts +13 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js +15 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +7 -7
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js +3 -1
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts +11 -2
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +12 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +6 -6
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +15 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +10 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js +86 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js +76 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +40 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +94 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js +101 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts +23 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js +180 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +23 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +103 -10
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -1
- package/node_modules/@fps-games/editor-ui/package.json +1 -1
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/package.json +12 -12
- package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/package.json +5 -5
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/package.json +5 -5
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/package.json +5 -5
- package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/package.json +5 -5
- package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
- package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
- package/package.json +22 -22
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { createLocalEditorIcon } from './local-editor-ui-icons.js';
|
|
2
|
+
import { writeLocalEditorClipboardText } from './local-editor-clipboard.js';
|
|
3
|
+
const FILTERS = [
|
|
4
|
+
{ id: 'all', label: '全部' },
|
|
5
|
+
{ id: 'info', label: '信息' },
|
|
6
|
+
{ id: 'warning', label: '警告' },
|
|
7
|
+
{ id: 'error', label: '错误' },
|
|
8
|
+
];
|
|
9
|
+
export function createLocalEditorConsoleController(doc, host, options) {
|
|
10
|
+
const maxEntries = Math.max(20, options.maxEntries ?? 250);
|
|
11
|
+
const entries = [];
|
|
12
|
+
const expandedEntryIds = new Set();
|
|
13
|
+
let knownDiagnostics = new Set();
|
|
14
|
+
let nextId = 1;
|
|
15
|
+
let filter = 'all';
|
|
16
|
+
let lastStatusSignature = '';
|
|
17
|
+
host.classList.add('fps-editor-ui-console');
|
|
18
|
+
const header = doc.createElement('div');
|
|
19
|
+
header.className = 'fps-editor-ui-console-header';
|
|
20
|
+
const titleGroup = doc.createElement('button');
|
|
21
|
+
titleGroup.type = 'button';
|
|
22
|
+
titleGroup.className = 'fps-editor-ui-console-title-group';
|
|
23
|
+
titleGroup.appendChild(createLocalEditorIcon(doc, 'status', { size: 13 }));
|
|
24
|
+
const title = doc.createElement('span');
|
|
25
|
+
title.className = 'fps-editor-ui-console-title';
|
|
26
|
+
title.textContent = 'Console';
|
|
27
|
+
const totalCount = doc.createElement('span');
|
|
28
|
+
totalCount.className = 'fps-editor-ui-console-total';
|
|
29
|
+
titleGroup.append(title, totalCount);
|
|
30
|
+
const filters = doc.createElement('div');
|
|
31
|
+
filters.className = 'fps-editor-ui-console-filters';
|
|
32
|
+
const filterButtons = new Map();
|
|
33
|
+
for (const item of FILTERS) {
|
|
34
|
+
const button = doc.createElement('button');
|
|
35
|
+
button.type = 'button';
|
|
36
|
+
button.className = 'fps-editor-ui-console-filter';
|
|
37
|
+
button.dataset.editorConsoleFilter = item.id;
|
|
38
|
+
button.dataset.active = String(item.id === filter);
|
|
39
|
+
button.textContent = item.label;
|
|
40
|
+
button.addEventListener('click', () => {
|
|
41
|
+
filter = item.id;
|
|
42
|
+
render();
|
|
43
|
+
});
|
|
44
|
+
filterButtons.set(item.id, button);
|
|
45
|
+
filters.appendChild(button);
|
|
46
|
+
}
|
|
47
|
+
const actions = doc.createElement('div');
|
|
48
|
+
actions.className = 'fps-editor-ui-console-actions';
|
|
49
|
+
const copyAllButton = createIconButton(doc, '复制全部 Console 信息', 'copy');
|
|
50
|
+
const clearButton = createIconButton(doc, '清空 Console', 'trash');
|
|
51
|
+
const collapseButton = createIconButton(doc, '展开 Console', 'chevron-right');
|
|
52
|
+
actions.append(copyAllButton, clearButton, collapseButton);
|
|
53
|
+
header.append(titleGroup, filters, actions);
|
|
54
|
+
const list = doc.createElement('div');
|
|
55
|
+
list.className = 'fps-editor-ui-console-list';
|
|
56
|
+
list.setAttribute('role', 'log');
|
|
57
|
+
list.setAttribute('aria-live', 'polite');
|
|
58
|
+
host.replaceChildren(header, list);
|
|
59
|
+
const onClear = () => {
|
|
60
|
+
entries.length = 0;
|
|
61
|
+
expandedEntryIds.clear();
|
|
62
|
+
render();
|
|
63
|
+
};
|
|
64
|
+
const onCopyAll = () => {
|
|
65
|
+
if (entries.length === 0)
|
|
66
|
+
return;
|
|
67
|
+
copyConsoleText(doc, copyAllButton, formatLocalEditorConsoleEntries(entries));
|
|
68
|
+
};
|
|
69
|
+
const onCollapse = () => {
|
|
70
|
+
options.onCollapsedChange(!options.isCollapsed());
|
|
71
|
+
render();
|
|
72
|
+
};
|
|
73
|
+
copyAllButton.addEventListener('click', onCopyAll);
|
|
74
|
+
clearButton.addEventListener('click', onClear);
|
|
75
|
+
titleGroup.addEventListener('click', onCollapse);
|
|
76
|
+
collapseButton.addEventListener('click', onCollapse);
|
|
77
|
+
const render = () => {
|
|
78
|
+
const collapsed = options.isCollapsed();
|
|
79
|
+
host.dataset.editorConsoleCollapsed = String(collapsed);
|
|
80
|
+
titleGroup.title = collapsed ? '展开 Console' : '折叠 Console';
|
|
81
|
+
titleGroup.setAttribute('aria-label', titleGroup.title);
|
|
82
|
+
titleGroup.setAttribute('aria-expanded', String(!collapsed));
|
|
83
|
+
collapseButton.replaceChildren(createLocalEditorIcon(doc, collapsed ? 'chevron-right' : 'chevron-down', { size: 13 }));
|
|
84
|
+
collapseButton.title = collapsed ? '展开 Console' : '折叠 Console';
|
|
85
|
+
collapseButton.setAttribute('aria-label', collapseButton.title);
|
|
86
|
+
collapseButton.setAttribute('aria-expanded', String(!collapsed));
|
|
87
|
+
const counts = countEntries(entries);
|
|
88
|
+
totalCount.textContent = entries.length > 0 ? String(entries.length) : '';
|
|
89
|
+
totalCount.dataset.hasErrors = String(counts.error > 0);
|
|
90
|
+
copyAllButton.disabled = entries.length === 0;
|
|
91
|
+
for (const [id, button] of filterButtons) {
|
|
92
|
+
const count = id === 'all' ? entries.length : counts[id];
|
|
93
|
+
button.dataset.active = String(id === filter);
|
|
94
|
+
button.setAttribute('aria-pressed', String(id === filter));
|
|
95
|
+
button.textContent = `${FILTERS.find(item => item.id === id)?.label ?? id} ${count}`;
|
|
96
|
+
}
|
|
97
|
+
if (collapsed)
|
|
98
|
+
return;
|
|
99
|
+
const stickToBottom = list.scrollHeight - list.scrollTop - list.clientHeight < 24;
|
|
100
|
+
const visibleEntries = filter === 'all' ? entries : entries.filter(entry => entry.severity === filter);
|
|
101
|
+
const fragment = doc.createDocumentFragment();
|
|
102
|
+
if (visibleEntries.length === 0) {
|
|
103
|
+
const empty = doc.createElement('div');
|
|
104
|
+
empty.className = 'fps-editor-ui-console-empty';
|
|
105
|
+
empty.textContent = '暂无消息';
|
|
106
|
+
fragment.appendChild(empty);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
for (const entry of visibleEntries) {
|
|
110
|
+
fragment.appendChild(renderEntry(doc, entry, {
|
|
111
|
+
expanded: expandedEntryIds.has(entry.id),
|
|
112
|
+
onExpandedChange(expanded) {
|
|
113
|
+
if (expanded)
|
|
114
|
+
expandedEntryIds.add(entry.id);
|
|
115
|
+
else
|
|
116
|
+
expandedEntryIds.delete(entry.id);
|
|
117
|
+
render();
|
|
118
|
+
},
|
|
119
|
+
onCopy(button) {
|
|
120
|
+
copyConsoleText(doc, button, formatLocalEditorConsoleEntry(entry));
|
|
121
|
+
},
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
list.replaceChildren(fragment);
|
|
126
|
+
if (stickToBottom)
|
|
127
|
+
list.scrollTop = list.scrollHeight;
|
|
128
|
+
};
|
|
129
|
+
const append = (input) => {
|
|
130
|
+
const message = input.message.trim();
|
|
131
|
+
if (!message)
|
|
132
|
+
return;
|
|
133
|
+
entries.push({
|
|
134
|
+
...input,
|
|
135
|
+
id: nextId++,
|
|
136
|
+
timestamp: input.timestamp ?? new Date(),
|
|
137
|
+
message,
|
|
138
|
+
});
|
|
139
|
+
if (entries.length > maxEntries) {
|
|
140
|
+
const removed = entries.splice(0, entries.length - maxEntries);
|
|
141
|
+
for (const entry of removed)
|
|
142
|
+
expandedEntryIds.delete(entry.id);
|
|
143
|
+
}
|
|
144
|
+
render();
|
|
145
|
+
};
|
|
146
|
+
render();
|
|
147
|
+
return {
|
|
148
|
+
append,
|
|
149
|
+
syncState(state, previousState) {
|
|
150
|
+
if (state.mode === 'editor' && previousState?.mode !== 'editor') {
|
|
151
|
+
append({ severity: 'info', source: 'editor', message: '编辑器会话已就绪' });
|
|
152
|
+
}
|
|
153
|
+
const statusSignature = `${state.statusTone ?? 'default'}\u0000${state.status}\u0000${state.statusDetails ?? ''}`;
|
|
154
|
+
if (state.status && statusSignature !== lastStatusSignature) {
|
|
155
|
+
lastStatusSignature = statusSignature;
|
|
156
|
+
append({
|
|
157
|
+
severity: resolveStatusSeverity(state.statusTone),
|
|
158
|
+
source: resolveConsoleSource(state.status),
|
|
159
|
+
message: state.status,
|
|
160
|
+
...(state.statusDetails && state.statusDetails !== state.status ? { details: state.statusDetails } : {}),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
const currentDiagnosticKeys = new Set();
|
|
164
|
+
for (const diagnostic of state.statusDiagnostics ?? []) {
|
|
165
|
+
const key = createDiagnosticKey(diagnostic);
|
|
166
|
+
currentDiagnosticKeys.add(key);
|
|
167
|
+
if (knownDiagnostics.has(key))
|
|
168
|
+
continue;
|
|
169
|
+
append({
|
|
170
|
+
severity: diagnostic.severity === 'error' ? 'error' : diagnostic.severity === 'warning' ? 'warning' : 'info',
|
|
171
|
+
source: resolveConsoleSource(`${diagnostic.source ?? ''} ${diagnostic.message}`),
|
|
172
|
+
message: diagnostic.message,
|
|
173
|
+
...(diagnostic.details ? { details: JSON.stringify(diagnostic.details, null, 2) } : {}),
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
knownDiagnostics = currentDiagnosticKeys;
|
|
177
|
+
},
|
|
178
|
+
dispose() {
|
|
179
|
+
copyAllButton.removeEventListener('click', onCopyAll);
|
|
180
|
+
clearButton.removeEventListener('click', onClear);
|
|
181
|
+
titleGroup.removeEventListener('click', onCollapse);
|
|
182
|
+
collapseButton.removeEventListener('click', onCollapse);
|
|
183
|
+
host.replaceChildren();
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function renderEntry(doc, entry, options) {
|
|
188
|
+
const row = doc.createElement('div');
|
|
189
|
+
row.className = 'fps-editor-ui-console-entry';
|
|
190
|
+
row.dataset.severity = entry.severity;
|
|
191
|
+
row.dataset.expanded = String(options.expanded);
|
|
192
|
+
const summary = doc.createElement('div');
|
|
193
|
+
summary.className = 'fps-editor-ui-console-entry-summary';
|
|
194
|
+
const expandButton = createIconButton(doc, options.expanded ? '折叠此条 Console 信息' : '展开此条 Console 信息', options.expanded ? 'chevron-down' : 'chevron-right');
|
|
195
|
+
expandButton.classList.add('fps-editor-ui-console-entry-toggle');
|
|
196
|
+
expandButton.setAttribute('aria-expanded', String(options.expanded));
|
|
197
|
+
expandButton.addEventListener('click', () => options.onExpandedChange(!options.expanded));
|
|
198
|
+
const time = doc.createElement('time');
|
|
199
|
+
time.dateTime = entry.timestamp.toISOString();
|
|
200
|
+
time.textContent = entry.timestamp.toLocaleTimeString([], { hour12: false });
|
|
201
|
+
const severity = doc.createElement('span');
|
|
202
|
+
severity.className = 'fps-editor-ui-console-severity';
|
|
203
|
+
severity.textContent = entry.severity.toUpperCase();
|
|
204
|
+
const source = doc.createElement('span');
|
|
205
|
+
source.className = 'fps-editor-ui-console-source';
|
|
206
|
+
source.textContent = entry.source;
|
|
207
|
+
const content = doc.createElement('div');
|
|
208
|
+
content.className = 'fps-editor-ui-console-message';
|
|
209
|
+
content.textContent = entry.message;
|
|
210
|
+
const copyButton = createIconButton(doc, '复制此条 Console 信息', 'copy');
|
|
211
|
+
copyButton.classList.add('fps-editor-ui-console-entry-copy');
|
|
212
|
+
copyButton.addEventListener('click', () => options.onCopy(copyButton));
|
|
213
|
+
summary.append(expandButton, time, severity, source, content, copyButton);
|
|
214
|
+
row.appendChild(summary);
|
|
215
|
+
if (options.expanded) {
|
|
216
|
+
const details = doc.createElement('pre');
|
|
217
|
+
details.className = 'fps-editor-ui-console-entry-details';
|
|
218
|
+
details.textContent = entry.details ? `${entry.message}\n\n${entry.details}` : entry.message;
|
|
219
|
+
row.appendChild(details);
|
|
220
|
+
}
|
|
221
|
+
return row;
|
|
222
|
+
}
|
|
223
|
+
function createIconButton(doc, label, icon) {
|
|
224
|
+
const button = doc.createElement('button');
|
|
225
|
+
button.type = 'button';
|
|
226
|
+
button.className = 'fps-editor-ui-console-icon-button';
|
|
227
|
+
button.title = label;
|
|
228
|
+
button.setAttribute('aria-label', label);
|
|
229
|
+
button.appendChild(createLocalEditorIcon(doc, icon, { size: 13 }));
|
|
230
|
+
return button;
|
|
231
|
+
}
|
|
232
|
+
function copyConsoleText(doc, button, text) {
|
|
233
|
+
void writeLocalEditorClipboardText(doc.defaultView, text).then((copied) => {
|
|
234
|
+
const originalLabel = button.dataset.copyLabel ?? button.getAttribute('aria-label') ?? button.title;
|
|
235
|
+
const feedbackId = String(Number(button.dataset.copyFeedbackId ?? '0') + 1);
|
|
236
|
+
button.dataset.copyLabel = originalLabel;
|
|
237
|
+
button.dataset.copyFeedbackId = feedbackId;
|
|
238
|
+
const feedback = copied ? '已复制' : '复制失败';
|
|
239
|
+
button.dataset.copyState = copied ? 'success' : 'error';
|
|
240
|
+
button.title = feedback;
|
|
241
|
+
button.setAttribute('aria-label', feedback);
|
|
242
|
+
doc.defaultView?.setTimeout(() => {
|
|
243
|
+
if (button.dataset.copyFeedbackId !== feedbackId)
|
|
244
|
+
return;
|
|
245
|
+
button.dataset.copyState = '';
|
|
246
|
+
button.title = originalLabel;
|
|
247
|
+
button.setAttribute('aria-label', originalLabel);
|
|
248
|
+
}, 1200);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
export function formatLocalEditorConsoleEntry(entry) {
|
|
252
|
+
const time = entry.timestamp.toLocaleTimeString([], { hour12: false });
|
|
253
|
+
return [
|
|
254
|
+
`[${time}] [${entry.severity.toUpperCase()}] [${entry.source}] ${entry.message}`,
|
|
255
|
+
entry.details?.trim() ?? '',
|
|
256
|
+
].filter(Boolean).join('\n');
|
|
257
|
+
}
|
|
258
|
+
export function formatLocalEditorConsoleEntries(entries) {
|
|
259
|
+
return entries.map(formatLocalEditorConsoleEntry).join('\n\n');
|
|
260
|
+
}
|
|
261
|
+
function countEntries(entries) {
|
|
262
|
+
const counts = { info: 0, warning: 0, error: 0 };
|
|
263
|
+
for (const entry of entries)
|
|
264
|
+
counts[entry.severity] += 1;
|
|
265
|
+
return counts;
|
|
266
|
+
}
|
|
267
|
+
function resolveStatusSeverity(tone) {
|
|
268
|
+
return tone === 'error' ? 'error' : tone === 'warning' ? 'warning' : 'info';
|
|
269
|
+
}
|
|
270
|
+
function resolveConsoleSource(message) {
|
|
271
|
+
if (/save|保存/i.test(message))
|
|
272
|
+
return 'save';
|
|
273
|
+
if (/import|asset|导入|资产/i.test(message))
|
|
274
|
+
return 'import';
|
|
275
|
+
if (/compile|build|编译|构建/i.test(message))
|
|
276
|
+
return 'compile';
|
|
277
|
+
if (/run|play|运行/i.test(message))
|
|
278
|
+
return 'run';
|
|
279
|
+
if (/plugin|插件/i.test(message))
|
|
280
|
+
return 'plugin';
|
|
281
|
+
if (/capability|agent|bridge|能力/i.test(message))
|
|
282
|
+
return 'capability';
|
|
283
|
+
return 'editor';
|
|
284
|
+
}
|
|
285
|
+
function createDiagnosticKey(diagnostic) {
|
|
286
|
+
return [diagnostic.code, diagnostic.severity, diagnostic.message, JSON.stringify(diagnostic.details ?? null)].join('\u0000');
|
|
287
|
+
}
|
|
288
|
+
//# sourceMappingURL=local-editor-ui-console.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-editor-ui-console.js","sourceRoot":"","sources":["../src/local-editor-ui-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AA+BzE,MAAM,OAAO,GAAmE;IAC9E,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;IAC1B,EAA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KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AAC9E,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAe;IAC3C,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,MAAM,CAAC;IAC5C,IAAI,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,QAAQ,CAAC;IACzD,IAAI,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3D,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/C,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,QAAQ,CAAC;IAChD,IAAI,6BAA6B,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,YAAY,CAAC;IACrE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,mBAAmB,CAAC,UAA8C;IACzE,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC/H,CAAC","sourcesContent":["import { createLocalEditorIcon } from './local-editor-ui-icons';\nimport { writeLocalEditorClipboardText } from './local-editor-clipboard';\nimport type {\n LocalEditorBrowserStatusDiagnostic,\n LocalEditorBrowserUiState,\n} from './local-editor-ui-types';\n\nexport type LocalEditorConsoleSeverity = 'info' | 'warning' | 'error';\nexport type LocalEditorConsoleSource = 'editor' | 'save' | 'import' | 'compile' | 'run' | 'plugin' | 'capability';\ntype LocalEditorConsoleFilter = 'all' | LocalEditorConsoleSeverity;\n\nexport interface LocalEditorConsoleEntry {\n id: number;\n timestamp: Date;\n severity: LocalEditorConsoleSeverity;\n source: LocalEditorConsoleSource;\n message: string;\n details?: string;\n}\n\nexport interface LocalEditorConsoleController {\n append(entry: Omit<LocalEditorConsoleEntry, 'id' | 'timestamp'> & { timestamp?: Date }): void;\n syncState<TDocument>(state: LocalEditorBrowserUiState<TDocument>, previousState?: LocalEditorBrowserUiState<TDocument> | null): void;\n dispose(): void;\n}\n\nexport interface LocalEditorConsoleControllerOptions {\n isCollapsed(): boolean;\n onCollapsedChange(collapsed: boolean): void;\n maxEntries?: number;\n}\n\nconst FILTERS: ReadonlyArray<{ id: LocalEditorConsoleFilter; label: string }> = [\n { id: 'all', label: '全部' },\n { id: 'info', label: '信息' },\n { id: 'warning', label: '警告' },\n { id: 'error', label: '错误' },\n];\n\nexport function createLocalEditorConsoleController(\n doc: Document,\n host: HTMLElement,\n options: LocalEditorConsoleControllerOptions,\n): LocalEditorConsoleController {\n const maxEntries = Math.max(20, options.maxEntries ?? 250);\n const entries: LocalEditorConsoleEntry[] = [];\n const expandedEntryIds = new Set<number>();\n let knownDiagnostics = new Set<string>();\n let nextId = 1;\n let filter: LocalEditorConsoleFilter = 'all';\n let lastStatusSignature = '';\n\n host.classList.add('fps-editor-ui-console');\n const header = doc.createElement('div');\n header.className = 'fps-editor-ui-console-header';\n const titleGroup = doc.createElement('button');\n titleGroup.type = 'button';\n titleGroup.className = 'fps-editor-ui-console-title-group';\n titleGroup.appendChild(createLocalEditorIcon(doc, 'status', { size: 13 }));\n const title = doc.createElement('span');\n title.className = 'fps-editor-ui-console-title';\n title.textContent = 'Console';\n const totalCount = doc.createElement('span');\n totalCount.className = 'fps-editor-ui-console-total';\n titleGroup.append(title, totalCount);\n\n const filters = doc.createElement('div');\n filters.className = 'fps-editor-ui-console-filters';\n const filterButtons = new Map<LocalEditorConsoleFilter, HTMLButtonElement>();\n for (const item of FILTERS) {\n const button = doc.createElement('button');\n button.type = 'button';\n button.className = 'fps-editor-ui-console-filter';\n button.dataset.editorConsoleFilter = item.id;\n button.dataset.active = String(item.id === filter);\n button.textContent = item.label;\n button.addEventListener('click', () => {\n filter = item.id;\n render();\n });\n filterButtons.set(item.id, button);\n filters.appendChild(button);\n }\n\n const actions = doc.createElement('div');\n actions.className = 'fps-editor-ui-console-actions';\n const copyAllButton = createIconButton(doc, '复制全部 Console 信息', 'copy');\n const clearButton = createIconButton(doc, '清空 Console', 'trash');\n const collapseButton = createIconButton(doc, '展开 Console', 'chevron-right');\n actions.append(copyAllButton, clearButton, collapseButton);\n header.append(titleGroup, filters, actions);\n\n const list = doc.createElement('div');\n list.className = 'fps-editor-ui-console-list';\n list.setAttribute('role', 'log');\n list.setAttribute('aria-live', 'polite');\n host.replaceChildren(header, list);\n\n const onClear = (): void => {\n entries.length = 0;\n expandedEntryIds.clear();\n render();\n };\n const onCopyAll = (): void => {\n if (entries.length === 0) return;\n copyConsoleText(doc, copyAllButton, formatLocalEditorConsoleEntries(entries));\n };\n const onCollapse = (): void => {\n options.onCollapsedChange(!options.isCollapsed());\n render();\n };\n copyAllButton.addEventListener('click', onCopyAll);\n clearButton.addEventListener('click', onClear);\n titleGroup.addEventListener('click', onCollapse);\n collapseButton.addEventListener('click', onCollapse);\n\n const render = (): void => {\n const collapsed = options.isCollapsed();\n host.dataset.editorConsoleCollapsed = String(collapsed);\n titleGroup.title = collapsed ? '展开 Console' : '折叠 Console';\n titleGroup.setAttribute('aria-label', titleGroup.title);\n titleGroup.setAttribute('aria-expanded', String(!collapsed));\n collapseButton.replaceChildren(createLocalEditorIcon(doc, collapsed ? 'chevron-right' : 'chevron-down', { size: 13 }));\n collapseButton.title = collapsed ? '展开 Console' : '折叠 Console';\n collapseButton.setAttribute('aria-label', collapseButton.title);\n collapseButton.setAttribute('aria-expanded', String(!collapsed));\n\n const counts = countEntries(entries);\n totalCount.textContent = entries.length > 0 ? String(entries.length) : '';\n totalCount.dataset.hasErrors = String(counts.error > 0);\n copyAllButton.disabled = entries.length === 0;\n for (const [id, button] of filterButtons) {\n const count = id === 'all' ? entries.length : counts[id];\n button.dataset.active = String(id === filter);\n button.setAttribute('aria-pressed', String(id === filter));\n button.textContent = `${FILTERS.find(item => item.id === id)?.label ?? id} ${count}`;\n }\n\n if (collapsed) return;\n const stickToBottom = list.scrollHeight - list.scrollTop - list.clientHeight < 24;\n const visibleEntries = filter === 'all' ? entries : entries.filter(entry => entry.severity === filter);\n const fragment = doc.createDocumentFragment();\n if (visibleEntries.length === 0) {\n const empty = doc.createElement('div');\n empty.className = 'fps-editor-ui-console-empty';\n empty.textContent = '暂无消息';\n fragment.appendChild(empty);\n } else {\n for (const entry of visibleEntries) {\n fragment.appendChild(renderEntry(doc, entry, {\n expanded: expandedEntryIds.has(entry.id),\n onExpandedChange(expanded) {\n if (expanded) expandedEntryIds.add(entry.id);\n else expandedEntryIds.delete(entry.id);\n render();\n },\n onCopy(button) {\n copyConsoleText(doc, button, formatLocalEditorConsoleEntry(entry));\n },\n }));\n }\n }\n list.replaceChildren(fragment);\n if (stickToBottom) list.scrollTop = list.scrollHeight;\n };\n\n const append: LocalEditorConsoleController['append'] = (input): void => {\n const message = input.message.trim();\n if (!message) return;\n entries.push({\n ...input,\n id: nextId++,\n timestamp: input.timestamp ?? new Date(),\n message,\n });\n if (entries.length > maxEntries) {\n const removed = entries.splice(0, entries.length - maxEntries);\n for (const entry of removed) expandedEntryIds.delete(entry.id);\n }\n render();\n };\n\n render();\n return {\n append,\n syncState(state, previousState) {\n if (state.mode === 'editor' && previousState?.mode !== 'editor') {\n append({ severity: 'info', source: 'editor', message: '编辑器会话已就绪' });\n }\n\n const statusSignature = `${state.statusTone ?? 'default'}\\u0000${state.status}\\u0000${state.statusDetails ?? ''}`;\n if (state.status && statusSignature !== lastStatusSignature) {\n lastStatusSignature = statusSignature;\n append({\n severity: resolveStatusSeverity(state.statusTone),\n source: resolveConsoleSource(state.status),\n message: state.status,\n ...(state.statusDetails && state.statusDetails !== state.status ? { details: state.statusDetails } : {}),\n });\n }\n\n const currentDiagnosticKeys = new Set<string>();\n for (const diagnostic of state.statusDiagnostics ?? []) {\n const key = createDiagnosticKey(diagnostic);\n currentDiagnosticKeys.add(key);\n if (knownDiagnostics.has(key)) continue;\n append({\n severity: diagnostic.severity === 'error' ? 'error' : diagnostic.severity === 'warning' ? 'warning' : 'info',\n source: resolveConsoleSource(`${diagnostic.source ?? ''} ${diagnostic.message}`),\n message: diagnostic.message,\n ...(diagnostic.details ? { details: JSON.stringify(diagnostic.details, null, 2) } : {}),\n });\n }\n knownDiagnostics = currentDiagnosticKeys;\n },\n dispose() {\n copyAllButton.removeEventListener('click', onCopyAll);\n clearButton.removeEventListener('click', onClear);\n titleGroup.removeEventListener('click', onCollapse);\n collapseButton.removeEventListener('click', onCollapse);\n host.replaceChildren();\n },\n };\n}\n\nfunction renderEntry(\n doc: Document,\n entry: LocalEditorConsoleEntry,\n options: {\n expanded: boolean;\n onExpandedChange(expanded: boolean): void;\n onCopy(button: HTMLButtonElement): void;\n },\n): HTMLElement {\n const row = doc.createElement('div');\n row.className = 'fps-editor-ui-console-entry';\n row.dataset.severity = entry.severity;\n row.dataset.expanded = String(options.expanded);\n const summary = doc.createElement('div');\n summary.className = 'fps-editor-ui-console-entry-summary';\n const expandButton = createIconButton(\n doc,\n options.expanded ? '折叠此条 Console 信息' : '展开此条 Console 信息',\n options.expanded ? 'chevron-down' : 'chevron-right',\n );\n expandButton.classList.add('fps-editor-ui-console-entry-toggle');\n expandButton.setAttribute('aria-expanded', String(options.expanded));\n expandButton.addEventListener('click', () => options.onExpandedChange(!options.expanded));\n const time = doc.createElement('time');\n time.dateTime = entry.timestamp.toISOString();\n time.textContent = entry.timestamp.toLocaleTimeString([], { hour12: false });\n const severity = doc.createElement('span');\n severity.className = 'fps-editor-ui-console-severity';\n severity.textContent = entry.severity.toUpperCase();\n const source = doc.createElement('span');\n source.className = 'fps-editor-ui-console-source';\n source.textContent = entry.source;\n const content = doc.createElement('div');\n content.className = 'fps-editor-ui-console-message';\n content.textContent = entry.message;\n const copyButton = createIconButton(doc, '复制此条 Console 信息', 'copy');\n copyButton.classList.add('fps-editor-ui-console-entry-copy');\n copyButton.addEventListener('click', () => options.onCopy(copyButton));\n summary.append(expandButton, time, severity, source, content, copyButton);\n row.appendChild(summary);\n if (options.expanded) {\n const details = doc.createElement('pre');\n details.className = 'fps-editor-ui-console-entry-details';\n details.textContent = entry.details ? `${entry.message}\\n\\n${entry.details}` : entry.message;\n row.appendChild(details);\n }\n return row;\n}\n\nfunction createIconButton(\n doc: Document,\n label: string,\n icon: 'copy' | 'trash' | 'chevron-down' | 'chevron-right',\n): HTMLButtonElement {\n const button = doc.createElement('button');\n button.type = 'button';\n button.className = 'fps-editor-ui-console-icon-button';\n button.title = label;\n button.setAttribute('aria-label', label);\n button.appendChild(createLocalEditorIcon(doc, icon, { size: 13 }));\n return button;\n}\n\nfunction copyConsoleText(doc: Document, button: HTMLButtonElement, text: string): void {\n void writeLocalEditorClipboardText(doc.defaultView, text).then((copied) => {\n const originalLabel = button.dataset.copyLabel ?? button.getAttribute('aria-label') ?? button.title;\n const feedbackId = String(Number(button.dataset.copyFeedbackId ?? '0') + 1);\n button.dataset.copyLabel = originalLabel;\n button.dataset.copyFeedbackId = feedbackId;\n const feedback = copied ? '已复制' : '复制失败';\n button.dataset.copyState = copied ? 'success' : 'error';\n button.title = feedback;\n button.setAttribute('aria-label', feedback);\n doc.defaultView?.setTimeout(() => {\n if (button.dataset.copyFeedbackId !== feedbackId) return;\n button.dataset.copyState = '';\n button.title = originalLabel;\n button.setAttribute('aria-label', originalLabel);\n }, 1200);\n });\n}\n\nexport function formatLocalEditorConsoleEntry(entry: LocalEditorConsoleEntry): string {\n const time = entry.timestamp.toLocaleTimeString([], { hour12: false });\n return [\n `[${time}] [${entry.severity.toUpperCase()}] [${entry.source}] ${entry.message}`,\n entry.details?.trim() ?? '',\n ].filter(Boolean).join('\\n');\n}\n\nexport function formatLocalEditorConsoleEntries(entries: readonly LocalEditorConsoleEntry[]): string {\n return entries.map(formatLocalEditorConsoleEntry).join('\\n\\n');\n}\n\nfunction countEntries(entries: readonly LocalEditorConsoleEntry[]): Record<LocalEditorConsoleSeverity, number> {\n const counts = { info: 0, warning: 0, error: 0 };\n for (const entry of entries) counts[entry.severity] += 1;\n return counts;\n}\n\nfunction resolveStatusSeverity(tone: LocalEditorBrowserUiState['statusTone']): LocalEditorConsoleSeverity {\n return tone === 'error' ? 'error' : tone === 'warning' ? 'warning' : 'info';\n}\n\nfunction resolveConsoleSource(message: string): LocalEditorConsoleSource {\n if (/save|保存/i.test(message)) return 'save';\n if (/import|asset|导入|资产/i.test(message)) return 'import';\n if (/compile|build|编译|构建/i.test(message)) return 'compile';\n if (/run|play|运行/i.test(message)) return 'run';\n if (/plugin|插件/i.test(message)) return 'plugin';\n if (/capability|agent|bridge|能力/i.test(message)) return 'capability';\n return 'editor';\n}\n\nfunction createDiagnosticKey(diagnostic: LocalEditorBrowserStatusDiagnostic): string {\n return [diagnostic.code, diagnostic.severity, diagnostic.message, JSON.stringify(diagnostic.details ?? null)].join('\\u0000');\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LOCAL_EDITOR_ICON_NAMES: readonly ["asset", "arrange", "camera", "chevron-down", "chevron-right", "copy", "discard", "execute", "eye", "eye-off", "group", "grid", "help", "hierarchy", "history", "inspector", "local", "link", "lock", "material-slot", "move", "object", "performance", "prefab", "place-ground", "place-off", "place-surface", "projection-ortho", "projection-perspective", "plus", "redo", "root", "rotate", "save", "scale", "select", "snap", "status", "theme", "trash", "undo", "view-front", "view-overlay", "view-perspective", "view-right", "view-top", "warning", "measure", "world"];
|
|
1
|
+
export declare const LOCAL_EDITOR_ICON_NAMES: readonly ["arrow-up", "asset", "arrange", "camera", "chevron-down", "chevron-right", "copy", "close", "discard", "execute", "eye", "eye-off", "folder", "group", "grid", "help", "hierarchy", "history", "inspector", "local", "link", "list", "lock", "material-slot", "move", "object", "performance", "prefab", "place-ground", "place-off", "place-surface", "projection-ortho", "projection-perspective", "plus", "redo", "refresh", "root", "rotate", "save", "scale", "search", "select", "snap", "status", "theme", "trash", "undo", "view-front", "view-overlay", "view-perspective", "view-right", "view-top", "warning", "measure", "world"];
|
|
2
2
|
export type LocalEditorIconName = typeof LOCAL_EDITOR_ICON_NAMES[number];
|
|
3
3
|
export interface LocalEditorIconOptions {
|
|
4
4
|
size?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-icons.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-icons.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"local-editor-ui-icons.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-icons.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,ynBAwD1B,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2PD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAElF;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,EACd,QAAQ,GAAE,mBAA8B,GACvC,mBAAmB,CAErB;AAED,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAuCjB"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
export const LOCAL_EDITOR_ICON_NAMES = [
|
|
2
|
+
'arrow-up',
|
|
2
3
|
'asset',
|
|
3
4
|
'arrange',
|
|
4
5
|
'camera',
|
|
5
6
|
'chevron-down',
|
|
6
7
|
'chevron-right',
|
|
7
8
|
'copy',
|
|
9
|
+
'close',
|
|
8
10
|
'discard',
|
|
9
11
|
'execute',
|
|
10
12
|
'eye',
|
|
11
13
|
'eye-off',
|
|
14
|
+
'folder',
|
|
12
15
|
'group',
|
|
13
16
|
'grid',
|
|
14
17
|
'help',
|
|
@@ -17,6 +20,7 @@ export const LOCAL_EDITOR_ICON_NAMES = [
|
|
|
17
20
|
'inspector',
|
|
18
21
|
'local',
|
|
19
22
|
'link',
|
|
23
|
+
'list',
|
|
20
24
|
'lock',
|
|
21
25
|
'material-slot',
|
|
22
26
|
'move',
|
|
@@ -30,10 +34,12 @@ export const LOCAL_EDITOR_ICON_NAMES = [
|
|
|
30
34
|
'projection-perspective',
|
|
31
35
|
'plus',
|
|
32
36
|
'redo',
|
|
37
|
+
'refresh',
|
|
33
38
|
'root',
|
|
34
39
|
'rotate',
|
|
35
40
|
'save',
|
|
36
41
|
'scale',
|
|
42
|
+
'search',
|
|
37
43
|
'select',
|
|
38
44
|
'snap',
|
|
39
45
|
'status',
|
|
@@ -51,6 +57,9 @@ export const LOCAL_EDITOR_ICON_NAMES = [
|
|
|
51
57
|
];
|
|
52
58
|
const LOCAL_EDITOR_ICON_SET = new Set(LOCAL_EDITOR_ICON_NAMES);
|
|
53
59
|
const LOCAL_EDITOR_ICON_DEFINITIONS = {
|
|
60
|
+
'arrow-up': [
|
|
61
|
+
{ tag: 'path', attrs: { d: 'M12 19V5M6 11l6-6 6 6' } },
|
|
62
|
+
],
|
|
54
63
|
asset: [
|
|
55
64
|
{ tag: 'rect', attrs: { x: '4', y: '5', width: '16', height: '14', rx: '2' } },
|
|
56
65
|
{ tag: 'path', attrs: { d: 'M8 9h8M8 13h5' } },
|
|
@@ -74,6 +83,9 @@ const LOCAL_EDITOR_ICON_DEFINITIONS = {
|
|
|
74
83
|
{ tag: 'rect', attrs: { x: '8', y: '8', width: '11', height: '11', rx: '2' } },
|
|
75
84
|
{ tag: 'path', attrs: { d: 'M5 15H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1' } },
|
|
76
85
|
],
|
|
86
|
+
close: [
|
|
87
|
+
{ tag: 'path', attrs: { d: 'M6 6l12 12M18 6L6 18' } },
|
|
88
|
+
],
|
|
77
89
|
discard: [
|
|
78
90
|
{ tag: 'path', attrs: { d: 'M6 6l12 12M18 6L6 18' } },
|
|
79
91
|
{ tag: 'path', attrs: { d: 'M5 12a7 7 0 0 1 7-7 7 7 0 0 1 5.2 2.3M19 12a7 7 0 0 1-7 7 7 7 0 0 1-5.2-2.3' } },
|
|
@@ -91,6 +103,9 @@ const LOCAL_EDITOR_ICON_DEFINITIONS = {
|
|
|
91
103
|
{ tag: 'path', attrs: { d: 'M9.9 5.2A10.6 10.6 0 0 1 12 5c6.5 0 10 7 10 7a17.8 17.8 0 0 1-3.2 4.2' } },
|
|
92
104
|
{ tag: 'path', attrs: { d: 'M6.1 6.1C3.5 7.8 2 12 2 12s3.5 7 10 7a10.4 10.4 0 0 0 4.1-.8' } },
|
|
93
105
|
],
|
|
106
|
+
folder: [
|
|
107
|
+
{ tag: 'path', attrs: { d: 'M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2h6.5A2.5 2.5 0 0 1 21 9.5v7A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5z' } },
|
|
108
|
+
],
|
|
94
109
|
group: [
|
|
95
110
|
{ tag: 'rect', attrs: { x: '5', y: '5', width: '7', height: '7', rx: '1.5' } },
|
|
96
111
|
{ tag: 'rect', attrs: { x: '12', y: '12', width: '7', height: '7', rx: '1.5' } },
|
|
@@ -128,6 +143,12 @@ const LOCAL_EDITOR_ICON_DEFINITIONS = {
|
|
|
128
143
|
{ tag: 'path', attrs: { d: 'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71' } },
|
|
129
144
|
{ tag: 'path', attrs: { d: 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71' } },
|
|
130
145
|
],
|
|
146
|
+
list: [
|
|
147
|
+
{ tag: 'path', attrs: { d: 'M9 6h11M9 12h11M9 18h11' } },
|
|
148
|
+
{ tag: 'circle', attrs: { cx: '5', cy: '6', r: '1' } },
|
|
149
|
+
{ tag: 'circle', attrs: { cx: '5', cy: '12', r: '1' } },
|
|
150
|
+
{ tag: 'circle', attrs: { cx: '5', cy: '18', r: '1' } },
|
|
151
|
+
],
|
|
131
152
|
lock: [
|
|
132
153
|
{ tag: 'rect', attrs: { x: '6', y: '10', width: '12', height: '9', rx: '2' } },
|
|
133
154
|
{ tag: 'path', attrs: { d: 'M9 10V7a3 3 0 0 1 6 0v3' } },
|
|
@@ -186,6 +207,10 @@ const LOCAL_EDITOR_ICON_DEFINITIONS = {
|
|
|
186
207
|
{ tag: 'path', attrs: { d: 'M19 7v6h-6' } },
|
|
187
208
|
{ tag: 'path', attrs: { d: 'M18 13a6 6 0 1 1-1.7-4.2L19 11' } },
|
|
188
209
|
],
|
|
210
|
+
refresh: [
|
|
211
|
+
{ tag: 'path', attrs: { d: 'M20 7v5h-5M4 17v-5h5' } },
|
|
212
|
+
{ tag: 'path', attrs: { d: 'M6.1 8.2A7 7 0 0 1 18.6 7M17.9 15.8A7 7 0 0 1 5.4 17' } },
|
|
213
|
+
],
|
|
189
214
|
root: [
|
|
190
215
|
{ tag: 'circle', attrs: { cx: '12', cy: '5', r: '2' } },
|
|
191
216
|
{ tag: 'path', attrs: { d: 'M12 7v11M7 12h10' } },
|
|
@@ -204,6 +229,10 @@ const LOCAL_EDITOR_ICON_DEFINITIONS = {
|
|
|
204
229
|
{ tag: 'path', attrs: { d: 'M4 14v6h6M20 10V4h-6' } },
|
|
205
230
|
{ tag: 'path', attrs: { d: 'M20 4l-7 7M4 20l7-7' } },
|
|
206
231
|
],
|
|
232
|
+
search: [
|
|
233
|
+
{ tag: 'circle', attrs: { cx: '11', cy: '11', r: '6.5' } },
|
|
234
|
+
{ tag: 'path', attrs: { d: 'M16 16l4 4' } },
|
|
235
|
+
],
|
|
207
236
|
select: [
|
|
208
237
|
{ tag: 'path', attrs: { d: 'M5 4l10 10-5 1.5L8.5 20z' } },
|
|
209
238
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-icons.js","sourceRoot":"","sources":["../src/local-editor-ui-icons.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,OAAO;IACP,SAAS;IACT,QAAQ;IACR,cAAc;IACd,eAAe;IACf,MAAM;IACN,SAAS;IACT,SAAS;IACT,KAAK;IACL,SAAS;IACT,OAAO;IACP,MAAM;IACN,MAAM;IACN,WAAW;IACX,SAAS;IACT,WAAW;IACX,OAAO;IACP,MAAM;IACN,MAAM;IACN,eAAe;IACf,MAAM;IACN,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,cAAc;IACd,WAAW;IACX,eAAe;IACf,kBAAkB;IAClB,wBAAwB;IACxB,MAAM;IACN,MAAM;IACN,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,OAAO;IACP,OAAO;IACP,MAAM;IACN,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,YAAY;IACZ,UAAU;IACV,SAAS;IACT,SAAS;IACT,OAAO;CACC,CAAC;AAgBX,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAS,uBAAuB,CAAC,CAAC;AAEvE,MAAM,6BAA6B,GAAG;IACpC,KAAK,EAAE;QACL,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE;QAC9E,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE;QAC9C,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE;KAC/C;IACD,OAAO,EAAE;QACP,EA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Y,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACtB,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["export const LOCAL_EDITOR_ICON_NAMES = [\n 'asset',\n 'arrange',\n 'camera',\n 'chevron-down',\n 'chevron-right',\n 'copy',\n 'discard',\n 'execute',\n 'eye',\n 'eye-off',\n 'group',\n 'grid',\n 'help',\n 'hierarchy',\n 'history',\n 'inspector',\n 'local',\n 'link',\n 'lock',\n 'material-slot',\n 'move',\n 'object',\n 'performance',\n 'prefab',\n 'place-ground',\n 'place-off',\n 'place-surface',\n 'projection-ortho',\n 'projection-perspective',\n 'plus',\n 'redo',\n 'root',\n 'rotate',\n 'save',\n 'scale',\n 'select',\n 'snap',\n 'status',\n 'theme',\n 'trash',\n 'undo',\n 'view-front',\n 'view-overlay',\n 'view-perspective',\n 'view-right',\n 'view-top',\n 'warning',\n 'measure',\n 'world',\n] as const;\n\nexport type LocalEditorIconName = typeof LOCAL_EDITOR_ICON_NAMES[number];\n\nexport interface LocalEditorIconOptions {\n size?: number;\n strokeWidth?: number;\n}\n\ntype LocalEditorIconElement =\n | { tag: 'circle'; attrs: Record<string, string> }\n | { tag: 'line'; attrs: Record<string, string> }\n | { tag: 'path'; attrs: Record<string, string> }\n | { tag: 'polyline'; attrs: Record<string, string> }\n | { tag: 'rect'; attrs: Record<string, string> };\n\nconst LOCAL_EDITOR_ICON_SET = new Set<string>(LOCAL_EDITOR_ICON_NAMES);\n\nconst LOCAL_EDITOR_ICON_DEFINITIONS = {\n asset: [\n { tag: 'rect', attrs: { x: '4', y: '5', width: '16', height: '14', rx: '2' } },\n { tag: 'path', attrs: { d: 'M8 9h8M8 13h5' } },\n { tag: 'path', attrs: { d: 'M7 19l5-4 5 4' } },\n ],\n arrange: [\n { tag: 'path', attrs: { d: 'M5 6h14M8 6v12M16 6v12M5 18h14' } },\n { tag: 'path', attrs: { d: 'M10 10h4M9 14h6' } },\n ],\n camera: [\n { tag: 'path', attrs: { d: 'M4 8.5A2.5 2.5 0 0 1 6.5 6h2l1.5-2h4l1.5 2h2A2.5 2.5 0 0 1 20 8.5v7A2.5 2.5 0 0 1 17.5 18h-11A2.5 2.5 0 0 1 4 15.5z' } },\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '3' } },\n ],\n 'chevron-down': [\n { tag: 'polyline', attrs: { points: '7 10 12 15 17 10' } },\n ],\n 'chevron-right': [\n { tag: 'polyline', attrs: { points: '10 7 15 12 10 17' } },\n ],\n copy: [\n { tag: 'rect', attrs: { x: '8', y: '8', width: '11', height: '11', rx: '2' } },\n { tag: 'path', attrs: { d: 'M5 15H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1' } },\n ],\n discard: [\n { tag: 'path', attrs: { d: 'M6 6l12 12M18 6L6 18' } },\n { tag: 'path', attrs: { d: 'M5 12a7 7 0 0 1 7-7 7 7 0 0 1 5.2 2.3M19 12a7 7 0 0 1-7 7 7 7 0 0 1-5.2-2.3' } },\n ],\n execute: [\n { tag: 'path', attrs: { d: 'M8 5l10 7-10 7z' } },\n ],\n eye: [\n { tag: 'path', attrs: { d: 'M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z' } },\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '3' } },\n ],\n 'eye-off': [\n { tag: 'path', attrs: { d: 'M3 3l18 18' } },\n { tag: 'path', attrs: { d: 'M10.6 10.6A3 3 0 0 0 13.4 13.4' } },\n { tag: 'path', attrs: { d: 'M9.9 5.2A10.6 10.6 0 0 1 12 5c6.5 0 10 7 10 7a17.8 17.8 0 0 1-3.2 4.2' } },\n { tag: 'path', attrs: { d: 'M6.1 6.1C3.5 7.8 2 12 2 12s3.5 7 10 7a10.4 10.4 0 0 0 4.1-.8' } },\n ],\n group: [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '7', height: '7', rx: '1.5' } },\n { tag: 'rect', attrs: { x: '12', y: '12', width: '7', height: '7', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M8.5 12v3.5H12M12 8.5h3.5V12' } },\n ],\n grid: [\n { tag: 'path', attrs: { d: 'M4 8h16M4 12h16M4 16h16' } },\n { tag: 'path', attrs: { d: 'M8 4v16M12 4v16M16 4v16' } },\n ],\n help: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M9.8 9.4a2.4 2.4 0 0 1 4.4 1.3c0 1.7-1.9 2.1-2.2 3.4' } },\n { tag: 'line', attrs: { x1: '12', y1: '17', x2: '12.01', y2: '17' } },\n ],\n hierarchy: [\n { tag: 'path', attrs: { d: 'M12 5v5M6 14v-3h12v3' } },\n { tag: 'rect', attrs: { x: '9', y: '3', width: '6', height: '4', rx: '1' } },\n { tag: 'rect', attrs: { x: '3', y: '14', width: '6', height: '5', rx: '1' } },\n { tag: 'rect', attrs: { x: '15', y: '14', width: '6', height: '5', rx: '1' } },\n ],\n history: [\n { tag: 'path', attrs: { d: 'M5 7v5h5' } },\n { tag: 'path', attrs: { d: 'M5.8 15.4A7 7 0 1 0 5 7' } },\n { tag: 'path', attrs: { d: 'M12 8v4l3 2' } },\n ],\n inspector: [\n { tag: 'rect', attrs: { x: '5', y: '4', width: '14', height: '16', rx: '2' } },\n { tag: 'path', attrs: { d: 'M9 8h6M9 12h6M9 16h3' } },\n ],\n local: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '3' } },\n { tag: 'path', attrs: { d: 'M12 3v3M12 18v3M3 12h3M18 12h3' } },\n ],\n link: [\n { tag: 'path', attrs: { d: 'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71' } },\n { tag: 'path', attrs: { d: 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71' } },\n ],\n lock: [\n { tag: 'rect', attrs: { x: '6', y: '10', width: '12', height: '9', rx: '2' } },\n { tag: 'path', attrs: { d: 'M9 10V7a3 3 0 0 1 6 0v3' } },\n ],\n 'material-slot': [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '9', height: '9', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M14 7l5 5-7 7H7v-5z' } },\n { tag: 'path', attrs: { d: 'M8 8h3M8 11h2' } },\n { tag: 'circle', attrs: { cx: '17.5', cy: '17.5', r: '1.4' } },\n ],\n move: [\n { tag: 'path', attrs: { d: 'M12 3v18M3 12h18' } },\n { tag: 'path', attrs: { d: 'M12 3l-3 3M12 3l3 3M12 21l-3-3M12 21l3-3M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3' } },\n ],\n object: [\n { tag: 'path', attrs: { d: 'M12 3l7 4v9l-7 4-7-4V7z' } },\n { tag: 'path', attrs: { d: 'M5 7l7 4 7-4M12 11v9' } },\n ],\n prefab: [\n { tag: 'path', attrs: { d: 'M12 3l7 4v8l-7 4-7-4V7z' } },\n { tag: 'path', attrs: { d: 'M5 7l7 4 7-4M12 11v8' } },\n { tag: 'rect', attrs: { x: '14.5', y: '13.5', width: '5', height: '5', rx: '1' } },\n { tag: 'path', attrs: { d: 'M16 16h2M17 15v2' } },\n ],\n performance: [\n { tag: 'path', attrs: { d: 'M4 17a8 8 0 1 1 16 0' } },\n { tag: 'path', attrs: { d: 'M12 17l4-7' } },\n { tag: 'path', attrs: { d: 'M8 17h8' } },\n { tag: 'path', attrs: { d: 'M7 13h1M12 9v1M17 13h-1' } },\n ],\n 'place-ground': [\n { tag: 'path', attrs: { d: 'M4 18h16' } },\n { tag: 'path', attrs: { d: 'M12 4v10' } },\n { tag: 'path', attrs: { d: 'M8 10l4 4 4-4' } },\n ],\n 'place-off': [\n { tag: 'path', attrs: { d: 'M4 18h16M12 4v10M8 10l4 4 4-4' } },\n { tag: 'path', attrs: { d: 'M5 5l14 14' } },\n ],\n 'place-surface': [\n { tag: 'path', attrs: { d: 'M4 16l5-5 4 4 7-7' } },\n { tag: 'path', attrs: { d: 'M12 4v10M8 10l4 4 4-4' } },\n ],\n 'projection-ortho': [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '14', height: '14', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M8 8h8v8H8z' } },\n ],\n 'projection-perspective': [\n { tag: 'path', attrs: { d: 'M4 18l8-12 8 12z' } },\n { tag: 'path', attrs: { d: 'M8 18l4-6 4 6M12 6v6' } },\n ],\n plus: [\n { tag: 'path', attrs: { d: 'M12 5v14M5 12h14' } },\n ],\n redo: [\n { tag: 'path', attrs: { d: 'M19 7v6h-6' } },\n { tag: 'path', attrs: { d: 'M18 13a6 6 0 1 1-1.7-4.2L19 11' } },\n ],\n root: [\n { tag: 'circle', attrs: { cx: '12', cy: '5', r: '2' } },\n { tag: 'path', attrs: { d: 'M12 7v11M7 12h10' } },\n { tag: 'circle', attrs: { cx: '7', cy: '18', r: '2' } },\n { tag: 'circle', attrs: { cx: '17', cy: '18', r: '2' } },\n ],\n rotate: [\n { tag: 'path', attrs: { d: 'M18 8a7 7 0 1 0 1.3 6.1' } },\n { tag: 'path', attrs: { d: 'M18 4v4h-4' } },\n ],\n save: [\n { tag: 'path', attrs: { d: 'M5 4h12l2 2v15H5z' } },\n { tag: 'path', attrs: { d: 'M8 4v6h9M8 21v-6h8v6' } },\n ],\n scale: [\n { tag: 'path', attrs: { d: 'M4 14v6h6M20 10V4h-6' } },\n { tag: 'path', attrs: { d: 'M20 4l-7 7M4 20l7-7' } },\n ],\n select: [\n { tag: 'path', attrs: { d: 'M5 4l10 10-5 1.5L8.5 20z' } },\n ],\n snap: [\n { tag: 'path', attrs: { d: 'M8 4v6a4 4 0 0 0 8 0V4' } },\n { tag: 'path', attrs: { d: 'M8 8h4M16 8h-4M8 4h4M16 4h-4M12 14v6' } },\n ],\n status: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M12 8v5' } },\n { tag: 'line', attrs: { x1: '12', y1: '16', x2: '12.01', y2: '16' } },\n ],\n warning: [\n { tag: 'path', attrs: { d: 'M12 3L2.8 20h18.4z' } },\n { tag: 'path', attrs: { d: 'M12 9v5' } },\n { tag: 'line', attrs: { x1: '12', y1: '17', x2: '12.01', y2: '17' } },\n ],\n theme: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M12 3v18' } },\n { tag: 'path', attrs: { d: 'M12 5a7 7 0 0 1 0 14' } },\n ],\n trash: [\n { tag: 'path', attrs: { d: 'M4 7h16' } },\n { tag: 'path', attrs: { d: 'M10 11v6M14 11v6' } },\n { tag: 'path', attrs: { d: 'M6 7l1 14h10l1-14M9 7V4h6v3' } },\n ],\n undo: [\n { tag: 'path', attrs: { d: 'M5 7v6h6' } },\n { tag: 'path', attrs: { d: 'M6 13a6 6 0 1 0 1.7-4.2L5 11' } },\n ],\n 'view-front': [\n { tag: 'rect', attrs: { x: '5', y: '6', width: '14', height: '12', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M8 9h8M8 15h8M12 6v12' } },\n ],\n 'view-overlay': [\n { tag: 'path', attrs: { d: 'M12 3l7 4v10l-7 4-7-4V7z' } },\n { tag: 'path', attrs: { d: 'M5 7l7 4 7-4M5 17l7-4 7 4' } },\n { tag: 'circle', attrs: { cx: '12', cy: '13', r: '1.5' } },\n ],\n 'view-perspective': [\n { tag: 'path', attrs: { d: 'M4 17l8-10 8 10' } },\n { tag: 'path', attrs: { d: 'M8 17h8M12 7v10' } },\n ],\n 'view-right': [\n { tag: 'path', attrs: { d: 'M6 5l12 4v10L6 15z' } },\n { tag: 'path', attrs: { d: 'M6 5v10M18 9v10M6 15l12 4' } },\n ],\n 'view-top': [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '14', height: '14', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M9 5v14M15 5v14M5 9h14M5 15h14' } },\n ],\n measure: [\n { tag: 'path', attrs: { d: 'M5 17L17 5' } },\n { tag: 'path', attrs: { d: 'M7 19l-2-2 2-2M15 7l2-2 2 2' } },\n { tag: 'path', attrs: { d: 'M9 15l1.5 1.5M12 12l1.5 1.5M15 9l1.5 1.5' } },\n ],\n world: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18' } },\n ],\n} satisfies Record<LocalEditorIconName, readonly LocalEditorIconElement[]>;\n\nexport function isLocalEditorIconName(value: unknown): value is LocalEditorIconName {\n return typeof value === 'string' && LOCAL_EDITOR_ICON_SET.has(value);\n}\n\nexport function resolveLocalEditorIconName(\n value: unknown,\n fallback: LocalEditorIconName = 'object',\n): LocalEditorIconName {\n return isLocalEditorIconName(value) ? value : fallback;\n}\n\nexport function createLocalEditorIcon(\n doc: Document,\n name: LocalEditorIconName,\n options: LocalEditorIconOptions = {},\n): HTMLSpanElement {\n const resolvedName = resolveLocalEditorIconName(name);\n const size = options.size ?? 14;\n const strokeWidth = options.strokeWidth ?? 2;\n const icon = doc.createElement('span');\n icon.dataset.editorIcon = resolvedName;\n icon.setAttribute('aria-hidden', 'true');\n icon.style.cssText = [\n `width:${size}px`,\n `height:${size}px`,\n `flex:0 0 ${size}px`,\n 'display:inline-flex',\n 'align-items:center',\n 'justify-content:center',\n 'color:currentColor',\n 'pointer-events:none',\n ].join(';');\n\n const svg = doc.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttribute('viewBox', '0 0 24 24');\n svg.setAttribute('width', String(size));\n svg.setAttribute('height', String(size));\n svg.setAttribute('fill', 'none');\n svg.setAttribute('stroke', 'currentColor');\n svg.setAttribute('stroke-width', String(strokeWidth));\n svg.setAttribute('stroke-linecap', 'round');\n svg.setAttribute('stroke-linejoin', 'round');\n svg.setAttribute('focusable', 'false');\n\n for (const node of LOCAL_EDITOR_ICON_DEFINITIONS[resolvedName]) {\n const element = doc.createElementNS('http://www.w3.org/2000/svg', node.tag);\n for (const [key, value] of Object.entries(node.attrs)) {\n element.setAttribute(key, value);\n }\n svg.appendChild(element);\n }\n\n icon.appendChild(svg);\n return icon;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-editor-ui-icons.js","sourceRoot":"","sources":["../src/local-editor-ui-icons.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,UAAU;IACV,OAAO;IACP,SAAS;IACT,QAAQ;IACR,cAAc;IACd,eAAe;IACf,MAAM;IACN,OAAO;IACP,SAAS;IACT,SAAS;IACT,KAAK;IACL,SAAS;IACT,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,WAAW;IACX,SAAS;IACT,WAAW;IACX,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,eAAe;IACf,MAAM;IACN,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,cAAc;IACd,WAAW;IACX,eAAe;IACf,kBAAkB;IAClB,wBAAwB;IACxB,MAAM;IACN,MAAM;IACN,SAAS;IACT,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,OAAO;IACP,OAAO;IACP,MAAM;IACN,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,YAAY;IACZ,UAAU;IACV,SAAS;IACT,SAAS;IACT,OAAO;CACC,CAAC;AAgBX,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAS,uBAAuB,CAAC,CAAC;AAEvE,MAAM,6BAA6B,GAAG;IACpC,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,uBAAuB,EAAE,EAAE;KACvD;IACD,KAAK,EAAE;QACL,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,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,MAAM,OAAO,GAAG,GAAG,CAAC,eAAe,CAAC,4BAA4B,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5E,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACtD,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACtB,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["export const LOCAL_EDITOR_ICON_NAMES = [\n 'arrow-up',\n 'asset',\n 'arrange',\n 'camera',\n 'chevron-down',\n 'chevron-right',\n 'copy',\n 'close',\n 'discard',\n 'execute',\n 'eye',\n 'eye-off',\n 'folder',\n 'group',\n 'grid',\n 'help',\n 'hierarchy',\n 'history',\n 'inspector',\n 'local',\n 'link',\n 'list',\n 'lock',\n 'material-slot',\n 'move',\n 'object',\n 'performance',\n 'prefab',\n 'place-ground',\n 'place-off',\n 'place-surface',\n 'projection-ortho',\n 'projection-perspective',\n 'plus',\n 'redo',\n 'refresh',\n 'root',\n 'rotate',\n 'save',\n 'scale',\n 'search',\n 'select',\n 'snap',\n 'status',\n 'theme',\n 'trash',\n 'undo',\n 'view-front',\n 'view-overlay',\n 'view-perspective',\n 'view-right',\n 'view-top',\n 'warning',\n 'measure',\n 'world',\n] as const;\n\nexport type LocalEditorIconName = typeof LOCAL_EDITOR_ICON_NAMES[number];\n\nexport interface LocalEditorIconOptions {\n size?: number;\n strokeWidth?: number;\n}\n\ntype LocalEditorIconElement =\n | { tag: 'circle'; attrs: Record<string, string> }\n | { tag: 'line'; attrs: Record<string, string> }\n | { tag: 'path'; attrs: Record<string, string> }\n | { tag: 'polyline'; attrs: Record<string, string> }\n | { tag: 'rect'; attrs: Record<string, string> };\n\nconst LOCAL_EDITOR_ICON_SET = new Set<string>(LOCAL_EDITOR_ICON_NAMES);\n\nconst LOCAL_EDITOR_ICON_DEFINITIONS = {\n 'arrow-up': [\n { tag: 'path', attrs: { d: 'M12 19V5M6 11l6-6 6 6' } },\n ],\n asset: [\n { tag: 'rect', attrs: { x: '4', y: '5', width: '16', height: '14', rx: '2' } },\n { tag: 'path', attrs: { d: 'M8 9h8M8 13h5' } },\n { tag: 'path', attrs: { d: 'M7 19l5-4 5 4' } },\n ],\n arrange: [\n { tag: 'path', attrs: { d: 'M5 6h14M8 6v12M16 6v12M5 18h14' } },\n { tag: 'path', attrs: { d: 'M10 10h4M9 14h6' } },\n ],\n camera: [\n { tag: 'path', attrs: { d: 'M4 8.5A2.5 2.5 0 0 1 6.5 6h2l1.5-2h4l1.5 2h2A2.5 2.5 0 0 1 20 8.5v7A2.5 2.5 0 0 1 17.5 18h-11A2.5 2.5 0 0 1 4 15.5z' } },\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '3' } },\n ],\n 'chevron-down': [\n { tag: 'polyline', attrs: { points: '7 10 12 15 17 10' } },\n ],\n 'chevron-right': [\n { tag: 'polyline', attrs: { points: '10 7 15 12 10 17' } },\n ],\n copy: [\n { tag: 'rect', attrs: { x: '8', y: '8', width: '11', height: '11', rx: '2' } },\n { tag: 'path', attrs: { d: 'M5 15H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1' } },\n ],\n close: [\n { tag: 'path', attrs: { d: 'M6 6l12 12M18 6L6 18' } },\n ],\n discard: [\n { tag: 'path', attrs: { d: 'M6 6l12 12M18 6L6 18' } },\n { tag: 'path', attrs: { d: 'M5 12a7 7 0 0 1 7-7 7 7 0 0 1 5.2 2.3M19 12a7 7 0 0 1-7 7 7 7 0 0 1-5.2-2.3' } },\n ],\n execute: [\n { tag: 'path', attrs: { d: 'M8 5l10 7-10 7z' } },\n ],\n eye: [\n { tag: 'path', attrs: { d: 'M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z' } },\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '3' } },\n ],\n 'eye-off': [\n { tag: 'path', attrs: { d: 'M3 3l18 18' } },\n { tag: 'path', attrs: { d: 'M10.6 10.6A3 3 0 0 0 13.4 13.4' } },\n { tag: 'path', attrs: { d: 'M9.9 5.2A10.6 10.6 0 0 1 12 5c6.5 0 10 7 10 7a17.8 17.8 0 0 1-3.2 4.2' } },\n { tag: 'path', attrs: { d: 'M6.1 6.1C3.5 7.8 2 12 2 12s3.5 7 10 7a10.4 10.4 0 0 0 4.1-.8' } },\n ],\n folder: [\n { tag: 'path', attrs: { d: 'M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2h6.5A2.5 2.5 0 0 1 21 9.5v7A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5z' } },\n ],\n group: [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '7', height: '7', rx: '1.5' } },\n { tag: 'rect', attrs: { x: '12', y: '12', width: '7', height: '7', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M8.5 12v3.5H12M12 8.5h3.5V12' } },\n ],\n grid: [\n { tag: 'path', attrs: { d: 'M4 8h16M4 12h16M4 16h16' } },\n { tag: 'path', attrs: { d: 'M8 4v16M12 4v16M16 4v16' } },\n ],\n help: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M9.8 9.4a2.4 2.4 0 0 1 4.4 1.3c0 1.7-1.9 2.1-2.2 3.4' } },\n { tag: 'line', attrs: { x1: '12', y1: '17', x2: '12.01', y2: '17' } },\n ],\n hierarchy: [\n { tag: 'path', attrs: { d: 'M12 5v5M6 14v-3h12v3' } },\n { tag: 'rect', attrs: { x: '9', y: '3', width: '6', height: '4', rx: '1' } },\n { tag: 'rect', attrs: { x: '3', y: '14', width: '6', height: '5', rx: '1' } },\n { tag: 'rect', attrs: { x: '15', y: '14', width: '6', height: '5', rx: '1' } },\n ],\n history: [\n { tag: 'path', attrs: { d: 'M5 7v5h5' } },\n { tag: 'path', attrs: { d: 'M5.8 15.4A7 7 0 1 0 5 7' } },\n { tag: 'path', attrs: { d: 'M12 8v4l3 2' } },\n ],\n inspector: [\n { tag: 'rect', attrs: { x: '5', y: '4', width: '14', height: '16', rx: '2' } },\n { tag: 'path', attrs: { d: 'M9 8h6M9 12h6M9 16h3' } },\n ],\n local: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '3' } },\n { tag: 'path', attrs: { d: 'M12 3v3M12 18v3M3 12h3M18 12h3' } },\n ],\n link: [\n { tag: 'path', attrs: { d: 'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71' } },\n { tag: 'path', attrs: { d: 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71' } },\n ],\n list: [\n { tag: 'path', attrs: { d: 'M9 6h11M9 12h11M9 18h11' } },\n { tag: 'circle', attrs: { cx: '5', cy: '6', r: '1' } },\n { tag: 'circle', attrs: { cx: '5', cy: '12', r: '1' } },\n { tag: 'circle', attrs: { cx: '5', cy: '18', r: '1' } },\n ],\n lock: [\n { tag: 'rect', attrs: { x: '6', y: '10', width: '12', height: '9', rx: '2' } },\n { tag: 'path', attrs: { d: 'M9 10V7a3 3 0 0 1 6 0v3' } },\n ],\n 'material-slot': [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '9', height: '9', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M14 7l5 5-7 7H7v-5z' } },\n { tag: 'path', attrs: { d: 'M8 8h3M8 11h2' } },\n { tag: 'circle', attrs: { cx: '17.5', cy: '17.5', r: '1.4' } },\n ],\n move: [\n { tag: 'path', attrs: { d: 'M12 3v18M3 12h18' } },\n { tag: 'path', attrs: { d: 'M12 3l-3 3M12 3l3 3M12 21l-3-3M12 21l3-3M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3' } },\n ],\n object: [\n { tag: 'path', attrs: { d: 'M12 3l7 4v9l-7 4-7-4V7z' } },\n { tag: 'path', attrs: { d: 'M5 7l7 4 7-4M12 11v9' } },\n ],\n prefab: [\n { tag: 'path', attrs: { d: 'M12 3l7 4v8l-7 4-7-4V7z' } },\n { tag: 'path', attrs: { d: 'M5 7l7 4 7-4M12 11v8' } },\n { tag: 'rect', attrs: { x: '14.5', y: '13.5', width: '5', height: '5', rx: '1' } },\n { tag: 'path', attrs: { d: 'M16 16h2M17 15v2' } },\n ],\n performance: [\n { tag: 'path', attrs: { d: 'M4 17a8 8 0 1 1 16 0' } },\n { tag: 'path', attrs: { d: 'M12 17l4-7' } },\n { tag: 'path', attrs: { d: 'M8 17h8' } },\n { tag: 'path', attrs: { d: 'M7 13h1M12 9v1M17 13h-1' } },\n ],\n 'place-ground': [\n { tag: 'path', attrs: { d: 'M4 18h16' } },\n { tag: 'path', attrs: { d: 'M12 4v10' } },\n { tag: 'path', attrs: { d: 'M8 10l4 4 4-4' } },\n ],\n 'place-off': [\n { tag: 'path', attrs: { d: 'M4 18h16M12 4v10M8 10l4 4 4-4' } },\n { tag: 'path', attrs: { d: 'M5 5l14 14' } },\n ],\n 'place-surface': [\n { tag: 'path', attrs: { d: 'M4 16l5-5 4 4 7-7' } },\n { tag: 'path', attrs: { d: 'M12 4v10M8 10l4 4 4-4' } },\n ],\n 'projection-ortho': [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '14', height: '14', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M8 8h8v8H8z' } },\n ],\n 'projection-perspective': [\n { tag: 'path', attrs: { d: 'M4 18l8-12 8 12z' } },\n { tag: 'path', attrs: { d: 'M8 18l4-6 4 6M12 6v6' } },\n ],\n plus: [\n { tag: 'path', attrs: { d: 'M12 5v14M5 12h14' } },\n ],\n redo: [\n { tag: 'path', attrs: { d: 'M19 7v6h-6' } },\n { tag: 'path', attrs: { d: 'M18 13a6 6 0 1 1-1.7-4.2L19 11' } },\n ],\n refresh: [\n { tag: 'path', attrs: { d: 'M20 7v5h-5M4 17v-5h5' } },\n { tag: 'path', attrs: { d: 'M6.1 8.2A7 7 0 0 1 18.6 7M17.9 15.8A7 7 0 0 1 5.4 17' } },\n ],\n root: [\n { tag: 'circle', attrs: { cx: '12', cy: '5', r: '2' } },\n { tag: 'path', attrs: { d: 'M12 7v11M7 12h10' } },\n { tag: 'circle', attrs: { cx: '7', cy: '18', r: '2' } },\n { tag: 'circle', attrs: { cx: '17', cy: '18', r: '2' } },\n ],\n rotate: [\n { tag: 'path', attrs: { d: 'M18 8a7 7 0 1 0 1.3 6.1' } },\n { tag: 'path', attrs: { d: 'M18 4v4h-4' } },\n ],\n save: [\n { tag: 'path', attrs: { d: 'M5 4h12l2 2v15H5z' } },\n { tag: 'path', attrs: { d: 'M8 4v6h9M8 21v-6h8v6' } },\n ],\n scale: [\n { tag: 'path', attrs: { d: 'M4 14v6h6M20 10V4h-6' } },\n { tag: 'path', attrs: { d: 'M20 4l-7 7M4 20l7-7' } },\n ],\n search: [\n { tag: 'circle', attrs: { cx: '11', cy: '11', r: '6.5' } },\n { tag: 'path', attrs: { d: 'M16 16l4 4' } },\n ],\n select: [\n { tag: 'path', attrs: { d: 'M5 4l10 10-5 1.5L8.5 20z' } },\n ],\n snap: [\n { tag: 'path', attrs: { d: 'M8 4v6a4 4 0 0 0 8 0V4' } },\n { tag: 'path', attrs: { d: 'M8 8h4M16 8h-4M8 4h4M16 4h-4M12 14v6' } },\n ],\n status: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M12 8v5' } },\n { tag: 'line', attrs: { x1: '12', y1: '16', x2: '12.01', y2: '16' } },\n ],\n warning: [\n { tag: 'path', attrs: { d: 'M12 3L2.8 20h18.4z' } },\n { tag: 'path', attrs: { d: 'M12 9v5' } },\n { tag: 'line', attrs: { x1: '12', y1: '17', x2: '12.01', y2: '17' } },\n ],\n theme: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M12 3v18' } },\n { tag: 'path', attrs: { d: 'M12 5a7 7 0 0 1 0 14' } },\n ],\n trash: [\n { tag: 'path', attrs: { d: 'M4 7h16' } },\n { tag: 'path', attrs: { d: 'M10 11v6M14 11v6' } },\n { tag: 'path', attrs: { d: 'M6 7l1 14h10l1-14M9 7V4h6v3' } },\n ],\n undo: [\n { tag: 'path', attrs: { d: 'M5 7v6h6' } },\n { tag: 'path', attrs: { d: 'M6 13a6 6 0 1 0 1.7-4.2L5 11' } },\n ],\n 'view-front': [\n { tag: 'rect', attrs: { x: '5', y: '6', width: '14', height: '12', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M8 9h8M8 15h8M12 6v12' } },\n ],\n 'view-overlay': [\n { tag: 'path', attrs: { d: 'M12 3l7 4v10l-7 4-7-4V7z' } },\n { tag: 'path', attrs: { d: 'M5 7l7 4 7-4M5 17l7-4 7 4' } },\n { tag: 'circle', attrs: { cx: '12', cy: '13', r: '1.5' } },\n ],\n 'view-perspective': [\n { tag: 'path', attrs: { d: 'M4 17l8-10 8 10' } },\n { tag: 'path', attrs: { d: 'M8 17h8M12 7v10' } },\n ],\n 'view-right': [\n { tag: 'path', attrs: { d: 'M6 5l12 4v10L6 15z' } },\n { tag: 'path', attrs: { d: 'M6 5v10M18 9v10M6 15l12 4' } },\n ],\n 'view-top': [\n { tag: 'rect', attrs: { x: '5', y: '5', width: '14', height: '14', rx: '1.5' } },\n { tag: 'path', attrs: { d: 'M9 5v14M15 5v14M5 9h14M5 15h14' } },\n ],\n measure: [\n { tag: 'path', attrs: { d: 'M5 17L17 5' } },\n { tag: 'path', attrs: { d: 'M7 19l-2-2 2-2M15 7l2-2 2 2' } },\n { tag: 'path', attrs: { d: 'M9 15l1.5 1.5M12 12l1.5 1.5M15 9l1.5 1.5' } },\n ],\n world: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '9' } },\n { tag: 'path', attrs: { d: 'M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18' } },\n ],\n} satisfies Record<LocalEditorIconName, readonly LocalEditorIconElement[]>;\n\nexport function isLocalEditorIconName(value: unknown): value is LocalEditorIconName {\n return typeof value === 'string' && LOCAL_EDITOR_ICON_SET.has(value);\n}\n\nexport function resolveLocalEditorIconName(\n value: unknown,\n fallback: LocalEditorIconName = 'object',\n): LocalEditorIconName {\n return isLocalEditorIconName(value) ? value : fallback;\n}\n\nexport function createLocalEditorIcon(\n doc: Document,\n name: LocalEditorIconName,\n options: LocalEditorIconOptions = {},\n): HTMLSpanElement {\n const resolvedName = resolveLocalEditorIconName(name);\n const size = options.size ?? 14;\n const strokeWidth = options.strokeWidth ?? 2;\n const icon = doc.createElement('span');\n icon.dataset.editorIcon = resolvedName;\n icon.setAttribute('aria-hidden', 'true');\n icon.style.cssText = [\n `width:${size}px`,\n `height:${size}px`,\n `flex:0 0 ${size}px`,\n 'display:inline-flex',\n 'align-items:center',\n 'justify-content:center',\n 'color:currentColor',\n 'pointer-events:none',\n ].join(';');\n\n const svg = doc.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttribute('viewBox', '0 0 24 24');\n svg.setAttribute('width', String(size));\n svg.setAttribute('height', String(size));\n svg.setAttribute('fill', 'none');\n svg.setAttribute('stroke', 'currentColor');\n svg.setAttribute('stroke-width', String(strokeWidth));\n svg.setAttribute('stroke-linecap', 'round');\n svg.setAttribute('stroke-linejoin', 'round');\n svg.setAttribute('focusable', 'false');\n\n for (const node of LOCAL_EDITOR_ICON_DEFINITIONS[resolvedName]) {\n const element = doc.createElementNS('http://www.w3.org/2000/svg', node.tag);\n for (const [key, value] of Object.entries(node.attrs)) {\n element.setAttribute(key, value);\n }\n svg.appendChild(element);\n }\n\n icon.appendChild(svg);\n return icon;\n}\n"]}
|