@babylonjs/shared-ui-components 6.37.1 → 6.38.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.
- package/components/TextInputWithSubmit.js +1 -2
- package/components/TextInputWithSubmit.js.map +1 -1
- package/components/layout/FlexibleTabsContainer.js +1 -1
- package/components/layout/FlexibleTabsContainer.js.map +1 -1
- package/components/lines/OptionsLineComponent.js +2 -4
- package/components/lines/OptionsLineComponent.js.map +1 -1
- package/components/reactGraphSystem/GraphNodesContainer.js +1 -2
- package/components/reactGraphSystem/GraphNodesContainer.js.map +1 -1
- package/lines/colorPickerComponent.js +1 -2
- package/lines/colorPickerComponent.js.map +1 -1
- package/lines/hexLineComponent.js +1 -2
- package/lines/hexLineComponent.js.map +1 -1
- package/lines/inputArrowsComponent.js +9 -12
- package/lines/inputArrowsComponent.js.map +1 -1
- package/lines/optionsLineComponent.js +1 -2
- package/lines/optionsLineComponent.js.map +1 -1
- package/lines/textInputLineComponent.js +1 -2
- package/lines/textInputLineComponent.js.map +1 -1
- package/lines/textLineComponent.js +1 -2
- package/lines/textLineComponent.js.map +1 -1
- package/nodeGraphSystem/graphCanvas.js +4 -6
- package/nodeGraphSystem/graphCanvas.js.map +1 -1
- package/nodeGraphSystem/graphFrame.js +3 -6
- package/nodeGraphSystem/graphFrame.js.map +1 -1
- package/nodeGraphSystem/tools.js +1 -1
- package/nodeGraphSystem/tools.js.map +1 -1
- package/package.json +1 -1
@@ -1088,7 +1088,6 @@ export class GraphFrame {
|
|
1088
1088
|
this.ports.forEach((framePort) => framePort.node._refreshLinks());
|
1089
1089
|
}
|
1090
1090
|
_movePortUp(elementsArray, nodePort, framePortList) {
|
1091
|
-
var _a;
|
1092
1091
|
// update UI
|
1093
1092
|
const indexInElementArray = elementsArray.findIndex((elem) => elem.dataset.framePortId === `${nodePort.framePortId}`);
|
1094
1093
|
if (indexInElementArray === 0) {
|
@@ -1096,7 +1095,7 @@ export class GraphFrame {
|
|
1096
1095
|
}
|
1097
1096
|
const secondPortElement = elementsArray[indexInElementArray];
|
1098
1097
|
const firstPortElement = elementsArray[indexInElementArray - 1];
|
1099
|
-
|
1098
|
+
firstPortElement.parentElement?.insertBefore(secondPortElement, firstPortElement);
|
1100
1099
|
// update Frame Port Container
|
1101
1100
|
const indexInContainer = framePortList.findIndex((framePort) => framePort === nodePort);
|
1102
1101
|
[framePortList[indexInContainer - 1], framePortList[indexInContainer]] = [framePortList[indexInContainer], framePortList[indexInContainer - 1]]; // swap idicies
|
@@ -1149,7 +1148,6 @@ export class GraphFrame {
|
|
1149
1148
|
this.ports.forEach((framePort) => framePort.node._refreshLinks());
|
1150
1149
|
}
|
1151
1150
|
_movePortDown(elementsArray, nodePort, framePortList) {
|
1152
|
-
var _a;
|
1153
1151
|
// update UI
|
1154
1152
|
const indexInElementArray = elementsArray.findIndex((elem) => elem.dataset.framePortId === `${nodePort.framePortId}`);
|
1155
1153
|
if (indexInElementArray === elementsArray.length - 1) {
|
@@ -1157,7 +1155,7 @@ export class GraphFrame {
|
|
1157
1155
|
}
|
1158
1156
|
const firstPort = elementsArray[indexInElementArray];
|
1159
1157
|
const secondPort = elementsArray[indexInElementArray + 1];
|
1160
|
-
|
1158
|
+
firstPort.parentElement?.insertBefore(secondPort, firstPort);
|
1161
1159
|
// update Frame Port Container
|
1162
1160
|
const indexInContainer = framePortList.findIndex((framePort) => framePort === nodePort);
|
1163
1161
|
[framePortList[indexInContainer], framePortList[indexInContainer + 1]] = [framePortList[indexInContainer + 1], framePortList[indexInContainer]]; // swap idicies
|
@@ -1222,7 +1220,6 @@ export class GraphFrame {
|
|
1222
1220
|
this.element.style.height = `${frameElementHeight + heightModification}px`;
|
1223
1221
|
}
|
1224
1222
|
dispose() {
|
1225
|
-
var _a;
|
1226
1223
|
if (this._onSelectionChangedObserver) {
|
1227
1224
|
this._ownerCanvas.stateManager.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
|
1228
1225
|
}
|
@@ -1232,7 +1229,7 @@ export class GraphFrame {
|
|
1232
1229
|
if (this._onExposePortOnFrameObserver) {
|
1233
1230
|
this._ownerCanvas.stateManager.onExposePortOnFrameObservable.remove(this._onExposePortOnFrameObserver);
|
1234
1231
|
}
|
1235
|
-
|
1232
|
+
this.element.parentElement?.removeChild(this.element);
|
1236
1233
|
this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this), 1);
|
1237
1234
|
this.onExpandStateChanged.clear();
|
1238
1235
|
}
|