@babylonjs/node-editor 6.4.1 → 6.5.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.
@@ -59,7 +59,7 @@ __webpack_require__.r(__webpack_exports__);
59
59
 
60
60
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
61
61
  // Module
62
- ___CSS_LOADER_EXPORT___.push([module.id, "#graph-search-container {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n#graph-search-container #graph-search-picking-blocker {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: default;\n}\n#graph-search-container #graph-search-box {\n width: 300px;\n height: 400px;\n position: absolute;\n left: calc(50% - 150px);\n top: calc(50% - 200px);\n background: rgb(72, 72, 72);\n border: 2px solid black;\n z-index: 100;\n cursor: auto;\n display: grid;\n grid-template-rows: auto auto 1fr;\n}\n#graph-search-container #graph-search-box .graph-search-box-title {\n border-bottom: 1px solid rgb(40, 40, 40);\n margin: 4px;\n padding-bottom: 4px;\n color: white;\n grid-row: 1;\n}\n#graph-search-container #graph-search-box .graph-search-box-filter {\n margin: 4px;\n padding-bottom: 4px;\n border-radius: 4px;\n width: calc(100% - 16px);\n grid-row: 2;\n}\n#graph-search-container #graph-search-box .graph-search-box-list {\n grid-row: 3;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n}\n#graph-search-container #graph-search-box .graph-search-box-list .graph-search-box-list-item {\n margin-left: 4px;\n cursor: pointer;\n color: white;\n margin-top: 4px;\n margin-bottom: 4px;\n}\n#graph-search-container #graph-search-box .graph-search-box-list .graph-search-box-list-item:hover {\n background: rgb(30, 30, 30);\n}", "",{"version":3,"sources":["webpack://./../../../dev/sharedUiComponents/dist/nodeGraphSystem/searchBox.scss"],"names":[],"mappings":"AAAA;EACI,kBAAA;EACA,WAAA;EACA,YAAA;EACA,OAAA;EACA,MAAA;AACJ;AACI;EACI,kBAAA;EACA,WAAA;EACA,YAAA;EACA,OAAA;EACA,MAAA;EACA,eAAA;AACR;AAEI;EACI,YAAA;EACA,aAAA;EACA,kBAAA;EACA,uBAAA;EACA,sBAAA;EACA,2BAAA;EACA,uBAAA;EACA,YAAA;EACA,YAAA;EACA,aAAA;EACA,iCAAA;AAAR;AAEQ;EACI,wCAAA;EACA,WAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;AAAZ;AAGQ;EACI,WAAA;EACA,mBAAA;EACA,kBAAA;EACA,wBAAA;EACA,WAAA;AADZ;AAIQ;EACI,WAAA;EACA,gBAAA;EACA,aAAA;EACA,sBAAA;AAFZ;AAIY;EACI,gBAAA;EACA,eAAA;EACA,YAAA;EACA,eAAA;EACA,kBAAA;AAFhB;AAIgB;EACI,2BAAA;AAFpB","sourcesContent":["#graph-search-container {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n left: 0;\r\n top: 0;\r\n\r\n #graph-search-picking-blocker {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n left: 0;\r\n top: 0;\r\n cursor: default;\r\n }\r\n\r\n #graph-search-box {\r\n width: 300px;\r\n height: 400px;\r\n position: absolute;\r\n left: calc(50% - 150px);\r\n top: calc(50% - 200px);\r\n background: rgb(72, 72, 72);\r\n border: 2px solid black;\r\n z-index: 100;\r\n cursor: auto;\r\n display: grid;\r\n grid-template-rows: auto auto 1fr;\r\n\r\n .graph-search-box-title {\r\n border-bottom: 1px solid rgb(40, 40, 40);\r\n margin: 4px;\r\n padding-bottom: 4px;\r\n color: white;\r\n grid-row: 1;\r\n }\r\n\r\n .graph-search-box-filter {\r\n margin: 4px;\r\n padding-bottom: 4px;\r\n border-radius: 4px;\r\n width: calc(100% - 16px);\r\n grid-row: 2;\r\n }\r\n\r\n .graph-search-box-list {\r\n grid-row: 3;\r\n overflow-y: auto;\r\n display: flex;\r\n flex-direction: column;\r\n\r\n .graph-search-box-list-item {\r\n margin-left: 4px;\r\n cursor: pointer;\r\n color: white;\r\n margin-top: 4px;\r\n margin-bottom: 4px;\r\n\r\n &:hover {\r\n background: rgb(30, 30, 30);\r\n }\r\n }\r\n }\r\n }\r\n}\r\n"],"sourceRoot":""}]);
62
+ ___CSS_LOADER_EXPORT___.push([module.id, "#graph-search-container {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n#graph-search-container #graph-search-picking-blocker {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: default;\n}\n#graph-search-container #graph-search-box {\n width: 300px;\n height: 400px;\n position: absolute;\n left: calc(50% - 150px);\n top: calc(50% - 200px);\n background: rgb(72, 72, 72);\n border: 2px solid black;\n z-index: 100;\n cursor: auto;\n display: grid;\n grid-template-rows: auto auto 1fr;\n}\n#graph-search-container #graph-search-box .graph-search-box-title {\n border-bottom: 1px solid rgb(40, 40, 40);\n margin: 4px;\n padding-bottom: 4px;\n color: white;\n grid-row: 1;\n}\n#graph-search-container #graph-search-box .graph-search-box-filter {\n margin: 4px;\n padding-bottom: 4px;\n border-radius: 4px;\n width: calc(100% - 16px);\n grid-row: 2;\n}\n#graph-search-container #graph-search-box .graph-search-box-list {\n grid-row: 3;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n}\n#graph-search-container #graph-search-box .graph-search-box-list .graph-search-box-list-item {\n margin-left: 4px;\n cursor: pointer;\n color: white;\n margin-top: 4px;\n margin-bottom: 4px;\n}\n#graph-search-container #graph-search-box .graph-search-box-list .graph-search-box-list-item:hover {\n background: rgb(30, 30, 30);\n}\n#graph-search-container #graph-search-box .graph-search-box-list .graph-search-box-list-item.selected {\n background: rgb(230, 230, 230);\n color: black;\n}", "",{"version":3,"sources":["webpack://./../../../dev/sharedUiComponents/dist/nodeGraphSystem/searchBox.scss"],"names":[],"mappings":"AAAA;EACI,kBAAA;EACA,WAAA;EACA,YAAA;EACA,OAAA;EACA,MAAA;AACJ;AACI;EACI,kBAAA;EACA,WAAA;EACA,YAAA;EACA,OAAA;EACA,MAAA;EACA,eAAA;AACR;AAEI;EACI,YAAA;EACA,aAAA;EACA,kBAAA;EACA,uBAAA;EACA,sBAAA;EACA,2BAAA;EACA,uBAAA;EACA,YAAA;EACA,YAAA;EACA,aAAA;EACA,iCAAA;AAAR;AAEQ;EACI,wCAAA;EACA,WAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;AAAZ;AAGQ;EACI,WAAA;EACA,mBAAA;EACA,kBAAA;EACA,wBAAA;EACA,WAAA;AADZ;AAIQ;EACI,WAAA;EACA,gBAAA;EACA,aAAA;EACA,sBAAA;AAFZ;AAIY;EACI,gBAAA;EACA,eAAA;EACA,YAAA;EACA,eAAA;EACA,kBAAA;AAFhB;AAIgB;EACI,2BAAA;AAFpB;AAKgB;EACI,8BAAA;EACA,YAAA;AAHpB","sourcesContent":["#graph-search-container {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n left: 0;\r\n top: 0;\r\n\r\n #graph-search-picking-blocker {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n left: 0;\r\n top: 0;\r\n cursor: default;\r\n }\r\n\r\n #graph-search-box {\r\n width: 300px;\r\n height: 400px;\r\n position: absolute;\r\n left: calc(50% - 150px);\r\n top: calc(50% - 200px);\r\n background: rgb(72, 72, 72);\r\n border: 2px solid black;\r\n z-index: 100;\r\n cursor: auto;\r\n display: grid;\r\n grid-template-rows: auto auto 1fr;\r\n\r\n .graph-search-box-title {\r\n border-bottom: 1px solid rgb(40, 40, 40);\r\n margin: 4px;\r\n padding-bottom: 4px;\r\n color: white;\r\n grid-row: 1;\r\n }\r\n\r\n .graph-search-box-filter {\r\n margin: 4px;\r\n padding-bottom: 4px;\r\n border-radius: 4px;\r\n width: calc(100% - 16px);\r\n grid-row: 2;\r\n }\r\n\r\n .graph-search-box-list {\r\n grid-row: 3;\r\n overflow-y: auto;\r\n display: flex;\r\n flex-direction: column;\r\n\r\n .graph-search-box-list-item {\r\n margin-left: 4px;\r\n cursor: pointer;\r\n color: white;\r\n margin-top: 4px;\r\n margin-bottom: 4px;\r\n\r\n &:hover {\r\n background: rgb(30, 30, 30);\r\n }\r\n\r\n &.selected {\r\n background: rgb(230, 230, 230);\r\n color: black;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n"],"sourceRoot":""}]);
63
63
  // Exports
