@vincentt-xr/editor-engine 0.1.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/LICENSE +30 -0
- package/dist/types.d.ts +29 -1
- package/package.json +4 -3
- package/pkg/editor_engine_wasm_bg.wasm +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Copyright (c) 2026 Vincentt. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This software and its accompanying files (the "Software") are proprietary to
|
|
4
|
+
Vincentt and are licensed, not sold.
|
|
5
|
+
|
|
6
|
+
You may install and run the Software only to build, preview, and publish
|
|
7
|
+
projects with Vincentt services, under the terms of service that govern your
|
|
8
|
+
use of those services.
|
|
9
|
+
|
|
10
|
+
You may not, except where applicable law expressly permits it despite this
|
|
11
|
+
restriction:
|
|
12
|
+
|
|
13
|
+
1. copy, redistribute, sublicense, sell, or otherwise make the Software
|
|
14
|
+
available to any third party;
|
|
15
|
+
2. modify, adapt, translate, or create derivative works of the Software;
|
|
16
|
+
3. reverse engineer, decompile, or disassemble the Software, or attempt to
|
|
17
|
+
recover its source code;
|
|
18
|
+
4. use the Software with any service other than Vincentt services.
|
|
19
|
+
|
|
20
|
+
Projects you create with the Software belong to you. This license grants no
|
|
21
|
+
rights in the Software itself beyond those stated above.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
VINCENTT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
27
|
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
28
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
29
|
+
|
|
30
|
+
Contact: hello@vincentt.studio
|
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
|
-
|
|
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;
|
|
@@ -88,6 +110,12 @@ export interface WriteRequest {
|
|
|
88
110
|
* no longer holds it is `conflict`.
|
|
89
111
|
*/
|
|
90
112
|
started: Exclude<Json, null>;
|
|
113
|
+
/**
|
|
114
|
+
* A literal reached through a const that other code also reads is not written there: this use
|
|
115
|
+
* takes its own copy of the const, in place, with the new value. A const that is not plain
|
|
116
|
+
* literals is refused; one read only by this use is edited where it is.
|
|
117
|
+
*/
|
|
118
|
+
inline?: boolean;
|
|
91
119
|
}
|
|
92
120
|
export interface Edit {
|
|
93
121
|
result: "edit";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincentt-xr/editor-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "The Vincentt editor's write-back engine compiled to WebAssembly, for the Vincentt console",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"repository": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"pkg/editor_engine_wasm.d.ts",
|
|
22
22
|
"pkg/editor_engine_wasm_bg.wasm",
|
|
23
23
|
"pkg/editor_engine_wasm_bg.wasm.d.ts",
|
|
24
|
-
"README.md"
|
|
24
|
+
"README.md",
|
|
25
|
+
"LICENSE"
|
|
25
26
|
],
|
|
26
27
|
"exports": {
|
|
27
28
|
".": {
|
|
Binary file
|