@vincentt-xr/editor-engine 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -4,7 +4,18 @@ export type Json = null | boolean | number | string | Json[] | {
4
4
  export type SettingType = "number" | "color" | "boolean" | "vec2" | "vec3" | "euler" | "enum";
5
5
  export type Unit = "px" | "m" | "deg" | "rad" | "ratio";
6
6
  export type ObjectKind = "host" | "sdk" | "component";
7
- export type ReadonlyReason = "computed" | "imported" | "spread" | "conditional" | "outside_project" | "generated" | "unsupported";
7
+ /** The editor's supported list. Plain 3D kinds come from the engine; on-screen kinds from the SDK. */
8
+ export type ListKind = "mesh" | "group" | "light" | "screenText" | "screenImage" | "screenShape";
9
+ /** The prop holding an on-screen element's position, size and rotation. */
10
+ export type Place = "screenTransform" | "transform";
11
+ export interface Handles {
12
+ move: boolean;
13
+ rotate: boolean;
14
+ scale: boolean;
15
+ }
16
+ export type ReadonlyReason = "computed" | "imported" | "spread" | "conditional" | "outside_project" | "generated" | "unsupported"
17
+ /** Code changes it while the app runs; such a value is never shown. */
18
+ | "frame_driven";
8
19
  export type RefusalReason = "invalid_value" | "outside_project" | "unresolvable" | "ambiguous" | "conflict" | "moved_on" | "verify_failed" | "write_failed" | "no_gesture";
9
20
  /** Byte offsets into the UTF-8 text; 1-based line and UTF-16 column. */
10
21
  export interface SourceRef {
@@ -28,6 +39,8 @@ export interface TweakValue {
28
39
  editable: true | {
29
40
  readonly: ReadonlyReason;
30
41
  };
42
+ /** Draw this value. A hidden value is never written (refused `unresolvable`). */
43
+ shown: boolean;
31
44
  constraints?: Constraints;
32
45
  /** `"@vincentt-xr/sdk:ScreenText.fontSize"` */
33
46
  decl?: string;
@@ -40,6 +53,14 @@ export interface TweakObject {
40
53
  label: string;
41
54
  kind: ObjectKind;
42
55
  type: string;
56
+ /** Absent: on no list, "Made by code". */
57
+ list?: ListKind;
58
+ /** Some value is shown. */
59
+ pickable: boolean;
60
+ /** Each follows a shown setting; all false when not pickable. */
61
+ handles: Handles;
62
+ /** On-screen kinds only. */
63
+ place?: Place;
43
64
  source: SourceRef;
44
65
  parent?: string;
45
66
  values: TweakValue[];
@@ -50,6 +71,7 @@ export interface TweakableMap {
50
71
  }
51
72
  export interface SettingDecl {
52
73
  type: SettingType;
74
+ supported?: boolean;
53
75
  min?: number;
54
76
  max?: number;
55
77
  step?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincentt-xr/editor-engine",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "The Vincentt editor's write-back engine compiled to WebAssembly, for the Vincentt console",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
Binary file