64
64
  ___CSS_LOADER_EXPORT___.locals = {};
65
65
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
@@ -527,6 +527,36 @@ ___CSS_LOADER_EXPORT___.locals = {
527
527
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
528
528
 
529
529
 
530
+ /***/ }),
531
+
532
+ /***/ "../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss":
533
+ /*!****************************************************************************************************************************************************************************************************************************************************!*\
534
+ !*** ../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss ***!
535
+ \****************************************************************************************************************************************************************************************************************************************************/
536
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
537
+
538
+ "use strict";
539
+ __webpack_require__.r(__webpack_exports__);
540
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
541
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
542
+ /* harmony export */ });
543
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../../../../node_modules/css-loader/dist/runtime/sourceMaps.js");
544
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
545
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../../../node_modules/css-loader/dist/runtime/api.js");
546
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
547
+ // Imports
548
+
549
+
550
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
551
+ // Module
552
+ ___CSS_LOADER_EXPORT___.push([module.id, ".\\---------tools-nodeEditor-dist-graphSystem-display-curveDisplayManager-modules__curve-block {\n grid-row: 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px;\n}", "",{"version":3,"sources":["webpack://./../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss"],"names":[],"mappings":"AAAA;EACI,WAAA;EACA,YAAA;EACA,kBAAA;EACA,eAAA;EACA,iBAAA;EACA,cAAA;AACJ","sourcesContent":[".curve-block {\r\n grid-row: 2;\r\n height: 34px;\r\n text-align: center;\r\n font-size: 18px;\r\n font-weight: bold;\r\n margin: 0 10px;\r\n}\r\n"],"sourceRoot":""}]);
553
+ // Exports
554
+ ___CSS_LOADER_EXPORT___.locals = {
555
+ "curve-block": "---------tools-nodeEditor-dist-graphSystem-display-curveDisplayManager-modules__curve-block"
556
+ };
557
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
558
+
559
+
530
560
  /***/ }),
