@babylonjs/gui-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.
@@ -2161,7 +2161,7 @@ export class StateManager {
2161
2161
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
2162
2162
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
2163
2163
  isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
2164
- applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
2164
+ applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLImageElement, pip: HTMLDivElement) => boolean;
2165
2165
  getPortColor: (portData: IPortData) => string;
2166
2166
  storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
2167
2167
  getEditorDataMap: () => {
@@ -2231,7 +2231,7 @@ export class NodePort {
2231
2231
  node: GraphNode;
2232
2232
  protected _element: HTMLDivElement;
2233
2233
  protected _portContainer: HTMLElement;
2234
- protected _imgHost: HTMLDivElement;
2234
+ protected _imgHost: HTMLImageElement;
2235
2235
  protected _pip: HTMLDivElement;
2236
2236
  protected _stateManager: StateManager;
2237
2237
  protected _portLabelElement: Element;
@@ -3075,6 +3075,31 @@ interface IUnitButtonProps {
3075
3075
 
3076
3076
  export {};
3077
3077
 
3078
+ }
3079
+ declare module "@babylonjs/gui-editor/lines/textureButtonLineComponent" {
3080
+ import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
3081
+ import { Scene } from "@babylonjs/core/scene";
3082
+ import * as React from "react";
3083
+ interface ITextureButtonLineProps {
3084
+ label: string;
3085
+ scene: Scene;
3086
+ onClick: (file: File) => void;
3087
+ onLink: (texture: BaseTexture) => void;
3088
+ accept: string;
3089
+ }
3090
+ interface ITextureButtonLineState {
3091
+ isOpen: boolean;
3092
+ }
3093
+ export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
3094
+ private static _IDGenerator;
3095
+ private _id;
3096
+ private _uploadInputRef;
3097
+ constructor(props: ITextureButtonLineProps);
3098
+ onChange(evt: any): void;
3099
+
3100
+ }
3101
+ export {};
3102
+
3078
3103
  }
3079
3104
  declare module "@babylonjs/gui-editor/lines/textLineComponent" {
3080
3105
  import * as React from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/gui-editor",
3
- "version": "7.54.0",
3
+ "version": "7.54.2",
4
4
  "main": "dist/babylon.guiEditor.max.js",
5
5
  "module": "dist/babylon.guiEditor.max.js",
6
6
  "esnext": "dist/babylon.guiEditor.max.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@babylonjs/core": "^7.54.0",
28
- "@babylonjs/gui": "^7.54.0",
27
+ "@babylonjs/core": "^7.54.2",
28
+ "@babylonjs/gui": "^7.54.2",
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2"
31
31
  },