@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,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-
|
|
7
|
-
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-84339e2f.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-ad96ee8d.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -20,12 +20,12 @@ import 'w3c-xmlserializer';
|
|
|
20
20
|
var LOG = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
21
21
|
var ACC_DOCK_TYPES = ['AVO', 'AVU', 'AVC', 'AVS', 'AVN'];
|
|
22
22
|
var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
23
|
-
/*
|
|
24
|
-
This function updates te planner data of all Elements if they changed.
|
|
25
|
-
It returns true if some values changed - otherwise it returns false
|
|
23
|
+
/*
|
|
24
|
+
This function updates te planner data of all Elements if they changed.
|
|
25
|
+
It returns true if some values changed - otherwise it returns false
|
|
26
26
|
*/
|
|
27
|
-
/*private updatePlannerData(): boolean {
|
|
28
|
-
return true;
|
|
27
|
+
/*private updatePlannerData(): boolean {
|
|
28
|
+
return true;
|
|
29
29
|
}*/
|
|
30
30
|
|
|
31
31
|
function DivaStandardPlanner(set, updatePlannerMsgContainer, plannerId, globalBoundingBox, doHidePlanner, doShowAR, doDisablePlanner2D, plannerHasStaticBackground) {
|
|
@@ -126,11 +126,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
/**
|
|
130
|
-
* This function updates all position numbers of all planner elements.
|
|
131
|
-
* The sorting of the position number depends on element chains. When Elements are docked via AVR and AVL - this is one chain.
|
|
132
|
-
* The positioning starts with the chain with the smalles x.
|
|
133
|
-
* The position of the accessoires are saved in a separate accPosNr.
|
|
129
|
+
/**
|
|
130
|
+
* This function updates all position numbers of all planner elements.
|
|
131
|
+
* The sorting of the position number depends on element chains. When Elements are docked via AVR and AVL - this is one chain.
|
|
132
|
+
* The positioning starts with the chain with the smalles x.
|
|
133
|
+
* The position of the accessoires are saved in a separate accPosNr.
|
|
134
134
|
*/
|
|
135
135
|
return _createClass(DivaStandardPlanner, [{
|
|
136
136
|
key: "updatePlannerPosNr",
|
|
@@ -195,10 +195,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
195
195
|
_updateAccessoiresOfElement(accElements[i], posNrParent);
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
/**
|
|
199
|
-
* This function sets the posNr of each element in a chain. At the end it returns the currentPosNr
|
|
200
|
-
* @param curElementInChain
|
|
201
|
-
* @param posNr
|
|
198
|
+
/**
|
|
199
|
+
* This function sets the posNr of each element in a chain. At the end it returns the currentPosNr
|
|
200
|
+
* @param curElementInChain
|
|
201
|
+
* @param posNr
|
|
202
202
|
*/
|
|
203
203
|
var _updatePosInChain = function updatePosInChain(curElementInChain, posNr) {
|
|
204
204
|
if (curElementInChain == undefined) return posNr;
|
|
@@ -223,11 +223,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
/**
|
|
227
|
-
* This function updates the world pos of a planner Element depending on the docking Point.
|
|
228
|
-
* The docking Point contains all necessary information
|
|
229
|
-
* @param plannerElement
|
|
230
|
-
* @param dockingPoint
|
|
226
|
+
/**
|
|
227
|
+
* This function updates the world pos of a planner Element depending on the docking Point.
|
|
228
|
+
* The docking Point contains all necessary information
|
|
229
|
+
* @param plannerElement
|
|
230
|
+
* @param dockingPoint
|
|
231
231
|
*/
|
|
232
232
|
}, {
|
|
233
233
|
key: "updateWorldPos",
|
|
@@ -254,10 +254,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
254
254
|
return updateConfig;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
/**
|
|
258
|
-
* This function updates the position information of all elements. It is called after updating the SVG of 1 element.
|
|
259
|
-
* The position is updated based on the posNr.
|
|
260
|
-
* At the end - the collision is calculated
|
|
257
|
+
/**
|
|
258
|
+
* This function updates the position information of all elements. It is called after updating the SVG of 1 element.
|
|
259
|
+
* The position is updated based on the posNr.
|
|
260
|
+
* At the end - the collision is calculated
|
|
261
261
|
*/
|
|
262
262
|
}, {
|
|
263
263
|
key: "updateAllElementsWorldPos",
|
|
@@ -298,14 +298,14 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
298
298
|
return updateConfig;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
/**
|
|
302
|
-
* this function tries to position a planner element to the current planner elements in the world.
|
|
303
|
-
* If a element is selected it tries to dock the new planner Element to the selected planner element.
|
|
304
|
-
* If additional a docking Point is selected - it only docks to the selected docking point.
|
|
305
|
-
* If no element or DP is selected - it docks to the first free element.
|
|
306
|
-
* @param plannerElement The planner Element that is added to the planning scene
|
|
307
|
-
* @param dockToElementId A planner element the new plannerElement should be docked to.
|
|
308
|
-
* @param docktToAVName The AV Name of the dockToElement to dock.
|
|
301
|
+
/**
|
|
302
|
+
* this function tries to position a planner element to the current planner elements in the world.
|
|
303
|
+
* If a element is selected it tries to dock the new planner Element to the selected planner element.
|
|
304
|
+
* If additional a docking Point is selected - it only docks to the selected docking point.
|
|
305
|
+
* If no element or DP is selected - it docks to the first free element.
|
|
306
|
+
* @param plannerElement The planner Element that is added to the planning scene
|
|
307
|
+
* @param dockToElementId A planner element the new plannerElement should be docked to.
|
|
308
|
+
* @param docktToAVName The AV Name of the dockToElement to dock.
|
|
309
309
|
*/
|
|
310
310
|
}, {
|
|
311
311
|
key: "addElementToWorld",
|
|
@@ -590,9 +590,9 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
590
590
|
return neighbors;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
/**
|
|
594
|
-
* This function returns all grouped elements.
|
|
595
|
-
* It contains also all Accessoires of the elements
|
|
593
|
+
/**
|
|
594
|
+
* This function returns all grouped elements.
|
|
595
|
+
* It contains also all Accessoires of the elements
|
|
596
596
|
*/
|
|
597
597
|
}, {
|
|
598
598
|
key: "getDockedGroups",
|
|
@@ -745,10 +745,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
745
745
|
}
|
|
746
746
|
return updatePlanner;
|
|
747
747
|
}()
|
|
748
|
-
/**
|
|
749
|
-
* 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.
|
|
750
|
-
* @param setPlanData
|
|
751
|
-
* @param globalBoundingBox
|
|
748
|
+
/**
|
|
749
|
+
* 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.
|
|
750
|
+
* @param setPlanData
|
|
751
|
+
* @param globalBoundingBox
|
|
752
752
|
*/
|
|
753
753
|
}, {
|
|
754
754
|
key: "extendPlanner",
|
|
@@ -1204,10 +1204,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
return addPlannerElement;
|
|
1206
1206
|
}()
|
|
1207
|
-
/**
|
|
1208
|
-
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
1209
|
-
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
1210
|
-
* @param params
|
|
1207
|
+
/**
|
|
1208
|
+
* Handles copyying the planner Element. it can happen that also other planner elements are influenced
|
|
1209
|
+
* @param articleCopyRelation Holds the relation - which element with elementID is copyed and has a new Article. ElementToCopyID -> BasketID of new Article
|
|
1210
|
+
* @param params
|
|
1211
1211
|
*/
|
|
1212
1212
|
}, {
|
|
1213
1213
|
key: "copyPlannerElement",
|
|
@@ -1254,11 +1254,11 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1254
1254
|
if (this.plannerElements.has(elementId)) return [elementId];
|
|
1255
1255
|
return [];
|
|
1256
1256
|
}
|
|
1257
|
-
/**
|
|
1258
|
-
* deletes a planner element
|
|
1259
|
-
* @param elementId The elementId of the plannerelement.
|
|
1260
|
-
* @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
|
|
1261
|
-
* @returns Returns the element id of the element that should be selected next
|
|
1257
|
+
/**
|
|
1258
|
+
* deletes a planner element
|
|
1259
|
+
* @param elementId The elementId of the plannerelement.
|
|
1260
|
+
* @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
|
|
1261
|
+
* @returns Returns the element id of the element that should be selected next
|
|
1262
1262
|
*/
|
|
1263
1263
|
}, {
|
|
1264
1264
|
key: "deletePlannerElement",
|
|
@@ -1351,10 +1351,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
return deletePlannerElement;
|
|
1353
1353
|
}()
|
|
1354
|
-
/**
|
|
1355
|
-
* This functions tries to dock not docked accessories when another accessoire got deleted. Now check if a dockingpoint got freed
|
|
1356
|
-
* @param parent
|
|
1357
|
-
* @returns
|
|
1354
|
+
/**
|
|
1355
|
+
* This functions tries to dock not docked accessories when another accessoire got deleted. Now check if a dockingpoint got freed
|
|
1356
|
+
* @param parent
|
|
1357
|
+
* @returns
|
|
1358
1358
|
*/
|
|
1359
1359
|
)
|
|
1360
1360
|
}, {
|
|
@@ -1373,12 +1373,12 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
|
-
/**
|
|
1377
|
-
* This function calculates if any element collides with another element. It returns one or more collision pairs.
|
|
1378
|
-
* The result of the function is saved in the collisionHandler Variable.
|
|
1379
|
-
* Furthermore, this function informs the view if the collision has changed
|
|
1380
|
-
* @param calcCollisionPairs If true, the collision with all elements is computed. If false - the algorithm stops when the first collision is detected
|
|
1381
|
-
* @param checkSingleElementId If this parameter is set, the collision is only detected with this element
|
|
1376
|
+
/**
|
|
1377
|
+
* This function calculates if any element collides with another element. It returns one or more collision pairs.
|
|
1378
|
+
* The result of the function is saved in the collisionHandler Variable.
|
|
1379
|
+
* Furthermore, this function informs the view if the collision has changed
|
|
1380
|
+
* @param calcCollisionPairs If true, the collision with all elements is computed. If false - the algorithm stops when the first collision is detected
|
|
1381
|
+
* @param checkSingleElementId If this parameter is set, the collision is only detected with this element
|
|
1382
1382
|
*/
|
|
1383
1383
|
}, {
|
|
1384
1384
|
key: "checkCollision",
|
|
@@ -1424,10 +1424,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1424
1424
|
this.collisionHandler.collisionDetected = collisionDetected;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
/**
|
|
1428
|
-
* Updates the overall set posNr
|
|
1429
|
-
* @param startSetPosNr Indicates the start PosNr for the planner
|
|
1430
|
-
* @returns The count of elements in this planner. Used to calculate the startSetPosNr for the next Planner
|
|
1427
|
+
/**
|
|
1428
|
+
* Updates the overall set posNr
|
|
1429
|
+
* @param startSetPosNr Indicates the start PosNr for the planner
|
|
1430
|
+
* @returns The count of elements in this planner. Used to calculate the startSetPosNr for the next Planner
|
|
1431
1431
|
*/
|
|
1432
1432
|
}, {
|
|
1433
1433
|
key: "updateSetPosNr",
|
|
@@ -1444,15 +1444,15 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1444
1444
|
return elements.length;
|
|
1445
1445
|
}
|
|
1446
1446
|
|
|
1447
|
-
/**
|
|
1448
|
-
* 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.
|
|
1449
|
-
* 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.
|
|
1450
|
-
*
|
|
1451
|
-
* @param elementId
|
|
1452
|
-
* @param deltaMove
|
|
1453
|
-
* @param deltaAngleDeg
|
|
1454
|
-
* @param transState
|
|
1455
|
-
* @param autoDockingDistance //Gibt an in welchem Radius automatisch gedockt werden muss
|
|
1447
|
+
/**
|
|
1448
|
+
* 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.
|
|
1449
|
+
* 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.
|
|
1450
|
+
*
|
|
1451
|
+
* @param elementId
|
|
1452
|
+
* @param deltaMove
|
|
1453
|
+
* @param deltaAngleDeg
|
|
1454
|
+
* @param transState
|
|
1455
|
+
* @param autoDockingDistance //Gibt an in welchem Radius automatisch gedockt werden muss
|
|
1456
1456
|
*/
|
|
1457
1457
|
}, {
|
|
1458
1458
|
key: "updatePlannerTrans",
|
|
@@ -1497,8 +1497,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1497
1497
|
return updateConfig;
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
1500
|
-
/**
|
|
1501
|
-
* Destroy all plannerinformation
|
|
1500
|
+
/**
|
|
1501
|
+
* Destroy all plannerinformation
|
|
1502
1502
|
*/
|
|
1503
1503
|
}, {
|
|
1504
1504
|
key: "destroyPlanner",
|
|
@@ -1513,8 +1513,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1513
1513
|
this.plannerElements.clear();
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
/*
|
|
1517
|
-
This function returns the current Planning (it is one set)
|
|
1516
|
+
/*
|
|
1517
|
+
This function returns the current Planning (it is one set)
|
|
1518
1518
|
*/
|
|
1519
1519
|
}, {
|
|
1520
1520
|
key: "saveSetPlanner",
|
|
@@ -1583,8 +1583,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1583
1583
|
return this.plannerID;
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
|
-
/*
|
|
1587
|
-
This function returns all informations that are needed to visualize the set in 3D
|
|
1586
|
+
/*
|
|
1587
|
+
This function returns all informations that are needed to visualize the set in 3D
|
|
1588
1588
|
*/
|
|
1589
1589
|
}, {
|
|
1590
1590
|
key: "getSetData",
|
|
@@ -1699,8 +1699,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
|
-
/**
|
|
1703
|
-
* This function returns the position information for each element. The infomration is returned as an object with elementId: posNr.
|
|
1702
|
+
/**
|
|
1703
|
+
* This function returns the position information for each element. The infomration is returned as an object with elementId: posNr.
|
|
1704
1704
|
*/
|
|
1705
1705
|
}, {
|
|
1706
1706
|
key: "getElementPosInfo",
|
|
@@ -1722,8 +1722,8 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
1722
1722
|
});
|
|
1723
1723
|
return ret;
|
|
1724
1724
|
}
|
|
1725
|
-
/**
|
|
1726
|
-
* Returns true if all AVL and AVR Filter are set. Specifies if a planning is complete
|
|
1725
|
+
/**
|
|
1726
|
+
* Returns true if all AVL and AVR Filter are set. Specifies if a planning is complete
|
|
1727
1727
|
*/
|
|
1728
1728
|
}, {
|
|
1729
1729
|
key: "getPlanningIsComplete",
|
|
@@ -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 './index-
|
|
4
|
+
import './index-84339e2f.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import '@babel/runtime/regenerator';
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { R as Rendering, H as HQRenderScript } from './index-
|
|
6
|
+
import { R as Rendering, H as HQRenderScript } from './index-84339e2f.js';
|
|
7
7
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
8
8
|
import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
|
|
9
9
|
import io from 'socket.io-client';
|
|
@@ -38,9 +38,9 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
38
38
|
//callbacks
|
|
39
39
|
_defineProperty(this, "plannerHandler3D", void 0);
|
|
40
40
|
_defineProperty(this, "reconnectingErrorCount", void 0);
|
|
41
|
-
/**
|
|
42
|
-
* This function initializes the Connection to the diva Media Service.
|
|
43
|
-
* It is called when The webClient joints to a new DivaNr
|
|
41
|
+
/**
|
|
42
|
+
* This function initializes the Connection to the diva Media Service.
|
|
43
|
+
* It is called when The webClient joints to a new DivaNr
|
|
44
44
|
*/
|
|
45
45
|
_defineProperty(this, "openSocketToMediaService", function (divaNr) {
|
|
46
46
|
var socket = new URL(_this.renderSettings.DivaMediaServiceUrl + '/');
|
|
@@ -83,11 +83,11 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
//------------------------------------------------------FUnctions called from 3DHost - -----------------------------------------------
|
|
86
|
-
/**
|
|
87
|
-
* This function is called when a client asks for a rendering (Only update viewpoint) but no awailable render client has loaded the rendering
|
|
88
|
-
* @param hash The hash value of the requested planning
|
|
89
|
-
* @param size The size of the requested rendering
|
|
90
|
-
* @param BG The Background Info used for this rendering
|
|
86
|
+
/**
|
|
87
|
+
* This function is called when a client asks for a rendering (Only update viewpoint) but no awailable render client has loaded the rendering
|
|
88
|
+
* @param hash The hash value of the requested planning
|
|
89
|
+
* @param size The size of the requested rendering
|
|
90
|
+
* @param BG The Background Info used for this rendering
|
|
91
91
|
*/
|
|
92
92
|
_defineProperty(this, "noRenderClientFound", function (hash, size, option) {
|
|
93
93
|
LOG.debug('No rendering client has loaded the planning - send new request and force reload!');
|
|
@@ -96,21 +96,21 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
96
96
|
_this.plannerHandler3D.onErrorRequestingRendering(hash, size, option);
|
|
97
97
|
});
|
|
98
98
|
_defineProperty(this, "returnVPInfo", function (msg) {});
|
|
99
|
-
/**
|
|
100
|
-
* This function is called when a new Rendering is found.
|
|
101
|
-
* @param divaNr The divaNr of the rendering
|
|
102
|
-
* @param hash The unique identifier of the rendering
|
|
103
|
-
* @param uiPolygon The UIPolygon that holds additional information like the bounding box or camera position.
|
|
99
|
+
/**
|
|
100
|
+
* This function is called when a new Rendering is found.
|
|
101
|
+
* @param divaNr The divaNr of the rendering
|
|
102
|
+
* @param hash The unique identifier of the rendering
|
|
103
|
+
* @param uiPolygon The UIPolygon that holds additional information like the bounding box or camera position.
|
|
104
104
|
*/
|
|
105
105
|
_defineProperty(this, "newRendering", function (divaNr, hash, uiPolygon) {
|
|
106
106
|
LOG.debug('Receive UI Polygon: ' + uiPolygon);
|
|
107
107
|
_this.plannerHandler3D.onReceivedAdditionalRenderInfo(hash, uiPolygon);
|
|
108
108
|
});
|
|
109
|
-
/**
|
|
110
|
-
* This function is called when a new HqRenderscript is found.
|
|
111
|
-
* @param divaNr The divaNr of the rendering
|
|
112
|
-
* @param hash The unique identifier of the rendering
|
|
113
|
-
* @param hqRenderScript The HqRenderscript
|
|
109
|
+
/**
|
|
110
|
+
* This function is called when a new HqRenderscript is found.
|
|
111
|
+
* @param divaNr The divaNr of the rendering
|
|
112
|
+
* @param hash The unique identifier of the rendering
|
|
113
|
+
* @param hqRenderScript The HqRenderscript
|
|
114
114
|
*/
|
|
115
115
|
_defineProperty(this, "newHQRenderScript", function (divaNr, hash, hqRenderScript) {
|
|
116
116
|
LOG.debug('Receive HQRenderScript: ' + hqRenderScript);
|
|
@@ -119,10 +119,10 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
119
119
|
});
|
|
120
120
|
_this.plannerHandler3D.onReceiveHQRenderScript(hash, hqRenderScript);
|
|
121
121
|
});
|
|
122
|
-
/**
|
|
123
|
-
* This function is called when a new Layer mask is rendered
|
|
124
|
-
* @param divaNr The divaNr the layer mask belongs too
|
|
125
|
-
* @param hash The hash value (unique identifier) of the associated rendering
|
|
122
|
+
/**
|
|
123
|
+
* This function is called when a new Layer mask is rendered
|
|
124
|
+
* @param divaNr The divaNr the layer mask belongs too
|
|
125
|
+
* @param hash The hash value (unique identifier) of the associated rendering
|
|
126
126
|
*/
|
|
127
127
|
_defineProperty(this, "newRenderingLayerMask", function (divaNr, hash) {
|
|
128
128
|
DivaUtils.endSpanOfApm('PlannerHandler3D requestRenderingDescriptionFromSignalR ' + hash);
|
|
@@ -141,8 +141,8 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
141
141
|
this.reconnectingErrorCount = 0;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
/**
|
|
145
|
-
* This function is used to initialize the SignalR Connection.
|
|
144
|
+
/**
|
|
145
|
+
* This function is used to initialize the SignalR Connection.
|
|
146
146
|
*/
|
|
147
147
|
return _createClass(Host3DSignalR, [{
|
|
148
148
|
key: "initializeConnection",
|
|
@@ -470,9 +470,9 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
/**
|
|
474
|
-
* This function is called to login To the SignalR connection.
|
|
475
|
-
* Make shure the connection is established yet
|
|
473
|
+
/**
|
|
474
|
+
* This function is called to login To the SignalR connection.
|
|
475
|
+
* Make shure the connection is established yet
|
|
476
476
|
*/
|
|
477
477
|
}, {
|
|
478
478
|
key: "login",
|
|
@@ -524,11 +524,11 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
524
524
|
}
|
|
525
525
|
return login;
|
|
526
526
|
}()
|
|
527
|
-
/**
|
|
528
|
-
* This function handels the join to a Diva Nr.
|
|
529
|
-
* This function calls the method on the SignalR to join to the DivaNr
|
|
530
|
-
* This function handles connection to the DivaMediaService
|
|
531
|
-
* @param divaNr
|
|
527
|
+
/**
|
|
528
|
+
* This function handels the join to a Diva Nr.
|
|
529
|
+
* This function calls the method on the SignalR to join to the DivaNr
|
|
530
|
+
* This function handles connection to the DivaMediaService
|
|
531
|
+
* @param divaNr
|
|
532
532
|
*/
|
|
533
533
|
)
|
|
534
534
|
}, {
|
|
@@ -599,10 +599,10 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
599
599
|
}, {
|
|
600
600
|
key: "handleConnectionError",
|
|
601
601
|
value:
|
|
602
|
-
/**
|
|
603
|
-
* This function is called to handle Connection Errors
|
|
604
|
-
* @param error
|
|
605
|
-
* @param callback
|
|
602
|
+
/**
|
|
603
|
+
* This function is called to handle Connection Errors
|
|
604
|
+
* @param error
|
|
605
|
+
* @param callback
|
|
606
606
|
*/
|
|
607
607
|
function handleConnectionError(error, callback) {
|
|
608
608
|
this.connectionErrorCount++;
|
|
@@ -614,8 +614,8 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
/**
|
|
618
|
-
* Returns true when the SignalR connection is ready and the client is successfully logged in.
|
|
617
|
+
/**
|
|
618
|
+
* Returns true when the SignalR connection is ready and the client is successfully logged in.
|
|
619
619
|
*/
|
|
620
620
|
}, {
|
|
621
621
|
key: "connectionIsReady",
|
|
@@ -625,10 +625,10 @@ var Host3DSignalR = /*#__PURE__*/function () {
|
|
|
625
625
|
}, {
|
|
626
626
|
key: "unvalidSessionID",
|
|
627
627
|
value:
|
|
628
|
-
/**
|
|
629
|
-
* 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.
|
|
630
|
-
* @param hub
|
|
631
|
-
* @param msg
|
|
628
|
+
/**
|
|
629
|
+
* 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.
|
|
630
|
+
* @param hub
|
|
631
|
+
* @param msg
|
|
632
632
|
*/
|
|
633
633
|
function unvalidSessionID(hub, msg) {
|
|
634
634
|
LOG.debug('DIVA3D-HOST.SignaR Response Unvalid SessionID');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-84339e2f.js';
|
|
4
4
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-84339e2f.js';
|
|
4
4
|
import { SAPOrderLineData } from '@crystaldesign/basket-model';
|
|
5
5
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -92,11 +92,11 @@ var PfisterWWSHandler = /*#__PURE__*/function () {
|
|
|
92
92
|
}, {
|
|
93
93
|
key: "getWWSData",
|
|
94
94
|
value: function getWWSData(basket, set, orderSet, orderlines) {
|
|
95
|
-
/*SendToSAP Orderlines
|
|
96
|
-
"" - normale Orderline - generiert keine SAP Orderline
|
|
97
|
-
"0" - Grundelemente bei Jutzler sind Hülsenartikel und dürfen nicht explizit als SAPOrderLine generiert werden, da diese über Optionsbaum definiert werden
|
|
98
|
-
"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)
|
|
99
|
-
"2" - diese Orderline wurde Artikel verplant, diese soll jetzt als SAPOrderline UND als DivaOrderline übernommen werden
|
|
95
|
+
/*SendToSAP Orderlines
|
|
96
|
+
"" - normale Orderline - generiert keine SAP Orderline
|
|
97
|
+
"0" - Grundelemente bei Jutzler sind Hülsenartikel und dürfen nicht explizit als SAPOrderLine generiert werden, da diese über Optionsbaum definiert werden
|
|
98
|
+
"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)
|
|
99
|
+
"2" - diese Orderline wurde Artikel verplant, diese soll jetzt als SAPOrderline UND als DivaOrderline übernommen werden
|
|
100
100
|
*/
|
|
101
101
|
|
|
102
102
|
//Basket.SAPOrderLines = [];
|