@babylonjs/node-render-graph-editor 7.43.0 → 7.43.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.
@@ -1566,7 +1566,7 @@ export class StateManager {
1566
1566
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
1567
1567
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
1568
1568
  isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
1569
- applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
1569
+ applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLImageElement, pip: HTMLDivElement) => boolean;
1570
1570
  getPortColor: (portData: IPortData) => string;
1571
1571
  storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
1572
1572
  getEditorDataMap: () => {
@@ -1636,7 +1636,7 @@ export class NodePort {
1636
1636
  node: GraphNode;
1637
1637
  protected _element: HTMLDivElement;
1638
1638
  protected _portContainer: HTMLElement;
1639
- protected _imgHost: HTMLDivElement;
1639
+ protected _imgHost: HTMLImageElement;
1640
1640
  protected _pip: HTMLDivElement;
1641
1641
  protected _stateManager: StateManager;
1642
1642
  protected _portLabelElement: Element;
@@ -2480,6 +2480,31 @@ interface IUnitButtonProps {
2480
2480
 
2481
2481
  export {};
2482
2482
 
2483
+ }
2484
+ declare module "@babylonjs/node-render-graph-editor/lines/textureButtonLineComponent" {
2485
+ import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
2486
+ import { Scene } from "@babylonjs/core/scene";
2487
+ import * as React from "react";
2488
+ interface ITextureButtonLineProps {
2489
+ label: string;
2490
+ scene: Scene;
2491
+ onClick: (file: File) => void;
2492
+ onLink: (texture: BaseTexture) => void;
2493
+ accept: string;
2494
+ }
2495
+ interface ITextureButtonLineState {
2496
+ isOpen: boolean;
2497
+ }
2498
+ export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
2499
+ private static _IDGenerator;
2500
+ private _id;
2501
+ private _uploadInputRef;
2502
+ constructor(props: ITextureButtonLineProps);
2503
+ onChange(evt: any): void;
2504
+
2505
+ }
2506
+ export {};
2507
+
2483
2508
  }
2484
2509
  declare module "@babylonjs/node-render-graph-editor/lines/textLineComponent" {
2485
2510
  import * as React from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-render-graph-editor",
3
- "version": "7.43.0",
3
+ "version": "7.43.2",
4
4
  "main": "dist/babylon.nodeRenderGraphEditor.max.js",
5
5
  "module": "dist/babylon.nodeRenderGraphEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeRenderGraphEditor.max.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^7.54.0",
26
+ "@babylonjs/core": "^7.54.2",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },