@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-e86ab943.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
9
9
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
@@ -82,9 +82,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
82
82
|
return this.dockingPoints;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
/**
|
|
86
|
-
* 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.
|
|
87
|
-
* @param type Type of the docking point
|
|
85
|
+
/**
|
|
86
|
+
* 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.
|
|
87
|
+
* @param type Type of the docking point
|
|
88
88
|
*/
|
|
89
89
|
}, {
|
|
90
90
|
key: "dockingTypeIsDocking",
|
|
@@ -96,9 +96,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* This function returns all docking DPs of a specific type.
|
|
101
|
-
* @param type The type of the docking Point , e.g. AVL
|
|
99
|
+
/**
|
|
100
|
+
* This function returns all docking DPs of a specific type.
|
|
101
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
102
102
|
*/
|
|
103
103
|
}, {
|
|
104
104
|
key: "getDockingDockingPointsByType",
|
|
@@ -111,8 +111,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
111
111
|
return ret;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* This function returns all docking DPs of any type.
|
|
114
|
+
/**
|
|
115
|
+
* This function returns all docking DPs of any type.
|
|
116
116
|
*/
|
|
117
117
|
}, {
|
|
118
118
|
key: "getDockingDockingPoints",
|
|
@@ -124,9 +124,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
124
124
|
return ret;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* This function returns all notDocking DPs of a specific type.
|
|
129
|
-
* @param type The type of the docking Point , e.g. AVL
|
|
127
|
+
/**
|
|
128
|
+
* This function returns all notDocking DPs of a specific type.
|
|
129
|
+
* @param type The type of the docking Point , e.g. AVL
|
|
130
130
|
*/
|
|
131
131
|
}, {
|
|
132
132
|
key: "getFreeDockingPointsByType",
|
|
@@ -139,10 +139,10 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
139
139
|
return ret;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
/**
|
|
143
|
-
* This function returns the free docking with the specific type and number
|
|
144
|
-
* @param type
|
|
145
|
-
* @param number
|
|
142
|
+
/**
|
|
143
|
+
* This function returns the free docking with the specific type and number
|
|
144
|
+
* @param type
|
|
145
|
+
* @param number
|
|
146
146
|
*/
|
|
147
147
|
}, {
|
|
148
148
|
key: "getFreeDockingPointByTypeAndNumber",
|
|
@@ -153,8 +153,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
153
153
|
return undefined;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/**
|
|
157
|
-
* This function returns all docking points of the element. It returns docking and not docking points with any type.
|
|
156
|
+
/**
|
|
157
|
+
* This function returns all docking points of the element. It returns docking and not docking points with any type.
|
|
158
158
|
*/
|
|
159
159
|
}, {
|
|
160
160
|
key: "getAllDockingPoints",
|
|
@@ -182,8 +182,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
182
182
|
}
|
|
183
183
|
return undefined;
|
|
184
184
|
}
|
|
185
|
-
/**
|
|
186
|
-
* This function retuns the DockingPoint info in a string format that is used for the 3D image rendering planningData.
|
|
185
|
+
/**
|
|
186
|
+
* This function retuns the DockingPoint info in a string format that is used for the 3D image rendering planningData.
|
|
187
187
|
*/
|
|
188
188
|
}, {
|
|
189
189
|
key: "getDockingPointJS3D",
|
|
@@ -204,8 +204,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
204
204
|
var _this$planElement$pla, _this$planElement$pla2;
|
|
205
205
|
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 : '';
|
|
206
206
|
}
|
|
207
|
-
/**
|
|
208
|
-
* Returns true if the accessoire is docked to another element in the planner (relatedToBasketID is set).
|
|
207
|
+
/**
|
|
208
|
+
* Returns true if the accessoire is docked to another element in the planner (relatedToBasketID is set).
|
|
209
209
|
*/
|
|
210
210
|
}, {
|
|
211
211
|
key: "IsDockedAccessoire",
|
|
@@ -258,8 +258,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
258
258
|
return this.planElement.worldPosCenter;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
/**
|
|
262
|
-
* This function returns the world pos of the top left bottom corner.
|
|
261
|
+
/**
|
|
262
|
+
* This function returns the world pos of the top left bottom corner.
|
|
263
263
|
*/,
|
|
264
264
|
set: function set(pos) {
|
|
265
265
|
this.planElement.worldPosCenter = pos;
|
|
@@ -279,11 +279,11 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
279
279
|
this.planElement.worldPosCenter = new index.Vector3(cornerPos.x + centerDir.x, cornerPos.y + this.planElement.plannerData.height / 2, cornerPos.z + centerDir.y);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
/**
|
|
283
|
-
* This function updates the world position and rotation of the element based of some delta Elements
|
|
284
|
-
* @param deltaMove delta translation in cm
|
|
285
|
-
* @param deltaRotDeg delta rotation in degrees
|
|
286
|
-
* @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
|
|
282
|
+
/**
|
|
283
|
+
* This function updates the world position and rotation of the element based of some delta Elements
|
|
284
|
+
* @param deltaMove delta translation in cm
|
|
285
|
+
* @param deltaRotDeg delta rotation in degrees
|
|
286
|
+
* @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
|
|
287
287
|
*/
|
|
288
288
|
}, {
|
|
289
289
|
key: "updateDeltaTrans",
|
|
@@ -308,9 +308,9 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
308
308
|
value: function processCenterRot(deltaRot) {
|
|
309
309
|
this.RotDeg = this.RotDeg + deltaRot;
|
|
310
310
|
}
|
|
311
|
-
/**
|
|
312
|
-
* Returns the position in world coordinates of the DP of the element depending on the position and rotation of the planner element
|
|
313
|
-
* @param dpID
|
|
311
|
+
/**
|
|
312
|
+
* Returns the position in world coordinates of the DP of the element depending on the position and rotation of the planner element
|
|
313
|
+
* @param dpID
|
|
314
314
|
*/
|
|
315
315
|
}, {
|
|
316
316
|
key: "getWorldPosOfDP",
|
|
@@ -321,8 +321,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
321
321
|
return new index.Vector3(this.WorldPosCorner.x + rotatedDir.x, this.WorldPosCorner.y, this.WorldPosCorner.z + rotatedDir.y);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
/**
|
|
325
|
-
* Returns the outlines of the bounding box in world coordinates
|
|
324
|
+
/**
|
|
325
|
+
* Returns the outlines of the bounding box in world coordinates
|
|
326
326
|
*/
|
|
327
327
|
}, {
|
|
328
328
|
key: "getWorld2DBBoxOutline",
|
|
@@ -343,8 +343,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
343
343
|
return this.planElement.rotDeg;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
/**
|
|
347
|
-
* Saves the current docking point state
|
|
346
|
+
/**
|
|
347
|
+
* Saves the current docking point state
|
|
348
348
|
*/,
|
|
349
349
|
set: function set(rot) {
|
|
350
350
|
this.planElement.rotDeg = rot;
|
|
@@ -664,8 +664,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
664
664
|
return this.WorldPosCorner;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
/**
|
|
668
|
-
* This function returns the position in world coordinates of the CENTER of the plannerElement
|
|
667
|
+
/**
|
|
668
|
+
* This function returns the position in world coordinates of the CENTER of the plannerElement
|
|
669
669
|
*/
|
|
670
670
|
}, {
|
|
671
671
|
key: "getWorldPosCenter",
|
|
@@ -744,8 +744,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
744
744
|
return this.plannerType;
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
/**
|
|
748
|
-
* Returns the original svg XML
|
|
747
|
+
/**
|
|
748
|
+
* Returns the original svg XML
|
|
749
749
|
*/
|
|
750
750
|
}, {
|
|
751
751
|
key: "getSVGData",
|
|
@@ -828,10 +828,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
828
828
|
function SVGUtils() {
|
|
829
829
|
_classCallCheck__default["default"](this, SVGUtils);
|
|
830
830
|
}
|
|
831
|
-
/**
|
|
832
|
-
* This function removes all VIF and OLF information from the SVG. This is used for displaying only the OLT information
|
|
833
|
-
* @param content The svg with OLF and OLT
|
|
834
|
-
* @returns SVG with only OLT information
|
|
831
|
+
/**
|
|
832
|
+
* This function removes all VIF and OLF information from the SVG. This is used for displaying only the OLT information
|
|
833
|
+
* @param content The svg with OLF and OLT
|
|
834
|
+
* @returns SVG with only OLT information
|
|
835
835
|
*/
|
|
836
836
|
return _createClass__default["default"](SVGUtils, [{
|
|
837
837
|
key: "removeOLFFromSvg",
|
|
@@ -858,10 +858,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
/**
|
|
862
|
-
* This function returns the DPs of an svg
|
|
863
|
-
* @param content The svg with OLF and OLT
|
|
864
|
-
* @returns SVG with only OLT information
|
|
861
|
+
/**
|
|
862
|
+
* This function returns the DPs of an svg
|
|
863
|
+
* @param content The svg with OLF and OLT
|
|
864
|
+
* @returns SVG with only OLT information
|
|
865
865
|
*/
|
|
866
866
|
}, {
|
|
867
867
|
key: "getDPsInSVG",
|
|
@@ -895,10 +895,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
895
895
|
return dockingpointsSvgLine;
|
|
896
896
|
}
|
|
897
897
|
|
|
898
|
-
/**
|
|
899
|
-
* This function returns the DPs of an svg
|
|
900
|
-
* @param content The svg with OLF and OLT
|
|
901
|
-
* @returns SVG with only OLT information
|
|
898
|
+
/**
|
|
899
|
+
* This function returns the DPs of an svg
|
|
900
|
+
* @param content The svg with OLF and OLT
|
|
901
|
+
* @returns SVG with only OLT information
|
|
902
902
|
*/
|
|
903
903
|
}, {
|
|
904
904
|
key: "getPointOfPoligonById",
|
|
@@ -947,9 +947,9 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
949
|
|
|
950
|
-
/**
|
|
951
|
-
* This function looks if the svg has a Mask HTML element. If so it removes all masks from SVG
|
|
952
|
-
* @param content
|
|
950
|
+
/**
|
|
951
|
+
* This function looks if the svg has a Mask HTML element. If so it removes all masks from SVG
|
|
952
|
+
* @param content
|
|
953
953
|
*/
|
|
954
954
|
}, {
|
|
955
955
|
key: "removeMaskFromSvg",
|
|
@@ -975,11 +975,11 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
975
975
|
return content;
|
|
976
976
|
}
|
|
977
977
|
|
|
978
|
-
/*
|
|
979
|
-
* @param content xml Document as String representing SVG
|
|
980
|
-
* @param newWidth new width of SVG (written in the OLT tag)
|
|
981
|
-
* @param newHeight new height of SCG( written in the OLT tag)
|
|
982
|
-
* @param svgMinBorderXVal : number returns the minimum coordinate in x left direction in the SVG. Used to correct viewBox.
|
|
978
|
+
/*
|
|
979
|
+
* @param content xml Document as String representing SVG
|
|
980
|
+
* @param newWidth new width of SVG (written in the OLT tag)
|
|
981
|
+
* @param newHeight new height of SCG( written in the OLT tag)
|
|
982
|
+
* @param svgMinBorderXVal : number returns the minimum coordinate in x left direction in the SVG. Used to correct viewBox.
|
|
983
983
|
*/
|
|
984
984
|
}, {
|
|
985
985
|
key: "ccCheckStretchAreas",
|
|
@@ -1200,10 +1200,10 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
|
-
/*
|
|
1204
|
-
Geht alle Elemente durch und sucht zuerst nach den Technischen Eigenschaften
|
|
1205
|
-
Danach geht er davon alle Kinder durch und speichert alle horizontalen StrechAreas in SAH Array
|
|
1206
|
-
und alle vertikalen Strech Areas in SAV Array.
|
|
1203
|
+
/*
|
|
1204
|
+
Geht alle Elemente durch und sucht zuerst nach den Technischen Eigenschaften
|
|
1205
|
+
Danach geht er davon alle Kinder durch und speichert alle horizontalen StrechAreas in SAH Array
|
|
1206
|
+
und alle vertikalen Strech Areas in SAV Array.
|
|
1207
1207
|
*/
|
|
1208
1208
|
function findStretchAreas(root, scaleFactorSvgViewBox, callback) {
|
|
1209
1209
|
var sahWidth = 0;
|
|
@@ -1472,13 +1472,13 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1472
1472
|
rect.setAttribute('height', parseFloat(heightAttr) * scaleFactorSvgViewBox.y);
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
|
-
/*
|
|
1476
|
-
Wird aufgerufen, wenn die Gr��e des SVG ge�ndert werden soll.
|
|
1477
|
-
Es berechnet die neuen Gr��en der Stretch Areas
|
|
1478
|
-
Ruft fixXMLObject() auf, worauf hin, die Koordinaten der Einzelnen Elemente (rect, line, path) des SVG angepasst werden
|
|
1479
|
-
Wird eine zu kleine Breite oder H�he eingegeben, wird der Eingabe einfach die minimale Breite / H�he �bergeben
|
|
1480
|
-
newWidth and newHeigth h�ngt vom Wert in OLT_OLF ab. Ist die OLT, so wird der Wert zum Anpassen der
|
|
1481
|
-
Olt �bergeben und umgekehrt.
|
|
1475
|
+
/*
|
|
1476
|
+
Wird aufgerufen, wenn die Gr��e des SVG ge�ndert werden soll.
|
|
1477
|
+
Es berechnet die neuen Gr��en der Stretch Areas
|
|
1478
|
+
Ruft fixXMLObject() auf, worauf hin, die Koordinaten der Einzelnen Elemente (rect, line, path) des SVG angepasst werden
|
|
1479
|
+
Wird eine zu kleine Breite oder H�he eingegeben, wird der Eingabe einfach die minimale Breite / H�he �bergeben
|
|
1480
|
+
newWidth and newHeigth h�ngt vom Wert in OLT_OLF ab. Ist die OLT, so wird der Wert zum Anpassen der
|
|
1481
|
+
Olt �bergeben und umgekehrt.
|
|
1482
1482
|
*/
|
|
1483
1483
|
function resizeXml(newWidth, newHeight, OLT_OLF, callback) {
|
|
1484
1484
|
var currentWidth = OLT_OLF == 'OLT' ? widthOLT : widthOLF;
|
|
@@ -1542,12 +1542,12 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1542
1542
|
callback();
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
|
-
/*
|
|
1546
|
-
Diese Methode geht nun rekursiv alle Elemente des Xml Dokuments durch und passt die Koordinaten den neuen Stretch Areas an.
|
|
1547
|
-
Neben dem aktuellen Element wird noch eine Weitere Variable SA �bergeben. Sie beinhaltet entweder den Wert "SAH" oder "SAV".
|
|
1548
|
-
Je nach Eingabe werden entweder die Methoden bzg der Horizontalen doer vertikalen Stretch Areas aufgerufen.
|
|
1549
|
-
Weiterer �bergabeparameter ist VI. Die Werte die in SAH oder SAV stehen, sind abh�ngig davon, ob man gerade die OLT oder OLF
|
|
1550
|
-
�ndern will. Je nachdem was man gerade �ndern will, wird der andere Fall ignoriert.
|
|
1545
|
+
/*
|
|
1546
|
+
Diese Methode geht nun rekursiv alle Elemente des Xml Dokuments durch und passt die Koordinaten den neuen Stretch Areas an.
|
|
1547
|
+
Neben dem aktuellen Element wird noch eine Weitere Variable SA �bergeben. Sie beinhaltet entweder den Wert "SAH" oder "SAV".
|
|
1548
|
+
Je nach Eingabe werden entweder die Methoden bzg der Horizontalen doer vertikalen Stretch Areas aufgerufen.
|
|
1549
|
+
Weiterer �bergabeparameter ist VI. Die Werte die in SAH oder SAV stehen, sind abh�ngig davon, ob man gerade die OLT oder OLF
|
|
1550
|
+
�ndern will. Je nachdem was man gerade �ndern will, wird der andere Fall ignoriert.
|
|
1551
1551
|
*/
|
|
1552
1552
|
function fixXMLObject(parent, SA, VI) {
|
|
1553
1553
|
//If fixing the OLT, ignore the OLF and VIF || if fixing OLF, ignore OLT and VIT
|
|
@@ -1599,8 +1599,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
/*
|
|
1603
|
-
Berechnet die Gr��e des Bildelementes neu, wobei in SA drin steht, ob gerade die Breite oder H�he gerichtet wird
|
|
1602
|
+
/*
|
|
1603
|
+
Berechnet die Gr��e des Bildelementes neu, wobei in SA drin steht, ob gerade die Breite oder H�he gerichtet wird
|
|
1604
1604
|
*/
|
|
1605
1605
|
function fixImage(image, SA) {
|
|
1606
1606
|
image.setAttribute('preserveAspectRatio', 'none');
|
|
@@ -1619,8 +1619,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
|
-
/*
|
|
1623
|
-
Berechnet die Koordinaten eines <line> Elementes neu
|
|
1622
|
+
/*
|
|
1623
|
+
Berechnet die Koordinaten eines <line> Elementes neu
|
|
1624
1624
|
*/
|
|
1625
1625
|
function fixLine(line, SA) {
|
|
1626
1626
|
var x1;
|
|
@@ -1674,8 +1674,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
return line;
|
|
1676
1676
|
}
|
|
1677
|
-
/*
|
|
1678
|
-
Berechnet die Koordinaten f�r das Polygon neu. Polygon ist ein Array aus Punkten mit jeweils zwei Koordinaten
|
|
1677
|
+
/*
|
|
1678
|
+
Berechnet die Koordinaten f�r das Polygon neu. Polygon ist ein Array aus Punkten mit jeweils zwei Koordinaten
|
|
1679
1679
|
*/
|
|
1680
1680
|
function fixPolygon(polygon, SA) {
|
|
1681
1681
|
if (SA == 'SAH') {
|
|
@@ -1712,8 +1712,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1712
1712
|
return points;
|
|
1713
1713
|
}
|
|
1714
1714
|
|
|
1715
|
-
/*
|
|
1716
|
-
Berechnet die Koordinaten eines Dreieckes neu
|
|
1715
|
+
/*
|
|
1716
|
+
Berechnet die Koordinaten eines Dreieckes neu
|
|
1717
1717
|
*/
|
|
1718
1718
|
function fixRectangle(rect, SA) {
|
|
1719
1719
|
if (SA == 'SAH') {
|
|
@@ -1770,8 +1770,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1770
1770
|
return rect;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
-
/*
|
|
1774
|
-
Berechnet die Koordinaten eines <path> Elementes neu
|
|
1773
|
+
/*
|
|
1774
|
+
Berechnet die Koordinaten eines <path> Elementes neu
|
|
1775
1775
|
*/
|
|
1776
1776
|
function fixPath(path, SA) {
|
|
1777
1777
|
if (SA == 'SAH') {
|
|
@@ -1979,8 +1979,8 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
return d;
|
|
1981
1981
|
}
|
|
1982
|
-
/*
|
|
1983
|
-
Die ViewBox zum Anzeigen des SVG wird auf die richtige Gr��e gebracht
|
|
1982
|
+
/*
|
|
1983
|
+
Die ViewBox zum Anzeigen des SVG wird auf die richtige Gr��e gebracht
|
|
1984
1984
|
*/
|
|
1985
1985
|
function fixViewBox(root, svgMinBorderXVal, svgMinBorderYVal) {
|
|
1986
1986
|
var viewBox = '';
|
|
@@ -2020,11 +2020,11 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
2020
2020
|
return root;
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
|
-
/*
|
|
2024
|
-
Bekommt das d Attribut eines <path> Elementes �bergeben, welches die Koordinateninformationen beinhaltet
|
|
2025
|
-
Diese Methode liest die Koordinaten heraus und erstellt jeweils einen Punkt f�r jede einzelne Koordinaten.
|
|
2026
|
-
Besitzt dann die Variable elements, in der die ganzen Punkte gespeichert sind.
|
|
2027
|
-
Ein PUnkt besteht immer aus einem Befehl und den jeweiligen Parametern.
|
|
2023
|
+
/*
|
|
2024
|
+
Bekommt das d Attribut eines <path> Elementes �bergeben, welches die Koordinateninformationen beinhaltet
|
|
2025
|
+
Diese Methode liest die Koordinaten heraus und erstellt jeweils einen Punkt f�r jede einzelne Koordinaten.
|
|
2026
|
+
Besitzt dann die Variable elements, in der die ganzen Punkte gespeichert sind.
|
|
2027
|
+
Ein PUnkt besteht immer aus einem Befehl und den jeweiligen Parametern.
|
|
2028
2028
|
*/
|
|
2029
2029
|
|
|
2030
2030
|
function createPolygonElement(polygonString, scaleFactorSvgViewBox) {
|
|
@@ -2071,14 +2071,14 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
2071
2071
|
return ret;
|
|
2072
2072
|
}
|
|
2073
2073
|
function createPathElement(d, correctViewBoxScale) {
|
|
2074
|
-
/*---------------------------------------------------------------
|
|
2075
|
-
|
|
2076
|
-
Lea -> Man muss bei den ueberpruefungen if(number[anzParam]) auf if(number[anzParam] != null) aendern
|
|
2077
|
-
Der Grund liegt darin, da es stellen in d geben kann, wo viele aufeinanderfolgende Leerzeichen sind.
|
|
2078
|
-
Nach dem ersten leerzeichen wird der Eintrag in number[anzParam] in eine Zahl umgewandelt.
|
|
2079
|
-
Wenn dann weitere Leerzeichen kommen, will ich wissen, ob in if(number[anzParam]) noch etwas drinnen steht.
|
|
2080
|
-
Das tut es zwar, aber wenn die Zahl 0 drinnensteht wird sie f�lschlicherwei�e als 0 interpretiert.
|
|
2081
|
-
Ich springe in das if also nicht hinein, obwohl etwas drinnen w�re.
|
|
2074
|
+
/*---------------------------------------------------------------
|
|
2075
|
+
|
|
2076
|
+
Lea -> Man muss bei den ueberpruefungen if(number[anzParam]) auf if(number[anzParam] != null) aendern
|
|
2077
|
+
Der Grund liegt darin, da es stellen in d geben kann, wo viele aufeinanderfolgende Leerzeichen sind.
|
|
2078
|
+
Nach dem ersten leerzeichen wird der Eintrag in number[anzParam] in eine Zahl umgewandelt.
|
|
2079
|
+
Wenn dann weitere Leerzeichen kommen, will ich wissen, ob in if(number[anzParam]) noch etwas drinnen steht.
|
|
2080
|
+
Das tut es zwar, aber wenn die Zahl 0 drinnensteht wird sie f�lschlicherwei�e als 0 interpretiert.
|
|
2081
|
+
Ich springe in das if also nicht hinein, obwohl etwas drinnen w�re.
|
|
2082
2082
|
------------------------------------------------------------------*/
|
|
2083
2083
|
|
|
2084
2084
|
var points = [];
|
|
@@ -2294,9 +2294,9 @@ var SVGUtils = /*#__PURE__*/function () {
|
|
|
2294
2294
|
}();
|
|
2295
2295
|
|
|
2296
2296
|
var LOG$1 = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
2297
|
-
/**
|
|
2298
|
-
* This class is used like a service.
|
|
2299
|
-
* It handles different actions on planner Elements and its docking Points
|
|
2297
|
+
/**
|
|
2298
|
+
* This class is used like a service.
|
|
2299
|
+
* It handles different actions on planner Elements and its docking Points
|
|
2300
2300
|
*/
|
|
2301
2301
|
var DockingPointHandler = /*#__PURE__*/function () {
|
|
2302
2302
|
function DockingPointHandler() {
|
|
@@ -2305,12 +2305,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2305
2305
|
return _createClass__default["default"](DockingPointHandler, [{
|
|
2306
2306
|
key: "getRotOfDP",
|
|
2307
2307
|
value:
|
|
2308
|
-
/**
|
|
2309
|
-
* This function returns the rotation of a vector that is specified by two positions in the 2 Dim Space
|
|
2310
|
-
* The rotation is 0 when the Vector is pointing downwards (pos1 is directly above pos2). The rotation is then computed clockwise
|
|
2311
|
-
* The result is resturned in degrees
|
|
2312
|
-
* @param pos1 2 Dimensional position
|
|
2313
|
-
* @param pos2 2 Dimensional position
|
|
2308
|
+
/**
|
|
2309
|
+
* This function returns the rotation of a vector that is specified by two positions in the 2 Dim Space
|
|
2310
|
+
* The rotation is 0 when the Vector is pointing downwards (pos1 is directly above pos2). The rotation is then computed clockwise
|
|
2311
|
+
* The result is resturned in degrees
|
|
2312
|
+
* @param pos1 2 Dimensional position
|
|
2313
|
+
* @param pos2 2 Dimensional position
|
|
2314
2314
|
*/
|
|
2315
2315
|
function getRotOfDP(pos1, pos2) {
|
|
2316
2316
|
var directionVec = index.Vector2.getDirection(pos2, pos1);
|
|
@@ -2351,10 +2351,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2351
2351
|
return a.LocalWorldPos.x < b.LocalWorldPos.x ? 1 : -1;
|
|
2352
2352
|
});
|
|
2353
2353
|
}
|
|
2354
|
-
/**
|
|
2355
|
-
* Check if the docking Points Filter match for the two elements.
|
|
2356
|
-
* @param plannerElement1
|
|
2357
|
-
* @param plannerElement2
|
|
2354
|
+
/**
|
|
2355
|
+
* Check if the docking Points Filter match for the two elements.
|
|
2356
|
+
* @param plannerElement1
|
|
2357
|
+
* @param plannerElement2
|
|
2358
2358
|
*/
|
|
2359
2359
|
}, {
|
|
2360
2360
|
key: "checkDPAVLFilterDoMatch",
|
|
@@ -2388,8 +2388,8 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2388
2388
|
return false;
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
|
-
/**
|
|
2392
|
-
* This function checks if two docking Points can be docked
|
|
2391
|
+
/**
|
|
2392
|
+
* This function checks if two docking Points can be docked
|
|
2393
2393
|
*/
|
|
2394
2394
|
}, {
|
|
2395
2395
|
key: "checkDPsDoMatch",
|
|
@@ -2418,10 +2418,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2418
2418
|
return true;
|
|
2419
2419
|
}
|
|
2420
2420
|
|
|
2421
|
-
/**
|
|
2422
|
-
* This function assumes that the two docking points are matching and can be docked
|
|
2423
|
-
* @param dp1
|
|
2424
|
-
* @param dp2
|
|
2421
|
+
/**
|
|
2422
|
+
* This function assumes that the two docking points are matching and can be docked
|
|
2423
|
+
* @param dp1
|
|
2424
|
+
* @param dp2
|
|
2425
2425
|
*/
|
|
2426
2426
|
}, {
|
|
2427
2427
|
key: "doDock",
|
|
@@ -2429,9 +2429,9 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2429
2429
|
dp1.doDock(dp2, elemId2);
|
|
2430
2430
|
dp2.doDock(dp1, elemId1);
|
|
2431
2431
|
}
|
|
2432
|
-
/*
|
|
2433
|
-
This function inits all docking points of a planner Element Data. The information of the docking Points is currently loaded from the SVG Loader
|
|
2434
|
-
catalogCodex indicates the catalogCodex of the plannerElement
|
|
2432
|
+
/*
|
|
2433
|
+
This function inits all docking points of a planner Element Data. The information of the docking Points is currently loaded from the SVG Loader
|
|
2434
|
+
catalogCodex indicates the catalogCodex of the plannerElement
|
|
2435
2435
|
*/
|
|
2436
2436
|
}, {
|
|
2437
2437
|
key: "initDockingPointsFromSvg",
|
|
@@ -2451,11 +2451,11 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
|
-
/**
|
|
2455
|
-
* This function removes all docking Point relations from the Element .
|
|
2456
|
-
* It removes them as well in the docked elements.
|
|
2457
|
-
* This function is used when deleting a plannerElement
|
|
2458
|
-
* @param plannerElement
|
|
2454
|
+
/**
|
|
2455
|
+
* This function removes all docking Point relations from the Element .
|
|
2456
|
+
* It removes them as well in the docked elements.
|
|
2457
|
+
* This function is used when deleting a plannerElement
|
|
2458
|
+
* @param plannerElement
|
|
2459
2459
|
*/
|
|
2460
2460
|
}, {
|
|
2461
2461
|
key: "removeDockingPointRelations",
|
|
@@ -2470,12 +2470,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2470
2470
|
}
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
/**
|
|
2474
|
-
* This function removes all docking Point relations with the type from the Element .
|
|
2475
|
-
* It removes them as well in the docked elements.
|
|
2476
|
-
* This function is used when deleting a plannerElement
|
|
2477
|
-
* @param plannerElement
|
|
2478
|
-
* @param dpTypeList The Type of the docking Point like AVL or AVR
|
|
2473
|
+
/**
|
|
2474
|
+
* This function removes all docking Point relations with the type from the Element .
|
|
2475
|
+
* It removes them as well in the docked elements.
|
|
2476
|
+
* This function is used when deleting a plannerElement
|
|
2477
|
+
* @param plannerElement
|
|
2478
|
+
* @param dpTypeList The Type of the docking Point like AVL or AVR
|
|
2479
2479
|
*/
|
|
2480
2480
|
}, {
|
|
2481
2481
|
key: "removeDockingPointRelationsByType",
|
|
@@ -2493,13 +2493,13 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
return undockedFromElements;
|
|
2495
2495
|
}
|
|
2496
|
-
/**
|
|
2497
|
-
* 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.
|
|
2498
|
-
*
|
|
2499
|
-
* @param sourceElement
|
|
2500
|
-
* @param targetElements
|
|
2501
|
-
* @param autoDockingDistance //gibt die distance an in der er automatisch snappen muss. Infinity _> Docke überall. 0 Docke nie
|
|
2502
|
-
* @returns saves dockable dockingpoints per type with the distance
|
|
2496
|
+
/**
|
|
2497
|
+
* 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.
|
|
2498
|
+
*
|
|
2499
|
+
* @param sourceElement
|
|
2500
|
+
* @param targetElements
|
|
2501
|
+
* @param autoDockingDistance //gibt die distance an in der er automatisch snappen muss. Infinity _> Docke überall. 0 Docke nie
|
|
2502
|
+
* @returns saves dockable dockingpoints per type with the distance
|
|
2503
2503
|
*/
|
|
2504
2504
|
}, {
|
|
2505
2505
|
key: "searchDockableElementsInArea",
|
|
@@ -2547,12 +2547,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2547
2547
|
return dockableDPPairs;
|
|
2548
2548
|
}
|
|
2549
2549
|
|
|
2550
|
-
/**
|
|
2551
|
-
* This function tries to dock an element sourcePlannerElement to one element in the targetElements
|
|
2552
|
-
* @param sourcePlannerElement the element that must be docked
|
|
2553
|
-
* @param sourceDPType the type of the element that must be docked
|
|
2554
|
-
* @param targetElements the target Element on which the element should be docked
|
|
2555
|
-
* the function returns true when the Element is docked
|
|
2550
|
+
/**
|
|
2551
|
+
* This function tries to dock an element sourcePlannerElement to one element in the targetElements
|
|
2552
|
+
* @param sourcePlannerElement the element that must be docked
|
|
2553
|
+
* @param sourceDPType the type of the element that must be docked
|
|
2554
|
+
* @param targetElements the target Element on which the element should be docked
|
|
2555
|
+
* the function returns true when the Element is docked
|
|
2556
2556
|
*/
|
|
2557
2557
|
}, {
|
|
2558
2558
|
key: "tryDockElement",
|
|
@@ -2589,12 +2589,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2589
2589
|
return false;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
/**
|
|
2593
|
-
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2594
|
-
* @param sourcePlannerElement the element that must be docked
|
|
2595
|
-
* @param sourceDPType the type of the element that must be docked
|
|
2596
|
-
* @param targetElements the target Element on which the element should be docked
|
|
2597
|
-
* the function returns true when the Element is docked
|
|
2592
|
+
/**
|
|
2593
|
+
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2594
|
+
* @param sourcePlannerElement the element that must be docked
|
|
2595
|
+
* @param sourceDPType the type of the element that must be docked
|
|
2596
|
+
* @param targetElements the target Element on which the element should be docked
|
|
2597
|
+
* the function returns true when the Element is docked
|
|
2598
2598
|
*/
|
|
2599
2599
|
}, {
|
|
2600
2600
|
key: "tryDockElementToDP",
|
|
@@ -2614,13 +2614,13 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2614
2614
|
return false;
|
|
2615
2615
|
}
|
|
2616
2616
|
|
|
2617
|
-
/**
|
|
2618
|
-
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2619
|
-
* @param sourcePlannerElement the element that must be docked
|
|
2620
|
-
* @param sourceDPType the type of the element that must be docked
|
|
2621
|
-
* @param sourceDP The source DP
|
|
2622
|
-
* @param targetElements the target Element on which the element should be docked
|
|
2623
|
-
* the function returns true when the Element is docked
|
|
2617
|
+
/**
|
|
2618
|
+
* This function tries to dock an element sourcePlannerElement to the targetElement and a specific DockingPoint of the targetElement
|
|
2619
|
+
* @param sourcePlannerElement the element that must be docked
|
|
2620
|
+
* @param sourceDPType the type of the element that must be docked
|
|
2621
|
+
* @param sourceDP The source DP
|
|
2622
|
+
* @param targetElements the target Element on which the element should be docked
|
|
2623
|
+
* the function returns true when the Element is docked
|
|
2624
2624
|
*/
|
|
2625
2625
|
}, {
|
|
2626
2626
|
key: "tryDockElementDPToDP",
|
|
@@ -2632,11 +2632,11 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2632
2632
|
return false;
|
|
2633
2633
|
}
|
|
2634
2634
|
|
|
2635
|
-
/**
|
|
2636
|
-
* 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
|
|
2637
|
-
* two docking sofas - the old docking information is saved in the plannerElement. The new DockingPoints must be updated based on the previous docking information.
|
|
2638
|
-
* @param plannerElements
|
|
2639
|
-
* @returns returns the list of all Articles that have lost their dockingPoint relations
|
|
2635
|
+
/**
|
|
2636
|
+
* 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
|
|
2637
|
+
* two docking sofas - the old docking information is saved in the plannerElement. The new DockingPoints must be updated based on the previous docking information.
|
|
2638
|
+
* @param plannerElements
|
|
2639
|
+
* @returns returns the list of all Articles that have lost their dockingPoint relations
|
|
2640
2640
|
*/
|
|
2641
2641
|
}, {
|
|
2642
2642
|
key: "updateDockingRelations",
|
|
@@ -2697,12 +2697,12 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
return elementsLostDockingRelation;
|
|
2699
2699
|
}
|
|
2700
|
-
/**
|
|
2701
|
-
* 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.
|
|
2702
|
-
* 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.
|
|
2703
|
-
* @param sourcePlannerElement
|
|
2704
|
-
* @param targetPlannerElement
|
|
2705
|
-
* @param sourceDPType The type of the dockingPoint
|
|
2700
|
+
/**
|
|
2701
|
+
* 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.
|
|
2702
|
+
* 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.
|
|
2703
|
+
* @param sourcePlannerElement
|
|
2704
|
+
* @param targetPlannerElement
|
|
2705
|
+
* @param sourceDPType The type of the dockingPoint
|
|
2706
2706
|
*/
|
|
2707
2707
|
}, {
|
|
2708
2708
|
key: "initDockingPointRelationByArea",
|
|
@@ -2725,10 +2725,10 @@ var DockingPointHandler = /*#__PURE__*/function () {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
/**
|
|
2729
|
-
* This function returns true if the two elements are docking. False if they are not
|
|
2730
|
-
* @param element1
|
|
2731
|
-
* @param element2
|
|
2728
|
+
/**
|
|
2729
|
+
* This function returns true if the two elements are docking. False if they are not
|
|
2730
|
+
* @param element1
|
|
2731
|
+
* @param element2
|
|
2732
2732
|
*/
|
|
2733
2733
|
}, {
|
|
2734
2734
|
key: "checkElementsAreDocking",
|
|
@@ -2752,11 +2752,11 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2752
2752
|
_defineProperty__default["default"](this, "svgUtils", void 0);
|
|
2753
2753
|
this.svgUtils = new SVGUtils();
|
|
2754
2754
|
}
|
|
2755
|
-
/**
|
|
2756
|
-
* This function computes the collision between two elements.
|
|
2757
|
-
* First it computes the collision with the bounding Box. Only if these collide - we compute the collision between the OLF Polygons
|
|
2758
|
-
* @param element1
|
|
2759
|
-
* @param element2
|
|
2755
|
+
/**
|
|
2756
|
+
* This function computes the collision between two elements.
|
|
2757
|
+
* First it computes the collision with the bounding Box. Only if these collide - we compute the collision between the OLF Polygons
|
|
2758
|
+
* @param element1
|
|
2759
|
+
* @param element2
|
|
2760
2760
|
*/
|
|
2761
2761
|
return _createClass__default["default"](PlannerHandler2D, [{
|
|
2762
2762
|
key: "checkCollision",
|
|
@@ -2782,8 +2782,8 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2782
2782
|
return false;
|
|
2783
2783
|
};
|
|
2784
2784
|
|
|
2785
|
-
/**
|
|
2786
|
-
* This function checks if one Polygon is inside the other
|
|
2785
|
+
/**
|
|
2786
|
+
* This function checks if one Polygon is inside the other
|
|
2787
2787
|
*/
|
|
2788
2788
|
var checkPolygonInsidePolygon = function checkPolygonInsidePolygon(polyLinePoints1, polyLinePoint2) {
|
|
2789
2789
|
var pointOutsideCount = 0;
|
|
@@ -2833,10 +2833,10 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
2835
|
|
|
2836
|
-
/**
|
|
2837
|
-
* 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.
|
|
2838
|
-
* Before creating the canvas element, the SVG is parsed to be a PNG.
|
|
2839
|
-
* @param plannerElement The planner Element whoes SVGData is used for creating the canvas Element.
|
|
2836
|
+
/**
|
|
2837
|
+
* 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.
|
|
2838
|
+
* Before creating the canvas element, the SVG is parsed to be a PNG.
|
|
2839
|
+
* @param plannerElement The planner Element whoes SVGData is used for creating the canvas Element.
|
|
2840
2840
|
*/
|
|
2841
2841
|
}, {
|
|
2842
2842
|
key: "caluclatePNGOfSVG",
|
|
@@ -2981,8 +2981,8 @@ var PlannerHandler2D = /*#__PURE__*/function () {
|
|
|
2981
2981
|
});
|
|
2982
2982
|
});
|
|
2983
2983
|
}
|
|
2984
|
-
/*
|
|
2985
|
-
This function is used to load the SVG of the element and set everything up.
|
|
2984
|
+
/*
|
|
2985
|
+
This function is used to load the SVG of the element and set everything up.
|
|
2986
2986
|
*/
|
|
2987
2987
|
}, {
|
|
2988
2988
|
key: "loadSVG",
|