531
561
 
532
562
  /***/ "../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../../tools/nodeEditor/dist/graphSystem/display/elbowDisplayManager.modules.scss":
@@ -53071,7 +53101,7 @@ __webpack_require__.r(__webpack_exports__);
53071
53101
  class SearchBoxComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
53072
53102
  constructor(props) {
53073
53103
  super(props);
53074
- this.state = { isVisible: false, filter: "" };
53104
+ this.state = { isVisible: false, filter: "", selectedIndex: 0 };
53075
53105
  this._handleEscKey = (evt) => {
53076
53106
  if (evt.key === "Escape") {
53077
53107
  this.hide();
@@ -53080,7 +53110,7 @@ class SearchBoxComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
53080
53110
  this.props.stateManager.onSearchBoxRequiredObservable.add((loc) => {
53081
53111
  this._targetX = loc.x;
53082
53112
  this._targetY = loc.y;
53083
- this.setState({ isVisible: true, filter: "" });
53113
+ this.setState({ isVisible: true, filter: "", selectedIndex: 0 });
53084
53114
  this.props.stateManager.hostDocument.addEventListener("keydown", this._handleEscKey);
53085
53115
  });
53086
53116
  }
@@ -53104,7 +53134,15 @@ class SearchBoxComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
53104
53134
  }
53105
53135
  onKeyDown(evt) {
53106
53136
  if (evt.code === "Enter" && this._nodes.length > 0) {
53107
- this.onNewNodeRequested(this._nodes[0]);
53137
+ this.onNewNodeRequested(this._nodes[this.state.selectedIndex]);
53138
+ return;
53139
+ }
53140
+ if (evt.code === "ArrowDown" && this._nodes.length > 0) {
53141
+ this.setState({ selectedIndex: Math.min(this.state.selectedIndex + 1, this._nodes.length - 1) });
53142
+ return;
53143
+ }
53144
+ if (evt.code === "ArrowUp" && this._nodes.length > 0) {
53145
+ this.setState({ selectedIndex: Math.max(this.state.selectedIndex - 1, 0) });
53108
53146
  return;
53109
53147
  }
53110
53148
  }
@@ -53139,8 +53177,8 @@ class SearchBoxComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
53139
53177
  else if (targetY < 10) {
53140
53178
  locStyle.top = "10px";
53141
53179
  }
53142
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "graph-search-container", children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { id: "graph-search-picking-blocker", onClick: () => this.hide() }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "graph-search-box", style: locStyle, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "graph-search-box-title", children: "Add a node" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", { type: "text", placeholder: "Search...", onChange: (evt) => this.onFilterChange(evt), onKeyDown: (evt) => this.onKeyDown(evt), value: this.state.filter, className: "graph-search-box-filter", autoFocus: true, tabIndex: 0 }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "graph-search-box-list", children: this._nodes.map((name) => {
53143
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "graph-search-box-list-item ", onClick: () => this.onNewNodeRequested(name), children: _nodeLedger__WEBPACK_IMPORTED_MODULE_3__.NodeLedger.NameFormatter(name) }, name));
53180
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "graph-search-container", children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { id: "graph-search-picking-blocker", onClick: () => this.hide() }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "graph-search-box", style: locStyle, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "graph-search-box-title", children: "Add a node" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", { type: "text", placeholder: "Search...", onChange: (evt) => this.onFilterChange(evt), onKeyDown: (evt) => this.onKeyDown(evt), value: this.state.filter, className: "graph-search-box-filter", autoFocus: true, tabIndex: 0 }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "graph-search-box-list", children: this._nodes.map((name, i) => {
53181
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "graph-search-box-list-item " + (this.state.selectedIndex === i ? "selected " : ""), onClick: () => this.onNewNodeRequested(name), children: _nodeLedger__WEBPACK_IMPORTED_MODULE_3__.NodeLedger.NameFormatter(name) }, name));
53144
53182
  }) })] })] }));
