@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
|
@@ -5,8 +5,8 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
8
|
+
var index = require('./index-e86ab943.js');
|
|
9
|
+
var PlannerHandler2D = require('./PlannerHandler2D-de64a752.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
12
12
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -31,12 +31,12 @@ var DivaUtils__default = /*#__PURE__*/_interopDefaultLegacy(DivaUtils);
|
|
|
31
31
|
var LOG = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
32
32
|
var ACC_DOCK_TYPES = ['AVO', 'AVU', 'AVC', 'AVS', 'AVN'];
|
|
33
33
|
var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
34
|
-
/*
|
|
35
|
-
This function updates te planner data of all Elements if they changed.
|
|
36
|
-
It returns true if some values changed - otherwise it returns false
|
|
34
|
+
/*
|
|
35
|
+
This function updates te planner data of all Elements if they changed.
|
|
36
|
+
It returns true if some values changed - otherwise it returns false
|
|
37
37
|
*/
|
|
38
|
-
/*private updatePlannerData(): boolean {
|
|
39
|
-
return true;
|
|
38
|
+
/*private updatePlannerData(): boolean {
|
|
39
|
+
return true;
|
|
40
40
|
}*/
|
|
41
41
|
|
|
42
42
|
function DivaStandardPlanner(set, updatePlannerMsgContainer, plannerId, globalBoundingBox, doHidePlanner, doShowAR, doDisablePlanner2D, plannerHasStaticBackground) {
|
|
@@ -137,11 +137,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
/**
|
|
141
|
-
* This function updates all position numbers of all planner elements.
|
|
142
|
-
* The sorting of the position number depends on element chains. When Elements are docked via AVR and AVL - this is one chain.
|
|
143
|
-
* The positioning starts with the chain with the smalles x.
|
|
144
|
-
* The position of the accessoires are saved in a separate accPosNr.
|
|
140
|
+
/**
|
|
141
|
+
* This function updates all position numbers of all planner elements.
|
|
142
|
+
* The sorting of the position number depends on element chains. When Elements are docked via AVR and AVL - this is one chain.
|
|
143
|
+
* The positioning starts with the chain with the smalles x.
|
|
144
|
+
* The position of the accessoires are saved in a separate accPosNr.
|
|
145
145
|
*/
|
|
146
146
|
return _createClass__default["default"](DivaStandardPlanner, [{
|
|
147
147
|
key: "updatePlannerPosNr",
|
|
@@ -206,10 +206,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
206
206
|
_updateAccessoiresOfElement(accElements[i], posNrParent);
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
-
/**
|
|
210
|
-
* This function sets the posNr of each element in a chain. At the end it returns the currentPosNr
|
|
211
|
-
* @param curElementInChain
|
|
212
|
-
* @param posNr
|
|
209
|
+
/**
|
|
210
|
+
* This function sets the posNr of each element in a chain. At the end it returns the currentPosNr
|
|
211
|
+
* @param curElementInChain
|
|
212
|
+
* @param posNr
|
|
213
213
|
*/
|
|
214
214
|
var _updatePosInChain = function updatePosInChain(curElementInChain, posNr) {
|
|
215
215
|
if (curElementInChain == undefined) return posNr;
|
|
@@ -234,11 +234,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
/**
|
|
238
|
-
* This function updates the world pos of a planner Element depending on the docking Point.
|
|
239
|
-
* The docking Point contains all necessary information
|
|
240
|
-
* @param plannerElement
|
|
241
|
-
* @param dockingPoint
|
|
237
|
+
/**
|
|
238
|
+
* This function updates the world pos of a planner Element depending on the docking Point.
|
|
239
|
+
* The docking Point contains all necessary information
|
|
240
|
+
* @param plannerElement
|
|
241
|
+
* @param dockingPoint
|
|
242
242
|
*/
|
|
243
243
|
}, {
|
|
244
244
|
key: "updateWorldPos",
|
|
@@ -265,10 +265,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
265
265
|
return updateConfig;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
/**
|
|
269
|
-
* This function updates the position information of all elements. It is called after updating the SVG of 1 element.
|
|
270
|
-
* The position is updated based on the posNr.
|
|
271
|
-
* At the end - the collision is calculated
|
|
268
|
+
/**
|
|
269
|
+
* This function updates the position information of all elements. It is called after updating the SVG of 1 element.
|
|
270
|
+
* The position is updated based on the posNr.
|
|
271
|
+
* At the end - the collision is calculated
|
|
272
272
|
*/
|
|
273
273
|
}, {
|
|
274
274
|
key: "updateAllElementsWorldPos",
|
|
@@ -309,14 +309,14 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
309
309
|
return updateConfig;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
/**
|
|
313
|
-
* this function tries to position a planner element to the current planner elements in the world.
|
|
314
|
-
* If a element is selected it tries to dock the new planner Element to the selected planner element.
|
|
315
|
-
* If additional a docking Point is selected - it only docks to the selected docking point.
|
|
316
|
-
* If no element or DP is selected - it docks to the first free element.
|
|
317
|
-
* @param plannerElement The planner Element that is added to the planning scene
|
|
318
|
-
* @param dockToElementId A planner element the new plannerElement should be docked to.
|
|
319
|
-
* @param docktToAVName The AV Name of the dockToElement to dock.
|
|
312
|
+
/**
|
|
313
|
+
* this function tries to position a planner element to the current planner elements in the world.
|
|
314
|
+
* If a element is selected it tries to dock the new planner Element to the selected planner element.
|
|
315
|
+
* If additional a docking Point is selected - it only docks to the selected docking point.
|
|
316
|
+
* If no element or DP is selected - it docks to the first free element.
|
|
317
|
+
* @param plannerElement The planner Element that is added to the planning scene
|
|
318
|
+
* @param dockToElementId A planner element the new plannerElement should be docked to.
|
|
319
|
+
* @param docktToAVName The AV Name of the dockToElement to dock.
|
|
320
320
|
*/
|
|
321
321
|
}, {
|
|
322
322
|
key: "addElementToWorld",
|
|
@@ -601,9 +601,9 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
601
601
|
return neighbors;
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
/**
|
|
605
|
-
* This function returns all grouped elements.
|
|
606
|
-
* It contains also all Accessoires of the elements
|
|
604
|
+
/**
|
|
605
|
+
* This function returns all grouped elements.
|
|
606
|
+
* It contains also all Accessoires of the elements
|
|
607
607
|
*/
|
|
608
608
|
}, {
|
|
609
609
|
key: "getDockedGroups",
|
|
@@ -756,10 +756,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
756
756
|
}
|
|
757
757
|
return updatePlanner;
|
|
758
758
|
}()
|
|
759
|
-
/**
|
|
760
|
-
* This function extends one set. In order to position the new element correctly, use the information of the global Bounding box instead of the local bounding Box of the set.
|
|
761
|
-
* @param setPlanData
|
|
762
|
-
* @param globalBoundingBox
|
|
759
|
+
/**
|
|
760
|
+
* This function extends one set. In order to position the new element correctly, use the information of the global Bounding box instead of the local bounding Box of the set.
|
|
761
|
+
* @param setPlanData
|
|
762
|
+
* @param globalBoundingBox
|
|
763
763
|
*/
|
|
764
764
|
}, {
|
|
765
765
|
key: "extendPlanner",
|
|
@@ -1215,10 +1215,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
return addPlannerElement;
|
|
1217
1217
|
}()
|
|
1218
|
-
/**
|
|
1219
|
-
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
1220
|
-
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
1221
|
-
* @param params
|
|
1218
|
+
/**
|
|
1219
|
+
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
1220
|
+
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
1221
|
+
* @param params
|
|
1222
1222
|
*/
|
|
1223
1223
|
}, {
|
|
1224
1224
|
key: "copyPlannerElement",
|
|
@@ -1265,11 +1265,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1265
1265
|
if (this.plannerElements.has(elementId)) return [elementId];
|
|
1266
1266
|
return [];
|
|
1267
1267
|
}
|
|
1268
|
-
/**
|
|
1269
|
-
* deletes a planner element
|
|
1270
|
-
* @param elementId The elementId of the plannerelement.
|
|
1271
|
-
* @param autoCorrectAVL_AVR If true the dockingpoints of the neighbor elements are tried to dock together. if a zwischenelement is deleted, the parents match again
|
|
1272
|
-
* @returns Returns the element id of the element that should be selected next
|
|
1268
|
+
/**
|
|
1269
|
+
* deletes a planner element
|
|
1270
|
+
* @param elementId The elementId of the plannerelement.
|
|
1271
|
+
* @param autoCorrectAVL_AVR If true the dockingpoints of the neighbor elements are tried to dock together. if a zwischenelement is deleted, the parents match again
|
|
1272
|
+
* @returns Returns the element id of the element that should be selected next
|
|
1273
1273
|
*/
|
|
1274
1274
|
}, {
|
|
1275
1275
|
key: "deletePlannerElement",
|
|
@@ -1362,10 +1362,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
return deletePlannerElement;
|
|
1364
1364
|
}()
|
|
1365
|
-
/**
|
|
1366
|
-
* This functions tries to dock not docked accessories when another accessoire got deleted. Now check if a dockingpoint got freed
|
|
1367
|
-
* @param parent
|
|
1368
|
-
* @returns
|
|
1365
|
+
/**
|
|
1366
|
+
* This functions tries to dock not docked accessories when another accessoire got deleted. Now check if a dockingpoint got freed
|
|
1367
|
+
* @param parent
|
|
1368
|
+
* @returns
|
|
1369
1369
|
*/
|
|
1370
1370
|
)
|
|
1371
1371
|
}, {
|
|
@@ -1384,12 +1384,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
|
|
1387
|
-
/**
|
|
1388
|
-
* This function calculates if any element collides with another element. It returns one or more collision pairs.
|
|
1389
|
-
* The result of the function is saved in the collisionHandler Variable.
|
|
1390
|
-
* Furthermore, this function informs the view if the collision has changed
|
|
1391
|
-
* @param calcCollisionPairs If true, the collision with all elements is computed. If false - the algorithm stops when the first collision is detected
|
|
1392
|
-
* @param checkSingleElementId If this parameter is set, the collision is only detected with this element
|
|
1387
|
+
/**
|
|
1388
|
+
* This function calculates if any element collides with another element. It returns one or more collision pairs.
|
|
1389
|
+
* The result of the function is saved in the collisionHandler Variable.
|
|
1390
|
+
* Furthermore, this function informs the view if the collision has changed
|
|
1391
|
+
* @param calcCollisionPairs If true, the collision with all elements is computed. If false - the algorithm stops when the first collision is detected
|
|
1392
|
+
* @param checkSingleElementId If this parameter is set, the collision is only detected with this element
|
|
1393
1393
|
*/
|
|
1394
1394
|
}, {
|
|
1395
1395
|
key: "checkCollision",
|
|
@@ -1435,10 +1435,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1435
1435
|
this.collisionHandler.collisionDetected = collisionDetected;
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
1438
|
-
/**
|
|
1439
|
-
* Updates the overall set posNr
|
|
1440
|
-
* @param startSetPosNr Indicates the start PosNr for the planner
|
|
1441
|
-
* @returns The count of elements in this planner. Used to calculate the startSetPosNr for the next Planner
|
|
1438
|
+
/**
|
|
1439
|
+
* Updates the overall set posNr
|
|
1440
|
+
* @param startSetPosNr Indicates the start PosNr for the planner
|
|
1441
|
+
* @returns The count of elements in this planner. Used to calculate the startSetPosNr for the next Planner
|
|
1442
1442
|
*/
|
|
1443
1443
|
}, {
|
|
1444
1444
|
key: "updateSetPosNr",
|
|
@@ -1455,15 +1455,15 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1455
1455
|
return elements.length;
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
1458
|
-
/**
|
|
1459
|
-
* This function is called every time the transformation of a planner Element is changed in the view. For example when the user moves the 2D Shape around.
|
|
1460
|
-
* When it is the first action, all AVL and AVR docking Points are removed. When it is the last action "END" then the planner is updated an dockable docking points are searched.
|
|
1461
|
-
*
|
|
1462
|
-
* @param elementId
|
|
1463
|
-
* @param deltaMove
|
|
1464
|
-
* @param deltaAngleDeg
|
|
1465
|
-
* @param transState
|
|
1466
|
-
* @param autoDockingDistance //Gibt an in welchem Radius automatisch gedockt werden muss
|
|
1458
|
+
/**
|
|
1459
|
+
* This function is called every time the transformation of a planner Element is changed in the view. For example when the user moves the 2D Shape around.
|
|
1460
|
+
* When it is the first action, all AVL and AVR docking Points are removed. When it is the last action "END" then the planner is updated an dockable docking points are searched.
|
|
1461
|
+
*
|
|
1462
|
+
* @param elementId
|
|
1463
|
+
* @param deltaMove
|
|
1464
|
+
* @param deltaAngleDeg
|
|
1465
|
+
* @param transState
|
|
1466
|
+
* @param autoDockingDistance //Gibt an in welchem Radius automatisch gedockt werden muss
|
|
1467
1467
|
*/
|
|
1468
1468
|
}, {
|
|
1469
1469
|
key: "updatePlannerTrans",
|
|
@@ -1508,8 +1508,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1508
1508
|
return updateConfig;
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
|
-
/**
|
|
1512
|
-
* Destroy all plannerinformation
|
|
1511
|
+
/**
|
|
1512
|
+
* Destroy all plannerinformation
|
|
1513
1513
|
*/
|
|
1514
1514
|
}, {
|
|
1515
1515
|
key: "destroyPlanner",
|
|
@@ -1524,8 +1524,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1524
1524
|
this.plannerElements.clear();
|
|
1525
1525
|
}
|
|
1526
1526
|
|
|
1527
|
-
/*
|
|
1528
|
-
This function returns the current Planning (it is one set)
|
|
1527
|
+
/*
|
|
1528
|
+
This function returns the current Planning (it is one set)
|
|
1529
1529
|
*/
|
|
1530
1530
|
}, {
|
|
1531
1531
|
key: "saveSetPlanner",
|
|
@@ -1594,8 +1594,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1594
1594
|
return this.plannerID;
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
|
-
/*
|
|
1598
|
-
This function returns all informations that are needed to visualize the set in 3D
|
|
1597
|
+
/*
|
|
1598
|
+
This function returns all informations that are needed to visualize the set in 3D
|
|
1599
1599
|
*/
|
|
1600
1600
|
}, {
|
|
1601
1601
|
key: "getSetData",
|
|
@@ -1710,8 +1710,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
|
-
/**
|
|
1714
|
-
* This function returns the position information for each element. The infomration is returned as an object with elementId: posNr.
|
|
1713
|
+
/**
|
|
1714
|
+
* This function returns the position information for each element. The infomration is returned as an object with elementId: posNr.
|
|
1715
1715
|
*/
|
|
1716
1716
|
}, {
|
|
1717
1717
|
key: "getElementPosInfo",
|
|
@@ -1733,8 +1733,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1733
1733
|
});
|
|
1734
1734
|
return ret;
|
|
1735
1735
|
}
|
|
1736
|
-
/**
|
|
1737
|
-
* Returns true if all AVL and AVR Filter are set. Specifies if a planning is complete
|
|
1736
|
+
/**
|
|
1737
|
+
* Returns true if all AVL and AVR Filter are set. Specifies if a planning is complete
|
|
1738
1738
|
*/
|
|
1739
1739
|
}, {
|
|
1740
1740
|
key: "getPlanningIsComplete",
|
|
@@ -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
|
-
require('./index-
|
|
6
|
+
require('./index-e86ab943.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
9
9
|
require('@babel/runtime/regenerator');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-e86ab943.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var signalr = require('@microsoft/signalr');
|
|
11
11
|
var io = require('socket.io-client');
|
|
@@ -50,9 +50,9 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
50
50
|
//callbacks
|
|
51
51
|
_defineProperty__default["default"](this, "plannerHandler3D", void 0);
|
|
52
52
|
_defineProperty__default["default"](this, "reconnectingErrorCount", void 0);
|
|
53
|
-
/**
|
|
54
|
-
* This function initializes the Connection to the diva Media Service.
|
|
55
|
-
* It is called when The webClient joints to a new DivaNr
|
|
53
|
+
/**
|
|
54
|
+
* This function initializes the Connection to the diva Media Service.
|
|
55
|
+
* It is called when The webClient joints to a new DivaNr
|
|
56
56
|
*/
|
|
57
57
|
_defineProperty__default["default"](this, "openSocketToMediaService", function (divaNr) {
|
|
58
58
|
var socket = new URL(_this.renderSettings.DivaMediaServiceUrl + '/');
|
|
@@ -95,11 +95,11 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
//------------------------------------------------------FUnctions called from 3DHost - -----------------------------------------------
|
|
98
|
-
/**
|
|
99
|
-
* This function is called when a client asks for a rendering (Only update viewpoint) but no awailable render client has loaded the rendering
|
|
100
|
-
* @param hash The hash value of the requested planning
|
|
101
|
-
* @param size The size of the requested rendering
|
|
102
|
-
* @param BG The Background Info used for this rendering
|
|
98
|
+
/**
|
|
99
|
+
* This function is called when a client asks for a rendering (Only update viewpoint) but no awailable render client has loaded the rendering
|
|
100
|
+
* @param hash The hash value of the requested planning
|
|
101
|
+
* @param size The size of the requested rendering
|
|
102
|
+
* @param BG The Background Info used for this rendering
|
|
103
103
|
*/
|
|
104
104
|
_defineProperty__default["default"](this, "noRenderClientFound", function (hash, size, option) {
|
|
105
105
|
LOG.debug('No rendering client has loaded the planning - send new request and force reload!');
|
|
@@ -108,21 +108,21 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
108
108
|
_this.plannerHandler3D.onErrorRequestingRendering(hash, size, option);
|
|
109
109
|
});
|
|
110
110
|
_defineProperty__default["default"](this, "returnVPInfo", function (msg) {});
|
|
111
|
-
/**
|
|
112
|
-
* This function is called when a new Rendering is found.
|
|
113
|
-
* @param divaNr The divaNr of the rendering
|
|
114
|
-
* @param hash The unique identifier of the rendering
|
|
115
|
-
* @param uiPolygon The UIPolygon that holds additional information like the bounding box or camera position.
|
|
111
|
+
/**
|
|
112
|
+
* This function is called when a new Rendering is found.
|
|
113
|
+
* @param divaNr The divaNr of the rendering
|
|
114
|
+
* @param hash The unique identifier of the rendering
|
|
115
|
+
* @param uiPolygon The UIPolygon that holds additional information like the bounding box or camera position.
|
|
116
116
|
*/
|
|
117
117
|
_defineProperty__default["default"](this, "newRendering", function (divaNr, hash, uiPolygon) {
|
|
118
118
|
LOG.debug('Receive UI Polygon: ' + uiPolygon);
|
|
119
119
|
_this.plannerHandler3D.onReceivedAdditionalRenderInfo(hash, uiPolygon);
|
|
120
120
|
});
|
|
121
|
-
/**
|
|
122
|
-
* This function is called when a new HqRenderscript is found.
|
|
123
|
-
* @param divaNr The divaNr of the rendering
|
|
124
|
-
* @param hash The unique identifier of the rendering
|
|
125
|
-
* @param hqRenderScript The HqRenderscript
|
|
121
|
+
/**
|
|
122
|
+
* This function is called when a new HqRenderscript is found.
|
|
123
|
+
* @param divaNr The divaNr of the rendering
|
|
124
|
+
* @param hash The unique identifier of the rendering
|
|
125
|
+
* @param hqRenderScript The HqRenderscript
|
|
126
126
|
*/
|
|
127
127
|
_defineProperty__default["default"](this, "newHQRenderScript", function (divaNr, hash, hqRenderScript) {
|
|
128
128
|
LOG.debug('Receive HQRenderScript: ' + hqRenderScript);
|
|
@@ -131,10 +131,10 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
131
131
|
});
|
|
132
132
|
_this.plannerHandler3D.onReceiveHQRenderScript(hash, hqRenderScript);
|
|
133
133
|
});
|
|
134
|
-
/**
|
|
135
|
-
* This function is called when a new Layer mask is rendered
|
|
136
|
-
* @param divaNr The divaNr the layer mask belongs too
|
|
137
|
-
* @param hash The hash value (unique identifier) of the associated rendering
|
|
134
|
+
/**
|
|
135
|
+
* This function is called when a new Layer mask is rendered
|
|
136
|
+
* @param divaNr The divaNr the layer mask belongs too
|
|
137
|
+
* @param hash The hash value (unique identifier) of the associated rendering
|
|
138
138
|
*/
|
|
139
139
|
_defineProperty__default["default"](this, "newRenderingLayerMask", function (divaNr, hash) {
|
|
140
140
|
DivaUtils__default["default"].endSpanOfApm('PlannerHandler3D requestRenderingDescriptionFromSignalR ' + hash);
|
|
@@ -153,8 +153,8 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
153
153
|
this.reconnectingErrorCount = 0;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/**
|
|
157
|
-
* This function is used to initialize the SignalR Connection.
|
|
156
|
+
/**
|
|
157
|
+
* This function is used to initialize the SignalR Connection.
|
|
158
158
|
*/
|
|
159
159
|
return _createClass__default["default"](Host3DSignalR, [{
|
|
160
160
|
key: "initializeConnection",
|
|
@@ -482,9 +482,9 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
/**
|
|
486
|
-
* This function is called to login To the SignalR connection.
|
|
487
|
-
* Make shure the connection is established yet
|
|
485
|
+
/**
|
|
486
|
+
* This function is called to login To the SignalR connection.
|
|
487
|
+
* Make shure the connection is established yet
|
|
488
488
|
*/
|
|
489
489
|
}, {
|
|
490
490
|
key: "login",
|
|
@@ -536,11 +536,11 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
536
536
|
}
|
|
537
537
|
return login;
|
|
538
538
|
}()
|
|
539
|
-
/**
|
|
540
|
-
* This function handels the join to a Diva Nr.
|
|
541
|
-
* This function calls the method on the SignalR to join to the DivaNr
|
|
542
|
-
* This function handles connection to the DivaMediaService
|
|
543
|
-
* @param divaNr
|
|
539
|
+
/**
|
|
540
|
+
* This function handels the join to a Diva Nr.
|
|
541
|
+
* This function calls the method on the SignalR to join to the DivaNr
|
|
542
|
+
* This function handles connection to the DivaMediaService
|
|
543
|
+
* @param divaNr
|
|
544
544
|
*/
|
|
545
545
|
)
|
|
546
546
|
}, {
|
|
@@ -611,10 +611,10 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
611
611
|
}, {
|
|
612
612
|
key: "handleConnectionError",
|
|
613
613
|
value:
|
|
614
|
-
/**
|
|
615
|
-
* This function is called to handle Connection Errors
|
|
616
|
-
* @param error
|
|
617
|
-
* @param callback
|
|
614
|
+
/**
|
|
615
|
+
* This function is called to handle Connection Errors
|
|
616
|
+
* @param error
|
|
617
|
+
* @param callback
|
|
618
618
|
*/
|
|
619
619
|
function handleConnectionError(error, callback) {
|
|
620
620
|
this.connectionErrorCount++;
|
|
@@ -626,8 +626,8 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
/**
|
|
630
|
-
* Returns true when the SignalR connection is ready and the client is successfully logged in.
|
|
629
|
+
/**
|
|
630
|
+
* Returns true when the SignalR connection is ready and the client is successfully logged in.
|
|
631
631
|
*/
|
|
632
632
|
}, {
|
|
633
633
|
key: "connectionIsReady",
|
|
@@ -637,10 +637,10 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
637
637
|
}, {
|
|
638
638
|
key: "unvalidSessionID",
|
|
639
639
|
value:
|
|
640
|
-
/**
|
|
641
|
-
* This function is called from the host when the used sessionID is not valid anymore. In this case the client is not successfully logged in anymore.
|
|
642
|
-
* @param hub
|
|
643
|
-
* @param msg
|
|
640
|
+
/**
|
|
641
|
+
* This function is called from the host when the used sessionID is not valid anymore. In this case the client is not successfully logged in anymore.
|
|
642
|
+
* @param hub
|
|
643
|
+
* @param msg
|
|
644
644
|
*/
|
|
645
645
|
function unvalidSessionID(hub, msg) {
|
|
646
646
|
LOG.debug('DIVA3D-HOST.SignaR Response Unvalid SessionID');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-e86ab943.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/regenerator');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-e86ab943.js');
|
|
6
6
|
var basketModel = require('@crystaldesign/basket-model');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -100,11 +100,11 @@ var PfisterWWSHandler = /*#__PURE__*/function () {
|
|
|
100
100
|
}, {
|
|
101
101
|
key: "getWWSData",
|
|
102
102
|
value: function getWWSData(basket, set, orderSet, orderlines) {
|
|
103
|
-
/*SendToSAP Orderlines
|
|
104
|
-
"" - normale Orderline - generiert keine SAP Orderline
|
|
105
|
-
"0" - Grundelemente bei Jutzler sind Hülsenartikel und dürfen nicht explizit als SAPOrderLine generiert werden, da diese über Optionsbaum definiert werden
|
|
106
|
-
"1" - diese Orderline wurde über den Optionsbaum generiert, diese soll jetzt eine SAPOrderline übernommen werden, aber nicht mehr als Orderline (ist im Optionsbaum des Hülenartikels ja bereits betimmt)
|
|
107
|
-
"2" - diese Orderline wurde Artikel verplant, diese soll jetzt als SAPOrderline UND als DivaOrderline übernommen werden
|
|
103
|
+
/*SendToSAP Orderlines
|
|
104
|
+
"" - normale Orderline - generiert keine SAP Orderline
|
|
105
|
+
"0" - Grundelemente bei Jutzler sind Hülsenartikel und dürfen nicht explizit als SAPOrderLine generiert werden, da diese über Optionsbaum definiert werden
|
|
106
|
+
"1" - diese Orderline wurde über den Optionsbaum generiert, diese soll jetzt eine SAPOrderline übernommen werden, aber nicht mehr als Orderline (ist im Optionsbaum des Hülenartikels ja bereits betimmt)
|
|
107
|
+
"2" - diese Orderline wurde Artikel verplant, diese soll jetzt als SAPOrderline UND als DivaOrderline übernommen werden
|
|
108
108
|
*/
|
|
109
109
|
|
|
110
110
|
//Basket.SAPOrderLines = [];
|