@fps-games/editor 0.1.1-beta.6 → 0.1.1-beta.7

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.
Files changed (93) hide show
  1. package/dist/local-editor-harness.d.ts +14 -3
  2. package/dist/local-editor-harness.d.ts.map +1 -1
  3. package/dist/local-editor-harness.js +205 -35
  4. package/dist/local-editor-harness.js.map +1 -1
  5. package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts +33 -0
  6. package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts.map +1 -0
  7. package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js +231 -0
  8. package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js.map +1 -0
  9. package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts +3 -0
  10. package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts.map +1 -1
  11. package/node_modules/@fps-games/editor-babylon/dist/editor-world.js +8 -0
  12. package/node_modules/@fps-games/editor-babylon/dist/editor-world.js.map +1 -1
  13. package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -0
  14. package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
  15. package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -0
  16. package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
  17. package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.d.ts +40 -0
  18. package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.d.ts.map +1 -0
  19. package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js +237 -0
  20. package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js.map +1 -0
  21. package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.d.ts +1 -1
  22. package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.d.ts.map +1 -1
  23. package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js +15 -50
  24. package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js.map +1 -1
  25. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +5 -0
  26. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
  27. package/node_modules/@fps-games/editor-babylon/dist/projection.js +61 -8
  28. package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
  29. package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +7 -0
  30. package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
  31. package/node_modules/@fps-games/editor-babylon/package.json +4 -4
  32. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +97 -46
  33. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
  34. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +5 -0
  35. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +1 -1
  36. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +57 -7
  37. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +1 -1
  38. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
  39. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +61 -5
  40. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
  41. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +0 -2
  42. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +1 -1
  43. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
  44. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +6 -2
  45. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
  46. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
  47. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
  48. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +16 -0
  49. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
  50. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +8 -1
  51. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
  52. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +358 -53
  53. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
  54. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +5 -0
  55. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
  56. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +28 -8
  57. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
  58. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
  59. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +4 -1
  60. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
  61. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.d.ts.map +1 -1
  62. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js +14 -0
  63. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
  64. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts +11 -0
  65. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts.map +1 -0
  66. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +148 -0
  67. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -0
  68. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +42 -1
  69. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
  70. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +5 -4
  71. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
  72. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +606 -199
  73. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
  74. package/node_modules/@fps-games/editor-browser/package.json +2 -2
  75. package/node_modules/@fps-games/editor-core/dist/index.d.ts +1 -0
  76. package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
  77. package/node_modules/@fps-games/editor-core/dist/index.js +1 -0
  78. package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
  79. package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +6 -1
  80. package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
  81. package/node_modules/@fps-games/editor-core/dist/inspector.js +6 -1
  82. package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
  83. package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +7 -0
  84. package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
  85. package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
  86. package/node_modules/@fps-games/editor-core/dist/selection-strategy.d.ts +12 -0
  87. package/node_modules/@fps-games/editor-core/dist/selection-strategy.d.ts.map +1 -0
  88. package/node_modules/@fps-games/editor-core/dist/selection-strategy.js +52 -0
  89. package/node_modules/@fps-games/editor-core/dist/selection-strategy.js.map +1 -0
  90. package/node_modules/@fps-games/editor-core/package.json +2 -2
  91. package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
  92. package/node_modules/@fps-games/editor-protocol/package.json +1 -1
  93. package/package.json +6 -6
