A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
test(editor): gizmo acceptance drags start on the redesigned handles, and the gizmo coverage gate judges PlanarReflection.maxSize
yhh085d51b44b97
diff --git a/desktop b/desktopindex 9935d372e..d1d7bdfe5 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 9935d372eba2673870601883771beb211e870638+Subproject commit d1d7bdfe5167459c980d8755b2c70d502fc0b2d5diff --git a/tools/check-gizmo-coverage.mjs b/tools/check-gizmo-coverage.mjsindex cbeea9d6c..8c0cd5269 100644--- a/tools/check-gizmo-coverage.mjs+++ b/tools/check-gizmo-coverage.mjs@@ -142,6 +142,7 @@ const DISPOSITION = {// Not a length in world space at all.'BakedLighting.atlasSize': ['not-world', 'the side of a TEXTURE in texels; what it covers in the world is every lightmapped surface at once'],+ 'PlanarReflection.maxSize': ['not-world', 'the longest side of the reflection capture in texels; the plane it mirrors is the surface itself'],'Canvas.matchWidthOrHeight': ['not-world', 'a 0..1 blend between two fits, not a length'],'UIDropdown.optionHeight': ['not-world', 'a row height inside a laid-out box, resolved by layout rather than placed'],'UITooltip.maxWidth': ['not-world', 'the maximum text wrap width in layout pixels of a transient screen popup'],diff --git a/tools/verify-gizmo-origins.mjs b/tools/verify-gizmo-origins.mjsindex c0abffbb7..905765269 100644--- a/tools/verify-gizmo-origins.mjs+++ b/tools/verify-gizmo-origins.mjs@@ -40,19 +40,22 @@ const read = `(() => {const near = (a, b) => assert(Math.abs(a - b) < 1e-4, `${a} differs from ${b}`);const records = [];try {+ // Where a drag starts is where the handle IS, in CSS px from the pivot: the rotate ring's radius, the end of the+ // scale arrow, the end of the universal tool's separate scale arrow — GIZMO in desktop/src/tools/gizmo.ts.+ const RING = 66, SCALE_ARROW = 80, UNIVERSAL_SCALE = 100;const cases = [...['center', 'individual'].flatMap(pivot => [- { pivot, mode: 'rotate', ox: 42, dx: -42, dy: -42 },- { pivot, mode: 'scale', ox: 58, dx: 58, dy: 0 },+ { pivot, mode: 'rotate', ox: RING, dx: -RING, dy: -RING },+ { pivot, mode: 'scale', ox: SCALE_ARROW, dx: SCALE_ARROW, dy: 0 },{ pivot, mode: 'move', ox: 50, dx: 25, dy: 0 },]),- { pivot: 'individual', mode: 'scale', ox: 58, dx: 58, dy: 0, cancel: true },- { pivot: 'individual', mode: 'rotate', ox: 42, dx: -42, dy: -42, alt: true },+ { pivot: 'individual', mode: 'scale', ox: SCALE_ARROW, dx: SCALE_ARROW, dy: 0, cancel: true },+ { pivot: 'individual', mode: 'rotate', ox: RING, dx: -RING, dy: -RING, alt: true },{ pivot: 'individual', tool: 'universal', mode: 'move', ox: 42, dx: 25, dy: 0 },- { pivot: 'individual', tool: 'universal', mode: 'scale', ox: 80, dx: 80, dy: 0 },- { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: 30, oy: -30, dx: -60, dy: 0 },- { pivot: 'individual', tool: 'universal', mode: 'scale', ox: 80, dx: 80, dy: 0, cancel: true },- { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: 30, oy: -30, dx: -60, dy: 0, alt: true },+ { pivot: 'individual', tool: 'universal', mode: 'scale', ox: UNIVERSAL_SCALE, dx: UNIVERSAL_SCALE, dy: 0 },+ { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: 47, oy: -47, dx: -90, dy: 0 },+ { pivot: 'individual', tool: 'universal', mode: 'scale', ox: UNIVERSAL_SCALE, dx: UNIVERSAL_SCALE, dy: 0, cancel: true },+ { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: 47, oy: -47, dx: -90, dy: 0, alt: true },];for (const c of cases) {const name = `${c.tool === 'universal' ? 'universal-' : ''}${c.pivot}-${c.mode}${c.cancel ? '-escape' : c.alt ? '-duplicate' : ''}`;