@babylonjs/node-editor 6.17.1 → 6.19.0
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.
@@ -1681,6 +1681,9 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.\\---------dev-sharedUiComponents-dis
|
|
1681
1681
|
width: 20px;
|
1682
1682
|
height: 20px;
|
1683
1683
|
align-self: center;
|
1684
|
+
display: grid;
|
1685
|
+
grid-template-columns: 100%;
|
1686
|
+
grid-template-rows: 100%;
|
1684
1687
|
}
|
1685
1688
|
.\\---------dev-sharedUiComponents-dist-nodeGraphSystem-common-modules__port .\\---------dev-sharedUiComponents-dist-nodeGraphSystem-common-modules__img {
|
1686
1689
|
width: 100%;
|
@@ -1741,7 +1744,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.\\---------dev-sharedUiComponents-dis
|
|
1741
1744
|
grid-template-rows: 40px calc(100% - 40px);
|
1742
1745
|
grid-template-columns: 100%;
|
1743
1746
|
box-sizing: border-box;
|
1744
|
-
}`, "",{"version":3,"sources":["webpack://./../../../dev/sharedUiComponents/dist/nodeGraphSystem/common.modules.scss"],"names":[],"mappings":"AAAA;EACI,wBAAA;AACJ;;AAEA;EACI,mBAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;AACJ;AACI;EACI,WAAA;AACR;AAEI;EAEI,qBAAA;AADR;;AAKA;EACI,YAAA;EACA,aAAA;EACA,wBAAA;AAFJ;;AAKA;EACI,mBAAA;AAFJ;;AAKA;EACI,WAAA;EACA,cAAA;AAFJ;AAII;EACI,6CAAA;AAFR;AAIQ;EACI,WAAA;EACA,cAAA;AAFZ;AAKQ;EACI,WAAA;EACA,cAAA;EACA,4BAAA;AAHZ;;AAQA;EACI,WAAA;EACA,cAAA;AALJ;AAOI;EACI,6CAAA;AALR;AAOQ;EACI,WAAA;EACA,cAAA;EACA,iBAAA;AALZ;AAQQ;EACI,WAAA;EACA,cAAA;EACA,0BAAA;AANZ;;AAWA;EACI,kBAAA;EACA,iCAAA;EACA,aAAA;EACA,0CAAA;EACA,2BAAA;EACA,sBAAA;AARJ","sourcesContent":[".hidden {\r\n display: none !important;\r\n}\r\n\r\n.port {\r\n border-radius: 20px;\r\n width: 20px;\r\n height: 20px;\r\n align-self: center;\r\n\r\n .img {\r\n width: 100%;\r\n }\r\n\r\n &:hover,\r\n &.selected {\r\n filter: brightness(2);\r\n }\r\n}\r\n\r\n.portLine {\r\n height: 24px;\r\n display: grid;\r\n grid-template-rows: 100%;\r\n}\r\n\r\n.port-label {\r\n align-items: center;\r\n}\r\n\r\n.inputsContainer {\r\n grid-row: 1;\r\n grid-column: 1;\r\n\r\n .portLine {\r\n grid-template-columns: 12px calc(100% - 15px);\r\n\r\n .port-label {\r\n grid-row: 1;\r\n grid-column: 2;\r\n }\r\n\r\n .port {\r\n grid-row: 1;\r\n grid-column: 1;\r\n transform: translateX(-12px);\r\n }\r\n }\r\n}\r\n\r\n.outputsContainer {\r\n grid-row: 1;\r\n grid-column: 2;\r\n\r\n .portLine {\r\n grid-template-columns: calc(100% - 10px) 12px;\r\n\r\n .port-label {\r\n grid-row: 1;\r\n grid-column: 1;\r\n text-align: right;\r\n }\r\n\r\n .port {\r\n grid-row: 1;\r\n grid-column: 2;\r\n transform: translateX(2px);\r\n }\r\n }\r\n}\r\n\r\n.frame-box {\r\n position: absolute;\r\n background: rgba(72, 72, 72, 0.7);\r\n display: grid;\r\n grid-template-rows: 40px calc(100% - 40px);\r\n grid-template-columns: 100%;\r\n box-sizing: border-box;\r\n}\r\n"],"sourceRoot":""}]);
|
1747
|
+
}`, "",{"version":3,"sources":["webpack://./../../../dev/sharedUiComponents/dist/nodeGraphSystem/common.modules.scss"],"names":[],"mappings":"AAAA;EACI,wBAAA;AACJ;;AAEA;EACI,mBAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,aAAA;EACA,2BAAA;EACA,wBAAA;AACJ;AACI;EACI,WAAA;AACR;AAEI;EAEI,qBAAA;AADR;;AAKA;EACI,YAAA;EACA,aAAA;EACA,wBAAA;AAFJ;;AAKA;EACI,mBAAA;AAFJ;;AAKA;EACI,WAAA;EACA,cAAA;AAFJ;AAII;EACI,6CAAA;AAFR;AAIQ;EACI,WAAA;EACA,cAAA;AAFZ;AAKQ;EACI,WAAA;EACA,cAAA;EACA,4BAAA;AAHZ;;AAQA;EACI,WAAA;EACA,cAAA;AALJ;AAOI;EACI,6CAAA;AALR;AAOQ;EACI,WAAA;EACA,cAAA;EACA,iBAAA;AALZ;AAQQ;EACI,WAAA;EACA,cAAA;EACA,0BAAA;AANZ;;AAWA;EACI,kBAAA;EACA,iCAAA;EACA,aAAA;EACA,0CAAA;EACA,2BAAA;EACA,sBAAA;AARJ","sourcesContent":[".hidden {\r\n display: none !important;\r\n}\r\n\r\n.port {\r\n border-radius: 20px;\r\n width: 20px;\r\n height: 20px;\r\n align-self: center;\r\n display: grid;\r\n grid-template-columns: 100%;\r\n grid-template-rows: 100%;\r\n\r\n .img {\r\n width: 100%;\r\n }\r\n\r\n &:hover,\r\n &.selected {\r\n filter: brightness(2);\r\n }\r\n}\r\n\r\n.portLine {\r\n height: 24px;\r\n display: grid;\r\n grid-template-rows: 100%;\r\n}\r\n\r\n.port-label {\r\n align-items: center;\r\n}\r\n\r\n.inputsContainer {\r\n grid-row: 1;\r\n grid-column: 1;\r\n\r\n .portLine {\r\n grid-template-columns: 12px calc(100% - 15px);\r\n\r\n .port-label {\r\n grid-row: 1;\r\n grid-column: 2;\r\n }\r\n\r\n .port {\r\n grid-row: 1;\r\n grid-column: 1;\r\n transform: translateX(-12px);\r\n }\r\n }\r\n}\r\n\r\n.outputsContainer {\r\n grid-row: 1;\r\n grid-column: 2;\r\n\r\n .portLine {\r\n grid-template-columns: calc(100% - 10px) 12px;\r\n\r\n .port-label {\r\n grid-row: 1;\r\n grid-column: 1;\r\n text-align: right;\r\n }\r\n\r\n .port {\r\n grid-row: 1;\r\n grid-column: 2;\r\n transform: translateX(2px);\r\n }\r\n }\r\n}\r\n\r\n.frame-box {\r\n position: absolute;\r\n background: rgba(72, 72, 72, 0.7);\r\n display: grid;\r\n grid-template-rows: 40px calc(100% - 40px);\r\n grid-template-columns: 100%;\r\n box-sizing: border-box;\r\n}\r\n"],"sourceRoot":""}]);
|
1745
1748
|
// Exports
|
1746
1749
|
___CSS_LOADER_EXPORT___.locals = {
|
1747
1750
|
"hidden": `---------dev-sharedUiComponents-dist-nodeGraphSystem-common-modules__hidden`,
|
@@ -2368,13 +2371,35 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.\\---------dev-sharedUiComponents-dis
|
|
2368
2371
|
filter: brightness(2);
|
2369
2372
|
}
|
2370
2373
|
|
2374
|
+
.\\---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__pip {
|
2375
|
+
background: green;
|
2376
|
+
width: 6px;
|
2377
|
+
height: 6px;
|
2378
|
+
grid-row: 1;
|
2379
|
+
grid-column: 1;
|
2380
|
+
align-self: center;
|
2381
|
+
justify-self: center;
|
2382
|
+
border-radius: 7px;
|
2383
|
+
border: 2px solid black;
|
2384
|
+
}
|
2385
|
+
.\\---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__pip.\\---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__hidden {
|
2386
|
+
display: none;
|
2387
|
+
}
|
2388
|
+
|
2389
|
+
img {
|
2390
|
+
grid-row: 1;
|
2391
|
+
grid-column: 1;
|
2392
|
+
}
|
2393
|
+
|
2371
2394
|
img.\\---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__selected {
|
2372
2395
|
box-shadow: 0 0 0 2px;
|
2373
2396
|
border-radius: 50%;
|
2374
|
-
}`, "",{"version":3,"sources":["webpack://./../../../dev/sharedUiComponents/dist/nodeGraphSystem/nodePort.modules.scss"],"names":[],"mappings":"AAAA;EACI,qBAAA;AACJ;;AAEA;EACI,qBAAA;EACA,kBAAA;
|
2397
|
+
}`, "",{"version":3,"sources":["webpack://./../../../dev/sharedUiComponents/dist/nodeGraphSystem/nodePort.modules.scss"],"names":[],"mappings":"AAAA;EACI,qBAAA;AACJ;;AAEA;EACI,iBAAA;EACA,UAAA;EACA,WAAA;EACA,WAAA;EACA,cAAA;EACA,kBAAA;EACA,oBAAA;EACA,kBAAA;EACA,uBAAA;AACJ;AACI;EACI,aAAA;AACR;;AAGA;EACI,WAAA;EACA,cAAA;AAAJ;;AAGA;EACI,qBAAA;EACA,kBAAA;AAAJ","sourcesContent":[".selected {\r\n filter: brightness(2);\r\n}\r\n\r\n.pip {\r\n background: green;\r\n width: 6px;\r\n height: 6px;\r\n grid-row: 1;\r\n grid-column: 1;\r\n align-self: center;\r\n justify-self: center;\r\n border-radius: 7px;\r\n border: 2px solid black;\r\n\r\n &.hidden {\r\n display: none;\r\n }\r\n}\r\n\r\nimg {\r\n grid-row: 1;\r\n grid-column: 1;\r\n}\r\n\r\nimg.selected {\r\n box-shadow: 0 0 0 2px;\r\n border-radius: 50%;\r\n}\r\n"],"sourceRoot":""}]);
|
2375
2398
|
// Exports
|
2376
2399
|
___CSS_LOADER_EXPORT___.locals = {
|
2377
|
-
"selected": `---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__selected
|
2400
|
+
"selected": `---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__selected`,
|
2401
|
+
"pip": `---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__pip`,
|
2402
|
+
"hidden": `---------dev-sharedUiComponents-dist-nodeGraphSystem-nodePort-modules__hidden`
|
2378
2403
|
};
|
2379
2404
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
2380
2405
|
|
@@ -55103,7 +55128,7 @@ class NodePort {
|
|
55103
55128
|
return false;
|
55104
55129
|
}
|
55105
55130
|
refresh() {
|
55106
|
-
this._stateManager.applyNodePortDesign(this.portData, this._element, this._img);
|
55131
|
+
this._stateManager.applyNodePortDesign(this.portData, this._element, this._img, this._pip);
|
55107
55132
|
}
|
55108
55133
|
constructor(portContainer, portData, node, stateManager) {
|
55109
55134
|
this.portData = portData;
|
@@ -55115,6 +55140,10 @@ class NodePort {
|
|
55115
55140
|
this._stateManager = stateManager;
|
55116
55141
|
this._img = portContainer.ownerDocument.createElement("img");
|
55117
55142
|
this._element.appendChild(this._img);
|
55143
|
+
this._pip = portContainer.ownerDocument.createElement("div");
|
55144
|
+
this._pip.classList.add(_nodePort_modules_scss__WEBPACK_IMPORTED_MODULE_1__["default"]["pip"]);
|
55145
|
+
this._pip.style.display = "none";
|
55146
|
+
this._element.appendChild(this._pip);
|
55118
55147
|
// determine if node name is editable
|
55119
55148
|
if (portContainer.children[0].className === _common_modules_scss__WEBPACK_IMPORTED_MODULE_0__["default"]["port-label"]) {
|
55120
55149
|
this._portLabelElement = portContainer.children[0];
|
@@ -55650,6 +55679,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
55650
55679
|
|
55651
55680
|
|
55652
55681
|
|
55682
|
+
|
55683
|
+
|
55653
55684
|
|
55654
55685
|
|
55655
55686
|
|
@@ -55698,6 +55729,8 @@ class BlockTools {
|
|
55698
55729
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.MorphTargetsBlock("MorphTargets");
|
55699
55730
|
case "DiscardBlock":
|
55700
55731
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.DiscardBlock("Discard");
|
55732
|
+
case "PrePassTextureBlock":
|
55733
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.PrePassTextureBlock("PrePassTexture");
|
55701
55734
|
case "ImageProcessingBlock":
|
55702
55735
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.ImageProcessingBlock("ImageProcessing");
|
55703
55736
|
case "ColorMergerBlock":
|
@@ -55720,6 +55753,8 @@ class BlockTools {
|
|
55720
55753
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.VertexOutputBlock("VertexOutput");
|
55721
55754
|
case "FragmentOutputBlock":
|
55722
55755
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.FragmentOutputBlock("FragmentOutput");
|
55756
|
+
case "PrePassOutputBlock":
|
55757
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.PrePassOutputBlock("PrePassOutput");
|
55723
55758
|
case "AddBlock":
|
55724
55759
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.AddBlock("Add");
|
55725
55760
|
case "ClampBlock":
|
@@ -56395,6 +56430,10 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56395
56430
|
removeItem(value) {
|
56396
56431
|
const frameJson = localStorage.getItem("Custom-Frame-List");
|
56397
56432
|
if (frameJson) {
|
56433
|
+
const registeredIdx = shared_ui_components_nodeGraphSystem_nodeLedger__WEBPACK_IMPORTED_MODULE_9__.NodeLedger.RegisteredNodeNames.indexOf(value);
|
56434
|
+
if (registeredIdx !== -1) {
|
56435
|
+
shared_ui_components_nodeGraphSystem_nodeLedger__WEBPACK_IMPORTED_MODULE_9__.NodeLedger.RegisteredNodeNames.splice(registeredIdx, 1);
|
56436
|
+
}
|
56398
56437
|
const frameList = JSON.parse(frameJson);
|
56399
56438
|
delete frameList[value];
|
56400
56439
|
localStorage.removeItem(value);
|
@@ -56562,7 +56601,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56562
56601
|
"MeshAttributeExistsBlock",
|
56563
56602
|
],
|
56564
56603
|
Noises: ["RandomNumberBlock", "SimplexPerlin3DBlock", "WorleyNoise3DBlock", "CloudBlock", "VoronoiNoiseBlock"],
|
56565
|
-
Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock", "ClipPlanesBlock", "FragDepthBlock"],
|
56604
|
+
Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "PrePassOutputBlock", "DiscardBlock", "ClipPlanesBlock", "FragDepthBlock"],
|
56566
56605
|
Particle: [
|
56567
56606
|
"ParticleBlendMultiplyBlock",
|
56568
56607
|
"ParticleColorBlock",
|
@@ -56573,7 +56612,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56573
56612
|
"ParticleUVBlock",
|
56574
56613
|
],
|
56575
56614
|
PBR: ["PBRMetallicRoughnessBlock", "AnisotropyBlock", "ClearCoatBlock", "ReflectionBlock", "RefractionBlock", "SheenBlock", "SubSurfaceBlock"],
|
56576
|
-
PostProcess: ["ScreenPositionBlock", "CurrentScreenBlock"],
|
56615
|
+
PostProcess: ["ScreenPositionBlock", "CurrentScreenBlock", "PrePassTextureBlock"],
|
56577
56616
|
Procedural__Texture: ["ScreenPositionBlock"],
|
56578
56617
|
Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
|
56579
56618
|
Round: ["RoundBlock", "CeilingBlock", "FloorBlock"],
|
@@ -56601,6 +56640,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56601
56640
|
delete allBlocks["Particle"];
|
56602
56641
|
delete allBlocks["Procedural__Texture"];
|
56603
56642
|
delete allBlocks["PBR"];
|
56643
|
+
allBlocks.Output_Nodes.splice(allBlocks.Output_Nodes.indexOf("PrePassOutputBlock"), 1);
|
56604
56644
|
break;
|
56605
56645
|
case core_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__.NodeMaterialModes.ProceduralTexture:
|
56606
56646
|
delete allBlocks["Animation"];
|
@@ -56608,6 +56648,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56608
56648
|
delete allBlocks["Particle"];
|
56609
56649
|
delete allBlocks["PostProcess"];
|
56610
56650
|
delete allBlocks["PBR"];
|
56651
|
+
allBlocks.Output_Nodes.splice(allBlocks.Output_Nodes.indexOf("PrePassOutputBlock"), 1);
|
56611
56652
|
break;
|
56612
56653
|
case core_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__.NodeMaterialModes.Particle:
|
56613
56654
|
delete allBlocks["Animation"];
|
@@ -56618,6 +56659,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56618
56659
|
allBlocks.Output_Nodes.splice(allBlocks.Output_Nodes.indexOf("VertexOutputBlock"), 1);
|
56619
56660
|
allBlocks.Scene.splice(allBlocks.Scene.indexOf("FogBlock"), 1);
|
56620
56661
|
allBlocks.Scene.splice(allBlocks.Scene.indexOf("FogColorBlock"), 1);
|
56662
|
+
allBlocks.Output_Nodes.splice(allBlocks.Output_Nodes.indexOf("PrePassOutputBlock"), 1);
|
56621
56663
|
break;
|
56622
56664
|
}
|
56623
56665
|
// Create node menu
|
@@ -56655,11 +56697,25 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
56655
56697
|
for (const key in allBlocks) {
|
56656
56698
|
const blocks = allBlocks[key];
|
56657
56699
|
if (blocks.length) {
|
56658
|
-
|
56700
|
+
for (const block of blocks) {
|
56701
|
+
if (!ledger.includes(block)) {
|
56702
|
+
ledger.push(block);
|
56703
|
+
}
|
56704
|
+
}
|
56659
56705
|
}
|
56660
56706
|
}
|
56661
56707
|
shared_ui_components_nodeGraphSystem_nodeLedger__WEBPACK_IMPORTED_MODULE_9__.NodeLedger.NameFormatter = (name) => {
|
56662
|
-
|
56708
|
+
let finalName = name;
|
56709
|
+
// custom frame
|
56710
|
+
if (name.endsWith("Custom")) {
|
56711
|
+
const nameIndex = name.lastIndexOf("Custom");
|
56712
|
+
finalName = name.substring(0, nameIndex);
|
56713
|
+
finalName += " [custom]";
|
56714
|
+
}
|
56715
|
+
else {
|
56716
|
+
finalName = name.replace("Block", "");
|
56717
|
+
}
|
56718
|
+
return finalName;
|
56663
56719
|
};
|
56664
56720
|
}
|
56665
56721
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { id: "nodeList", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "panes", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "pane", children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "filter", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", { type: "text", placeholder: "Filter", onFocus: () => (this.props.globalState.lockObject.lock = true), onBlur: () => {
|
@@ -56696,6 +56752,7 @@ NodeListComponent._Tooltips = {
|
|
56696
56752
|
DeltaTimeBlock: "A float representing the time that has passed since the last frame was rendered",
|
56697
56753
|
Float: "A floating point number representing a value with a fractional component",
|
56698
56754
|
TextureBlock: "A node for reading a linked or embedded texture file",
|
56755
|
+
PrePassTextureBlock: "A node for reading textures from the prepass",
|
56699
56756
|
TimeBlock: "A float value that represents the time that has passed since the scene was loaded (it is incremented by 0.6 each second)",
|
56700
56757
|
RealTimeBlock: "A float value that represents the number of seconds that have elapsed since the engine was initialized",
|
56701
56758
|
Vector2: "a vector composed of X and Y channels",
|
@@ -56730,6 +56787,7 @@ NodeListComponent._Tooltips = {
|
|
56730
56787
|
WorldPosition: "A Vector4 representing the position of each vertex of the attached mesh transformed into world space",
|
56731
56788
|
DiscardBlock: "A final node that will not output a pixel below the cutoff value",
|
56732
56789
|
FragmentOutputBlock: "A mandatory final node for outputing the color of each pixel",
|
56790
|
+
PrePassOutputBlock: "An optional final node for outputing geometry data on prepass textures",
|
56733
56791
|
VertexOutputBlock: "A mandatory final node for outputing the position of each vertex",
|
56734
56792
|
ClampBlock: "Outputs values above the maximum or below minimum as maximum or minimum values respectively",
|
56735
56793
|
NormalizeBlock: "Remaps the length of a vector or color to 1",
|
@@ -58871,7 +58929,8 @@ class GraphEditor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
58871
58929
|
}
|
58872
58930
|
}
|
58873
58931
|
}
|
58874
|
-
|
58932
|
+
// Don't allow blocks to automatically connect to other blocks that are inside frames
|
58933
|
+
block.autoConfigure(this.props.globalState.nodeMaterial, (filterBlock) => !this._graphCanvas.nodes.some((node) => node.enclosingFrameId >= 0 && node.content.data.uniqueId === filterBlock.uniqueId));
|
58875
58934
|
newNode = this.appendBlock(block);
|
58876
58935
|
newNode.addClassToVisual(block.getClassName());
|
58877
58936
|
}
|
@@ -59044,7 +59103,7 @@ class ConnectionPointPortData {
|
|
59044
59103
|
get name() {
|
59045
59104
|
const block = this.data.ownerBlock;
|
59046
59105
|
let portName = this.data.displayName || this.data.name;
|
59047
|
-
if (this.data.ownerBlock.isInput) {
|
59106
|
+
if (this.data.ownerBlock.isInput && this.data.ownerBlock.inputs.length === 1) {
|
59048
59107
|
portName = block.name;
|
59049
59108
|
}
|
59050
59109
|
return portName;
|