53145
53183
  }
53146
53184
  }
@@ -53393,7 +53431,7 @@ __webpack_require__.r(__webpack_exports__);
53393
53431
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
53394
53432
  /* harmony export */ "BlockTools": () => (/* binding */ BlockTools)
53395
53433
  /* harmony export */ });
53396
- /* harmony import */ var core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/matrixTransposeBlock */ "core/Misc/dataStorage");
53434
+ /* harmony import */ var core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/curveBlock */ "core/Misc/dataStorage");
53397
53435
  /* harmony import */ var core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__);
53398
53436
 
53399
53437
 
@@ -53489,6 +53527,7 @@ __webpack_require__.r(__webpack_exports__);
53489
53527
 
53490
53528
 
53491
53529
 
53530
+
53492
53531
 
53493
53532
 
53494
53533
  class BlockTools {
@@ -54015,6 +54054,8 @@ class BlockTools {
54015
54054
  return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.MatrixTransposeBlock("Transpose");
54016
54055
  case "MatrixDeterminantBlock":
54017
54056
  return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.MatrixDeterminantBlock("Determinant");
54057
+ case "CurveBlock":
54058
+ return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.CurveBlock("Curve");
54018
54059
  }
54019
54060
  return null;
54020
54061
  }
@@ -54332,6 +54373,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
54332
54373
  "ArcTanBlock",
54333
54374
  "ArcTan2Block",
54334
54375
  "CosBlock",
54376
+ "CurveBlock",
54335
54377
  "DegreesToRadiansBlock",
54336
54378
  "ExpBlock",
54337
54379
  "Exp2Block",
@@ -54657,6 +54699,7 @@ NodeListComponent._Tooltips = {
54657
54699
  MatrixDeterminantBlock: "Compute the determinant of a matrix",
54658
54700
  MatrixTransposeBlock: "Compute the transpose of a matrix",
54659
54701
  MeshAttributeExistsBlock: "Falls back to secondary input if specified attribute doesn't exists on the rendered mesh",
54702
+ CurveBlock: "Apply a curve function",
54660
54703
  };
54661
54704
 
54662
54705
 
@@ -57088,6 +57131,45 @@ class ConditionalDisplayManager {
57088
57131
  }
57089
57132
 
57090
57133
 
