babylonjs-node-geometry-editor 7.53.3 → 7.54.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.
|
@@ -1599,7 +1599,17 @@ import { NodeLink } from "babylonjs-node-geometry-editor/nodeGraphSystem/nodeLin
|
|
|
1599
1599
|
import { FramePortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/types/framePortData";
|
|
1600
1600
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
1601
1601
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
1602
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
1602
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
|
|
1603
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
1604
|
+
acceptedConnectionPointTypes: number[];
|
|
1605
|
+
excludedConnectionPointTypes: number[];
|
|
1606
|
+
type: number;
|
|
1607
|
+
}, skips?: number[]): string[];
|
|
1608
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
1609
|
+
acceptedConnectionPointTypes: number[];
|
|
1610
|
+
excludedConnectionPointTypes: number[];
|
|
1611
|
+
type: number;
|
|
1612
|
+
}, skips?: number[]): string;
|
|
1603
1613
|
|
|
1604
1614
|
}
|
|
1605
1615
|
declare module "babylonjs-node-geometry-editor/nodeGraphSystem/stateManager" {
|
|
@@ -1654,7 +1664,7 @@ export class StateManager {
|
|
|
1654
1664
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
|
1655
1665
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1656
1666
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1657
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement,
|
|
1667
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
1658
1668
|
getPortColor: (portData: IPortData) => string;
|
|
1659
1669
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
1660
1670
|
getEditorDataMap: () => {
|
|
@@ -1724,7 +1734,7 @@ export class NodePort {
|
|
|
1724
1734
|
node: GraphNode;
|
|
1725
1735
|
protected _element: HTMLDivElement;
|
|
1726
1736
|
protected _portContainer: HTMLElement;
|
|
1727
|
-
protected
|
|
1737
|
+
protected _imgHost: HTMLDivElement;
|
|
1728
1738
|
protected _pip: HTMLDivElement;
|
|
1729
1739
|
protected _stateManager: StateManager;
|
|
1730
1740
|
protected _portLabelElement: Element;
|
|
@@ -1807,6 +1817,7 @@ import { IPortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interf
|
|
|
1807
1817
|
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
1808
1818
|
export class GraphNode {
|
|
1809
1819
|
content: INodeData;
|
|
1820
|
+
private static _IdGenerator;
|
|
1810
1821
|
private _visual;
|
|
1811
1822
|
private _headerContainer;
|
|
1812
1823
|
private _headerIcon;
|
|
@@ -2567,6 +2578,31 @@ interface IUnitButtonProps {
|
|
|
2567
2578
|
|
|
2568
2579
|
export {};
|
|
2569
2580
|
|
|
2581
|
+
}
|
|
2582
|
+
declare module "babylonjs-node-geometry-editor/lines/textureButtonLineComponent" {
|
|
2583
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
2584
|
+
import { Scene } from "babylonjs/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
|
+
|
|
2570
2606
|
}
|
|
2571
2607
|
declare module "babylonjs-node-geometry-editor/lines/textLineComponent" {
|
|
2572
2608
|
import * as React from "react";
|
|
@@ -5805,7 +5841,17 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
5805
5841
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
5806
5842
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeGeometryEditor.SharedUIComponents.FramePortData;
|
|
5807
5843
|
export const RefreshNode: (node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeGeometryEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
5808
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
5844
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
|
|
5845
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
5846
|
+
acceptedConnectionPointTypes: number[];
|
|
5847
|
+
excludedConnectionPointTypes: number[];
|
|
5848
|
+
type: number;
|
|
5849
|
+
}, skips?: number[]): string[];
|
|
5850
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
5851
|
+
acceptedConnectionPointTypes: number[];
|
|
5852
|
+
excludedConnectionPointTypes: number[];
|
|
5853
|
+
type: number;
|
|
5854
|
+
}, skips?: number[]): string;
|
|
5809
5855
|
|
|
5810
5856
|
|
|
5811
5857
|
|
|
@@ -5853,7 +5899,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5853
5899
|
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => string;
|
|
5854
5900
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
|
|
5855
5901
|
isDebugConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
|
|
5856
|
-
applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
5902
|
+
applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
5857
5903
|
getPortColor: (portData: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData) => string;
|
|
5858
5904
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => void;
|
|
5859
5905
|
getEditorDataMap: () => {
|
|
@@ -5927,7 +5973,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5927
5973
|
node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
|
|
5928
5974
|
protected _element: HTMLDivElement;
|
|
5929
5975
|
protected _portContainer: HTMLElement;
|
|
5930
|
-
protected
|
|
5976
|
+
protected _imgHost: HTMLDivElement;
|
|
5931
5977
|
protected _pip: HTMLDivElement;
|
|
5932
5978
|
protected _stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager;
|
|
5933
5979
|
protected _portLabelElement: Element;
|
|
@@ -6014,6 +6060,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
6014
6060
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
6015
6061
|
export class GraphNode {
|
|
6016
6062
|
content: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData;
|
|
6063
|
+
private static _IdGenerator;
|
|
6017
6064
|
private _visual;
|
|
6018
6065
|
private _headerContainer;
|
|
6019
6066
|
private _headerIcon;
|
|
@@ -6815,6 +6862,33 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6815
6862
|
|
|
6816
6863
|
|
|
6817
6864
|
|
|
6865
|
+
}
|
|
6866
|
+
declare module BABYLON.NodeGeometryEditor {
|
|
6867
|
+
|
|
6868
|
+
|
|
6869
|
+
}
|
|
6870
|
+
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
6871
|
+
interface ITextureButtonLineProps {
|
|
6872
|
+
label: string;
|
|
6873
|
+
scene: BABYLON.Scene;
|
|
6874
|
+
onClick: (file: File) => void;
|
|
6875
|
+
onLink: (texture: BABYLON.BaseTexture) => void;
|
|
6876
|
+
accept: string;
|
|
6877
|
+
}
|
|
6878
|
+
interface ITextureButtonLineState {
|
|
6879
|
+
isOpen: boolean;
|
|
6880
|
+
}
|
|
6881
|
+
export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
|
|
6882
|
+
private static _IDGenerator;
|
|
6883
|
+
private _id;
|
|
6884
|
+
private _uploadInputRef;
|
|
6885
|
+
constructor(props: ITextureButtonLineProps);
|
|
6886
|
+
onChange(evt: any): void;
|
|
6887
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6890
|
+
|
|
6891
|
+
|
|
6818
6892
|
}
|
|
6819
6893
|
declare module BABYLON.NodeGeometryEditor {
|
|
6820
6894
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-geometry-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.54.1",
|
|
4
4
|
"main": "babylon.nodeGeometryEditor.js",
|
|
5
5
|
"types": "babylon.nodeGeometryEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
17
|
+
"babylonjs": "^7.54.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|