@babylonjs/node-geometry-editor 7.37.1 → 7.38.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.
|
@@ -156,6 +156,7 @@ export class GlobalState {
|
|
|
156
156
|
onIsLoadingChanged: Observable<boolean>;
|
|
157
157
|
onPreviewBackgroundChanged: Observable<void>;
|
|
158
158
|
onFrame: Observable<void>;
|
|
159
|
+
onAxis: Observable<void>;
|
|
159
160
|
onAnimationCommandActivated: Observable<void>;
|
|
160
161
|
onImportFrameObservable: Observable<any>;
|
|
161
162
|
onPopupClosedObservable: Observable<void>;
|
|
@@ -855,7 +856,10 @@ interface IPreviewMeshControlComponent {
|
|
|
855
856
|
globalState: GlobalState;
|
|
856
857
|
togglePreviewAreaComponent: () => void;
|
|
857
858
|
}
|
|
858
|
-
|
|
859
|
+
interface IPreviewMeshControlComponentState {
|
|
860
|
+
center: boolean;
|
|
861
|
+
}
|
|
862
|
+
export class PreviewMeshControlComponent extends React.Component<IPreviewMeshControlComponent, IPreviewMeshControlComponentState> {
|
|
859
863
|
private _colorInputRef;
|
|
860
864
|
private _onResetRequiredObserver;
|
|
861
865
|
private _onRefreshPreviewMeshControlComponentRequiredObserver;
|
|
@@ -866,6 +870,7 @@ export class PreviewMeshControlComponent extends React.Component<IPreviewMeshCon
|
|
|
866
870
|
changeBackground(value: string): void;
|
|
867
871
|
changeBackgroundClick(): void;
|
|
868
872
|
frame(): void;
|
|
873
|
+
axis(): void;
|
|
869
874
|
|
|
870
875
|
}
|
|
871
876
|
export {};
|
|
@@ -878,6 +883,7 @@ export class PreviewManager {
|
|
|
878
883
|
private _nodeGeometry;
|
|
879
884
|
private _onBuildObserver;
|
|
880
885
|
private _onFrameObserver;
|
|
886
|
+
private _onAxisObserver;
|
|
881
887
|
private _onExportToGLBObserver;
|
|
882
888
|
private _onAnimationCommandActivatedObserver;
|
|
883
889
|
private _onUpdateRequiredObserver;
|
|
@@ -987,7 +993,7 @@ declare module "@babylonjs/node-geometry-editor/styleHelper" {
|
|
|
987
993
|
* @param source document to copy styles from
|
|
988
994
|
* @param target document or shadow root to copy styles to
|
|
989
995
|
*/
|
|
990
|
-
export function CopyStyles(source: Document, target:
|
|
996
|
+
export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
|
|
991
997
|
|
|
992
998
|
}
|
|
993
999
|
declare module "@babylonjs/node-geometry-editor/stringTools" {
|
|
@@ -1623,6 +1629,7 @@ export class StateManager {
|
|
|
1623
1629
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1624
1630
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1625
1631
|
applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
|
|
1632
|
+
getPortColor: (portData: IPortData) => string;
|
|
1626
1633
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
1627
1634
|
getEditorDataMap: () => {
|
|
1628
1635
|
[key: number]: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.38.0",
|
|
4
4
|
"main": "dist/babylon.nodeGeometryEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeGeometryEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeGeometryEditor.max.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "^7.
|
|
26
|
+
"@babylonjs/core": "^7.38.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|