57134
+ /***/ }),
57135
+
57136
+ /***/ "../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.js":
57137
+ /*!*********************************************************************************!*\
57138
+ !*** ../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.js ***!
57139
+ \*********************************************************************************/
57140
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
57141
+
57142
+ "use strict";
57143
+ __webpack_require__.r(__webpack_exports__);
57144
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57145
+ /* harmony export */ "CurveDisplayManager": () => (/* binding */ CurveDisplayManager)
57146
+ /* harmony export */ });
57147
+ /* harmony import */ var core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/curveBlock */ "core/Misc/dataStorage");
57148
+ /* harmony import */ var core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_0__);
57149
+ /* harmony import */ var _curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./curveDisplayManager.modules.scss */ "../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss");
57150
+
57151
+
57152
+ class CurveDisplayManager {
57153
+ getHeaderClass() {
57154
+ return "";
57155
+ }
57156
+ shouldDisplayPortLabels() {
57157
+ return false;
57158
+ }
57159
+ getHeaderText(nodeData) {
57160
+ return nodeData.data.name;
57161
+ }
57162
+ getBackgroundColor() {
57163
+ return "#405C86";
57164
+ }
57165
+ updatePreviewContent(nodeData, contentArea) {
57166
+ const curveBlock = nodeData.data;
57167
+ contentArea.classList.add(_curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_1__["default"]["curve-block"]);
57168
+ contentArea.innerHTML = core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_0__.CurveBlockTypes[curveBlock.type];
57169
+ }
57170
+ }
57171
+
57172
+
57091
57173
  /***/ }),
57092
57174
 
57093
57175
  /***/ "../../../tools/nodeEditor/dist/graphSystem/display/discardDisplayManager.js":
@@ -57842,6 +57924,58 @@ class ConditionalPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__
57842
57924
  }
57843
57925
 
57844
57926
 
57927
+ /***/ }),
57928
+
57929
+ /***/ "../../../tools/nodeEditor/dist/graphSystem/properties/curveNodePropertyComponent.js":
57930
+ /*!*******************************************************************************************!*\
57931
+ !*** ../../../tools/nodeEditor/dist/graphSystem/properties/curveNodePropertyComponent.js ***!
57932
+ \*******************************************************************************************/
57933
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
57934
+
57935
+ "use strict";
57936
+ __webpack_require__.r(__webpack_exports__);
57937
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57938
+ /* harmony export */ "CurvePropertyTabComponent": () => (/* binding */ CurvePropertyTabComponent)
57939
+ /* harmony export */ });
57940
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "../../../../node_modules/react/jsx-runtime.js");
57941
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
57942
+ /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "../../../tools/nodeEditor/dist/sharedComponents/lineContainerComponent.js");
57943
+ /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/genericNodePropertyComponent.js");
57944
+ /* harmony import */ var shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shared-ui-components/lines/optionsLineComponent */ "../../../dev/sharedUiComponents/dist/lines/optionsLineComponent.js");
57945
+ /* harmony import */ var core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/Materials/Node/Blocks/curveBlock */ "core/Misc/dataStorage");
57946
+ /* harmony import */ var core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_5__);
57947
+
57948
+
57949
+
57950
+
57951
+
57952
+
57953
+ class CurvePropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
57954
+ constructor(props) {
57955
+ super(props);
57956
+ }
57957
+ render() {
57958
+ const curveBlock = this.props.nodeData.data;
57959
+ const typeOptions = [];
57960
+ const keys = Object.keys(core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_5__.CurveBlockTypes);
57961
+ for (const key of keys) {
57962
+ if (!isNaN(parseInt(key))) {
57963
+ continue;
57964
+ }
57965
+ typeOptions.push({
57966
+ label: key,
57967
+ value: core_Materials_Node_Blocks_curveBlock__WEBPACK_IMPORTED_MODULE_5__.CurveBlockTypes[key],
57968
+ });
57969
+ }
57970
+ 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_3__.GeneralPropertyTabComponent, { stateManager: this.props.stateManager, nodeData: this.props.nodeData }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__.LineContainerComponent, { title: "PROPERTIES", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__.OptionsLineComponent, { label: "Type", options: typeOptions, target: curveBlock, propertyName: "type", onSelect: () => {
57971
+ this.props.stateManager.onUpdateRequiredObservable.notifyObservers(curveBlock);
57972
+ this.props.stateManager.onRebuildRequiredObservable.notifyObservers(true);
57973
+ this.forceUpdate();
57974
+ } }) })] }));
57975
+ }
57976
+ }
57977
+
57978
+
57845
57979
  /***/ }),
57846
57980
 
57847
57981
  /***/ "../../../tools/nodeEditor/dist/graphSystem/properties/frameNodePortPropertyComponent.js":
@@ -59445,6 +59579,8 @@ __webpack_require__.r(__webpack_exports__);
59445
59579
  /* harmony import */ var _display_elbowDisplayManager__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./display/elbowDisplayManager */ "../../../tools/nodeEditor/dist/graphSystem/display/elbowDisplayManager.js");