@@ -0,0 +1,52 @@
1
+ export function resolveEditorSelectionCommand(input) {
2
+ const targetIds = uniqueSelectionIds(input.targetIds);
3
+ if (targetIds.length === 0) {
4
+ return input.modifier === 'replace'
5
+ ? { type: 'selection.clear', label: 'Clear Selection' }
6
+ : null;
7
+ }
8
+ const activeId = input.activeId ?? targetIds[targetIds.length - 1] ?? null;
9
+ if (input.modifier === 'replace') {
10
+ return {
11
+ type: 'selection.replace',
12
+ selectedIds: targetIds,
13
+ activeId,
14
+ label: input.gesture === 'box' ? 'Box Select' : 'Select Object',
15
+ };
16
+ }
17
+ if (input.modifier === 'toggle') {
18
+ return {
19
+ type: 'selection.toggle',
20
+ selectedIds: targetIds,
21
+ activeId,
22
+ label: input.gesture === 'box' ? 'Box Toggle Selection' : 'Toggle Selection',
23
+ };
24
+ }
25
+ if (input.gesture === 'click'
26
+ && targetIds.length === 1
27
+ && input.selection.selectedIds.includes(targetIds[0])) {
28
+ return {
29
+ type: 'selection.remove',
30
+ selectedIds: targetIds,
31
+ label: 'Remove Selection',
32
+ };
33
+ }
34
+ return {
35
+ type: 'selection.add',
36
+ selectedIds: targetIds,
37
+ activeId,
38
+ label: input.gesture === 'box' ? 'Box Add Selection' : 'Add Selection',
39
+ };
40
+ }
41
+ function uniqueSelectionIds(ids) {
42
+ const result = [];
43
+ const seen = new Set();
44
+ for (const id of ids) {
45
+ if (!id || seen.has(id))
46
+ continue;
47
+ seen.add(id);
48
+ result.push(id);
49
+ }
50
+ return result;
51
+ }
52
+ //# sourceMappingURL=selection-strategy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-strategy.js","sourceRoot":"","sources":["../src/selection-strategy.ts"],"names":[],"mappings":"AAgBA,MAAM,UAAU,6BAA6B,CAC3C,KAAyC;IAEzC,MAAM,SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACtD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC,QAAQ,KAAK,SAAS;YACjC,CAAC,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;YACvD,CAAC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G,EAAU,CAAC;IAC/B,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,SAAS;QAClC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACb,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fps-games/editor-core",
3
- "version": "0.1.1-beta.6",
3
+ "version": "0.1.1-beta.7",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Core runtime shell and adapter contracts for fps-game-editor.",
@@ -14,6 +14,6 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@fps-games/editor-protocol": "0.1.1-beta.6"
17
+ "@fps-games/editor-protocol": "0.1.1-beta.7"
18
18
  }
19
19
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fps-games/editor-forge-play",
3
- "version": "0.1.1-beta.6",
3
+ "version": "0.1.1-beta.7",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Forge Play bridge adapter for fps-game-editor.",
@@ -14,6 +14,6 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@fps-games/editor-protocol": "0.1.1-beta.6"
17
+ "@fps-games/editor-protocol": "0.1.1-beta.7"
18
18
  }
19
19
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fps-games/editor-protocol",
3
- "version": "0.1.1-beta.6",
3
+ "version": "0.1.1-beta.7",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Shared protocol types for fps-game-editor runtimes, adapters, and Forge Play bridges.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fps-games/editor",
3
- "version": "0.1.1-beta.6",
3
+ "version": "0.1.1-beta.7",
4
4
  "type": "module",
5
5
  "description": "Aggregate public entrypoint for fps-game-editor.",
6
6
  "repository": {
@@ -26,11 +26,11 @@
26
26
  "prepack": "node ../../scripts/prepare-single-package.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@fps-games/editor-babylon": "0.1.1-beta.6",
30
- "@fps-games/editor-browser": "0.1.1-beta.6",
31
- "@fps-games/editor-core": "0.1.1-beta.6",
32
- "@fps-games/editor-forge-play": "0.1.1-beta.6",
33
- "@fps-games/editor-protocol": "0.1.1-beta.6"
29
+ "@fps-games/editor-babylon": "0.1.1-beta.7",
30
+ "@fps-games/editor-browser": "0.1.1-beta.7",
31
+ "@fps-games/editor-core": "0.1.1-beta.7",
32
+ "@fps-games/editor-forge-play": "0.1.1-beta.7",
33
+ "@fps-games/editor-protocol": "0.1.1-beta.7"
34
34
  },
35
35
  "bundleDependencies": [
36
36
  "@fps-games/editor-babylon",