@crystaldesign/web-planner-logic 26.10.0 → 26.11.0-beta.10
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-de40ba61.js → DivaBoxPlanner-02a2dbbf.js} +4 -4
- package/build/cjs/{DivaStandardPlanner-6d5e0308.js → DivaStandardPlanner-150246c0.js} +8 -28
- package/build/cjs/{DoorPlanner-29f34e16.js → DoorPlanner-ce630754.js} +2 -1
- package/build/cjs/{Host3DSignalR-9d0fd3b8.js → Host3DSignalR-b0b1fb8d.js} +2 -1
- package/build/cjs/{LiviqueWWSHandler-b69b3ff9.js → LiviqueWWSHandler-c11ea7d2.js} +2 -1
- package/build/cjs/{PfisterWWSHandler-e64d0e3c.js → PfisterWWSHandler-3c723ecc.js} +2 -1
- package/build/cjs/PlannerHandler2D-6c0324be.js +544 -0
- package/build/cjs/{SeriousBasketHandler-f3127599.js → SeriousBasketHandler-d1ae4006.js} +2 -1
- package/build/cjs/{ShelfPlanner-ebdb243e.js → ShelfPlanner-04d98f4d.js} +2 -1
- package/build/cjs/{StandardWWSHandler-c6b743e1.js → StandardWWSHandler-9b596caf.js} +2 -1
- package/build/cjs/{index-5526e606.js → index-633196ab.js} +501 -653
- package/build/cjs/index.js +6 -2
- package/build/esm/{DivaBoxPlanner-7cb39f00.js → DivaBoxPlanner-fa9f6ec6.js} +4 -4
- package/build/esm/{DivaStandardPlanner-7bb632be.js → DivaStandardPlanner-6c001048.js} +8 -28
- package/build/esm/{DoorPlanner-ee5b7e87.js → DoorPlanner-ef9165f9.js} +2 -1
- package/build/esm/{Host3DSignalR-70c009fa.js → Host3DSignalR-2dc8478a.js} +2 -1
- package/build/esm/{LiviqueWWSHandler-b37a5217.js → LiviqueWWSHandler-b6e8bf5f.js} +2 -1
- package/build/esm/{PfisterWWSHandler-4e442f71.js → PfisterWWSHandler-54b3e0aa.js} +2 -1
- package/build/esm/PlannerHandler2D-0e61311d.js +526 -0
- package/build/esm/{SeriousBasketHandler-1bdf0405.js → SeriousBasketHandler-7b097870.js} +2 -1
- package/build/esm/{ShelfPlanner-a9bb33c9.js → ShelfPlanner-f3e86534.js} +2 -1
- package/build/esm/{StandardWWSHandler-711d5a50.js → StandardWWSHandler-4b0caefd.js} +2 -1
- package/build/esm/{index-bca96b80.js → index-6c8de812.js} +502 -653
- package/build/esm/index.js +2 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +9 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts +9 -114
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts +5 -7
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts +5 -6
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/DockingPoint.d.ts +1 -44
- package/build/types/web-planner-logic/src/model/Planner/DockingPoint.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/parseSvgOltGeometry.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/parseSvgOltGeometry.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/stretchGoldenMaster.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/stretchGoldenMaster.test.d.ts.map +1 -0
- package/package.json +4 -5
- package/build/cjs/PlannerHandler2D-6f937986.js +0 -2470
- package/build/esm/PlannerHandler2D-e169e698.js +0 -2455
- package/build/types/web-planner-logic/src/test/idmPlannerPaletteView.test.d.ts +0 -2
- package/build/types/web-planner-logic/src/test/idmPlannerPaletteView.test.d.ts.map +0 -1
package/build/cjs/index.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-633196ab.js');
|
|
6
|
+
var planner2dCore = require('@crystaldesign/planner-2d-core');
|
|
6
7
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
9
|
require('@babel/runtime/helpers/classCallCheck');
|
|
@@ -31,7 +32,6 @@ exports.DivaArticle = index.DivaArticle;
|
|
|
31
32
|
exports.DivaBasketHandler = index.DivaBasketHandler;
|
|
32
33
|
exports.DivaCatalogData = index.DivaCatalogData;
|
|
33
34
|
exports.DivaSetHandler = index.setHandlerInstance;
|
|
34
|
-
exports.DockingPoint = index.DockingPoint;
|
|
35
35
|
exports.Grid = index.Grid;
|
|
36
36
|
exports.JsonDataCache = index.JsonDataCache;
|
|
37
37
|
exports.OptionCatalogData = index.OptionCatalogData;
|
|
@@ -48,3 +48,7 @@ exports.headlessSession = index.headlessSession;
|
|
|
48
48
|
exports.loadAndRepairBasket = index.loadAndRepairBasket;
|
|
49
49
|
exports.runHeadlessArtifactPass = index.runHeadlessArtifactPass;
|
|
50
50
|
exports.runHeadlessArtifactPassBatch = index.runHeadlessArtifactPassBatch;
|
|
51
|
+
Object.defineProperty(exports, 'DockingPoint', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return planner2dCore.DockingPoint; }
|
|
54
|
+
});
|
|
@@ -3,11 +3,11 @@ 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 { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-
|
|
6
|
+
import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-6c8de812.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
9
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
|
-
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-
|
|
10
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-0e61311d.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import 'axios';
|
|
13
13
|
import '@crystaldesign/basket-model';
|
|
@@ -18,8 +18,8 @@ import '@babel/runtime/helpers/inherits';
|
|
|
18
18
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
19
19
|
import '@crystaldesign/basket-handler';
|
|
20
20
|
import 'socket.io-client';
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
21
|
+
import '@crystaldesign/planner-2d-core';
|
|
22
|
+
import '@babel/runtime/helpers/get';
|
|
23
23
|
|
|
24
24
|
var LOG$3 = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
25
25
|
var BoxPlannerPartlistHelper = /*#__PURE__*/function () {
|
|
@@ -3,9 +3,10 @@ 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,
|
|
6
|
+
import { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-6c8de812.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
|
-
import {
|
|
8
|
+
import { computeDockedTransform } from '@crystaldesign/planner-2d-core';
|
|
9
|
+
import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-0e61311d.js';
|
|
9
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
12
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -18,8 +19,7 @@ import '@babel/runtime/helpers/inherits';
|
|
|
18
19
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
19
20
|
import '@crystaldesign/basket-handler';
|
|
20
21
|
import 'socket.io-client';
|
|
21
|
-
import '
|
|
22
|
-
import 'w3c-xmlserializer';
|
|
22
|
+
import '@babel/runtime/helpers/get';
|
|
23
23
|
|
|
24
24
|
var LOG = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
25
25
|
var ACC_DOCK_TYPES = ['AVO', 'AVU', 'AVC', 'AVS', 'AVN'];
|
|
@@ -220,30 +220,10 @@ var DivaStandardPlanner = /*#__PURE__*/function () {
|
|
|
220
220
|
var refElement = this.plannerElements.get(dockingPoint.OnElementId);
|
|
221
221
|
var refDockingPoint = refElement.getDockingPointById(dockingPoint.OnDP.DpId);
|
|
222
222
|
if (refDockingPoint == undefined) return updateConfig;
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
var refDPLocalOlt = refElement.HasOLFPolygon ? new Vector2(refDockingPoint.LocalWorldPos.x - refElement.getOltLeft(), refDockingPoint.LocalWorldPos.z - refElement.getOltTop()) : new Vector2(refDockingPoint.LocalWorldPos.x, refDockingPoint.LocalWorldPos.z);
|
|
228
|
-
var newDPLocalOlt = plannerElement.HasOLFPolygon ? new Vector2(dockingPoint.LocalWorldPos.x - plannerElement.getOltLeft(), dockingPoint.LocalWorldPos.z - plannerElement.getOltTop()) : new Vector2(dockingPoint.LocalWorldPos.x, dockingPoint.LocalWorldPos.z);
|
|
229
|
-
var rotatedLocalRefDP = new Vector2(refDockingPoint.LocalWorldPos.x, refDockingPoint.LocalWorldPos.z);
|
|
230
|
-
rotatedLocalRefDP = Vector2.rotateOrigin(rotatedLocalRefDP, refElement.RotDeg);
|
|
231
|
-
var angleToRot = refElement.RotDeg + refDockingPoint.RotDeg - dockingPoint.RotDeg;
|
|
232
|
-
plannerElement.RotDeg = angleToRot;
|
|
233
|
-
var refWorldPosCor = refElement.WorldPosCorner;
|
|
234
|
-
// For ref without OLF: use same corner for both alignments (no OLF/OLT split; WorldPosCornerIgnoreOLF getter also does this).
|
|
235
|
-
var refWorldPosCorIgnoreOLF = refElement.HasOLFPolygon ? refElement.WorldPosCornerIgnoreOLF : refWorldPosCor;
|
|
236
|
-
var rotatedLocalDP2D = Vector2.rotateOrigin(new Vector2(dockingPoint.LocalWorldPos.x, dockingPoint.LocalWorldPos.z), angleToRot);
|
|
237
|
-
worldPosNewElement.x = refWorldPosCor.x + rotatedLocalRefDP.x - rotatedLocalDP2D.x;
|
|
238
|
-
worldPosNewElement.y = refWorldPosCor.y + refDockingPoint.LocalWorldPos.y - dockingPoint.LocalWorldPos.y;
|
|
239
|
-
worldPosNewElement.z = refWorldPosCor.z + rotatedLocalRefDP.y - rotatedLocalDP2D.y;
|
|
240
|
-
var rotatedRefDPOlt = Vector2.rotateOrigin(refDPLocalOlt, refElement.RotDeg);
|
|
241
|
-
var rotatedNewDPOlt = Vector2.rotateOrigin(newDPLocalOlt, angleToRot);
|
|
242
|
-
worldPosNewElementIgnoreOLF.x = refWorldPosCorIgnoreOLF.x + rotatedRefDPOlt.x - rotatedNewDPOlt.x;
|
|
243
|
-
worldPosNewElementIgnoreOLF.z = refWorldPosCorIgnoreOLF.z + rotatedRefDPOlt.y - rotatedNewDPOlt.y;
|
|
244
|
-
worldPosNewElementIgnoreOLF.y = refWorldPosCorIgnoreOLF.y + refDockingPoint.LocalWorldPos.y - dockingPoint.LocalWorldPos.y;
|
|
245
|
-
plannerElement.WorldPosCorner = worldPosNewElement;
|
|
246
|
-
plannerElement.WorldPosCornerIgnoreOLF = worldPosNewElementIgnoreOLF;
|
|
223
|
+
var dockedTransform = computeDockedTransform(refElement, refDockingPoint, plannerElement, dockingPoint);
|
|
224
|
+
plannerElement.RotDeg = dockedTransform.rotDeg;
|
|
225
|
+
plannerElement.WorldPosCorner = new Vector3(dockedTransform.worldPosCorner.x, dockedTransform.worldPosCorner.y, dockedTransform.worldPosCorner.z);
|
|
226
|
+
plannerElement.WorldPosCornerIgnoreOLF = new Vector3(dockedTransform.worldPosCornerIgnoreOLF.x, dockedTransform.worldPosCornerIgnoreOLF.y, dockedTransform.worldPosCornerIgnoreOLF.z);
|
|
247
227
|
updateConfig = this.set.onDockingChanged(plannerElement.ElementId, refElement.ElementId, 'DOCK', dockingPoint.Type);
|
|
248
228
|
var data = this.set.getPlannerData(plannerElement.ElementId);
|
|
249
229
|
plannerElement.updatePlannerData(data);
|
|
@@ -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-6c8de812.js';
|
|
5
5
|
import DivaUtils from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -17,6 +17,7 @@ import '@babel/runtime/helpers/inherits';
|
|
|
17
17
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
18
18
|
import '@crystaldesign/basket-handler';
|
|
19
19
|
import 'socket.io-client';
|
|
20
|
+
import '@crystaldesign/planner-2d-core';
|
|
20
21
|
|
|
21
22
|
var Door = /*#__PURE__*/function () {
|
|
22
23
|
function Door(type, basketId, index) {
|
|
@@ -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-6c8de812.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';
|
|
@@ -19,6 +19,7 @@ import '@babel/runtime/helpers/getPrototypeOf';
|
|
|
19
19
|
import '@babel/runtime/helpers/inherits';
|
|
20
20
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
21
21
|
import '@crystaldesign/basket-handler';
|
|
22
|
+
import '@crystaldesign/planner-2d-core';
|
|
22
23
|
|
|
23
24
|
var LOG = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
24
25
|
var Host3DSignalR = /*#__PURE__*/function () {
|
|
@@ -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-6c8de812.js';
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -17,6 +17,7 @@ import '@babel/runtime/helpers/inherits';
|
|
|
17
17
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
18
18
|
import '@crystaldesign/basket-handler';
|
|
19
19
|
import 'socket.io-client';
|
|
20
|
+
import '@crystaldesign/planner-2d-core';
|
|
20
21
|
|
|
21
22
|
//Der in einem Set gemergte Optionsbaum
|
|
22
23
|
var LiviqueWWSHandler = /*#__PURE__*/function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import { a as articleHandlerInstance } from './index-
|
|
3
|
+
import { a as articleHandlerInstance } from './index-6c8de812.js';
|
|
4
4
|
import { SAPOrderLineData } from '@crystaldesign/basket-model';
|
|
5
5
|
import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
|
|
6
6
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -17,6 +17,7 @@ import '@babel/runtime/helpers/inherits';
|
|
|
17
17
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
18
18
|
import '@crystaldesign/basket-handler';
|
|
19
19
|
import 'socket.io-client';
|
|
20
|
+
import '@crystaldesign/planner-2d-core';
|
|
20
21
|
|
|
21
22
|
var LOG = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
22
23
|
//Der in einem Set gemergte Optionsbaum
|