@onerjs/gui-editor 8.50.9 → 8.51.1
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.
|
@@ -103,6 +103,19 @@ export interface IEditorData {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
}
|
|
107
|
+
declare module "@onerjs/gui-editor/main" {
|
|
108
|
+
/**
|
|
109
|
+
* Vite dev server entry point for the GUI Editor.
|
|
110
|
+
*
|
|
111
|
+
* Uses dynamic import so the editor module graph (which contains
|
|
112
|
+
* `const { X } = window.BABYLON ?? {}` bindings) loads only after
|
|
113
|
+
* the CDN bootstrap has set window.BABYLON.
|
|
114
|
+
*/
|
|
115
|
+
type ShowArgs = Parameters<(typeof import("@onerjs/gui-editor/guiEditor"))["GUIEditor"]["Show"]>;
|
|
116
|
+
function StartEditor(args: ShowArgs): Promise<void>;
|
|
117
|
+
const Win: Record<string, unknown>;
|
|
118
|
+
|
|
106
119
|
}
|
|
107
120
|
declare module "@onerjs/gui-editor/keyboardManager" {
|
|
108
121
|
import { Observable } from "@onerjs/core/Misc/observable";
|
|
@@ -147,7 +160,7 @@ import { RadioButton } from "@onerjs/gui/2D/controls/radioButton";
|
|
|
147
160
|
import { ImageBasedSlider } from "@onerjs/gui/2D/controls/sliders/imageBasedSlider";
|
|
148
161
|
export class GUINodeTools {
|
|
149
162
|
static ImageControlDefaultUrl: string;
|
|
150
|
-
static CreateControlFromString(data: string): Grid |
|
|
163
|
+
static CreateControlFromString(data: string): Grid | StackPanel | Line | Rectangle | TextBlock | Image | Slider | ImageBasedSlider | RadioButton | InputText | ColorPicker | Ellipse | Checkbox | DisplayGrid;
|
|
151
164
|
}
|
|
152
165
|
|
|
153
166
|
}
|
|
@@ -270,7 +283,7 @@ export class GlobalState {
|
|
|
270
283
|
onBackgroundColorChangeObservable: Observable<void>;
|
|
271
284
|
onFontsParsedObservable: Observable<void>;
|
|
272
285
|
onPointerMoveObservable: Observable<import("react").PointerEvent<HTMLCanvasElement>>;
|
|
273
|
-
onPointerUpObservable: Observable<Nullable<
|
|
286
|
+
onPointerUpObservable: Observable<Nullable<import("react").PointerEvent<HTMLCanvasElement> | PointerEvent>>;
|
|
274
287
|
draggedControl: Nullable<Control>;
|
|
275
288
|
draggedControlDirection: DragOverLocation;
|
|
276
289
|
onCopyObservable: Observable<(content: string) => void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onerjs/gui-editor",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.51.1",
|
|
4
4
|
"main": "dist/babylon.guiEditor.js",
|
|
5
5
|
"module": "dist/babylon.guiEditor.js",
|
|
6
6
|
"esnext": "dist/babylon.guiEditor.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@onerjs/core": "8.
|
|
28
|
-
"@onerjs/gui": "8.
|
|
27
|
+
"@onerjs/core": "8.51.1",
|
|
28
|
+
"@onerjs/gui": "8.51.1",
|
|
29
29
|
"react": "^18.2.0",
|
|
30
30
|
"react-dom": "^18.2.0"
|
|
31
31
|
},
|