59446
59580
  /* harmony import */ var shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! shared-ui-components/nodeGraphSystem/displayLedger */ "../../../dev/sharedUiComponents/dist/nodeGraphSystem/displayLedger.js");
59447
59581
  /* harmony import */ var _display_meshAttributeExistsDisplayManager__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./display/meshAttributeExistsDisplayManager */ "../../../tools/nodeEditor/dist/graphSystem/display/meshAttributeExistsDisplayManager.js");
59582
+ /* harmony import */ var _display_curveDisplayManager__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./display/curveDisplayManager */ "../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.js");
59583
+
59448
59584
 
59449
59585
 
59450
59586
 
@@ -59485,6 +59621,7 @@ const RegisterToDisplayManagers = () => {
59485
59621
  shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.ImageSourceBlock = _display_imageSourceDisplayManager__WEBPACK_IMPORTED_MODULE_10__.ImageSourceDisplayManager;
59486
59622
  shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.ElbowBlock = _display_elbowDisplayManager__WEBPACK_IMPORTED_MODULE_11__.ElbowDisplayManager;
59487
59623
  shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.MeshAttributeExistsBlock = _display_meshAttributeExistsDisplayManager__WEBPACK_IMPORTED_MODULE_13__.MeshAttributeExistsDisplayManager;
59624
+ shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.CurveBlock = _display_curveDisplayManager__WEBPACK_IMPORTED_MODULE_14__.CurveDisplayManager;
59488
59625
  };
59489
59626
 
59490
59627
 
@@ -59513,6 +59650,8 @@ __webpack_require__.r(__webpack_exports__);
59513
59650
  /* harmony import */ var _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./properties/transformNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/transformNodePropertyComponent.js");
59514
59651
  /* harmony import */ var _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./properties/trigonometryNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/trigonometryNodePropertyComponent.js");
59515
59652
  /* harmony import */ var _properties_vectorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./properties/vectorMergerPropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/vectorMergerPropertyComponent.js");
59653
+ /* harmony import */ var _properties_curveNodePropertyComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./properties/curveNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/curveNodePropertyComponent.js");
59654
+
59516
59655
 
59517
59656
 
59518
59657
 
@@ -59544,6 +59683,7 @@ const RegisterToPropertyTabManagers = () => {
59544
59683
  shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ImageSourceBlock = _properties_imageSourcePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__.ImageSourcePropertyTabComponent;
59545
59684
  shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.VectorMergerBlock = _properties_vectorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_11__.VectorMergerPropertyTabComponent;
59546
59685
  shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ColorMergerBlock = _properties_colorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_1__.ColorMergerPropertyTabComponent;
59686
+ shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.CurveBlock = _properties_curveNodePropertyComponent__WEBPACK_IMPORTED_MODULE_12__.CurvePropertyTabComponent;
59547
59687
  };
59548
59688
 
59549
59689
 
@@ -61184,6 +61324,61 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
61184
61324
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_common_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_common_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_common_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
61185
61325
 
61186
61326
 
61327
+ /***/ }),
61328
+
61329
+ /***/ "../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss":
61330
+ /*!*******************************************************************************************!*\
61331
+ !*** ../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss ***!
61332
+ \*******************************************************************************************/
61333
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
61334
+
61335
+ "use strict";
61336
+ __webpack_require__.r(__webpack_exports__);
61337
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
61338
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
61339
+ /* harmony export */ });
61340
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
61341
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
61342
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js");
61343
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
61344
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../../../../node_modules/style-loader/dist/runtime/insertBySelector.js");
61345
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
61346
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js");
61347
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
61348
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js");
61349
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
61350
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js");
61351
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
61352
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./curveDisplayManager.modules.scss */ "../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../../tools/nodeEditor/dist/graphSystem/display/curveDisplayManager.modules.scss");
61353
+
61354
+
61355
+
61356
+
61357
+
61358
+
61359
+
61360
+
61361
+
61362
+
61363
+
61364
+ var options = {};
61365
+
61366
+ options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
61367
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
61368
+
61369
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
61370
+
61371
+ options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
61372
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
61373
+
61374
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"], options);
61375
+
61376
+
61377
+
61378
+
61379
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_curveDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
61380
+
61381
+
61187
61382
  /***/ }),
61188
61383
 
61189
61384
  /***/ "../../../tools/nodeEditor/dist/graphSystem/display/elbowDisplayManager.modules.scss":