@babylonjs/node-editor 7.34.4 → 7.35.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -55183,7 +55183,7 @@ class GraphFrame {
55183
55183
  height: this._height,
55184
55184
  color: this._color.asArray(),
55185
55185
  name: this.name,
55186
- isCollapsed: saveCollapsedState ? this.isCollapsed : true,
55186
+ isCollapsed: saveCollapsedState ? this.isCollapsed : true, //keeping closed for stand along exporting.
55187
55187
  blocks: this.nodes.map((n) => n.content.uniqueId),
55188
55188
  comments: this._comments,
55189
55189
  };
@@ -62795,17 +62795,17 @@ class ImageSourcePropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__
62795
62795
  }
62796
62796
  url = url.replace(/\?nocache=\d+/, "");
62797
62797
  const samplingMode = [
62798
- { label: "Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST },
62799
- { label: "Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR },
62800
- { label: "Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPLINEAR },
62801
- { label: "Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPNEAREST },
62802
- { label: "Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPLINEAR },
62803
- { label: "Nearest & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPNEAREST },
62804
- { label: "Nearest/Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR },
62805
- { label: "Nearest/Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPLINEAR },
62806
- { label: "Nearest/Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPNEAREST },
62807
- { label: "Linear/Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST },
62808
- { label: "Linear/Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST_MIPLINEAR },
62798
+ { label: "Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST }, // 1
62799
+ { label: "Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR }, // 2
62800
+ { label: "Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPLINEAR }, // 3
62801
+ { label: "Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPNEAREST }, // 11
62802
+ { label: "Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPLINEAR }, // 8
62803
+ { label: "Nearest & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPNEAREST }, // 4
62804
+ { label: "Nearest/Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR }, // 7
62805
+ { label: "Nearest/Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPLINEAR }, // 6
62806
+ { label: "Nearest/Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPNEAREST }, // 5
62807
+ { label: "Linear/Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST }, // 12
62808
+ { label: "Linear/Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST_MIPLINEAR }, // 10
62809
62809
  { label: "Linear/Nearest & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST_MIPNEAREST }, // 9
62810
62810
  ];
62811
62811
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__.GeneralPropertyTabComponent, { stateManager: this.props.stateManager, nodeData: this.props.nodeData }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(shared_ui_components_lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__.LineContainerComponent, { title: "PROPERTIES", children: [texture && texture.updateSamplingMode && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__.OptionsLine, { label: "Sampling", options: samplingMode, target: texture, noDirectUpdate: true, propertyName: "samplingMode", onSelect: (value) => {
@@ -63502,17 +63502,17 @@ class TexturePropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Com
63502
63502
  },
63503
63503
  ];
63504
63504
  const samplingMode = [
63505
- { label: "Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST },
63506
- { label: "Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR },
63507
- { label: "Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPLINEAR },
63508
- { label: "Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPNEAREST },
63509
- { label: "Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPLINEAR },
63510
- { label: "Nearest & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPNEAREST },
63511
- { label: "Nearest/Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR },
63512
- { label: "Nearest/Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPLINEAR },
63513
- { label: "Nearest/Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPNEAREST },
63514
- { label: "Linear/Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST },
63515
- { label: "Linear/Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST_MIPLINEAR },
63505
+ { label: "Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST }, // 1
63506
+ { label: "Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR }, // 2
63507
+ { label: "Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPLINEAR }, // 3
63508
+ { label: "Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_LINEAR_MIPNEAREST }, // 11
63509
+ { label: "Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPLINEAR }, // 8
63510
+ { label: "Nearest & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_NEAREST_MIPNEAREST }, // 4
63511
+ { label: "Nearest/Linear", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR }, // 7
63512
+ { label: "Nearest/Linear & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPLINEAR }, // 6
63513
+ { label: "Nearest/Linear & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.NEAREST_LINEAR_MIPNEAREST }, // 5
63514
+ { label: "Linear/Nearest", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST }, // 12
63515
+ { label: "Linear/Nearest & linear mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST_MIPLINEAR }, // 10
63516
63516
  { label: "Linear/Nearest & nearest mip", value: core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__.Texture.LINEAR_NEAREST_MIPNEAREST }, // 9
63517
63517
  ];
63518
63518
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__.GeneralPropertyTabComponent, { stateManager: this.props.stateManager, nodeData: this.props.nodeData }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(shared_ui_components_lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__.LineContainerComponent, { title: "PROPERTIES", children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__.CheckBoxLineComponent, { label: "Auto select UV", propertyName: "autoSelectUV", target: block, onValueChanged: () => {
@@ -1728,7 +1728,6 @@ export {};
1728
1728
 
1729
1729
  }
1730
1730
  declare module "@babylonjs/node-editor/split/splitter" {
1731
- /// <reference types="react" />
1732
1731
  import { ControlledSize } from "@babylonjs/node-editor/split/splitContext";
1733
1732
  /**
1734
1733
  * Splitter component properties
@@ -1772,7 +1771,6 @@ export const Splitter: React.FC<ISplitterProps>;
1772
1771
 
1773
1772
  }
1774
1773
  declare module "@babylonjs/node-editor/split/splitContext" {
1775
- /// <reference types="react" />
1776
1774
  export enum ControlledSize {
1777
1775
  First = 0,
1778
1776
  Second = 1
@@ -1818,7 +1816,6 @@ export const SplitContext: import("react").Context<ISplitContext>;
1818
1816
 
1819
1817
  }
1820
1818
  declare module "@babylonjs/node-editor/split/splitContainer" {
1821
- /// <reference types="react" />
1822
1819
  import { SplitDirection } from "@babylonjs/node-editor/split/splitContext";
1823
1820
  /**
1824
1821
  * Split container properties
@@ -1939,8 +1936,8 @@ export class StateManager {
1939
1936
  type: string;
1940
1937
  targetX: number;
1941
1938
  targetY: number;
1942
- needRepositioning?: boolean | undefined;
1943
- smartAdd?: boolean | undefined;
1939
+ needRepositioning?: boolean;
1940
+ smartAdd?: boolean;
1944
1941
  }>;
1945
1942
  onHighlightNodeObservable: Observable<{
1946
1943
  data: any;
@@ -2087,7 +2084,6 @@ export class NodeLedger {
2087
2084
 
2088
2085
  }
2089
2086
  declare module "@babylonjs/node-editor/nodeGraphSystem/graphNode" {
2090
- /// <reference types="react" />
2091
2087
  import { Nullable } from "@babylonjs/core/types";
2092
2088
  import { GraphCanvasComponent } from "@babylonjs/node-editor/nodeGraphSystem/graphCanvas";
2093
2089
  import { NodePort } from "@babylonjs/node-editor/nodeGraphSystem/nodePort";
@@ -3437,7 +3433,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
3437
3433
  syncPositions(): void;
3438
3434
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
3439
3435
  getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
3440
- children?: React.ReactNode;
3436
+ children?: React.ReactNode | undefined;
3441
3437
  }>): string;
3442
3438
  componentDidUpdate(): void;
3443
3439
  componentDidMount(): void;
@@ -3472,7 +3468,7 @@ export class ColorLine extends React.Component<IColorLineProps, IColorLineCompon
3472
3468
  constructor(props: IColorLineProps);
3473
3469
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
3474
3470
  getValue(props?: Readonly<IColorLineProps> & Readonly<{
3475
- children?: React.ReactNode;
3471
+ children?: React.ReactNode | undefined;
3476
3472
  }>): Color4;
3477
3473
  setColorFromString(colorString: string): void;
3478
3474
  setColor(newColor: Color4): void;
@@ -3606,7 +3602,6 @@ export function JoinClassNames(styleObject: any, ...names: string[]): string;
3606
3602
 
3607
3603
  }
3608
3604
  declare module "@babylonjs/node-editor/components/Toggle" {
3609
- /// <reference types="react" />
3610
3605
  export type ToggleProps = {
3611
3606
  toggled: "on" | "mixed" | "off";
3612
3607
  onToggle?: () => void;
@@ -3653,7 +3648,6 @@ export const Label: React.FC<LabelProps>;
3653
3648
 
3654
3649
  }
3655
3650
  declare module "@babylonjs/node-editor/components/Icon" {
3656
- /// <reference types="react" />
3657
3651
  export type IconProps = {
3658
3652
  color?: "dark" | "light";
3659
3653
  icon: string;
@@ -3662,7 +3656,6 @@ export const Icon: React.FC<IconProps>;
3662
3656
 
3663
3657
  }
3664
3658
  declare module "@babylonjs/node-editor/components/Button" {
3665
- /// <reference types="react" />
3666
3659
  export type ButtonProps = {
3667
3660
  disabled?: boolean;
3668
3661
  active?: boolean;
@@ -3850,7 +3843,6 @@ export const GraphLine: FC<IGraphLineProps>;
3850
3843
 
3851
3844
  }
3852
3845
  declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphContextManager" {
3853
- /// <reference types="react" />
3854
3846
  /**
3855
3847
  * this context is used to pass callbacks to the graph nodes and connections
3856
3848
  */
@@ -4025,7 +4017,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
4025
4017
  syncPositions(): void;
4026
4018
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
4027
4019
  getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
4028
- children?: React.ReactNode;
4020
+ children?: React.ReactNode | undefined;
4029
4021
  }>): string;
4030
4022
  componentDidUpdate(): void;
4031
4023
  componentDidMount(): void;
@@ -4060,7 +4052,7 @@ export class ColorLineComponent extends React.Component<IColorLineComponentProps
4060
4052
  constructor(props: IColorLineComponentProps);
4061
4053
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
4062
4054
  getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
4063
- children?: React.ReactNode;
4055
+ children?: React.ReactNode | undefined;
4064
4056
  }>): Color4;
4065
4057
  setColorFromString(colorString: string): void;
4066
4058
  setColor(newColor: Color4): void;
@@ -4195,7 +4187,6 @@ export enum ResizeDirections {
4195
4187
 
4196
4188
  }
4197
4189
  declare module "@babylonjs/node-editor/components/layout/LayoutContext" {
4198
- /// <reference types="react" />
4199
4190
  import { Layout } from "@babylonjs/node-editor/components/layout/types";
4200
4191
  export const LayoutContext: import("react").Context<{
4201
4192
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "7.34.4",
3
+ "version": "7.35.0",
4
4
  "main": "dist/babylon.nodeEditor.max.js",
5
5
  "module": "dist/babylon.nodeEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeEditor.max.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^7.34.4",
26
+ "@babylonjs/core": "^7.35.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },