@onerjs/gui-editor 8.50.4 → 8.50.6
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.
|
@@ -147,7 +147,7 @@ import { RadioButton } from "@onerjs/gui/2D/controls/radioButton";
|
|
|
147
147
|
import { ImageBasedSlider } from "@onerjs/gui/2D/controls/sliders/imageBasedSlider";
|
|
148
148
|
export class GUINodeTools {
|
|
149
149
|
static ImageControlDefaultUrl: string;
|
|
150
|
-
static CreateControlFromString(data: string): Grid |
|
|
150
|
+
static CreateControlFromString(data: string): Grid | Slider | Checkbox | ColorPicker | Ellipse | Rectangle | Line | TextBlock | StackPanel | Image | InputText | DisplayGrid | ImageBasedSlider | RadioButton;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
}
|
|
@@ -3364,10 +3364,10 @@ export type ModularBridgeOptions = {
|
|
|
3364
3364
|
*/
|
|
3365
3365
|
name?: string;
|
|
3366
3366
|
/**
|
|
3367
|
-
* Whether the bridge should automatically
|
|
3368
|
-
* Defaults to
|
|
3367
|
+
* Whether the bridge should automatically enable trying to connect.
|
|
3368
|
+
* Defaults to true.
|
|
3369
3369
|
*/
|
|
3370
|
-
|
|
3370
|
+
autoEnable?: boolean;
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Additional service definitions to register with the bridge container.
|
|
3373
3373
|
*/
|
|
@@ -4106,9 +4106,9 @@ export type BridgeServiceOptions = {
|
|
|
4106
4106
|
*/
|
|
4107
4107
|
name: string;
|
|
4108
4108
|
/**
|
|
4109
|
-
* Whether to automatically
|
|
4109
|
+
* Whether to automatically enable connecting when the service is created.
|
|
4110
4110
|
*/
|
|
4111
|
-
|
|
4111
|
+
autoEnable: boolean;
|
|
4112
4112
|
};
|
|
4113
4113
|
/**
|
|
4114
4114
|
* Creates the service definition for the CLI Bridge Service.
|
|
@@ -4445,44 +4445,6 @@ declare module "@onerjs/gui-editor/modularTool/misc/assert" {
|
|
|
4445
4445
|
*/
|
|
4446
4446
|
export function Assert(value: unknown): asserts value;
|
|
4447
4447
|
|
|
4448
|
-
}
|
|
4449
|
-
declare module "@onerjs/gui-editor/modularTool/hooks/useResizeHandle" {
|
|
4450
|
-
export type GrowDirection = "end" | "start" | "up" | "down";
|
|
4451
|
-
export type UseResizeHandleParams = {
|
|
4452
|
-
/**
|
|
4453
|
-
* The direction in which the element is considered growing in size ('end', 'start', 'up', or 'down').
|
|
4454
|
-
*/
|
|
4455
|
-
growDirection: GrowDirection;
|
|
4456
|
-
/**
|
|
4457
|
-
* The name of the CSS variable that will be set on the wrapper element to reflect the current size of the element.
|
|
4458
|
-
*/
|
|
4459
|
-
variableName: string;
|
|
4460
|
-
/**
|
|
4461
|
-
* A callback that will be called when the element is resized.
|
|
4462
|
-
*
|
|
4463
|
-
* @remarks The passed function should be memoized for better performance.
|
|
4464
|
-
*/
|
|
4465
|
-
onChange?: (value: number) => void;
|
|
4466
|
-
/**
|
|
4467
|
-
* The minimum change allowed (e.g. the smallest negative number allowed).
|
|
4468
|
-
*/
|
|
4469
|
-
minValue?: number;
|
|
4470
|
-
/**
|
|
4471
|
-
* The maximum change allowed (e.g. the largest positive number allowed).
|
|
4472
|
-
*/
|
|
4473
|
-
maxValue?: number;
|
|
4474
|
-
};
|
|
4475
|
-
/**
|
|
4476
|
-
* A custom hook that helps with element resizing.
|
|
4477
|
-
* @param params The parameters for the resize handle.
|
|
4478
|
-
* @returns An object containing refs and a function to set the value.
|
|
4479
|
-
*/
|
|
4480
|
-
export function useResizeHandle(params: UseResizeHandleParams): {
|
|
4481
|
-
elementRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
4482
|
-
handleRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
4483
|
-
setValue: (value: number) => void;
|
|
4484
|
-
};
|
|
4485
|
-
|
|
4486
4448
|
}
|
|
4487
4449
|
declare module "@onerjs/gui-editor/modularTool/hooks/themeHooks" {
|
|
4488
4450
|
import { ThemeMode } from "@onerjs/gui-editor/modularTool/services/themeService";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onerjs/gui-editor",
|
|
3
|
-
"version": "8.50.
|
|
3
|
+
"version": "8.50.6",
|
|
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.50.
|
|
28
|
-
"@onerjs/gui": "8.50.
|
|
27
|
+
"@onerjs/core": "8.50.6",
|
|
28
|
+
"@onerjs/gui": "8.50.6",
|
|
29
29
|
"react": "^18.2.0",
|
|
30
30
|
"react-dom": "^18.2.0"
|
|
31
31
|
},
|