@crystaldesign/web-planner-logic 24.12.1 → 24.12.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.
- package/build/cjs/{DivaBoxPlanner-303a552b.js → DivaBoxPlanner-1c78ef85.js} +317 -318
- package/build/cjs/{DivaStandardPlanner-2f994125.js → DivaStandardPlanner-eb45e763.js} +82 -82
- package/build/cjs/{DoorPlanner-1faa1593.js → DoorPlanner-3a199423.js} +1 -1
- package/build/cjs/{Host3DSignalR-a9bc4c70.js → Host3DSignalR-c52991a0.js} +43 -43
- package/build/cjs/{LiviqueWWSHandler-e9462b37.js → LiviqueWWSHandler-6607e52f.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-65b5992f.js → PfisterWWSHandler-2ea37e1d.js} +6 -6
- package/build/cjs/{PlannerHandler2D-9ce74b8c.js → PlannerHandler2D-de64a752.js} +189 -189
- package/build/cjs/{SeriousBasketHandler-c0d4f0f5.js → SeriousBasketHandler-03648231.js} +1 -1
- package/build/cjs/{ShelfPlanner-642594d4.js → ShelfPlanner-4402bf3e.js} +86 -86
- package/build/cjs/{StandardWWSHandler-c7833d13.js → StandardWWSHandler-62bc3cc6.js} +1 -1
- package/build/cjs/{index-530d9304.js → index-e86ab943.js} +632 -632
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-0748b14a.js → DivaBoxPlanner-655a32f3.js} +317 -318
- package/build/esm/{DivaStandardPlanner-2c8858b2.js → DivaStandardPlanner-e1faf2c9.js} +82 -82
- package/build/esm/{DoorPlanner-c640fd24.js → DoorPlanner-cfebaef8.js} +1 -1
- package/build/esm/{Host3DSignalR-aa3a4b4d.js → Host3DSignalR-5d924d77.js} +43 -43
- package/build/esm/{LiviqueWWSHandler-8d2570dd.js → LiviqueWWSHandler-62ff852e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-c046e3ee.js → PfisterWWSHandler-1cf1fce6.js} +6 -6
- package/build/esm/{PlannerHandler2D-844fc811.js → PlannerHandler2D-ad96ee8d.js} +189 -189
- package/build/esm/{SeriousBasketHandler-b8e1b0da.js → SeriousBasketHandler-9e031da4.js} +1 -1
- package/build/esm/{ShelfPlanner-f3218c50.js → ShelfPlanner-4f446e61.js} +86 -86
- package/build/esm/{StandardWWSHandler-a3c5246b.js → StandardWWSHandler-e72ecb08.js} +1 -1
- package/build/esm/{index-3870ea62.js → index-84339e2f.js} +632 -632
- package/build/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import { V as Vector3, c as Vector2, D as DockingPoint } from './index-
|
|
4
|
+
import { V as Vector3, c as Vector2, D as DockingPoint } from './index-84339e2f.js';
|
|
5
5
|
import DivaUtils, { md5, DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
@@ -69,9 +69,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
69
69
|
return this.dockingPoints;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
/**
|
|
73
|
-
* This function returns true if any docking Point of the type is docking. For example, the type is AVL. if no AVL is docking - return false. If at least one AVL is docking - return true.
|
|
74
|
-
* @param type Type of the docking point
|
|
72
|
+
/**
|
|
73
|
+
* This function returns true if any docking Point of the type is docking. For example, the type is AVL. if no AVL is docking - return false. If at least one AVL is docking - return true.
|
|
74
|
+
* @param type Type of the docking point
|
|
75
75
|
*/
|
|
76
76
|
}, {
|
|
77
77
|
key: "dockingTypeIsDocking",
|
|
@@ -83,9 +83,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
/**
|
|
87
|
-
* This function returns all docking DPs of a specific type.
|
|
88
|
-
* @param type The type of the docking Point , e.g. AVL
|
|
86
|
+
/**
|
|
87
|
+
* This function returns all docking DPs of a specific type.
|
|
88
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
89
89
|
*/
|
|
90
90
|
}, {
|
|
91
91
|
key: "getDockingDockingPointsByType",
|
|
@@ -98,8 +98,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
98
98
|
return ret;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/**
|
|
102
|
-
* This function returns all docking DPs of any type.
|
|
101
|
+
/**
|
|
102
|
+
* This function returns all docking DPs of any type.
|
|
103
103
|
*/
|
|
104
104
|
}, {
|
|
105
105
|
key: "getDockingDockingPoints",
|
|
@@ -111,9 +111,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
111
111
|
return ret;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* This function returns all notDocking DPs of a specific type.
|
|
116
|
-
* @param type The type of the docking Point , e.g. AVL
|
|
114
|
+
/**
|
|
115
|
+
* This function returns all notDocking DPs of a specific type.
|
|
116
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
117
117
|
*/
|
|
118
118
|
}, {
|
|
119
119
|
key: "getFreeDockingPointsByType",
|
|
@@ -126,10 +126,10 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
126
126
|
return ret;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
/**
|
|
130
|
-
* This function returns the free docking with the specific type and number
|
|
131
|
-
* @param type
|
|
132
|
-
* @param number
|
|
129
|
+
/**
|
|
130
|
+
* This function returns the free docking with the specific type and number
|
|
131
|
+
* @param type
|
|
132
|
+
* @param number
|
|
133
133
|
*/
|
|
134
134
|
}, {
|
|
135
135
|
key: "getFreeDockingPointByTypeAndNumber",
|
|
@@ -140,8 +140,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
140
140
|
return undefined;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
/**
|
|
144
|
-
* This function returns all docking points of the element. It returns docking and not docking points with any type.
|
|
143
|
+
/**
|
|
144
|
+
* This function returns all docking points of the element. It returns docking and not docking points with any type.
|
|
145
145
|
*/
|
|
146
146
|
}, {
|
|
147
147
|
key: "getAllDockingPoints",
|
|
@@ -169,8 +169,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
169
169
|
}
|
|
170
170
|
return undefined;
|
|
171
171
|
}
|
|
172
|
-
/**
|
|
173
|
-
* This function retuns the DockingPoint info in a string format that is used for the 3D image rendering planningData.
|
|
172
|
+
/**
|
|
173
|
+
* This function retuns the DockingPoint info in a string format that is used for the 3D image rendering planningData.
|
|
174
174
|
*/
|
|
175
175
|
}, {
|
|
176
176
|
key: "getDockingPointJS3D",
|
|
@@ -191,8 +191,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
191
191
|
var _this$planElement$pla, _this$planElement$pla2;
|
|
192
192
|
return (_this$planElement$pla = this.planElement.plannerData) !== null && _this$planElement$pla !== void 0 && _this$planElement$pla.articleCodex ? (_this$planElement$pla2 = this.planElement.plannerData) === null || _this$planElement$pla2 === void 0 ? void 0 : _this$planElement$pla2.articleCodex : '';
|
|
193
193
|
}
|
|
194
|
-
/**
|
|
195
|
-
* Returns true if the accessoire is docked to another element in the planner (relatedToBasketID is set).
|
|
194
|
+
/**
|
|
195
|
+
* Returns true if the accessoire is docked to another element in the planner (relatedToBasketID is set).
|
|
196
196
|
*/
|
|
197
197
|
}, {
|
|
198
198
|
key: "IsDockedAccessoire",
|
|
@@ -245,8 +245,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
245
245
|
return this.planElement.worldPosCenter;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
/**
|
|
249
|
-
* This function returns the world pos of the top left bottom corner.
|
|
248
|
+
/**
|
|
249
|
+
* This function returns the world pos of the top left bottom corner.
|
|
250
250
|
*/,
|
|
251
251
|
set: function set(pos) {
|
|
252
252
|
this.planElement.worldPosCenter = pos;
|
|
@@ -266,11 +266,11 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
266
266
|
this.planElement.worldPosCenter = new Vector3(cornerPos.x + centerDir.x, cornerPos.y + this.planElement.plannerData.height / 2, cornerPos.z + centerDir.y);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
/**
|
|
270
|
-
* This function updates the world position and rotation of the element based of some delta Elements
|
|
271
|
-
* @param deltaMove delta translation in cm
|
|
272
|
-
* @param deltaRotDeg delta rotation in degrees
|
|
273
|
-
* @param rotCorrection Specifies the degrees the rotation is corrected. For Example if rotCorrection is 5 degrees and the final angle is between 20 and 25: Then the final angle is rounded to the nearest angle
|
|
269
|
+
/**
|
|
270
|
+
* This function updates the world position and rotation of the element based of some delta Elements
|
|
271
|
+
* @param deltaMove delta translation in cm
|
|
272
|
+
* @param deltaRotDeg delta rotation in degrees
|
|
273
|
+
* @param rotCorrection Specifies the degrees the rotation is corrected. For Example if rotCorrection is 5 degrees and the final angle is between 20 and 25: Then the final angle is rounded to the nearest angle
|
|
274
274
|
*/
|
|
275
275
|
}, {
|
|
276
276
|
key: "updateDeltaTrans",
|
|
@@ -295,9 +295,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
295
295
|
value: function processCenterRot(deltaRot) {
|
|
296
296
|
this.RotDeg = this.RotDeg + deltaRot;
|
|
297
297
|
}
|
|
298
|
-
/**
|
|
299
|
-
* Returns the position in world coordinates of the DP of the element depending on the position and rotation of the planner element
|
|
300
|
-
* @param dpID
|
|
298
|
+
/**
|
|
299
|
+
* Returns the position in world coordinates of the DP of the element depending on the position and rotation of the planner element
|
|
300
|
+
* @param dpID
|
|
301
301
|
*/
|
|
302
302
|
}, {
|
|
303
303
|
key: "getWorldPosOfDP",
|
|
@@ -308,8 +308,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
308
308
|
return new Vector3(this.WorldPosCorner.x + rotatedDir.x, this.WorldPosCorner.y, this.WorldPosCorner.z + rotatedDir.y);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
/**
|
|
312
|
-
* Returns the outlines of the bounding box in world coordinates
|
|
311
|
+
/**
|
|
312
|
+
* Returns the outlines of the bounding box in world coordinates
|
|
313
313
|
*/
|
|
314
314
|
}, {
|
|
315
315
|
key: "getWorld2DBBoxOutline",
|
|
@@ -330,8 +330,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
330
330
|
return this.planElement.rotDeg;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
/**
|
|
334
|
-
* Saves the current docking point state
|
|
333
|
+
/**
|
|
334
|
+
* Saves the current docking point state
|
|
335
335
|
*/,
|
|
336
336
|
set: function set(rot) {
|
|
337
337
|
this.planElement.rotDeg = rot;
|
|
@@ -651,8 +651,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
651
651
|
return this.WorldPosCorner;
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
/**
|
|
655
|
-
* This function returns the position in world coordinates of the CENTER of the plannerElement
|
|
654
|
+
/**
|
|
655
|
+
* This function returns the position in world coordinates of the CENTER of the plannerElement
|
|
656
656
|
*/
|
|
657
657
|
}, {
|
|
658
658
|
key: "getWorldPosCenter",
|
|
@@ -731,8 +731,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
731
731
|
return this.plannerType;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
/**
|
|
735
|
-
* Returns the original svg XML
|
|
734
|
+
/**
|
|
735
|
+
* Returns the original svg XML
|
|
736
736
|
*/
|
|
737
737
|
}, {
|
|
738
738
|
key: "getSVGData",
|
|
@@ -815,10 +815,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
815
815
|
function SVGUtils() {
|
|
816
816
|
_classCallCheck(this, SVGUtils);
|
|
817
817
|
}
|
|
818
|
-
/**
|
|
819
|
-
* This function removes all VIF and OLF information from the SVG. This is used for displaying only the OLT information
|
|
820
|
-
* @param content The svg with OLF and OLT
|
|
821
|
-
* @returns SVG with only OLT information
|
|
818
|
+
/**
|
|
819
|
+
* This function removes all VIF and OLF information from the SVG. This is used for displaying only the OLT information
|
|
820
|
+
* @param content The svg with OLF and OLT
|
|
821
|
+
* @returns SVG with only OLT information
|
|
822
822
|
*/
|
|
823
823
|
return _createClass(SVGUtils, [{
|
|
824
824
|
key: "removeOLFFromSvg",
|
|
@@ -845,10 +845,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
847
|
|
|
848
|
-
/**
|
|
849
|
-
* This function returns the DPs of an svg
|
|
850
|
-
* @param content The svg with OLF and OLT
|
|
851
|
-
* @returns SVG with only OLT information
|
|
848
|
+
/**
|
|
849
|
+
* This function returns the DPs of an svg
|
|
850
|
+
* @param content The svg with OLF and OLT
|
|
851
|
+
* @returns SVG with only OLT information
|
|
852
852
|
*/
|
|
853
853
|
}, {
|
|
854
854
|
key: "getDPsInSVG",
|
|
@@ -882,10 +882,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
882
882
|
return dockingpointsSvgLine;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
/**
|
|
886
|
-
* This function returns the DPs of an svg
|
|
887
|
-
* @param content The svg with OLF and OLT
|
|
888
|
-
* @returns SVG with only OLT information
|
|
885
|
+
/**
|
|
886
|
+
* This function returns the DPs of an svg
|
|
887
|
+
* @param content The svg with OLF and OLT
|
|
888
|
+
* @returns SVG with only OLT information
|
|
889
889
|
*/
|
|
890
890
|
}, {
|
|
891
891
|
key: "getPointOfPoligonById",
|
|
@@ -934,9 +934,9 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
|
|
937
|
-
/**
|
|
938
|
-
* This function looks if the svg has a Mask HTML element. If so it removes all masks from SVG
|
|
939
|
-
* @param content
|
|
937
|
+
/**
|
|
938
|
+
* This function looks if the svg has a Mask HTML element. If so it removes all masks from SVG
|
|
939
|
+
* @param content
|
|
940
940
|
*/
|
|
941
941
|
}, {
|
|
942
942
|
key: "removeMaskFromSvg",
|
|
@@ -962,11 +962,11 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
962
962
|
return content;
|
|
963
963
|
}
|
|
964
964
|
|
|
965
|
-
/*
|
|
966
|
-
* @param content xml Document as String representing SVG
|
|
967
|
-
* @param newWidth new width of SVG (written in the OLT tag)
|
|
968
|
-
* @param newHeight new height of SCG( written in the OLT tag)
|
|
969
|
-
* @param svgMinBorderXVal : number returns the minimum coordinate in x left direction in the SVG. Used to correct viewBox.
|
|
965
|
+
/*
|
|
966
|
+
* @param content xml Document as String representing SVG
|
|
967
|
+
* @param newWidth new width of SVG (written in the OLT tag)
|
|
968
|
+
* @param newHeight new height of SCG( written in the OLT tag)
|
|
969
|
+
* @param svgMinBorderXVal : number returns the minimum coordinate in x left direction in the SVG. Used to correct viewBox.
|
|
970
970
|
*/
|
|
971
971
|
}, {
|
|
972
972
|
key: "ccCheckStretchAreas",
|
|
@@ -1187,10 +1187,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
|
|
1190
|
-
/*
|
|
1191
|
-
Geht alle Elemente durch und sucht zuerst nach den Technischen Eigenschaften
|
|
1192
|
-
Danach geht er davon alle Kinder durch und speichert alle horizontalen StrechAreas in SAH Array
|
|
1193
|
-
und alle vertikalen Strech Areas in SAV Array.
|
|
1190
|
+
/*
|
|
1191
|
+
Geht alle Elemente durch und sucht zuerst nach den Technischen Eigenschaften
|
|
1192
|
+
Danach geht er davon alle Kinder durch und speichert alle horizontalen StrechAreas in SAH Array
|
|
1193
|
+
und alle vertikalen Strech Areas in SAV Array.
|
|
1194
1194
|
*/
|
|
1195
1195
|
function findStretchAreas(root, scaleFactorSvgViewBox, callback) {
|
|
1196
1196
|
var sahWidth = 0;
|
|
@@ -1459,13 +1459,13 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1459
1459
|
rect.setAttribute('height', parseFloat(heightAttr) * scaleFactorSvgViewBox.y);
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
/*
|
|
1463
|
-
Wird aufgerufen, wenn die Gr��e des SVG ge�ndert werden soll.
|
|
1464
|
-
Es berechnet die neuen Gr��en der Stretch Areas
|
|
1465
|
-
Ruft fixXMLObject() auf, worauf hin, die Koordinaten der Einzelnen Elemente (rect, line, path) des SVG angepasst werden
|
|
1466
|
-
Wird eine zu kleine Breite oder H�he eingegeben, wird der Eingabe einfach die minimale Breite / H�he �bergeben
|
|
1467
|
-
newWidth and newHeigth h�ngt vom Wert in OLT_OLF ab. Ist die OLT, so wird der Wert zum Anpassen der
|
|
1468
|
-
Olt �bergeben und umgekehrt.
|
|
1462
|
+
/*
|
|
1463
|
+
Wird aufgerufen, wenn die Gr��e des SVG ge�ndert werden soll.
|
|
1464
|
+
Es berechnet die neuen Gr��en der Stretch Areas
|
|
1465
|
+
Ruft fixXMLObject() auf, worauf hin, die Koordinaten der Einzelnen Elemente (rect, line, path) des SVG angepasst werden
|
|
1466
|
+
Wird eine zu kleine Breite oder H�he eingegeben, wird der Eingabe einfach die minimale Breite / H�he �bergeben
|
|
1467
|
+
newWidth and newHeigth h�ngt vom Wert in OLT_OLF ab. Ist die OLT, so wird der Wert zum Anpassen der
|
|
1468
|
+
Olt �bergeben und umgekehrt.
|
|
1469
1469
|
*/
|
|
1470
1470
|
function resizeXml(newWidth, newHeight, OLT_OLF, callback) {
|
|
1471
1471
|
var currentWidth = OLT_OLF == 'OLT' ? widthOLT : widthOLF;
|
|
@@ -1529,12 +1529,12 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1529
1529
|
callback();
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
|
-
/*
|
|
1533
|
-
Diese Methode geht nun rekursiv alle Elemente des Xml Dokuments durch und passt die Koordinaten den neuen Stretch Areas an.
|
|
1534
|
-
Neben dem aktuellen Element wird noch eine Weitere Variable SA �bergeben. Sie beinhaltet entweder den Wert "SAH" oder "SAV".
|
|
1535
|
-
Je nach Eingabe werden entweder die Methoden bzg der Horizontalen doer vertikalen Stretch Areas aufgerufen.
|
|
1536
|
-
Weiterer �bergabeparameter ist VI. Die Werte die in SAH oder SAV stehen, sind abh�ngig davon, ob man gerade die OLT oder OLF
|
|
1537
|
-
�ndern will. Je nachdem was man gerade �ndern will, wird der andere Fall ignoriert.
|
|
1532
|
+
/*
|
|
1533
|
+
Diese Methode geht nun rekursiv alle Elemente des Xml Dokuments durch und passt die Koordinaten den neuen Stretch Areas an.
|
|
1534
|
+
Neben dem aktuellen Element wird noch eine Weitere Variable SA �bergeben. Sie beinhaltet entweder den Wert "SAH" oder "SAV".
|
|
1535
|
+
Je nach Eingabe werden entweder die Methoden bzg der Horizontalen doer vertikalen Stretch Areas aufgerufen.
|
|
1536
|
+
Weiterer �bergabeparameter ist VI. Die Werte die in SAH oder SAV stehen, sind abh�ngig davon, ob man gerade die OLT oder OLF
|
|
1537
|
+
�ndern will. Je nachdem was man gerade �ndern will, wird der andere Fall ignoriert.
|
|
1538
1538
|
*/
|
|
1539
1539
|
function fixXMLObject(parent, SA, VI) {
|
|
1540
1540
|
//If fixing the OLT, ignore the OLF and VIF || if fixing OLF, ignore OLT and VIT
|
|
@@ -1586,8 +1586,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
/*
|
|
1590
|
-
Berechnet die Gr��e des Bildelementes neu, wobei in SA drin steht, ob gerade die Breite oder H�he gerichtet wird
|
|
1589
|
+
/*
|
|
1590
|
+
Berechnet die Gr��e des Bildelementes neu, wobei in SA drin steht, ob gerade die Breite oder H�he gerichtet wird
|
|
1591
1591
|
*/
|
|
1592
1592
|
function fixImage(image, SA) {
|
|
1593
1593
|
image.setAttribute('preserveAspectRatio', 'none');
|
|
@@ -1606,8 +1606,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
1608
|
|
|
1609
|
-
/*
|
|
1610
|
-
Berechnet die Koordinaten eines <line> Elementes neu
|
|
1609
|
+
/*
|
|
1610
|
+
Berechnet die Koordinaten eines <line> Elementes neu
|
|
1611
1611
|
*/
|
|
1612
1612
|
function fixLine(line, SA) {
|
|
1613
1613
|
var x1;
|
|
@@ -1661,8 +1661,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return line;
|
|
1663
1663
|
}
|
|
1664
|
-
/*
|
|
1665
|
-
Berechnet die Koordinaten f�r das Polygon neu. Polygon ist ein Array aus Punkten mit jeweils zwei Koordinaten
|
|
1664
|
+
/*
|
|
1665
|
+
Berechnet die Koordinaten f�r das Polygon neu. Polygon ist ein Array aus Punkten mit jeweils zwei Koordinaten
|
|
1666
1666
|
*/
|
|
1667
1667
|
function fixPolygon(polygon, SA) {
|
|
1668
1668
|
if (SA == 'SAH') {
|
|
@@ -1699,8 +1699,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1699
1699
|
return points;
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
|
-
/*
|
|
1703
|
-
Berechnet die Koordinaten eines Dreieckes neu
|
|
1702
|
+
/*
|
|
1703
|
+
Berechnet die Koordinaten eines Dreieckes neu
|
|
1704
1704
|
*/
|
|
1705
1705
|
function fixRectangle(rect, SA) {
|
|
1706
1706
|
if (SA == 'SAH') {
|
|
@@ -1757,8 +1757,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1757
1757
|
return rect;
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
|
-
/*
|
|
1761
|
-
Berechnet die Koordinaten eines <path> Elementes neu
|
|
1760
|
+
/*
|
|
1761
|
+
Berechnet die Koordinaten eines <path> Elementes neu
|
|
1762
1762
|
*/
|
|
1763
1763
|
function fixPath(path, SA) {
|
|
1764
1764
|
if (SA == 'SAH') {
|
|
@@ -1966,8 +1966,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return d;
|
|
1968
1968
|
}
|
|
1969
|
-
/*
|
|
1970
|
-
Die ViewBox zum Anzeigen des SVG wird auf die richtige Gr��e gebracht
|
|
1969
|
+
/*
|
|
1970
|
+
Die ViewBox zum Anzeigen des SVG wird auf die richtige Gr��e gebracht
|
|
1971
1971
|
*/
|
|
1972
1972
|
function fixViewBox(root, svgMinBorderXVal, svgMinBorderYVal) {
|
|
1973
1973
|
var viewBox = '';
|
|
@@ -2007,11 +2007,11 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
2007
2007
|
return root;
|
|
2008
2008
|
}
|
|
2009
2009
|
|
|
2010
|
-
/*
|
|
2011
|
-
Bekommt das d Attribut eines <path> Elementes �bergeben, welches die Koordinateninformationen beinhaltet
|
|
2012
|
-
Diese Methode liest die Koordinaten heraus und erstellt jeweils einen Punkt f�r jede einzelne Koordinaten.
|
|
2013
|
-
Besitzt dann die Variable elements, in der die ganzen Punkte gespeichert sind.
|
|
2014
|
-
Ein PUnkt besteht immer aus einem Befehl und den jeweiligen Parametern.
|
|
2010
|
+
/*
|
|
2011
|
+
Bekommt das d Attribut eines <path> Elementes �bergeben, welches die Koordinateninformationen beinhaltet
|
|
2012
|
+
Diese Methode liest die Koordinaten heraus und erstellt jeweils einen Punkt f�r jede einzelne Koordinaten.
|
|
2013
|
+
Besitzt dann die Variable elements, in der die ganzen Punkte gespeichert sind.
|
|
2014
|
+
Ein PUnkt besteht immer aus einem Befehl und den jeweiligen Parametern.
|
|
2015
2015
|
*/
|
|
2016
2016
|
|
|
2017
2017
|
function createPolygonElement(polygonString, scaleFactorSvgViewBox) {
|
|
@@ -2058,14 +2058,14 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
2058
2058
|
return ret;
|
|
2059
2059
|
}
|
|
2060
2060
|
function createPathElement(d, correctViewBoxScale) {
|
|
2061
|
-
/*---------------------------------------------------------------
|
|
2062
|
-
|
|
2063
|
-
Lea -> Man muss bei den ueberpruefungen if(number[anzParam]) auf if(number[anzParam] != null) aendern
|
|
2064
|
-
Der Grund liegt darin, da es stellen in d geben kann, wo viele aufeinanderfolgende Leerzeichen sind.
|
|
2065
|
-
Nach dem ersten leerzeichen wird der Eintrag in number[anzParam] in eine Zahl umgewandelt.
|
|
2066
|
-
Wenn dann weitere Leerzeichen kommen, will ich wissen, ob in if(number[anzParam]) noch etwas drinnen steht.
|
|
2067
|
-
Das tut es zwar, aber wenn die Zahl 0 drinnensteht wird sie f�lschlicherwei�e als 0 interpretiert.
|
|
2068
|
-
Ich springe in das if also nicht hinein, obwohl etwas drinnen w�re.
|
|
2061
|
+
/*---------------------------------------------------------------
|
|
2062
|
+
|
|
2063
|
+
Lea -> Man muss bei den ueberpruefungen if(number[anzParam]) auf if(number[anzParam] != null) aendern
|
|
2064
|
+
Der Grund liegt darin, da es stellen in d geben kann, wo viele aufeinanderfolgende Leerzeichen sind.
|
|
2065
|
+
Nach dem ersten leerzeichen wird der Eintrag in number[anzParam] in eine Zahl umgewandelt.
|
|
2066
|
+
Wenn dann weitere Leerzeichen kommen, will ich wissen, ob in if(number[anzParam]) noch etwas drinnen steht.
|
|
2067
|
+
Das tut es zwar, aber wenn die Zahl 0 drinnensteht wird sie f�lschlicherwei�e als 0 interpretiert.
|
|
2068
|
+
Ich springe in das if also nicht hinein, obwohl etwas drinnen w�re.
|
|
2069
2069
|
------------------------------------------------------------------*/
|
|
2070
2070
|
|
|
2071
2071
|
var points = [];
|
|
@@ -2281,9 +2281,9 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
2281
2281
|
}();
|
|
2282
2282
|
|
|
2283
2283
|
var LOG$1 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
2284
|
-
/**
|
|
2285
|
-
* This class is used like a service.
|
|
2286
|
-
* It handles different actions on planner Elements and its docking Points
|
|
2284
|
+
/**
|
|
2285
|
+
* This class is used like a service.
|
|
2286
|
+
* It handles different actions on planner Elements and its docking Points
|
|
2287
2287
|
*/
|
|
2288
2288
|
var DockingPointHandler = /*#__PURE__*/function () {
|
|
2289
2289
|
function DockingPointHandler() {
|
|
@@ -2292,12 +2292,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2292
2292
|
return _createClass(DockingPointHandler, [{
|
|
2293
2293
|
key: "getRotOfDP",
|
|
2294
2294
|
value:
|
|
2295
|
-
/**
|
|
2296
|
-
* This function returns the rotation of a vector that is specified by two positions in the 2 Dim Space
|
|
2297
|
-
* The rotation is 0 when the Vector is pointing downwards (pos1 is directly above pos2). The rotation is then computed clockwise
|
|
2298
|
-
* The result is resturned in degrees
|
|
2299
|
-
* @param pos1 2 Dimensional position
|
|
2300
|
-
* @param pos2 2 Dimensional position
|
|
2295
|
+
/**
|
|
2296
|
+
* This function returns the rotation of a vector that is specified by two positions in the 2 Dim Space
|
|
2297
|
+
* The rotation is 0 when the Vector is pointing downwards (pos1 is directly above pos2). The rotation is then computed clockwise
|
|
2298
|
+
* The result is resturned in degrees
|
|
2299
|
+
* @param pos1 2 Dimensional position
|
|
2300
|
+
* @param pos2 2 Dimensional position
|
|
2301
2301
|
*/
|
|
2302
2302
|
function getRotOfDP(pos1, pos2) {
|
|
2303
2303
|
var directionVec = Vector2.getDirection(pos2, pos1);
|
|
@@ -2338,10 +2338,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2338
2338
|
return a.LocalWorldPos.x < b.LocalWorldPos.x ? 1 : -1;
|
|
2339
2339
|
});
|
|
2340
2340
|
}
|
|
2341
|
-
/**
|
|
2342
|
-
* Check if the docking Points Filter match for the two elements.
|
|
2343
|
-
* @param plannerElement1
|
|
2344
|
-
* @param plannerElement2
|
|
2341
|
+
/**
|
|
2342
|
+
* Check if the docking Points Filter match for the two elements.
|
|
2343
|
+
* @param plannerElement1
|
|
2344
|
+
* @param plannerElement2
|
|
2345
2345
|
*/
|
|
2346
2346
|
}, {
|
|
2347
2347
|
key: "checkDPAVLFilterDoMatch",
|
|
@@ -2375,8 +2375,8 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2375
2375
|
return false;
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
|
-
/**
|
|
2379
|
-
* This function checks if two docking Points can be docked
|
|
2378
|
+
/**
|
|
2379
|
+
* This function checks if two docking Points can be docked
|
|
2380
2380
|
*/
|
|
2381
2381
|
}, {
|
|
2382
2382
|
key: "checkDPsDoMatch",
|
|
@@ -2405,10 +2405,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2405
2405
|
return true;
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
|
-
/**
|
|
2409
|
-
* This function assumes that the two docking points are matching and can be docked
|
|
2410
|
-
* @param dp1
|
|
2411
|
-
* @param dp2
|
|
2408
|
+
/**
|
|
2409
|
+
* This function assumes that the two docking points are matching and can be docked
|
|
2410
|
+
* @param dp1
|
|
2411
|
+
* @param dp2
|
|
2412
2412
|
*/
|
|
2413
2413
|
}, {
|
|
2414
2414
|
key: "doDock",
|
|
@@ -2416,9 +2416,9 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2416
2416
|
dp1.doDock(dp2, elemId2);
|
|
2417
2417
|
dp2.doDock(dp1, elemId1);
|
|
2418
2418
|
}
|
|
2419
|
-
/*
|
|
2420
|
-
This function inits all docking points of a planner Element Data. The information of the docking Points is currently loaded from the SVG Loader
|
|
2421
|
-
catalogCodex indicates the catalogCodex of the plannerElement
|
|
2419
|
+
/*
|
|
2420
|
+
This function inits all docking points of a planner Element Data. The information of the docking Points is currently loaded from the SVG Loader
|
|
2421
|
+
catalogCodex indicates the catalogCodex of the plannerElement
|
|
2422
2422
|
*/
|
|
2423
2423
|
}, {
|
|
2424
2424
|
key: "initDockingPointsFromSvg",
|
|
@@ -2438,11 +2438,11 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
2440
|
|
|
2441
|
-
/**
|
|
2442
|
-
* This function removes all docking Point relations from the Element .
|
|
2443
|
-
* It removes them as well in the docked elements.
|
|
2444
|
-
* This function is used when deleting a plannerElement
|
|
2445
|
-
* @param plannerElement
|
|
2441
|
+
/**
|
|
2442
|
+
* This function removes all docking Point relations from the Element .
|
|
2443
|
+
* It removes them as well in the docked elements.
|
|
2444
|
+
* This function is used when deleting a plannerElement
|
|
2445
|
+
* @param plannerElement
|
|
2446
2446
|
*/
|
|
2447
2447
|
}, {
|
|
2448
2448
|
key: "removeDockingPointRelations",
|
|
@@ -2457,12 +2457,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
|
-
/**
|
|
2461
|
-
* This function removes all docking Point relations with the type from the Element .
|
|
2462
|
-
* It removes them as well in the docked elements.
|
|
2463
|
-
* This function is used when deleting a plannerElement
|
|
2464
|
-
* @param plannerElement
|
|
2465
|
-
* @param dpTypeList The Type of the docking Point like AVL or AVR
|
|
2460
|
+
/**
|
|
2461
|
+
* This function removes all docking Point relations with the type from the Element .
|
|
2462
|
+
* It removes them as well in the docked elements.
|
|
2463
|
+
* This function is used when deleting a plannerElement
|
|
2464
|
+
* @param plannerElement
|
|
2465
|
+
* @param dpTypeList The Type of the docking Point like AVL or AVR
|
|
2466
2466
|
*/
|
|
2467
2467
|
}, {
|
|
2468
2468
|
key: "removeDockingPointRelationsByType",
|
|
@@ -2480,13 +2480,13 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2480
2480
|
}
|
|
2481
2481
|
return undockedFromElements;
|
|
2482
2482
|
}
|
|
2483
|
-
/**
|
|
2484
|
-
* This function returns a list of docking points that are dockable to the source Planner Element. The function only returns docking Points that lay within a specific area.
|
|
2485
|
-
*
|
|
2486
|
-
* @param sourceElement
|
|
2487
|
-
* @param targetElements
|
|
2488
|
-
* @param autoDockingDistance //gibt die distance an in der er automatisch snappen muss. Infinity _> Docke überall. 0 Docke nie
|
|
2489
|
-
* @returns saves dockable dockingpoints per type with the distance
|
|
2483
|
+
/**
|
|
2484
|
+
* This function returns a list of docking points that are dockable to the source Planner Element. The function only returns docking Points that lay within a specific area.
|
|
2485
|
+
*
|
|
2486
|
+
* @param sourceElement
|
|
2487
|
+
* @param targetElements
|
|
2488
|
+
* @param autoDockingDistance //gibt die distance an in der er automatisch snappen muss. Infinity _> Docke überall. 0 Docke nie
|
|
2489
|
+
* @returns saves dockable dockingpoints per type with the distance
|
|
2490
2490
|
*/
|
|
2491
2491
|
}, {
|
|
2492
2492
|
key: "searchDockableElementsInArea",
|
|
@@ -2534,12 +2534,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2534
2534
|
return dockableDPPairs;
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
|
-
/**
|
|
2538
|
-
* This function tries to dock an element sourcePlannerElement to one element in the targetElements
|
|
2539
|
-
* @param sourcePlannerElement the element that must be docked
|
|
2540
|
-
* @param sourceDPType the type of the element that must be docked
|
|
2541
|
-
* @param targetElements the target Element on which the element should be docked
|
|
2542
|
-
* the function returns true when the Element is docked
|
|
2537
|
+
/**
|
|
2538
|
+
* This function tries to dock an element sourcePlannerElement to one element in the targetElements
|
|
2539
|
+
* @param sourcePlannerElement the element that must be docked
|
|
2540
|
+
* @param sourceDPType the type of the element that must be docked
|
|
2541
|
+
* @param targetElements the target Element on which the element should be docked
|
|
2542
|
+
* the function returns true when the Element is docked
|
|
2543
2543
|
*/
|
|
2544
2544
|
}, {
|
|
2545
2545
|
key: "tryDockElement",
|
|
@@ -2576,12 +2576,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2576
2576
|
return false;
|
|
2577
2577
|
}
|
|
2578
2578
|
|
|
2579
|
-
/**
|
|
2580
|
-
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2581
|
-
* @param sourcePlannerElement the element that must be docked
|
|
2582
|
-
* @param sourceDPType the type of the element that must be docked
|
|
2583
|
-
* @param targetElements the target Element on which the element should be docked
|
|
2584
|
-
* the function returns true when the Element is docked
|
|
2579
|
+
/**
|
|
2580
|
+
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2581
|
+
* @param sourcePlannerElement the element that must be docked
|
|
2582
|
+
* @param sourceDPType the type of the element that must be docked
|
|
2583
|
+
* @param targetElements the target Element on which the element should be docked
|
|
2584
|
+
* the function returns true when the Element is docked
|
|
2585
2585
|
*/
|
|
2586
2586
|
}, {
|
|
2587
2587
|
key: "tryDockElementToDP",
|
|
@@ -2601,13 +2601,13 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2601
2601
|
return false;
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
|
-
/**
|
|
2605
|
-
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2606
|
-
* @param sourcePlannerElement the element that must be docked
|
|
2607
|
-
* @param sourceDPType the type of the element that must be docked
|
|
2608
|
-
* @param sourceDP The source DP
|
|
2609
|
-
* @param targetElements the target Element on which the element should be docked
|
|
2610
|
-
* the function returns true when the Element is docked
|
|
2604
|
+
/**
|
|
2605
|
+
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2606
|
+
* @param sourcePlannerElement the element that must be docked
|
|
2607
|
+
* @param sourceDPType the type of the element that must be docked
|
|
2608
|
+
* @param sourceDP The source DP
|
|
2609
|
+
* @param targetElements the target Element on which the element should be docked
|
|
2610
|
+
* the function returns true when the Element is docked
|
|
2611
2611
|
*/
|
|
2612
2612
|
}, {
|
|
2613
2613
|
key: "tryDockElementDPToDP",
|
|
@@ -2619,11 +2619,11 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2619
2619
|
return false;
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
|
-
/**
|
|
2623
|
-
* this function updates the dockingPoint relations. It is called after reloading one or more SVGs (StretchAreas / SVG Tausch) . For example when changing the ArmRests of
|
|
2624
|
-
* two docking sofas - the old docking information is saved in the plannerElement. The new DockingPoints must be updated based on the previous docking information.
|
|
2625
|
-
* @param plannerElements
|
|
2626
|
-
* @returns returns the list of all Articles that have lost their dockingPoint relations
|
|
2622
|
+
/**
|
|
2623
|
+
* this function updates the dockingPoint relations. It is called after reloading one or more SVGs (StretchAreas / SVG Tausch) . For example when changing the ArmRests of
|
|
2624
|
+
* two docking sofas - the old docking information is saved in the plannerElement. The new DockingPoints must be updated based on the previous docking information.
|
|
2625
|
+
* @param plannerElements
|
|
2626
|
+
* @returns returns the list of all Articles that have lost their dockingPoint relations
|
|
2627
2627
|
*/
|
|
2628
2628
|
}, {
|
|
2629
2629
|
key: "updateDockingRelations",
|
|
@@ -2684,12 +2684,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
return elementsLostDockingRelation;
|
|
2686
2686
|
}
|
|
2687
|
-
/**
|
|
2688
|
-
* This function is used when initialiazing a planning. In the old planner we do only know that a docking point of a specific kind (AVL) of the source Element docks with any docking Point of the targetPlannerElement.
|
|
2689
|
-
* If there is only one target docking Point in the reference object - dock to that. However, when looking at AVOs, there can be that the target element has two AVUs. In this case search the docking point that is the neares.
|
|
2690
|
-
* @param sourcePlannerElement
|
|
2691
|
-
* @param targetPlannerElement
|
|
2692
|
-
* @param sourceDPType The type of the dockingPoint
|
|
2687
|
+
/**
|
|
2688
|
+
* This function is used when initialiazing a planning. In the old planner we do only know that a docking point of a specific kind (AVL) of the source Element docks with any docking Point of the targetPlannerElement.
|
|
2689
|
+
* If there is only one target docking Point in the reference object - dock to that. However, when looking at AVOs, there can be that the target element has two AVUs. In this case search the docking point that is the neares.
|
|
2690
|
+
* @param sourcePlannerElement
|
|
2691
|
+
* @param targetPlannerElement
|
|
2692
|
+
* @param sourceDPType The type of the dockingPoint
|
|
2693
2693
|
*/
|
|
2694
2694
|
}, {
|
|
2695
2695
|
key: "initDockingPointRelationByArea",
|
|
@@ -2712,10 +2712,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
2714
|
|
|
2715
|
-
/**
|
|
2716
|
-
* This function returns true if the two elements are docking. False if they are not
|
|
2717
|
-
* @param element1
|
|
2718
|
-
* @param element2
|
|
2715
|
+
/**
|
|
2716
|
+
* This function returns true if the two elements are docking. False if they are not
|
|
2717
|
+
* @param element1
|
|
2718
|
+
* @param element2
|
|
2719
2719
|
*/
|
|
2720
2720
|
}, {
|
|
2721
2721
|
key: "checkElementsAreDocking",
|
|
@@ -2739,11 +2739,11 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2739
2739
|
_defineProperty(this, "svgUtils", void 0);
|
|
2740
2740
|
this.svgUtils = new SVGUtils();
|
|
2741
2741
|
}
|
|
2742
|
-
/**
|
|
2743
|
-
* This function computes the collision between two elements.
|
|
2744
|
-
* First it computes the collision with the bounding Box. Only if these collide - we compute the collision between the OLF Polygons
|
|
2745
|
-
* @param element1
|
|
2746
|
-
* @param element2
|
|
2742
|
+
/**
|
|
2743
|
+
* This function computes the collision between two elements.
|
|
2744
|
+
* First it computes the collision with the bounding Box. Only if these collide - we compute the collision between the OLF Polygons
|
|
2745
|
+
* @param element1
|
|
2746
|
+
* @param element2
|
|
2747
2747
|
*/
|
|
2748
2748
|
return _createClass(PlannerHandler2D, [{
|
|
2749
2749
|
key: "checkCollision",
|
|
@@ -2769,8 +2769,8 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2769
2769
|
return false;
|
|
2770
2770
|
};
|
|
2771
2771
|
|
|
2772
|
-
/**
|
|
2773
|
-
* This function checks if one Polygon is inside the other
|
|
2772
|
+
/**
|
|
2773
|
+
* This function checks if one Polygon is inside the other
|
|
2774
2774
|
*/
|
|
2775
2775
|
var checkPolygonInsidePolygon = function checkPolygonInsidePolygon(polyLinePoints1, polyLinePoint2) {
|
|
2776
2776
|
var pointOutsideCount = 0;
|
|
@@ -2820,10 +2820,10 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
|
|
2823
|
-
/**
|
|
2824
|
-
* This function creates a HTML Canvas Element of the SVg. This canvas is used by the 3D Grid in order to display the Svg as PNG on the ground.
|
|
2825
|
-
* Before creating the canvas element, the SVG is parsed to be a PNG.
|
|
2826
|
-
* @param plannerElement The planner Element whoes SVGData is used for creating the canvas Element.
|
|
2823
|
+
/**
|
|
2824
|
+
* This function creates a HTML Canvas Element of the SVg. This canvas is used by the 3D Grid in order to display the Svg as PNG on the ground.
|
|
2825
|
+
* Before creating the canvas element, the SVG is parsed to be a PNG.
|
|
2826
|
+
* @param plannerElement The planner Element whoes SVGData is used for creating the canvas Element.
|
|
2827
2827
|
*/
|
|
2828
2828
|
}, {
|
|
2829
2829
|
key: "caluclatePNGOfSVG",
|
|
@@ -2968,8 +2968,8 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2968
2968
|
});
|
|
2969
2969
|
});
|
|
2970
2970
|
}
|
|
2971
|
-
/*
|
|
2972
|
-
This function is used to load the SVG of the element and set everything up.
|
|
2971
|
+
/*
|
|
2972
|
+
This function is used to load the SVG of the element and set everything up.
|
|
2973
2973
|
*/
|
|
2974
2974
|
}, {
|
|
2975
2975
|
key: "loadSVG",
|