@babylonjs/node-geometry-editor 7.54.0 → 7.54.2
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.
|
@@ -1664,7 +1664,7 @@ export class StateManager {
|
|
|
1664
1664
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
|
1665
1665
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1666
1666
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1667
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost:
|
|
1667
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLImageElement, pip: HTMLDivElement) => boolean;
|
|
1668
1668
|
getPortColor: (portData: IPortData) => string;
|
|
1669
1669
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
1670
1670
|
getEditorDataMap: () => {
|
|
@@ -1734,7 +1734,7 @@ export class NodePort {
|
|
|
1734
1734
|
node: GraphNode;
|
|
1735
1735
|
protected _element: HTMLDivElement;
|
|
1736
1736
|
protected _portContainer: HTMLElement;
|
|
1737
|
-
protected _imgHost:
|
|
1737
|
+
protected _imgHost: HTMLImageElement;
|
|
1738
1738
|
protected _pip: HTMLDivElement;
|
|
1739
1739
|
protected _stateManager: StateManager;
|
|
1740
1740
|
protected _portLabelElement: Element;
|
|
@@ -2578,6 +2578,31 @@ interface IUnitButtonProps {
|
|
|
2578
2578
|
|
|
2579
2579
|
export {};
|
|
2580
2580
|
|
|
2581
|
+
}
|
|
2582
|
+
declare module "@babylonjs/node-geometry-editor/lines/textureButtonLineComponent" {
|
|
2583
|
+
import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
|
|
2584
|
+
import { Scene } from "@babylonjs/core/scene";
|
|
2585
|
+
import * as React from "react";
|
|
2586
|
+
interface ITextureButtonLineProps {
|
|
2587
|
+
label: string;
|
|
2588
|
+
scene: Scene;
|
|
2589
|
+
onClick: (file: File) => void;
|
|
2590
|
+
onLink: (texture: BaseTexture) => void;
|
|
2591
|
+
accept: string;
|
|
2592
|
+
}
|
|
2593
|
+
interface ITextureButtonLineState {
|
|
2594
|
+
isOpen: boolean;
|
|
2595
|
+
}
|
|
2596
|
+
export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
|
|
2597
|
+
private static _IDGenerator;
|
|
2598
|
+
private _id;
|
|
2599
|
+
private _uploadInputRef;
|
|
2600
|
+
constructor(props: ITextureButtonLineProps);
|
|
2601
|
+
onChange(evt: any): void;
|
|
2602
|
+
|
|
2603
|
+
}
|
|
2604
|
+
export {};
|
|
2605
|
+
|
|
2581
2606
|
}
|
|
2582
2607
|
declare module "@babylonjs/node-geometry-editor/lines/textLineComponent" {
|
|
2583
2608
|
import * as React from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "7.54.
|
|
3
|
+
"version": "7.54.2",
|
|
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.54.
|
|
26
|
+
"@babylonjs/core": "^7.54.2",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|