diff --git a/components/hardware/dowel/DowelM6.SLDPRT b/components/hardware/dowel/DowelM6.SLDPRT new file mode 100644 index 000000000..cefb7a6cd --- /dev/null +++ b/components/hardware/dowel/DowelM6.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2238e82577346ec23037263ff8de13c6788d6001463fbe1b78aa32917fdd4824 +size 94853 diff --git a/components/hardware/jacks/Vevor-20T.SLDASM b/components/hardware/jacks/Vevor-20T.SLDASM index a47c881f6..4a3a87b23 100644 --- a/components/hardware/jacks/Vevor-20T.SLDASM +++ b/components/hardware/jacks/Vevor-20T.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:64173ab5f2ae8ca76b5c4e8383c48f43cd32974b7bf0b7abf46c26040e1faec2 -size 78021 +oid sha256:378a8a9312008b1a8a202135b84ceaf843387ada3bd79048ec77ac6c7aef5d7d +size 78548 diff --git a/components/mechanics/Slide-40ID-52OD-60H.SLDPRT b/components/mechanics/Slide-40ID-52OD-60H.SLDPRT index df5a6c8b9..0b743b217 100644 --- a/components/mechanics/Slide-40ID-52OD-60H.SLDPRT +++ b/components/mechanics/Slide-40ID-52OD-60H.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f1d729403ad6bca34b2994e8cff4d74b05907464a0a83be7af4a0fe67476574 -size 176253 +oid sha256:b270dfef501faec9e4d96c109ca75732c6f44c67ca7ca6939d810fc3687d8005 +size 276792 diff --git a/components/mechanics/bearings/608/608 ZZ Skateboard Bearing v4.f3d b/components/mechanics/bearings/608/608 ZZ Skateboard Bearing v4.f3d new file mode 100644 index 000000000..4b9bdbba3 Binary files /dev/null and b/components/mechanics/bearings/608/608 ZZ Skateboard Bearing v4.f3d differ diff --git a/components/mechanics/bearings/608/608 ZZ Skateboard Bearing.3mf b/components/mechanics/bearings/608/608 ZZ Skateboard Bearing.3mf new file mode 100644 index 000000000..02ac1bbbc Binary files /dev/null and b/components/mechanics/bearings/608/608 ZZ Skateboard Bearing.3mf differ diff --git a/components/mechanics/bearings/608/608 ZZ Skateboard Bearing.step b/components/mechanics/bearings/608/608 ZZ Skateboard Bearing.step new file mode 100644 index 000000000..13b9e630e --- /dev/null +++ b/components/mechanics/bearings/608/608 ZZ Skateboard Bearing.step @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f53a9e8405db534d556e2a84edc5add2b756d9ccc025d60a147b025f6cf71a4f +size 562446 diff --git a/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing.png b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing.png new file mode 100644 index 000000000..bb092db2d --- /dev/null +++ b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:968bfc27d349142f1a08075c3fd127dc2bc6e7fae8390ef614d856190a6a21ab +size 401733 diff --git a/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Isometric.png b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Isometric.png new file mode 100644 index 000000000..d6d40b833 --- /dev/null +++ b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Isometric.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:605c3c6f3cd8e395fa6e128bdec80969a6d16c3060f098c4e05393a33dfed6f0 +size 420040 diff --git a/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Side.png b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Side.png new file mode 100644 index 000000000..628a8676c --- /dev/null +++ b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Side.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75bb5dab8816b4e158fa7baf68d8b3910e8014f29b5ead7e0d44b155e9c02ecf +size 175602 diff --git a/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Top.png b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Top.png new file mode 100644 index 000000000..81654594d --- /dev/null +++ b/components/mechanics/bearings/608/608_ZZ_Skateboard_Bearing_Top.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4b2403d20786bbf64d5fd2dab7c0fdca705cb48ec5d1c01f9935de5db9f7675 +size 435183 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1.zip b/components/mechanics/bearings/698/698zz-1.snapshot.1.zip new file mode 100644 index 000000000..56b5662db --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a143ae0cd7946c3b1f26bf348f8134861ce4e90bb859efff9e66846ecff2b83 +size 19140148 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 1.jpg b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 1.jpg new file mode 100644 index 000000000..6d6f1b048 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d6c36db0e74a22af589f92b99af753c534c776ffd4c998fdb730fa7f4ef7ada +size 920927 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 2.jpg b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 2.jpg new file mode 100644 index 000000000..c28329894 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13987c282168ec09ec97a1b1637491e949b4df55a8bcf629e6563a6b02424fed +size 878994 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 3.jpg b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 3.jpg new file mode 100644 index 000000000..b59e1e833 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c89b050108302d801cb7a9ac8f6b98c37def337fddd5b25a6c3212ab4b3bde8b +size 926021 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 4.jpg b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 4.jpg new file mode 100644 index 000000000..8533d6fae --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image 4.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dac1a9b20e3912cf8be6d8d096b6825c41a75f65897532a70a23e964746e5704 +size 910693 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image Die.jpg b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image Die.jpg new file mode 100644 index 000000000..17d832d73 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image Die.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0baafa87027cc23edf09f6149b8ee49bda05ac30ad6c430b9fe8885126ceaa8a +size 963529 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image Sec Iso.jpg b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image Sec Iso.jpg new file mode 100644 index 000000000..ec8e225fd --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing rendered Image Sec Iso.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe0e5c84a515276217b55236d7075e17cfe8c33086e0cb37719e0dd2c1d69c6d +size 962259 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing.SLDPRT b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing.SLDPRT new file mode 100644 index 000000000..32e74c3c4 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c5d42b9f6eda324fe8aa411cc6d43d9de7b8720e4d18f9bf2ccebc819084b80 +size 5022236 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing.STEP b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing.STEP new file mode 100644 index 000000000..e95200f67 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/698zz Bearing.STEP @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ede9c1e6ac6dee51524a21f6e8433551b0be7377c242d5a28461f4878b0f4d8e +size 8551075 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/Inner.step.SLDPRT b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/Inner.step.SLDPRT new file mode 100644 index 000000000..696a22897 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/Inner.step.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa772743cc8c49b20c5705f16bca041a3c167cd3750d5aacf850a475b7059ebb +size 28589 diff --git a/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/Outer.step.SLDPRT b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/Outer.step.SLDPRT new file mode 100644 index 000000000..96631a3f6 --- /dev/null +++ b/components/mechanics/bearings/698/698zz-1.snapshot.1/698zz Bearing/Outer.step.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4ffc556b03c69c962f44e371cb9b3418e09bee228771af0f5e50bc9acb491d1 +size 28988 diff --git a/components/mechanics/motion/hgh/20/310-HGH20-Brackets.SLDASM b/components/mechanics/motion/hgh/20/310-HGH20-Brackets.SLDASM index 0bb98bbef..d7ce48f7b 100644 --- a/components/mechanics/motion/hgh/20/310-HGH20-Brackets.SLDASM +++ b/components/mechanics/motion/hgh/20/310-HGH20-Brackets.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f6a48aaea83f498986993ab095a81638d84a4424b7d48a5d3b38b78af62f394d -size 2954398 +oid sha256:c16b2f6768a72d39c6cd292cac0552fb621b2a80f0697a313236d0354f8276c7 +size 3015866 diff --git a/components/mechanics/motion/hgh/20/320_HG20-40_x2_8mm_FERRO.SLDPRT b/components/mechanics/motion/hgh/20/320_HG20-40_x2_8mm_FERRO.SLDPRT index 2a5f09093..9d3db7353 100644 --- a/components/mechanics/motion/hgh/20/320_HG20-40_x2_8mm_FERRO.SLDPRT +++ b/components/mechanics/motion/hgh/20/320_HG20-40_x2_8mm_FERRO.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:19af4829a3327da37d913a21b7eecbfbe62c274b7229e3c7f5b424b9f4426950 -size 84891 +oid sha256:8068a072803d1bec0cefd455e722acd18a1e4fda50cd6c8096fd71f6df28cd4a +size 76437 diff --git a/components/mechanics/motion/hgh/20/322_HG20-40Side_x2_8mm_FERRO.SLDPRT b/components/mechanics/motion/hgh/20/322_HG20-40Side_x2_8mm_FERRO.SLDPRT index 8c34c48eb..2b2774650 100644 --- a/components/mechanics/motion/hgh/20/322_HG20-40Side_x2_8mm_FERRO.SLDPRT +++ b/components/mechanics/motion/hgh/20/322_HG20-40Side_x2_8mm_FERRO.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:840ed2f5eb5ee79ba1fb0526fe6b47d83769e91d8126ffca991771bccce4449f -size 133381 +oid sha256:3ebb09aad73932dc7ee946eb4d1dd2f75beaf0037eeb5ee52265751230b6e0b5 +size 195464 diff --git a/components/mechanics/motion/hgh/20/323_HG20-40Flange_x2_8mm_FERRO.SLDPRT b/components/mechanics/motion/hgh/20/323_HG20-40Flange_x2_8mm_FERRO.SLDPRT index ae611c3e0..053dae468 100644 --- a/components/mechanics/motion/hgh/20/323_HG20-40Flange_x2_8mm_FERRO.SLDPRT +++ b/components/mechanics/motion/hgh/20/323_HG20-40Flange_x2_8mm_FERRO.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4a58dc7396d9ed932fe9f7817c7d3ee3fc3ff4ec31db62dc0c59ad5ea5c50947 -size 131124 +oid sha256:0bd4f1476f2626c69d18b7679536cd29afb33d3d015092532a0b08eda80dd89a +size 129492 diff --git a/components/mechanics/motion/hgh/20/740-Rail-HGH20CA-40.SLDASM b/components/mechanics/motion/hgh/20/740-Rail-HGH20CA-40.SLDASM index d2452aa73..bfb0c9b95 100644 --- a/components/mechanics/motion/hgh/20/740-Rail-HGH20CA-40.SLDASM +++ b/components/mechanics/motion/hgh/20/740-Rail-HGH20CA-40.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e2a84f336c2084babcff480a6e259df2f849d9778e49dc30c6d91a0347907c0d -size 2972741 +oid sha256:84030b78bf8d68f87626f98812124a2747b5c3aa77b3d856527d94a08171778a +size 3005053 diff --git a/sheetpress/commons/readme.md b/sheetpress/commons/readme.md index 519e29e8c..6a62cb747 100644 --- a/sheetpress/commons/readme.md +++ b/sheetpress/commons/readme.md @@ -8,10 +8,10 @@ - [ ] Heating: should be applied using profiles (ramping, using Modbus PIDs) | Partitions - [ ] Moulds - [x] lower plate in AL - - [ ] if applicable, cooling press with mountable glass plates + - [ ] mountable glass plates - [x] position pins/slots - - [ ] distance gauges (dowel) - - [ ] ball casters + - [x] distance gauges (dowel) + - [-] ball casters - [ ] Electronics - [ ] burnout - [ ] overshoot diff --git a/sheetpress/components/900_Moulds/450-15mm/608 ZZ Skateboard Bearing.SLDASM b/sheetpress/components/900_Moulds/450-15mm/608 ZZ Skateboard Bearing.SLDASM new file mode 100644 index 000000000..7a274ab65 --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/608 ZZ Skateboard Bearing.SLDASM @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a42e977fe0065c544a9a2ee945b3ed04b5b1060bbb36987cc1eb91cb4a98b4cc +size 25771 diff --git a/sheetpress/components/900_Moulds/450-15mm/900_MouldSheetTop_x1_2mm_INOX.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/900_MouldSheetTop_x1_2mm_INOX.SLDPRT new file mode 100644 index 000000000..cd445df27 --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/900_MouldSheetTop_x1_2mm_INOX.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3afd232ec1312d94f13e71038ae4c58f0d3fedaad681f6768a97b859c2aa0bbd +size 508992 diff --git a/sheetpress/components/900_Moulds/450-15mm/900_MouldSheet_x2_2mm_INOX.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/900_MouldSheet_x2_2mm_INOX.SLDPRT index fc220d693..bfd5e2b81 100644 --- a/sheetpress/components/900_Moulds/450-15mm/900_MouldSheet_x2_2mm_INOX.SLDPRT +++ b/sheetpress/components/900_Moulds/450-15mm/900_MouldSheet_x2_2mm_INOX.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8e4ce90c3419676ea2bf3a447092d3a67d3e9f9db7f1f359030077b5bb10c325 -size 176287 +oid sha256:3da8bffd38999e85695a769d31b60bce034ca456d7eee4f2c401273b0568a430 +size 116052 diff --git a/sheetpress/components/900_Moulds/450-15mm/910_MouldBase_x1_10mm_AL.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/910_MouldBase_x1_10mm_AL.SLDPRT index cf0eaab93..51f0f4a21 100644 --- a/sheetpress/components/900_Moulds/450-15mm/910_MouldBase_x1_10mm_AL.SLDPRT +++ b/sheetpress/components/900_Moulds/450-15mm/910_MouldBase_x1_10mm_AL.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cb12528ed0adbeb67555d65765d2a7c8cec74dfdc3cfd1c69ad1a361a55c3476 -size 81914 +oid sha256:ca2d96f632536c652763887447bfcbaa7c8b95c07fccc22d6fd1968871be3e08 +size 65091 diff --git a/sheetpress/components/900_Moulds/450-15mm/Bearing-22OD-8ID-7H.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/Bearing-22OD-8ID-7H.SLDPRT new file mode 100644 index 000000000..0f6685628 --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/Bearing-22OD-8ID-7H.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f9fdf3770393a1fe09fd2c15ec4fce67f22b8dff886283ba6962451cd8c7359 +size 56851 diff --git a/sheetpress/components/900_Moulds/450-15mm/Cage.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/Cage.SLDPRT new file mode 100644 index 000000000..337ea49d3 --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/Cage.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9e30ec7a3346b77ee91c1d73d282305023ba9977f024596a4a67db1644987ff +size 223295 diff --git a/sheetpress/components/900_Moulds/450-15mm/Inner.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/Inner.SLDPRT new file mode 100644 index 000000000..893cc08b3 --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/Inner.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:321d0a903c36d39cbd56dcc976f54655918ac79b47425f0acd4725ae64a80c76 +size 29992 diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.SLDASM b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.SLDASM index c60d2d03c..02864cfda 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.SLDASM +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:426bd5a94e05ac230e50bbf79e5fdb5b5f21bdac31ae652ca63b6da6f1d61ab4 -size 154028 +oid sha256:d95622aad8c5a77d030a6e21b4746f95342265d0d3e3f2c061a247240fabb72d +size 1635719 diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.html b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.html index 0a750d635..e60185dcf 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.html +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.html @@ -8360,7 +8360,7 @@ var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){fun // Copyright 2018-2021 Dassault Systemes SolidWorks Corporation. All rights reserved. var __extends=this&&this.__extends||function(){var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return extendStatics(d,b)};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};var __generator=this&&this.__generator||function(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]=this.mSelObjs.length)return[2,null];this.dehighlightAllTemporaryEntity();toRemove=this.mSelObjs[idx];this.mSelObjs.splice(idx,1);if(!utils.isNumber(this.isItemSelected(toRemove))){this.deColorEntity(toRemove)}return[4,this.updateResult(this.mSelObjs,this.mAuxGeoSelected)];case 1:updated=_a.sent();if(!(updated||this.mSelObjs.length===0))return[3,3];return[4,this.resetImmediateResults()];case 2:_a.sent();return[3,4];case 3:this.mAuxGeoImmediate.regeneratePicks(this.mSelObjs);_a.label=4;case 4:this.updatePanelResult();return[2,toRemove]}}))}))};eDwMeasureEntities.prototype.setSelectedEntityColor=function(iColor){this.mSelMeasureEntColor=iColor};eDwMeasureEntities.prototype.setMeasureUnit=function(iUserUnits){var _this=this;this.mViewer.getModel().setUserUnits(iUserUnits);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.resetImmediateResults()];case 1:_a.sent();return[2]}}))}))})();this.mAuxGeoSelected.syncUnits();this.updatePanelResult();this.mViewer.getHCMarkupManager().refreshMarkup()};eDwMeasureEntities.prototype.updatePointToPoint=function(iEnable){eDwMeasureEntities.PointToPoint=iEnable;this.reset();this.mAuxGeoSelected.updateResultLabels();this.mAuxGeoImmediate.updateResultLabels();this.mViewer.getHCMarkupManager().refreshMarkup()};eDwMeasureEntities.prototype.updateDelta=function(iEnable){eDwMeasureEntities.ShowDelta=iEnable;this.mAuxGeoSelected.updateResultLabels();this.mAuxGeoImmediate.updateResultLabels();this.updatePanelResult();this.mViewer.getHCMarkupManager().refreshMarkup()};eDwMeasureEntities.prototype.updatePanelResult=function(){var userUnits=this.mViewer.getModel().getUserUnits();this.mPanelInfo.updatePanelResult(this.mSelObjs,userUnits)};eDwMeasureEntities.prototype.reset=function(){this.deColorAll();this.mAuxGeoSelected.reset();this.mAuxGeoImmediate.reset();this.mSelObjs=[];this.updatePanelResult()};eDwMeasureEntities.prototype.draw=function(){this.mAuxGeoSelected.draw();this.mAuxGeoImmediate.draw()};eDwMeasureEntities.prototype.getClassName=function(){return"eDwMeasureEntities"};eDwMeasureEntities.prototype.isItemSelected=function(iSelObj){if(utils.isNumber(iSelObj.getIDHC())){for(var i=0;i0){result=new MeasureResultString("Info","Invalid combination");ioAuxGeo.addMessage(result,iSelObjs[n-1].getPosition(),eDwTypes_1.HC.Color.red())}ioAuxGeo.updateResultLabels();return[2,isValid]}}))}))};eDwMeasureEntities.prototype.updateSingleVert=function(iSelObjs){if(1!==iSelObjs.length)return false;var vertObj=iSelObjs[0];return vertObj.getPointEntity()?true:false};eDwMeasureEntities.prototype.updateSingleEdge=function(iSelObjs){if(1!==iSelObjs.length)return false;var edgeObj=iSelObjs[0];if(edgeObj.getLineEntity())return true;return false};eDwMeasureEntities.prototype.updateSingleFace=function(iSelPropsHC,iSelObjs){if(1!==iSelObjs.length)return false;var faceObj=iSelObjs[0];var faceProp=iSelPropsHC[0];if(!faceObj.getFaceEntity()||!faceProp)return false;if(faceProp instanceof eDwTypes_1.HC.SubentityProperties.CylinderElement){return true}else if(faceProp instanceof eDwTypes_1.HC.SubentityProperties.PlaneElement){return true}return false};eDwMeasureEntities.prototype.updateVertVert=function(iSelObjs,iAuxGeo){if(2!==iSelObjs.length)return false;if(iSelObjs[0].getPointEntity()&&iSelObjs[1].getPointEntity()){var vertObj0=iSelObjs[0];var vertObj1=iSelObjs[1];if(vertObj0.equals(vertObj1))return false;iAuxGeo.setByVertexVertex(vertObj0,vertObj1);return true}return false};eDwMeasureEntities.prototype.updateVertEdge=function(iSelPropsHC,iSelObjs,iAuxGeo){if(2!==iSelObjs.length)return false;var edgeProp=iSelPropsHC[0];var edgeObj=iSelObjs[0];var vertObj=iSelObjs[1];if(iSelObjs[1].getLineEntity()&&iSelObjs[0].getPointEntity()){edgeProp=iSelPropsHC[1];edgeObj=iSelObjs[1];vertObj=iSelObjs[0]}if(!vertObj.getPointEntity())return false;if(edgeProp instanceof eDwTypes_1.HC.SubentityProperties.LineElement){iAuxGeo.setByVertexLine(vertObj,edgeProp,edgeObj);return true}else if(edgeProp instanceof eDwTypes_1.HC.SubentityProperties.CircleElement){iAuxGeo.setByVertexCircle(vertObj,edgeProp,edgeObj);return true}return false};eDwMeasureEntities.prototype.updateVertFace=function(iSelPropsHC,iSelObjs,iAuxGeo){return __awaiter(this,void 0,void 0,(function(){var vertObj,faceProp,faceObj,minDistInfo;return __generator(this,(function(_a){switch(_a.label){case 0:if(2!==iSelObjs.length)return[2,false];vertObj=iSelObjs[0];faceProp=iSelPropsHC[1];faceObj=iSelObjs[1];if(iSelObjs[1].getPointEntity()&&iSelObjs[0].getFaceEntity()){vertObj=iSelObjs[1];faceProp=iSelPropsHC[0];faceObj=iSelObjs[0]}if(!vertObj.getPointEntity())return[2,false];if(!(faceProp instanceof eDwTypes_1.HC.SubentityProperties.PlaneElement))return[3,2];return[4,eDwSelObj.getMinDistInfo(iSelPropsHC,iSelObjs,this.mViewer.getModel())];case 1:minDistInfo=_a.sent();iAuxGeo.setByVertexPlane(vertObj,faceProp,faceObj,minDistInfo);return[2,true];case 2:return[2,false]}}))}))};eDwMeasureEntities.prototype.updateEdgeFace=function(iSelPropsHC,iSelObjs,iAuxGeo){return __awaiter(this,void 0,void 0,(function(){var edgeProp,edgeObj,faceProp,faceObj,minDistInfo;return __generator(this,(function(_a){switch(_a.label){case 0:if(2!==iSelObjs.length)return[2,false];edgeProp=iSelPropsHC[0];edgeObj=iSelObjs[0];faceProp=iSelPropsHC[1];faceObj=iSelObjs[1];if(iSelObjs[1].getLineEntity()&&iSelObjs[0].getFaceEntity()){edgeProp=iSelPropsHC[1];edgeObj=iSelObjs[1];faceProp=iSelPropsHC[0];faceObj=iSelObjs[0]}if(!(edgeProp instanceof eDwTypes_1.HC.SubentityProperties.LineElement&&faceProp instanceof eDwTypes_1.HC.SubentityProperties.PlaneElement))return[3,1];iAuxGeo.setByPlaneLine(faceProp,edgeProp,faceObj,edgeObj);return[2,true];case 1:if(!(edgeProp instanceof eDwTypes_1.HC.SubentityProperties.CircleElement&&faceProp instanceof eDwTypes_1.HC.SubentityProperties.PlaneElement))return[3,3];return[4,eDwSelObj.getMinDistInfo(iSelPropsHC,iSelObjs,this.mViewer.getModel())];case 2:minDistInfo=_a.sent();iAuxGeo.setByCirclePlane(edgeProp,faceProp,edgeObj,faceObj,minDistInfo);return[2,true];case 3:return[2,false]}}))}))};eDwMeasureEntities.prototype.updateEdgeEdge=function(iSelPropsHC,iSelObjs,iAuxGeo){if(2!==iSelObjs.length)return false;if(!iSelObjs[0].getLineEntity()||!iSelObjs[1].getLineEntity()){return false}var edgeObj0=iSelObjs[0];var edgeProp0=iSelPropsHC[0];var edgeObj1=iSelObjs[1];var edgeProp1=iSelPropsHC[1];if(edgeObj0.equals(edgeObj1))return false;if(edgeProp0 instanceof eDwTypes_1.HC.SubentityProperties.LineElement&&edgeProp1 instanceof eDwTypes_1.HC.SubentityProperties.LineElement){iAuxGeo.setByLineLine(edgeProp0,edgeProp1,edgeObj0,edgeObj1)}else if(edgeProp0 instanceof eDwTypes_1.HC.SubentityProperties.LineElement&&edgeProp1 instanceof eDwTypes_1.HC.SubentityProperties.CircleElement){iAuxGeo.setByCircleLine(edgeProp1,edgeProp0,edgeObj1,edgeObj0)}else if(edgeProp0 instanceof eDwTypes_1.HC.SubentityProperties.CircleElement&&edgeProp1 instanceof eDwTypes_1.HC.SubentityProperties.LineElement){iAuxGeo.setByCircleLine(edgeProp0,edgeProp1,edgeObj0,edgeObj1)}else if(edgeProp0 instanceof eDwTypes_1.HC.SubentityProperties.CircleElement&&edgeProp1 instanceof eDwTypes_1.HC.SubentityProperties.CircleElement){iAuxGeo.setByCircleCircle(edgeProp0,edgeProp1,edgeObj0,edgeObj1)}this.updateEdges(iSelPropsHC,iSelObjs,iAuxGeo);return true};eDwMeasureEntities.prototype.updateFaceFace=function(iSelPropsHC,iSelObjs,iAuxGeo){return __awaiter(this,void 0,void 0,(function(){var faceObj0,faceProp0,faceObj1,faceProp1,minDistInfo;return __generator(this,(function(_a){switch(_a.label){case 0:if(2!==iSelObjs.length)return[2,false];if(!iSelObjs[0].getFaceEntity()||!iSelObjs[1].getFaceEntity()){return[2,false]}faceObj0=iSelObjs[0];faceProp0=iSelPropsHC[0];faceObj1=iSelObjs[1];faceProp1=iSelPropsHC[1];if(faceObj0.equals(faceObj1))return[2,false];if(!faceObj1.getFaceEntity()||!faceProp1)return[2,false];if(!(faceProp0 instanceof eDwTypes_1.HC.SubentityProperties.PlaneElement&&faceProp1 instanceof eDwTypes_1.HC.SubentityProperties.PlaneElement))return[3,2];return[4,eDwSelObj.getMinDistInfo(iSelPropsHC,iSelObjs,this.mViewer.getModel())];case 1:minDistInfo=_a.sent();iAuxGeo.setByPlanePlane(faceProp1,faceProp0,faceObj1,faceObj0,minDistInfo);return[2,true];case 2:return[2,false]}}))}))};eDwMeasureEntities.prototype.updateEdges=function(iSelPropsHC,iSelObjs,ioAuxGeo){var n=iSelObjs.length;var len=0;var ids=[];for(var i=0;i1){var result=new MeasureResultDistance("Total Length",len);pos=iSelObjs[n-1].getPosition();ioAuxGeo.addOtherResult(result,pos);return true}return false};eDwMeasureEntities.prototype.highlightEntityAt=function(iIndex,iHighlight){if(iHighlight===void 0){iHighlight=true}var n=this.mSelObjs.length;if(iIndex<0||iIndex>=n)return;eDwMeasureEntities.highlightEntity(this.mSelObjs[iIndex],this.mViewer.getModel(),iHighlight)};eDwMeasureEntities.prototype.addAllForEntity=function(iSelObj){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.addObjs(iSelObj)];case 1:_a.sent();return[4,this.updateResult(this.mSelObjs,this.mAuxGeoSelected)];case 2:_a.sent();return[4,this.resetImmediateResults()];case 3:_a.sent();this.colorEntity(iSelObj);return[2,true]}}))}))};eDwMeasureEntities.PointToPoint=false;eDwMeasureEntities.ShowDelta=false;return eDwMeasureEntities}(eDwTypes_1.HC.Markup.MarkupItem);var LabelItem=function(_super){__extends(LabelItem,_super);function LabelItem(iViewer,iLabel){var _this=_super.call(this)||this;_this.mLabel=iLabel;return _this}LabelItem.prototype.setStringContent=function(){this.mLabel.setStringContent()};LabelItem.prototype.draw=function(){this.mLabel.drawLabel()};LabelItem.prototype.hit=function(iPos){var box=this.mLabel.getLabelBox();if(!box)return false;var xMin=box.Min.x;var xMax=box.Max.x;var yMin=box.Min.y;var yMax=box.Max.y;return iPos.x<=xMax&&iPos.x>=xMin&&iPos.y<=yMax&&iPos.y>=yMin};LabelItem.prototype.onDragStart=function(iPos){this.mDragPos=iPos.copy();return true};LabelItem.prototype.onDragMove=function(iPos){var delta=eDwTypes_1.HC.Point2.subtract(iPos,this.mDragPos);var endPos=this.mLabel.getLeaderEndPos();if(!eDwGeomUtils.isValidHCPoint(endPos)||!eDwGeomUtils.isValidHCPoint(delta))return true;endPos.add(delta);this.mLabel.setLeaderEndPos(endPos);this.mDragPos=iPos.copy();return true};LabelItem.prototype.onDragEnd=function(iPos){return true};return LabelItem}(eDwTypes_1.HC.Markup.MarkupItem);var MeasureResultItem=function(){function MeasureResultItem(iName){this.mName=iName}Object.defineProperty(MeasureResultItem.prototype,"Value",{get:function(){return":NOVALUE:"},enumerable:false,configurable:true});Object.defineProperty(MeasureResultItem.prototype,"Name",{get:function(){return this.mName},enumerable:false,configurable:true});return MeasureResultItem}();var MeasureResultString=function(_super){__extends(MeasureResultString,_super);function MeasureResultString(iName,iValue){var _this=_super.call(this,iName)||this;_this.mValue=iValue;return _this}Object.defineProperty(MeasureResultString.prototype,"Value",{get:function(){return this.mValue},enumerable:false,configurable:true});return MeasureResultString}(MeasureResultItem);var MeasureResultNumber=function(_super){__extends(MeasureResultNumber,_super);function MeasureResultNumber(iName,iValueKind){var _this=_super.call(this,iName)||this;_this.mValueKind=iValueKind;return _this}Object.defineProperty(MeasureResultNumber.prototype,"Value",{get:function(){return l_Model.getValueWithUnit(this.mValue,this.mValueKind)},enumerable:false,configurable:true});return MeasureResultNumber}(MeasureResultItem);var MeasureResultDistance=function(_super){__extends(MeasureResultDistance,_super);function MeasureResultDistance(iName,iValue){var _this=_super.call(this,iName,cLength)||this;_this.mValue=iValue;return _this}return MeasureResultDistance}(MeasureResultNumber);var MeasureResultArea=function(_super){__extends(MeasureResultArea,_super);function MeasureResultArea(iName,iValue){var _this=_super.call(this,iName,"Area")||this;_this.mValue=iValue;return _this}return MeasureResultArea}(MeasureResultNumber);var MeasureResultAngle=function(_super){__extends(MeasureResultAngle,_super);function MeasureResultAngle(iName,iValue){var _this=_super.call(this,iName,"Angle")||this;_this.mValue=iValue;return _this}return MeasureResultAngle}(MeasureResultNumber);var MeasureResultPoint3D=function(_super){__extends(MeasureResultPoint3D,_super);function MeasureResultPoint3D(iName,iValue){var _this=_super.call(this,iName)||this;_this.mValue=iValue.copy();return _this}Object.defineProperty(MeasureResultPoint3D.prototype,"Value",{get:function(){return l_Model.getValueWithUnit(this.mValue.x,"Length")+","+l_Model.getValueWithUnit(this.mValue.y,"Length")+","+l_Model.getValueWithUnit(this.mValue.z,"Length")},enumerable:false,configurable:true});return MeasureResultPoint3D}(MeasureResultItem);var MeasureLabelItem=function(){function MeasureLabelItem(iViewer,iResult,iColor){this.mViewer=iViewer;this.mResult=iResult;this.mColor=iColor;this.mNameTextBox=undefined;this.mValueTextBox=undefined;this.mNameBox=undefined;this.mValueBox=undefined}MeasureLabelItem.prototype.drawItem=function(){var renderer=this.mViewer.getHCMarkupManager().getRenderer();if(this.mNameBox)renderer.drawRectangle(this.mNameBox);if(this.mValueBox)renderer.drawRectangle(this.mValueBox);if(this.mNameTextBox)renderer.drawTextBox(this.mNameTextBox);if(this.mValueTextBox)renderer.drawTextBox(this.mValueTextBox)};MeasureLabelItem.prototype.setPosition=function(ioPos,iNameWidth,iValueWidth){if(!this.mNameBox||!this.mValueBox||!this.mNameTextBox||!this.mValueTextBox){this.mNameBox=new eDwTypes_1.HC.Markup.Shape.Rectangle;this.mNameBox.setFillColor(this.mColor?this.mColor:cGreyColor);this.mValueBox=new eDwTypes_1.HC.Markup.Shape.Rectangle;this.mValueBox.setFillColor(eDwTypes_1.HC.Color.white());this.mNameTextBox=new eDwTypes_1.HC.Markup.Shape.TextBox;this.mNameTextBox.getBoxPortion().setFillColor(eDwTypes_1.HC.Color.white());this.mNameTextBox.getBoxPortion().setStrokeWidth(0);this.mNameTextBox.getTextPortion().setFillColor(eDwTypes_1.HC.Color.white());this.mNameTextBox.getBoxPortion().setFillOpacity(0);this.mNameTextBox.getTextPortion().setFontFamily("arial");this.mValueTextBox=new eDwTypes_1.HC.Markup.Shape.TextBox;this.mValueTextBox.getBoxPortion().setFillColor(eDwTypes_1.HC.Color.white());this.mValueTextBox.getBoxPortion().setStrokeWidth(0);this.mValueTextBox.getTextPortion().setFillColor(cGreyColor);this.mValueTextBox.getBoxPortion().setFillOpacity(0);this.mValueTextBox.getTextPortion().setFontFamily("arial")}var renderer=this.mViewer.getHCMarkupManager().getRenderer();var nameSize=renderer.measureTextBox(this.mNameTextBox);var valueSize=renderer.measureTextBox(this.mValueTextBox);var height=Math.max(nameSize.y,valueSize.y);this.mNameBox.setSize(new eDwTypes_1.HC.Point2(iNameWidth,height));this.mValueBox.setSize(new eDwTypes_1.HC.Point2(iValueWidth,height));var namePos=ioPos.copy();var valuePos=ioPos.copy();valuePos.x+=iNameWidth;this.mNameBox.setPosition(namePos);this.mNameTextBox.setPosition(namePos);this.mValueBox.setPosition(valuePos);this.mValueTextBox.setPosition(valuePos);ioPos.y+=height};MeasureLabelItem.prototype.getWidth=function(){var renderer=this.mViewer.getHCMarkupManager().getRenderer();var nameSize=this.mNameTextBox?renderer.measureTextBox(this.mNameTextBox):{x:0,y:0};var valueSize=this.mValueTextBox?renderer.measureTextBox(this.mValueTextBox):{x:0,y:0};return{NameWidth:nameSize.x,ValueWidth:valueSize.x}};MeasureLabelItem.prototype.setStringContent=function(){if(this.mNameTextBox){this.mNameTextBox.setTextString(this.mResult.Name)}if(this.mValueTextBox){this.mValueTextBox.setTextString(this.mResult.Value)}};MeasureLabelItem.prototype.getText=function(){return this.mResult.Name+": "+this.mResult.Value};MeasureLabelItem.prototype.getBoundingBox=function(){if(!this.mNameBox||!this.mValueBox){return null}var size1=this.mValueBox.getSize();var posS=this.mNameBox.getPosition().copy();var pos1=this.mValueBox.getPosition();var posE=new eDwTypes_1.HC.Point2(pos1.x+size1.x,pos1.y+size1.y);var min=new eDwTypes_1.HC.Point2(Math.min(posS.x,posE.x),Math.min(posS.y,posE.y));var max=new eDwTypes_1.HC.Point2(Math.max(posS.x,posE.x),Math.max(posS.y,posE.y));return{Min:min,Max:max}};return MeasureLabelItem}();var MeasureBaseLine=function(){function MeasureBaseLine(iViewer,iPntWCHC0,iPntWCHC1,iLineColor){this.mViewer=iViewer;this.mColor=iLineColor||cGreyColor;this.setWCPts(iPntWCHC0,iPntWCHC1)}MeasureBaseLine.prototype.draw=function(){if(!this.isValid())return;if(this.mLine)this.updateLinePts();else this.createHCLine();var renderer=this.mViewer.getHCMarkupManager().getRenderer();renderer.drawLine(this.mLine)};MeasureBaseLine.prototype.getLineColorHC=function(){return this.mColor};MeasureBaseLine.prototype.getMiddleWCPtHC=function(){var middle=eDwTypes_1.HC.Point3.scale(eDwTypes_1.HC.Point3.add(this.mWCEndPtHC0,this.mWCEndPntHC1),.5);return middle};MeasureBaseLine.prototype.setLineColor=function(iColor){this.mColor=iColor;if(this.mLine)this.setColorOnHCLine(iColor);else this.createHCLine()};MeasureBaseLine.prototype.isValid=function(){return this.mWCEndPtHC0&&this.mWCEndPntHC1&&eDwGeomUtils.isValidHCPoint(this.mWCEndPtHC0)&&eDwGeomUtils.isValidHCPoint(this.mWCEndPntHC1)};MeasureBaseLine.prototype.createHCLine=function(){this.mLine=new eDwTypes_1.HC.Markup.Shape.Line;this.setColorOnHCLine(this.mColor);this.updateLinePts();return this};MeasureBaseLine.prototype.copyFrom=function(iSrcLine){if(iSrcLine.mLine){this.mLine.setStrokeWidth(iSrcLine.mLine.getStrokeWidth());this.mLine.setEndcapType(iSrcLine.mLine.getEndEndcapType());this.mLine.setStartEndcapSize(iSrcLine.mLine.getStartEndcapSize());this.mLine.setEndEndcapSize(iSrcLine.mLine.getEndEndcapSize());this.mLine.setStartEndcapColor(iSrcLine.mLine.getStartEndcapColor());this.mLine.setEndEndcapColor(iSrcLine.mLine.getEndEndcapColor())}this.setWCPts(iSrcLine.mWCEndPtHC0,iSrcLine.mWCEndPntHC1);this.mColor=iSrcLine.mColor};MeasureBaseLine.prototype.setWCPts=function(iWCStartPntHC,iWCEndPntHC){if(!iWCStartPntHC||!iWCEndPntHC||!eDwGeomUtils.isValidHCPoint(iWCStartPntHC)||!eDwGeomUtils.isValidHCPoint(iWCEndPntHC)){console.warn("One or more measure points are invalid");return}this.mWCEndPtHC0=iWCStartPntHC.copy();this.mWCEndPntHC1=iWCEndPntHC.copy()};MeasureBaseLine.prototype.updateLinePts=function(){var viewHC=this.mViewer.getHCView();this.mLine.setP1(eDwTypes_1.HC.Point2.fromPoint3(viewHC.projectPoint(this.mWCEndPtHC0)));this.mLine.setP2(eDwTypes_1.HC.Point2.fromPoint3(viewHC.projectPoint(this.mWCEndPntHC1)))};MeasureBaseLine.prototype.setColorOnHCLine=function(iColor){this.mLine.setStrokeColor(iColor);this.mLine.setEndEndcapColor(iColor);this.mLine.setStartEndcapColor(iColor)};return MeasureBaseLine}();var MeasureLine=function(_super){__extends(MeasureLine,_super);function MeasureLine(iViewer,iPntHC0,iPntHC1,iLineColor){var _this=_super.call(this,iViewer,iPntHC0,iPntHC1,iLineColor)||this;if(!_this.isValid())_this.createHCLine();return _this}MeasureLine.prototype.copy=function(){var copy=new MeasureLine(this.mViewer,this.mWCEndPtHC0,this.mWCEndPntHC1,this.getLineColorHC());copy.copyFrom(this);return copy};MeasureLine.prototype.createHCLine=function(){_super.prototype.createHCLine.call(this).setWidthAndEndCapsOnHCLine();return this};MeasureLine.prototype.setWidthAndEndCapsOnHCLine=function(){this.mLine.setStrokeWidth(3);this.mLine.setEndcapType(eDwTypes_1.HC.Markup.Shape.EndcapType.None)};return MeasureLine}(MeasureBaseLine);var MeasureLeaderLine=function(_super){__extends(MeasureLeaderLine,_super);function MeasureLeaderLine(iViewer,iPntHC0,iPntHC1,iLineColor){var _this=_super.call(this,iViewer,iPntHC0,iPntHC1,iLineColor)||this;if(!_this.isValid())_this.createHCLine();return _this}MeasureLeaderLine.prototype.copy=function(){var copy=new MeasureLeaderLine(this.mViewer,this.mWCEndPtHC0,this.mWCEndPntHC1,this.getLineColorHC());copy.copyFrom(this);return copy};MeasureLeaderLine.prototype.getLeaderStartPos=function(){return l_getPosForPnt(this.mViewer,this.mWCEndPtHC0)};MeasureLeaderLine.prototype.getLeaderEndPos=function(){return l_getPosForPnt(this.mViewer,this.mWCEndPntHC1)};MeasureLeaderLine.prototype.setLeaderEndPos=function(iPos){this.setWCPts(this.mWCEndPtHC0,eDwGeomUtils.screenToWorld(iPos,this.mViewer.getHCView()))};MeasureLeaderLine.prototype.setLeaderEnd=function(iPoint){this.mWCEndPntHC1=iPoint.copy()};MeasureLeaderLine.prototype.getLeaderStart=function(){return this.mWCEndPtHC0};return MeasureLeaderLine}(MeasureBaseLine);var MeasureDistLine=function(_super){__extends(MeasureDistLine,_super);function MeasureDistLine(iViewer,iPntHC0,iSelObj0,iPntHC1,iSelObj1,iLineColor,iUseArrowEnds){if(iUseArrowEnds===void 0){iUseArrowEnds=true}var _this=_super.call(this,iViewer,iPntHC0,iPntHC1,iLineColor)||this;_this.mStartSelObj=iSelObj0;_this.mEndSelObj=iSelObj1;_this.mDistColor=iLineColor||cLineDistanceColor;_this.mUseArrowEnds=iUseArrowEnds;if(!_this.isValid())_this.createHCLine();return _this}MeasureDistLine.prototype.copy=function(){var copy=new MeasureDistLine(this.mViewer,this.mWCEndPtHC0,this.mStartSelObj,this.mWCEndPntHC1,this.mEndSelObj,this.getLineColorHC(),this.mUseArrowEnds);copy.copyFrom(this);return copy};MeasureDistLine.prototype.setSelObjEndPts=function(iWCStartPntHC,iStartSelObj,iWCEndPntHC,iEndSelObj){_super.prototype.setWCPts.call(this,iWCStartPntHC,iWCEndPntHC);this.mStartSelObj=iStartSelObj;this.mEndSelObj=iEndSelObj};MeasureDistLine.prototype.getDistance=function(){var localPt0HC=this.mStartSelObj.getAsLocalPoint(this.mWCEndPtHC0);var localPt1HC=this.mEndSelObj.getAsLocalPoint(this.mWCEndPntHC1);return eDwTypes_1.HC.Point3.subtract(localPt0HC,localPt1HC).length()};MeasureDistLine.prototype.createHCLine=function(){_super.prototype.createHCLine.call(this).setHCLineAttributes();return this};MeasureDistLine.prototype.setHCLineAttributes=function(){this.mLine.setStrokeWidth(3);if(this.mUseArrowEnds){this.mLine.setEndcapType(eDwTypes_1.HC.Markup.Shape.EndcapType.Arrowhead)}this.mLine.setStartEndcapSize(5);this.mLine.setEndEndcapSize(5);this.mLine.setStartEndcapColor(this.mDistColor);this.mLine.setEndEndcapColor(this.mDistColor);this.mLine.setStrokeColor(this.mDistColor)};return MeasureDistLine}(MeasureBaseLine);var MeasureLabel=function(){function MeasureLabel(iViewer,iPnt3DHC,iDrawEnabled){if(iDrawEnabled===void 0){iDrawEnabled=true}this.mViewer=iViewer;this.mItems=[];this.mDrawEnabled=iDrawEnabled;this.createLeaderIfPointValid(iPnt3DHC,iPnt3DHC)}MeasureLabel.prototype.reset=function(){this.mItems=[]};MeasureLabel.prototype.drawLabel=function(){if(!this.isValid()||!this.mDrawEnabled)return;this.setLabelPosition(this.mLeader.getLeaderEndPos());var n=this.mItems.length;if(0===n)return;this.mLeader.draw();for(var i=0;icanvasSize.x&&bboxSize.xcanvasSize.y&&bboxSize.y1){this.mLineDist.draw();if(!this.mLineNormal&&eDwMeasureEntities.ShowDelta&&this.mDelta){this.mDelta.draw(iImmediateDrawMode)}var viewHC=this.mViewer.getHCView();this.mEndGlyph0.setCenter(eDwTypes_1.HC.Point2.fromPoint3(viewHC.projectPoint(this.mWCPntsHC[0])));this.mEndGlyph1.setCenter(eDwTypes_1.HC.Point2.fromPoint3(viewHC.projectPoint(this.mWCPntsHC[1])));if(!iImmediateDrawMode){var renderer=this.mViewer.getHCMarkupManager().getRenderer();renderer.drawCircle(this.mEndGlyph0);renderer.drawCircle(this.mEndGlyph1)}}};MeasureAuxDelta.prototype.getLabelData=function(){var labelData={};var labelName=this.mLineNormal?cNormalDistance:this.mSomeCoordsArcCenters?cCenterDistance:cDistance;labelData[cDistance]=new MeasureResultDistance(labelName,this.getDistance());var minResultDist=new MeasureResultDistance(cMinDistance,this.mModelSpaceMinDist);if(parseFloat(minResultDist.Value)>0){labelData[cMinDistance]=minResultDist}var maxResultDist=new MeasureResultDistance(cMaxDistance,this.mModelSpaceMaxDist);if(parseFloat(maxResultDist.Value)>0){labelData[cMaxDistance]=maxResultDist}if(!this.mLineNormal&&eDwMeasureEntities.ShowDelta&&this.mDelta){$.extend(labelData,this.mDelta.getLabelData())}return labelData};MeasureAuxDelta.prototype.getLabels=function(){var labels=[];if(this.getDistance()1&&this.mLineDist?eDwTypes_1.HC.Point3.subtract(this.mWCPntsHC[0],this.mWCPntsHC[1]):eDwTypes_1.HC.Point3.zero()};MeasureAuxDelta.prototype.getDistance=function(){return this.mLineDist?this.mLineDist.getDistance():0};MeasureAuxDelta.prototype.setDistLineColor=function(iColor){this.mLineColor=iColor};MeasureAuxDelta.prototype.setPointColor=function(iColor){this.mEndGlyph0.setFillColor(iColor);this.mEndGlyph1.setFillColor(iColor)};MeasureAuxDelta.prototype.setMinDist=function(iDist){this.mModelSpaceMinDist=iDist};MeasureAuxDelta.prototype.setMaxDist=function(iDist){this.mModelSpaceMaxDist=iDist};Object.defineProperty(MeasureAuxDelta.prototype,"LineNormal",{get:function(){return this.mLineNormal},set:function(iEnable){this.mLineNormal=iEnable},enumerable:false,configurable:true});Object.defineProperty(MeasureAuxDelta.prototype,"SomeCoordsArcCenters",{get:function(){return this.mSomeCoordsArcCenters},set:function(iEnable){this.mSomeCoordsArcCenters=iEnable},enumerable:false,configurable:true});MeasureAuxDelta.prototype.hasDistance=function(){var deltaDist=this.getDistance();return deltaDist>cLengthTol?true:false};return MeasureAuxDelta}();var MeasureDelta=function(){function MeasureDelta(iViewer){this.mViewer=iViewer;this.reset()}MeasureDelta.prototype.set=function(iStartWCPtHC,iEndWCPtHC,iSelObj0,iSelObj1){var deltas=l_getDeltas(iStartWCPtHC,iEndWCPtHC,iSelObj0,iSelObj1);var deltaWCPt0HC=deltas[0];var deltaWCPt1HC=deltas[1];this.mLineDeltaMap[cDeltaX].setSelObjEndPts(iStartWCPtHC,iSelObj0,deltaWCPt0HC,iSelObj1);this.mLineDeltaMap[cDeltaY].setSelObjEndPts(deltaWCPt0HC,iSelObj0,deltaWCPt1HC,iSelObj1);this.mLineDeltaMap[cDeltaZ].setSelObjEndPts(deltaWCPt1HC,iSelObj1,iEndWCPtHC,iSelObj1)};MeasureDelta.prototype.getLabels=function(){var labelData=this.getLabelData();var numNonZeroLabelData=0;var nonZeroLabelData={};for(var _i=0,_a=[cDeltaX,cDeltaY,cDeltaZ];_i<_a.length;_i++){var deltaKey=_a[_i];var dist=this.mLineDeltaMap[deltaKey].getDistance();if(dist>cLengthTol){nonZeroLabelData[deltaKey]=labelData[deltaKey];numNonZeroLabelData++}}if(numNonZeroLabelData===1)nonZeroLabelData={};var labels=[];for(var key in nonZeroLabelData){var lineDelta=this.mLineDeltaMap[key];var label=new MeasureLabel(this.mViewer,lineDelta.getMiddleWCPtHC());label.addItem(labelData[key],lineDelta.getLineColorHC());if(label.isValid())labels.push(label)}return labels};MeasureDelta.prototype.draw=function(iImmediateDrawMode){if(this.isDeltaEnabled()){for(var key in this.mLineDeltaMap){var deltaLine=this.mLineDeltaMap[key];if(deltaLine.getDistance()>cLengthTol)deltaLine.draw()}}};MeasureDelta.prototype.reset=function(){this.mLineDeltaMap={}};MeasureDelta.prototype.copy=function(){var auxDeltaCopy=new MeasureDelta(this.mViewer);for(var key in this.mLineDeltaMap){auxDeltaCopy.mLineDeltaMap[key]=this.mLineDeltaMap[key].copy()}return auxDeltaCopy};MeasureDelta.prototype.getLabelData=function(){var labelData={};if(this.isDeltaEnabled()){for(var _i=0,_a=[cDeltaX,cDeltaY,cDeltaZ];_i<_a.length;_i++){var delta=_a[_i];labelData[delta]=new MeasureResultDistance(delta,this.mLineDeltaMap[delta].getDistance())}}return labelData};MeasureDelta.prototype.getText=function(){if(this.isDeltaEnabled()){var data=this.getLabelData();return"Delta : "+data[cDeltaX].Value+", "+data[cDeltaY].Value+", "+(""+data[cDeltaZ].Value)}return""};MeasureDelta.create=function(iViewer,iStartWCPtHC,iEndWCPtHC,iSelObj0,iSelObj1){var measureDelta=new MeasureDelta(iViewer);var deltas=l_getDeltas(iStartWCPtHC,iEndWCPtHC,iSelObj0,iSelObj1);var deltaWCPt0HC=deltas[0];var deltaWCPt1HC=deltas[1];measureDelta.mLineDeltaMap[cDeltaX]=new MeasureDistLine(iViewer,iStartWCPtHC,iSelObj0,deltaWCPt0HC,iSelObj1,eDwTypes_1.HC.Color.red(),false);measureDelta.mLineDeltaMap[cDeltaY]=new MeasureDistLine(iViewer,deltaWCPt0HC,iSelObj0,deltaWCPt1HC,iSelObj1,new eDwTypes_1.HC.Color(0,128,0),false);measureDelta.mLineDeltaMap[cDeltaZ]=new MeasureDistLine(iViewer,deltaWCPt1HC,iSelObj1,iEndWCPtHC,iSelObj1,eDwTypes_1.HC.Color.blue(),false);return measureDelta};MeasureDelta.prototype.isDeltaEnabled=function(){return eDwMeasureEntities.ShowDelta&&!!this.mLineDeltaMap[cDeltaX]};return MeasureDelta}();var MeasureAuxDistance=function(){function MeasureAuxDistance(iViewer){this.mViewer=iViewer;this.mDistLine=new MeasureAuxDelta(iViewer);this.mNDistLine=new MeasureAuxDelta(iViewer,cAuxDistanceNormalDistanceLineColor,true);this.mNDistLine.setPointColor(cAuxDistanceNormalDistancePointColor);this.mNormalDistExtLines=[]}MeasureAuxDistance.prototype.reset=function(){this.mDistLine.reset();this.mNDistLine.reset();this.mNDistLine.setDistLineColor(cAuxDistanceNormalDistanceLineColor);this.mNDistLine.LineNormal=true;this.mNDistLine.setPointColor(cAuxDistanceNormalDistancePointColor);this.mNormalDistExtLines=[]};MeasureAuxDistance.prototype.draw=function(iImmediateDrawMode){if(!this.getLabels().length)return;this.mDistLine.draw(iImmediateDrawMode);this.mNDistLine.draw(iImmediateDrawMode);for(var _i=0,_a=this.mNormalDistExtLines;_i<_a.length;_i++){var normalExtLine=_a[_i];normalExtLine.draw()}};MeasureAuxDistance.prototype.setByPointPoint=function(iWCPntHC0,iSelObj0,iWCPntHC1,iSelObj1,isSomeCoordsArcCenters){if(isSomeCoordsArcCenters===void 0){isSomeCoordsArcCenters=false}this.reset();this.mDistLine.setWCDeltaEnds([iWCPntHC0,iWCPntHC1],[iSelObj0,iSelObj1]);this.mDistLine.SomeCoordsArcCenters=isSomeCoordsArcCenters;this.mNDistLine.setWCDeltaEnds([iWCPntHC0,iWCPntHC1],[iSelObj0,iSelObj1]);this.setNormalDistExtPoints([iWCPntHC0,iWCPntHC0,iWCPntHC1,iWCPntHC1]);this.avoidDuplication()};MeasureAuxDistance.prototype.setByPointLine=function(iPntWCHC,iSelObj0,iEdgeHC,iSelObj1,isSomeCoordsArcCenters){if(isSomeCoordsArcCenters===void 0){isSomeCoordsArcCenters=false}var pickPntWCHC=iSelObj1.getPosition();var endPntsWCHC=l_getLineEndPts(iSelObj1);var vecWCHC=eDwTypes_1.HC.Point3.subtract(endPntsWCHC.P0HC,endPntsWCHC.P1HC);if(vecWCHC.length()<1e-6)return;vecWCHC.normalize();var k=eDwTypes_1.HC.Point3.dot(eDwTypes_1.HC.Point3.subtract(iPntWCHC,pickPntWCHC),vecWCHC);var basePntWCHC=eDwTypes_1.HC.Point3.add(pickPntWCHC,eDwTypes_1.HC.Point3.scale(vecWCHC,k));var vecWCHC0=eDwTypes_1.HC.Point3.subtract(endPntsWCHC.P0HC,basePntWCHC);var vecWCHC1=eDwTypes_1.HC.Point3.subtract(endPntsWCHC.P1HC,basePntWCHC);if(eDwTypes_1.HC.Point3.dot(vecWCHC0,vecWCHC1)<0){this.setByPointPoint(iPntWCHC,iSelObj0,basePntWCHC,iSelObj1,isSomeCoordsArcCenters)}else{this.reset();var pntWCHC=vecWCHC0.length()normalDist){result.push(cDistance+": "+labelData[cDistance].Value)}if(this.mNDistLine.getWCDeltaEnds().length&&normalDist){result.push((this.mNDistLine.LineNormal?"Normal ":"")+cDistance+": "+labelData[cDistance].Value)}var minDistResultItem=labelData[cMinDistance];if(minDistResultItem){result.push(cMinDistance+": "+minDistResultItem.Value)}var maxDistResultItem=labelData[cMaxDistance];if(maxDistResultItem){result.push(cMaxDistance+": "+maxDistResultItem.Value)}if(eDwMeasureEntities.ShowDelta){var nDeltaPt=this.mNDistLine.getDelta();var deltaPt=this.mNDistLine.LineNormal?this.mDistLine.getDelta():nDeltaPt;if(!deltaPt.equalsWithTolerance(eDwTypes_1.HC.Point3.zero(),cLengthTol)){result.push(distLine.getText())}}return result.join("\n")};MeasureAuxDistance.getAngle=function(iV0,iV1){var vec0=iV0.copy();var vec1=iV1.copy();vec0.normalize();vec1.normalize();var dotVal=eDwTypes_1.HC.Point3.dot(vec0,vec1);if(0===dotVal)return 90;dotVal=Math.min(dotVal,1);dotVal=Math.max(dotVal,-1);var angle=Math.acos(dotVal);var angleDgree=angle*180/Math.PI;var n=eDwTypes_1.HC.Point3.cross(vec0,vec1);n.normalize();if(isNaN(n.x)||isNaN(n.y)||isNaN(n.z))return 0;return angleDgree};MeasureAuxDistance.prototype.setMinMaxForCircles=function(iCircleHC0,iCircleHC1){function setMinMax(ioAuxDelta,iNominalDist,iRadiiDist){if(!ioAuxDelta.getWCDeltaEnds().length){return}if(iNominalDist>iRadiiDist){ioAuxDelta.setMinDist(iNominalDist-iRadiiDist)}ioAuxDelta.setMaxDist(iNominalDist+iRadiiDist)}var circlePlaneHC0=eDwTypes_1.HC.Plane.createFromPointAndNormal(iCircleHC0.origin,iCircleHC0.normal);var projPnt=eDwGeomUtils.dropPointOnPlane(iCircleHC1.origin,circlePlaneHC0);var dot=eDwTypes_1.HC.Point3.dot(iCircleHC0.normal,iCircleHC1.normal);var dist=projPnt.subtract(iCircleHC0.origin).length();console.debugLog("Measure","2 circles/arcs: dot = "+dot+" dist = "+dist);if(1-Math.abs(dot)cLengthTol){var radiiDist=iCircleHC0.radius+iCircleHC1.radius;setMinMax(this.mDistLine,dist,radiiDist);setMinMax(this.mNDistLine,dist,radiiDist)}};MeasureAuxDistance.prototype.avoidDuplication=function(){var delta0=this.mDistLine.getDelta();var delta1=this.mNDistLine.getDelta();var len0=delta0.length();var len1=delta1.length();var lenMax=Math.max(len0,len1);var lenDiff=Math.abs(len0-len1);if(0===lenMax||lenDiff/lenMax1){this.addDisplayMarker(iSelObjs[0]);delete this.mDelta;delete this.mDistLine}this.addDisplayMarker(iSelObjs[n-1]);if(eDwMeasureEntities.PointToPoint&&this.mPntData.length===2){var selObj0=this.mPntData[0].SelObj;var selObj1=this.mPntData[1].SelObj;var pntWCHC0=selObj0.getPosition();var pntWCHC1=selObj1.getPosition();var absLenTol=eDwGeomUtils.cAbsLengthTol;if(!pntWCHC0.equalsWithTolerance(pntWCHC1,absLenTol)){this.mDistLine=new MeasureDistLine(this.mViewer,pntWCHC0,selObj0,pntWCHC1,selObj1);this.mDistLine.draw();this.mDelta=MeasureDelta.create(this.mViewer,pntWCHC1,pntWCHC0,selObj1,selObj0)}}};MeasureAuxPick.prototype.getText=function(){var text="";if(eDwMeasureEntities.PointToPoint){text=this.mDistResultText;if(this.mDelta)text+="\n"+this.mDelta.getText()}return text};MeasureAuxPick.prototype.addDisplayMarker=function(iSelObj){var cWidthEdge=3;var cPointSize=7;var pntWCHC=iSelObj.getPosition().copy();var shapeCircleHC=new eDwTypes_1.HC.Markup.Shape.Circle;shapeCircleHC.setCenter(eDwTypes_1.HC.Point2.fromPoint3(this.mViewer.getHCView().projectPoint(pntWCHC)));shapeCircleHC.setFillColor(cAuxPickPointFillColor);shapeCircleHC.setStrokeColor(cAuxPickPointStrokeColor);shapeCircleHC.setStrokeWidth(cWidthEdge);shapeCircleHC.setRadius(cPointSize);this.mPntData.push({SelObj:iSelObj,Circle:shapeCircleHC});return shapeCircleHC};MeasureAuxPick.prototype.drawEndPnts=function(){var viewHC=this.mViewer.getHCView();var renderer=this.mViewer.getHCMarkupManager().getRenderer();for(var i=0;i0?n-1:n}for(var i=startIdx;i0){labelsToBeDistributed=this.mInfoLabels.slice().concat(this.mResultLabels)}}this.distributeLabels(labelsToBeDistributed);if(!this.mImmediateDrawMode){this.addMarkupLabels()}};MeasureAuxGeo.prototype.updateLastInfoLabels=function(){this.updateInfoLabel(this.getLabels().length-1)};MeasureAuxGeo.prototype.updateInfoLabel=function(iIndex){this.mInfoLabels=[];function addTo(iCurrIndex,iLabels,ioLabels){if(iLabels.length>iCurrIndex&&iCurrIndex>=0){var label=iLabels[iCurrIndex];if(label.setDefaultEndPos()){label.setStringContent();ioLabels.push(label)}}}addTo(iIndex,this.getLabels(),this.mInfoLabels)};MeasureAuxGeo.prototype.getInfoLabelText=function(){var output=[];var labels=this.getLabels();for(var i=0;icAngleTol?angleRange+Math.PI:angleRange;var percRange=angleRange/(2*Math.PI);len*=percRange;area*=percRange;angle*=percRange}var circularArc={OriginWCHC:iSelObj.getAsLocalPoint(ioCircleHC.origin),NormalWCHC:ioCircleHC.normal,StartPtWCHC:startPt,EndPtWCHC:endPt,Length:len,Area:area,Diameter:ioCircleHC.radius*2,Angle:angle};return circularArc}function l_closestPoints(iPntHC0,iPntHC1){var pntHC0=iPntHC0[0].copy();var pntHC1=iPntHC1[0].copy();var minDist=eDwTypes_1.HC.Point3.subtract(iPntHC0[0],iPntHC1[0]).length();for(var i=0;i0||eDwTypes_1.HC.Point3.dot(vecL0P0HC,vecL0P1HC)>0){var closePnts=l_closestPoints(pntsL0HC,pntsL1HC);distPntHC0=closePnts.P0HC;distPntHC1=closePnts.P1HC}return{PntHC0:origPntHC0,PntHC1:origPntHC1,PntHC2:distPntHC0,PntHC3:distPntHC1}}function l_distanceLineLinePara(iLineHC0,iLineHC1,iPntHC0,iPntHC1){var vecHC0=eDwTypes_1.HC.Point3.subtract(iLineHC0.P0HC,iLineHC0.P1HC);vecHC0.normalize();var k=eDwTypes_1.HC.Point3.dot(vecHC0,eDwTypes_1.HC.Point3.subtract(iPntHC1,iPntHC0))/eDwTypes_1.HC.Point3.dot(vecHC0,vecHC0);var basePnt1HC=eDwTypes_1.HC.Point3.add(iPntHC0,eDwTypes_1.HC.Point3.scale(vecHC0,k));var vecL0P0HC=eDwTypes_1.HC.Point3.subtract(iLineHC0.P0HC,basePnt1HC);var vecL0P1HC=eDwTypes_1.HC.Point3.subtract(iLineHC0.P1HC,basePnt1HC);if(eDwTypes_1.HC.Point3.dot(vecL0P0HC,vecL0P1HC)<0){return{PntHC0:basePnt1HC.copy(),PntHC1:iPntHC1.copy(),PntHC2:basePnt1HC.copy(),PntHC3:iPntHC1.copy()}}var tmp=l_closestPoints([iLineHC1.P0HC,iLineHC1.P1HC],[iLineHC0.P0HC,iLineHC0.P1HC]);return{PntHC0:basePnt1HC.copy(),PntHC1:iPntHC1,PntHC2:tmp.P1HC,PntHC3:tmp.P0HC}}function l_adjustLeaderEndByStart(iPoints){if(0===iPoints.length)return[];function computeAngle(iVect){var angle=Math.atan2(iVect.y,iVect.x);var degrees=180*angle/Math.PI;return(360+Math.round(degrees))%360}function compare(iA,iB){if(iA.angiB.ang)return 1;return 0}var targetRadius=90;var center=new eDwTypes_1.HC.Point2(0,0);for(var i=0;i-1){this.mSelObjs.splice(idx,1)}}return[2]}}))}))})()};eDwMeasureOperator.prototype.clearMeasureEntities=function(){this.mMeasureEntities.reset()};eDwMeasureOperator.prototype.highlightEntityTempAt=function(idx){this.mMeasureEntities.highlightTemporaryEntityAt(idx)};eDwMeasureOperator.prototype.dehighlightAllTemporaryEntity=function(){this.mMeasureEntities.dehighlightAllTemporaryEntity();this.resetTempHighlight()};eDwMeasureOperator.prototype.getMeasureMode=function(){return this.mMeasureMode};eDwMeasureOperator.prototype.setMeasureMode=function(iMode){this.mMeasureMode=iMode};eDwMeasureOperator.prototype.setPointToPointMode=function(iEnable){this.mMeasureEntities.updatePointToPoint(iEnable)};eDwMeasureOperator.prototype.setShowDelta=function(iEnable){this.mMeasureEntities.updateDelta(iEnable)};eDwMeasureOperator.prototype.highlightMeasuringItem=function(iSelObj){this.mSelObjs.push(iSelObj);this.Viewer.HCViewer.selectionManager.add(iSelObj)};eDwMeasureOperator.prototype.dehighlightMeasuringItems=function(){this.mSelObjs=[];this.Viewer.HCViewer.selectionManager.clear()};eDwMeasureOperator.prototype.removeMeasuringItemTempHighlight=function(){for(var _i=0,_a=this.mSelObjs;_i<_a.length;_i++){var selObj=_a[_i];eDwMeasureEntities.highlightEntity(selObj,this.Viewer.getModel(),false)}};eDwMeasureOperator.prototype.resetTempHighlight=function(){eDwMeasureEntities.highlightEntity(this.mTempHighlightItem,this.Viewer.getModel(),false);this.removeMeasuringItemTempHighlight()};eDwMeasureOperator.prototype.resetSelections=function(){var model=this.Viewer.getModel();var modelHC=model.getHCModel();var arraySize=this.mSelectionArray.length;for(var i=0;i"+"
"+""+entityClass+"-"+entityIndex+" "+""+desc+"
"+"
";_b.label=10;case 10:++i;return[3,1];case 11:return[2,generatedHTML]}}))}))};return eDwUIMeasureHTMLGenerator}(eDwUIHTMLGenerator_1.eDwUIHTMLGenerator);return eDwUIMeasureHTMLGenerator}));define("eDwUIMeasurePlugin",["require","exports","eDwEventMgr","eDwKeyMgr","eDwUIUtils","eDwMeasureMgr","eDwUIMeasureHTMLGenerator","eDwTypes","eDwUIBasePlugin","eDwEvents","eDwMeasureEvents","eDwUIShortcutMenu"],(function(require,exports,eDwEventMgr,eDwKeyMgr_1,eDwUIUtils,eDwMeasureMgr,eDwUIMeasureHTMLGenerator,eDwTypes_3,eDwUIBasePlugin_1,eDwEvents_2,eDwMeasureEvents_2,eDwUIShortcutMenu_1){"use strict";var eDwUIMeasurePlugin=function(_super){__extends(eDwUIMeasurePlugin,_super);function eDwUIMeasurePlugin(iViewer,iViewerFeatOpts){var _this=this;var buttonInfo={ID:"#edrawings-button-measure"};_this=_super.call(this,"Measure",iViewer,buttonInfo,iViewerFeatOpts)||this;_this.initPluginButton();return _this}eDwUIMeasurePlugin.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var panelsToLoad,model,value,measureButton;return __generator(this,(function(_a){switch(_a.label){case 0:panelsToLoad=[{ID:c_measurePanelID,HTML:"measurepanel.html"}];return[4,_super.prototype.init.call(this,panelsToLoad)];case 1:_a.sent();model=this.mViewer.getModel();value=model.getProperty("measure");eDwUIUtils.hide("#edrawings-button-measure",false);measureButton=$("#edrawings-button-measure");measureButton[value==="true"?"removeClass":"addClass"]("edrawings-disabled-button");this.mMeasureMgr=new eDwMeasureMgr(this.mViewer);eDwUIUtils.setUIGenerator(c_measurePanelID,new eDwUIMeasureHTMLGenerator(this.mViewer,c_measurePanelID));return[2]}}))}))};eDwUIMeasurePlugin.prototype.onClick=function(iActivate){_super.prototype.onClick.call(this,iActivate);if(iActivate){eDwUIUtils.activateUI(this.PluginButtonID,c_measurePanelID)}};eDwUIMeasurePlugin.prototype.onActivate=function(iButtonJQ){var _this=this;if(!_super.prototype.onActivate.call(this,iButtonJQ))return false;eDwUIUtils.addPanelModeEvents(c_measurePanelID,c_eventIDSuffix,"#"+iButtonJQ.attr("id"));var shortcutMenu=eDwUIShortcutMenu_1.eDwUIShortcutMenu.get();if(!shortcutMenu.isEmpty()){shortcutMenu.addMenuSeparator(this.PluginGroupName)}shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-measure-remove",(function(iEvent,iUIItemJQ,iArg){var selMeasureItem=$(c_measurePanelID+" .edrawings-list-selected");if(selMeasureItem){var indexStr=selMeasureItem.attr("index");if(indexStr){var index=parseInt(indexStr);_this.mMeasureMgr.removeMeasureEntityAt(index)}}eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide()}));shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-measure-clear",(function(iEvent,iUIItemJQ,iArg){_this.mMeasureMgr.clearMeasureEntities();_this.mMeasureMgr.dehighlightAllSelectEntity();eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide()}));var selectorName=c_measurePanelID+" .edrawings-measure-entities-list-item";this.mUIHTMLEventMgr.addDelegatedEventHandler(selectorName,"click",(function(iEvent){var targetJQ=$(iEvent.target);if(!targetJQ||!targetJQ.length)return;eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide();_this.updateMeasureSelection(targetJQ[0],selectorName)}));this.mUIHTMLEventMgr.addDelegatedEventHandler(selectorName,"mousedown",(function(iEvent){var eventJQ=iEvent;if(!eDwKeyMgr_1.eDwKeyMgr.isRMBPressed(eventJQ)){return}_this.updateMeasureSelection(eventJQ.target,selectorName);(function(){return __awaiter(_this,void 0,void 0,(function(){var screenPos;return __generator(this,(function(_a){switch(_a.label){case 0:screenPos=new eDwTypes_3.HC.Point2(eventJQ.clientX,eventJQ.clientY);return[4,eDwEventMgr.get().fireEvent(eDwEvents_2.RightClickEvent,this.mViewer,screenPos,null,this.PluginGroupName)];case 1:_a.sent();return[2]}}))}))})()}));this.mUIHTMLEventMgr.addDelegatedEventHandler(c_measurePanelID+" .edrawings-measure-entities-remove","click",(function(iEvent){var targetJQ=$(iEvent.target);var idxStr=targetJQ.parent().attr("index");if(!idxStr)return;var idx=parseInt(idxStr,10);_this.mMeasureMgr.removeMeasureEntityAt(idx)}));this.mUIHTMLEventMgr.addDelegatedEventHandler(c_measurePanelID+" .measure-filter-button","click",(function(iEvent){var target=$(iEvent.target);if(target.hasClass("state-on-button")){target.removeClass("state-on-button")}else{target.addClass("state-on-button")}_this.mMeasureMgr.setMeasureMode(l_getCurrentMeasureMode())}));this.mUIHTMLEventMgr.addDelegatedEventHandler(c_measurePanelID+" .edrawings-measure-delta-button","click",(function(iEvent){var target=$(iEvent.target);_this.mMeasureMgr.setMeasureDelta(!target.hasClass("state-on-button"));target.toggleClass("state-on-button")}));this.mUIHTMLEventMgr.addDelegatedEventHandler(c_measurePanelID+" .edrawings-measure-pickpoint-button","click",(function(iEvent){var target=$(iEvent.target);var isSelected=target.hasClass("state-on-button");_this.mMeasureMgr.setPointToPointMode(!isSelected);target.toggleClass("state-on-button")}));this.mUIHTMLEventMgr.addDelegatedEventHandler(c_measurePanelID+" .measure-unit-selector","change",(function(iEvent){var lengthUnit=$("#edrawings-measure-distant-unit").val();var angleUnit=$("#edrawings-measure-angle-unit").val();_this.mMeasureMgr.setMeasureUnits(lengthUnit,angleUnit)}));var eventMgr=eDwEventMgr.get();eventMgr.addEventHandlerFunc(eDwMeasureEvents_2.MeasurementRefreshEvent,l_onMeasurementRefresh);eventMgr.addEventHandlerFunc(eDwMeasureEvents_2.MeasurementSelectionEvent,l_onMeasurementSelected);eventMgr.addEventHandlerFunc(eDwMeasureEvents_2.MeasurementDeselectAllEvent,l_onMeasurementDeselectAll);this.addAppObjEvent(eDwEvents_2.ModelViewChangeEvent,"onModelViewChange",true);this.mMeasureMgr.activateMeasure(this.mMeasureMgr.getMeasureMode());l_syncMeasureModeUI(this.mMeasureMgr,this.mViewer.getModel().getUserUnits());return true};eDwUIMeasurePlugin.prototype.onDeactivate=function(iButtonJQ){if(!_super.prototype.onDeactivate.call(this,iButtonJQ))return false;eDwUIUtils.deactivateMoveInput(c_eventIDSuffix);this.mMeasureMgr.deactivateMeasure();var shortcutMenu=eDwUIShortcutMenu_1.eDwUIShortcutMenu.get();shortcutMenu.removeAllMenuItems(this.PluginGroupName);this.mUIHTMLEventMgr.removeAllEventHandlers();var eventMgr=eDwEventMgr.get();eventMgr.removeEventHandlerFunc(eDwMeasureEvents_2.MeasurementRefreshEvent,"l_onMeasurementRefresh");eventMgr.removeEventHandlerFunc(eDwMeasureEvents_2.MeasurementSelectionEvent,"l_onMeasurementSelected");eventMgr.removeEventHandlerFunc(eDwMeasureEvents_2.MeasurementDeselectAllEvent,"l_onMeasurementDeselectAll");this.addAppObjEvent(eDwEvents_2.ModelViewChangeEvent,"onModelViewChange",false);return true};eDwUIMeasurePlugin.prototype.updateMeasureSelection=function(iTarget,iSelectorName){var targetJQ=$(iTarget);var idxStr=targetJQ.attr("index");if(!idxStr)return;var idx=parseInt(idxStr,10);var measureMgr=this.mMeasureMgr;$(iSelectorName).removeClass("edrawings-list-selected");measureMgr.dehighlightAllSelectEntity();targetJQ.addClass("edrawings-list-selected");measureMgr.highlightSelectEntityAt(idx)};eDwUIMeasurePlugin.prototype.onModelViewChange=function(iViewer,iNewModelView,iIsAssembly){this.mMeasureMgr.dehighlightAllSelectEntity();this.mMeasureMgr.clearMeasureEntities()};return eDwUIMeasurePlugin}(eDwUIBasePlugin_1.eDwUIBasePlugin);var c_measurePanelID="#edrawings-measure-panel";var c_eventIDSuffix=".edw.measure";function l_onMeasurementDeselectAll(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){$(".edrawings-measure-entities-list-item").removeClass("edrawings-list-selected");return[2]}))}))}function l_onMeasurementSelected(iSelListIndex){return __awaiter(this,void 0,void 0,(function(){var selector,itemJQ;return __generator(this,(function(_a){selector='.edrawings-measure-entities-list-item[index="'+iSelListIndex+'"]';itemJQ=$(selector);if(itemJQ.length&&!itemJQ.hasClass("edrawings-list-selected")){eDwUIUtils.scrollToTarget(itemJQ,"fast")}$(".edrawings-measure-entities-list-item").removeClass("edrawings-list-selected");itemJQ.addClass("edrawings-list-selected");return[2]}))}))}function l_onMeasurementRefresh(iMeasureResult){return __awaiter(this,void 0,void 0,(function(){var list,gen,_a,_b;return __generator(this,(function(_c){switch(_c.label){case 0:list=$("#edrawings-measure-submenu-list");$("#edrawings-measure-result").text("");list.empty();$("#edrawings-measure-result").text(iMeasureResult.Message);gen=eDwUIUtils.getUIGenerator(c_measurePanelID);gen.setMeasureResult(iMeasureResult);_b=(_a=list).append;return[4,gen.generateHTML("")];case 1:_b.apply(_a,[_c.sent()]);eDwUIUtils.fixMenuPanelInwardToolbar($(c_measurePanelID));return[2]}}))}))}function l_getCurrentMeasureMode(){var vertexEnabled=eDwUIUtils.isStateOn("#edrawings-measure-vertex-button")?eDwTypes_3.EntityMode.VERTEX:0;var edgeEnabled=eDwUIUtils.isStateOn("#edrawings-measure-edge-button")?eDwTypes_3.EntityMode.EDGE:0;var faceEnabled=eDwUIUtils.isStateOn("#edrawings-measure-face-button")?eDwTypes_3.EntityMode.FACE:0;var holeEnabled=eDwUIUtils.isStateOn("#edrawings-measure-hole-button")?eDwTypes_3.EntityMode.HOLE:0;return vertexEnabled|edgeEnabled|faceEnabled|holeEnabled}function l_syncMeasureModeUI(iMeasureMgr,iUserUnits){function setMeasureButton(iID,iMeasureModes,iTargetModes){var method=iMeasureModes&iTargetModes?"addClass":"removeClass";$(iID)[method]("state-on-button")}$("#edrawings-measure-distant-unit").val(iUserUnits.Length);$("#edrawings-measure-angle-unit").val(iUserUnits.Angle);var measureMode=iMeasureMgr.getMeasureMode();setMeasureButton("#edrawings-measure-vertex-button",measureMode,eDwTypes_3.EntityMode.VERTEX);setMeasureButton("#edrawings-measure-edge-button",measureMode,eDwTypes_3.EntityMode.EDGE);setMeasureButton("#edrawings-measure-face-button",measureMode,eDwTypes_3.EntityMode.FACE)}return eDwUIMeasurePlugin})); // Copyright 2018-2021 Dassault Systemes SolidWorks Corporation. All rights reserved. -var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};var __generator=this&&this.__generator||function(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]-1){return}var augmentedMsg=iMsg;var stack=(new Error).stack;if(stack){var stackLine=stack.split("\n")[2];if(!stackLine)return;var callerLine=stackLine.slice(stackLine.lastIndexOf("("),stackLine.lastIndexOf(")")+1);if(!callerLine){callerLine=stackLine.slice(stackLine.lastIndexOf("@")+1);callerLine="("+callerLine+")"}augmentedMsg=callerLine+" "+iMsg}if(console.debugLogCategories.indexOf(iCategory)>-1||console.debugLogCategories.indexOf("*")>-1){if(iParams&&iParams.length)console.log(augmentedMsg,iParams);else console.log(augmentedMsg)}};define("eDrawingsWebViewer",["require","exports","eDwUI","eDwServiceMgr","eDwUIMessageReporter","eDrawingsWebViewerUtils","utils","eDwUIUtils"],(function(require,exports,eDwUI_1,eDwServiceMgr,eDwUIMessageReporter,eDrawingsWebViewerUtils,Utils,eDwUIUtils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.start=void 0;function start(iViewerOpts,iServerURL){eDrawingsWebViewerUtils.startViewer(iServerURL||c_server,"edrawings-canvas",iViewerOpts,l_init,eDwUIMessageReporter.showResultPanel)}exports.start=start;function l_init(ioViewerOpts,iContainerElemID){c_eDrawingsUI.initUIEvents(ioViewerOpts);var modelContents="VgAAAEQAAABFAAAA/v///wAAAABlAAAA/v///wIAAAAJAAAEAAAAAP3////9////MwAAAP7////9////AAAAAAMAAABjAAAAAAAAAAIAAAAAAAAAAAAAoLx78r8AAAAgn1HXPwAAAEAc0PG/AAAAAAAAAAAAAABg2w6zvwAAAAAAAAAAAAAAQJX+yj8AAABgJ9ruPwAAAMBSocQ/AAAAIMtG5j8AAABge27VP2UAAAD+////AgAAAAkAAAQAAAAA/f////3///9lAAAA/f///wIAAAALAAAEAAAAAP7///8BAAAATgAAAP3///9YAAAA/v///wAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAGkAAAD+/////f////7///8zAAAA/f////////8AAAAAAgAAAG8AAABAAAAAAQAAAN4AAABPAAAAFQAAAN4AAAAAAAAA//////////9mZma+VJEvvmZmZr5mZmY+ydO4PGZmZj5CAAAAZmZmvlSRL75mZma+ZmZmPsnTuDxmZmY+AAAAAEIAAABmZma+VJEvvmZmZr5mZmY+ydO4PGZmZj7eAAAARAAAAFwEAABaAAAAAQAAAEkEAAD0DgAAKLUv/WD0Df0hADQmZAAAAP3///8BFgCAQAMAAgFkMhdBYEAIVEVNODE0NAACAgQA8D8eAEBARGVmYXVsdAACBVUCTW91bGQtN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bjJTeF9tE2s8ir3RDbhBZB1DmyDL5AFy6fyDGv///9UAAAAAAAAAAAAAAAAAAAA";if(modelContents!==""){eDwServiceMgr.get().disableAdvancedServices();ioViewerOpts.URL="";eDwUIUtils.viewFile("Mould-450-15",null,ioViewerOpts,iContainerElemID,Utils.getUint8Array(modelContents))}}var c_eDrawingsUI=new eDwUI_1.eDwUI;var c_server=location.origin+location.pathname.slice(0,location.pathname.lastIndexOf("/")+1)}));define("eDrawingsWebViewerUtils",["require","exports","eDwEventMgr","eDwServiceMgr","eDwResultError","eDwAJAXError","eDwUIPluginMgr","eDwTypes","eDwEvents","eDwUIUtils","utils"],(function(require,exports,eDwEventMgr,eDwServiceMgr,eDwResultError,eDwAJAXError,eDwUIPluginMgr,eDwTypes_1,eDwEvents_1,eDwUIUtils,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.removeModelStreamCache=exports.shutdownViewer=exports.startViewer=exports.getViewerVersion=void 0;function getViewerVersion(){return"30.5.0.0019"}exports.getViewerVersion=getViewerVersion;function startViewer(iServerURL,iCanvasID,iViewerOpts,iInit,iOnError){var _this=this;l_ModelLoadEvents=function(iState){var viewerCanvasID="#"+iCanvasID;if(iState==="init"){var viewerJQ=$(viewerCanvasID);viewerJQ.on("edw:ModelLoaded",(function(iEvent,iViewer){var viewHC=iViewer.getHCView();viewHC.setPointSize(0,eDwTypes_1.HC.PointSizeUnit.ScreenPixels);viewHC.setHardEdgesEnabled(false);(function(){return __awaiter(_this,void 0,void 0,(function(){var iExcp_1;return __generator(this,(function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);return[4,l_processProductStructure(iViewer,iServerURL)];case 1:_a.sent();return[3,3];case 2:iExcp_1=_a.sent();l_displayError(iExcp_1,iOnError);return[3,3];case 3:return[2]}}))}))})()}));viewerJQ.on("edw:ModelLoadFailed",(function(iEvent,iViewer,iModelName,iReason){if(iOnError){iOnError({ErrorCode:"ModelLoadInViewerFailed",ErrorData:[iReason,iModelName]})}}))}else{var viewerJQ=$(viewerCanvasID);viewerJQ.off("edw:ModelLoaded");viewerJQ.off("edw:ModelLoadFailed")}};var viewerFeatOpts={};$.extend(viewerFeatOpts,c_featOps);if(iViewerOpts){$.extend(viewerFeatOpts,iViewerOpts)}else{eDwUIUtils.getRequestedQueryStringParams(location.href,viewerFeatOpts)}if(viewerFeatOpts.Debug){if(!console.debugLogCategories||console.debugLogCategories.length===0){console.debugLogCategories=[];console.debugLogCategories.push("*")}}eDwServiceMgr.create(iServerURL);(function(){return __awaiter(_this,void 0,void 0,(function(){var iExcp_2;return __generator(this,(function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);l_ModelLoadEvents("init");return[4,l_init(iCanvasID,viewerFeatOpts,iInit)];case 1:_a.sent();return[3,3];case 2:iExcp_2=_a.sent();l_displayError(iExcp_2,iOnError);return[3,3];case 3:return[2]}}))}))})()}exports.startViewer=startViewer;function shutdownViewer(iViewer){l_ModelLoadEvents("shutdown");iViewer.unregister()}exports.shutdownViewer=shutdownViewer;function removeModelStreamCache(iViewer,iServer){return __awaiter(this,void 0,void 0,(function(){var modelKey,serviceMgr,iExcp_3;return __generator(this,(function(_a){switch(_a.label){case 0:modelKey=iViewer.getCurrModelKey();if(!modelKey||!iViewer.ViewerFeatureOpts.DeleteModelCacheFileWhenDone){return[2]}console.debugLog("ModelLoad","Attempting to remove cached model: "+modelKey);serviceMgr=eDwServiceMgr.get();_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,serviceMgr.removeNamedCache(modelKey,iViewer.ViewerFeatureOpts.DeleteModelCacheFileWhenDone)];case 2:_a.sent();console.debugLog("ModelLoad","Removed cached model: "+modelKey);return[3,4];case 3:iExcp_3=_a.sent();console.debugLog("ModelLoad","Failed to remove cached model: "+modelKey);console.debugLog("ModelLoad",iExcp_3.message);throw iExcp_3;case 4:return[2]}}))}))}exports.removeModelStreamCache=removeModelStreamCache;function l_init(iContainerElemID,ioViewerOpts,iInit){return __awaiter(this,void 0,void 0,(function(){var serviceMgr;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:serviceMgr=eDwServiceMgr.get();serviceMgr.disableAdvancedServices(utils.getExtension(ioViewerOpts.URL)==="scs");(function(){return __awaiter(_this,void 0,void 0,(function(){var pluginFiles,_i,pluginFiles_1,pluginFile,pluginClassName;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,serviceMgr.getPluginFiles()];case 1:pluginFiles=_a.sent();_i=0,pluginFiles_1=pluginFiles;_a.label=2;case 2:if(!(_i-1))return[3,4];return[4,exclusiveCmds[i].commit()];case 2:_a.sent();_a.label=3;case 3:--i;return[3,1];case 4:this.mActiveCmds=this.mActiveCmds.filter((function(iCmd){return!iCmd.Exclusive}));_a.label=5;case 5:return[2]}}))}))};eDwCommandMgr.prototype.detach=function(iCmd){var cmdPos=this.mActiveCmds.indexOf(iCmd);if(cmdPos===-1)return false;var removedCmds=this.mActiveCmds.splice(cmdPos,1);return removedCmds.length===1?true:false};return eDwCommandMgr}();return eDwCommandMgr}));define("eDwCompositeCmd",["require","exports","eDwSupportsHistoryCmd","eDwHistoryMgr","eDwCommandMgr","utils"],(function(require,exports,eDwSupportsHistoryCmd,eDwHistoryMgr,eDwCommandMgr,Utils){"use strict";var eDwCompositeCmd=function(_super){__extends(eDwCompositeCmd,_super);function eDwCompositeCmd(iViewer){var _this=_super.call(this,iViewer)||this;_this.mSubCmds=[];eDwHistoryMgr.get().pushStack();return _this}eDwCompositeCmd.prototype.initCmdActionImplementation=function(iHistoryActions){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mCmdHistoryActions=iHistoryActions;if(!(this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeInit))return[3,2];return[4,this.mCmdHistoryActions.compositeInit(this)];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))};eDwCompositeCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){var actionExists,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!_super.prototype.undo.call(this))return[2,false];actionExists=this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeUndo;if(!actionExists)return[3,2];return[4,this.mCmdHistoryActions.compositeUndo(this)];case 1:_a=_b.sent();return[3,4];case 2:return[4,this.undoSubCmds()];case 3:_a=_b.sent();_b.label=4;case 4:return[2,_a]}}))}))};eDwCompositeCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){var actionExists,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!_super.prototype.redo.call(this))return[2,false];actionExists=this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeRedo;if(!actionExists)return[3,2];return[4,this.mCmdHistoryActions.compositeRedo(this)];case 1:_a=_b.sent();return[3,4];case 2:return[4,this.redoSubCmds()];case 3:_a=_b.sent();_b.label=4;case 4:return[2,_a]}}))}))};eDwCompositeCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mSubCmds=eDwHistoryMgr.get().popStack();return[4,_super.prototype.commit.call(this)];case 1:_a.sent();if(!(this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeCommit))return[3,3];return[4,this.mCmdHistoryActions.compositeCommit(this)];case 2:_a.sent();_a.label=3;case 3:return[2]}}))}))};eDwCompositeCmd.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mSubCmds=eDwHistoryMgr.get().popStack();return[4,_super.prototype.cancel.call(this)];case 1:_a.sent();if(!(this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeCancel))return[3,3];return[4,this.mCmdHistoryActions.compositeCancel(this)];case 2:_a.sent();return[3,5];case 3:return[4,this.cancelSubCmds()];case 4:_a.sent();_a.label=5;case 5:this.clearSubCmds();return[2]}}))}))};eDwCompositeCmd.prototype.isCommitted=function(){return _super.prototype.isCommitted.call(this)&&!(this.InitialState===undefined)&&!(this.FinalState===undefined)};Object.defineProperty(eDwCompositeCmd.prototype,"AllowsAggregation",{get:function(){return true},enumerable:false,configurable:true});eDwCompositeCmd.prototype.undoSubCmds=function(){return __awaiter(this,void 0,void 0,(function(){var isSuccessful,lastCmdIndex,i,cmd,ret;return __generator(this,(function(_a){switch(_a.label){case 0:isSuccessful=true;lastCmdIndex=this.mSubCmds.length-1;i=lastCmdIndex;_a.label=1;case 1:if(!(i>-1))return[3,4];cmd=this.mSubCmds[i];return[4,cmd.undo()];case 2:ret=_a.sent();console.debugLog("History","Undo subcommand history at index "+i+(ret?" succeeded.":" failed.")+" Object Type = "+Utils.getObjectTypeName(cmd)+".");if(!ret){isSuccessful=false}_a.label=3;case 3:i--;return[3,1];case 4:return[2,isSuccessful]}}))}))};eDwCompositeCmd.prototype.cancelSubCmds=function(){return __awaiter(this,void 0,void 0,(function(){var cmdMgr,lastCmdIndex,i;return __generator(this,(function(_a){switch(_a.label){case 0:cmdMgr=eDwCommandMgr.get();lastCmdIndex=this.mSubCmds.length-1;i=lastCmdIndex;_a.label=1;case 1:if(!(i>-1))return[3,4];return[4,cmdMgr.remove(this.mSubCmds[i],"cancel")];case 2:_a.sent();_a.label=3;case 3:i--;return[3,1];case 4:delete this.InitialState;delete this.FinalState;return[2]}}))}))};eDwCompositeCmd.prototype.redoSubCmds=function(){return __awaiter(this,void 0,void 0,(function(){var isSuccessful,numCmds,i,cmd,ret;return __generator(this,(function(_a){switch(_a.label){case 0:isSuccessful=true;numCmds=this.mSubCmds.length;i=0;_a.label=1;case 1:if(!(i-1){eventHandlerMaps.splice(index,1);++numRemoved}}}return numRemoved};eDwEventMgr.prototype.removeAllEventHandlers=function(){this.mEventHandlers.clear()};eDwEventMgr.prototype.removeEventHandlers=function(iEvent){this.mEventHandlers.delete(iEvent)};eDwEventMgr.prototype.fireEvent=function(iEvent){var iArgs=[];for(var _i=1;_i-1){changedPropAttribNames.push(attribName)}}return changedPropAttribNames};eDwHierarchyNode.isHierarchyNode=function(iNode){return iNode.Name};eDwHierarchyNode.sPropagatingAttribNames=["Visible","Opaque"];return eDwHierarchyNode}();return eDwHierarchyNode}));define("eDwHistoryMgr",["require","exports","utils"],(function(require,exports,Utils){"use strict";var eDwHistoryMgr=function(){function eDwHistoryMgr(){this.clear()}eDwHistoryMgr.get=function(){if(!eDwHistoryMgr.sHistoryMgr){eDwHistoryMgr.sHistoryMgr=new eDwHistoryMgr}return eDwHistoryMgr.sHistoryMgr};eDwHistoryMgr.prototype.undo=function(){var currStacksElem=this.getCurrStackElem();var currStack=currStacksElem.Stack;var currStackCmdIndex=currStacksElem.getCurrCmdIndex();if(currStackCmdIndex<0||currStack.length===0){console.debugLog("History","Already before first command.");return null}currStacksElem.incrementCurrCmdIndex(-1);var cmd=currStack[currStackCmdIndex];cmd.undo();console.debugLog("History","Undoing command at index "+currStackCmdIndex+" Object type: "+Utils.getObjectTypeName(cmd));return cmd};eDwHistoryMgr.prototype.redo=function(){var currStacksElem=this.getCurrStackElem();var currStack=currStacksElem.Stack;var nextStackCmdIndex=currStacksElem.getCurrCmdIndex()+1;if(nextStackCmdIndex>=currStack.length){console.debugLog("History","Already after last command.");return null}currStacksElem.incrementCurrCmdIndex(1);var cmd=currStack[nextStackCmdIndex];cmd.redo();console.debugLog("History","Redoing command at index "+nextStackCmdIndex+" Object type: "+Utils.getObjectTypeName(cmd));return cmd};eDwHistoryMgr.prototype.push=function(iCmd){if(!iCmd)return;var currStacksElem=this.getCurrStackElem();var currStack=currStacksElem.Stack;var currStackSize=currStack.length;var currStackCmdIndex=currStacksElem.getCurrCmdIndex();if(currStackCmdIndex!==currStackSize-1){currStack.splice(currStackCmdIndex+1);console.debugLog("History","Truncated history to "+(currStackCmdIndex+1)+" elements.")}currStack.push(iCmd);currStacksElem.incrementCurrCmdIndex(1);console.debugLog("History","Adding command to history at index "+(currStackCmdIndex+1)+" Object Type = "+Utils.getObjectTypeName(iCmd)+".")};eDwHistoryMgr.prototype.clear=function(){console.debugLog("History","Clear all history.");this.mCmdStacksStack=[];this.pushStack()};eDwHistoryMgr.prototype.pushStack=function(){console.debugLog("History","Add a new history stack at index "+this.mCmdStacksStack.length+".");this.mCmdStacksStack.push(new eDwCmdStacksElem)};eDwHistoryMgr.prototype.popStack=function(){console.debugLog("History","Remove history stack from index "+(this.mCmdStacksStack.length-1)+" down to 0.");var activeCmds=[];var currStackElem=this.mCmdStacksStack.pop();if(currStackElem){var currCmdIndex=currStackElem.getCurrCmdIndex()+1;for(var i=0;i-1&&iKeyInfo[key]){keyModifiers+=key+"-"}}return keyModifiers?keyModifiers.substring(0,keyModifiers.length-1):"none"}}));define("eDwLayer",["require","exports","eDwNodeAttributes","utils"],(function(require,exports,eDwNodeAttributes_2,utils){"use strict";var eDwLayer=function(){function eDwLayer(iLayerName,iLayerIDHC,iAttribs){this.mName=iLayerName;this.mIDHC=iLayerIDHC;this.mInitAttribs=eDwNodeAttributes_2.eDwNodeAttributes.initAttribs(iAttribs);this.mAttribs=eDwNodeAttributes_2.eDwNodeAttributes.initAttribs(iAttribs);this.mNodeIDHCToHierNodeMap={}}eDwLayer.prototype.addNodes=function(iNodeIDsHC,iModel){for(var _i=0,iNodeIDsHC_1=iNodeIDsHC;_i.5){footVal*=signFactor;formattedString=utils.formatString("${footVal}ft ${formattedInches}",footVal.toFixed(0),formattedString)}return formattedString},area:function(iVal){var userUnits=_this.mUserUnits["Length"];var func=basicUserUnitResults[userUnits];var valueWithUnits=func.call(_this,iVal);return utils.formatString(cCommonUnitFormat,valueWithUnits,"^2")}};var unit=this.mUserUnits[iUnitType];unit=unit||iUnitType.toLowerCase();var func=basicUserUnitResults[unit];return func?func.call(this,iValue):iValue.toString()};eDwModel.prototype.setAttribOnHierNodes=function(iHierNodes,iAttribs){return __awaiter(this,void 0,void 0,(function(){var changedHierNodes,changedAncestorHierNodeMap,_i,iHierNodes_1,hierNode,changedAttribNames,propagatingAttribNames,changedChildHierNodes,parentHierNode,_a,propagatingAttribNames_1,attribName,attrib,parentAttrib,value,mergedAttrib,parentIDHC,parentIDHC,changedHierNodesAndAttribs,changedHCNodeID,ancHierNode;return __generator(this,(function(_b){switch(_b.label){case 0:changedHierNodes=[];changedAncestorHierNodeMap={};for(_i=0,iHierNodes_1=iHierNodes;_i0){var sceneData=$(data[0]);this.mOrigin=sceneData.attr("origin");switch(sceneData.attr("type")){case"drawing":this.mCategory="DRAWING";break;case"part":this.mCategory="PART";break;case"assembly":this.mCategory="ASSEMBLY";break;default:break}}this.mProperties=docJQ.find("property");var lengthUnit=this.getProperty("lengthunit");var isValidUnit=eDwUnits_1.LengthTypeValues.indexOf(lengthUnit)>-1;this.mUserUnits.Length=isValidUnit?lengthUnit:this.mUserUnits.Length;var angleUnit=this.getProperty("angleunit");isValidUnit=eDwUnits_1.AngleTypeValues.indexOf(angleUnit)>-1;this.mUserUnits.Angle=isValidUnit?angleUnit:this.mUserUnits.Angle;if(this.mCategory==="DRAWING"){this.parseModelViews(docJQ,"sheet","views","Unnamed Sheet","sheet");this.processLayers(iPropsMapHC)}else{this.parseModelViews(docJQ,"configuration","hierarchy","Unnamed Config","config");if(this.mCategory==="ASSEMBLY"){var modelViews=this.getModelViews();for(var _i=0,modelViews_3=modelViews;_i (HC values) | ";for(var _i=0,_a=this.mModelViews;_i<_a.length;_i++){var modelView=_a[_i];var nodeIDHC=modelView.Hierarchy.HOOPSID;msg+=modelView.Name+" - "+this.isVisibleForNodeHC(nodeIDHC)+" | "}console.debugLog("NodeVisibility",msg);console.debugLog("NodeVisibility","Active model view = "+this.mActiveModelView.Name);var hierNodes=this.mActiveModelView.getNodes();for(var _b=0,hierNodes_1=hierNodes;_b0&&ioHierachyNode){for(var i=0;i"){props.Name=props.Name.replace("<","<");props.Name=props.Name.replace(">",">")}props.Visible=trueFalseOrIndeterminate(iElemJQ.attr("visible"));props.Opaque=falseTrueOrIndeterminate(iElemJQ.attr("transparent"));props.Selectable=trueFalseOrIndeterminate(iElemJQ.attr("selectable"));props.HOOPSID=parseInt(iElemJQ.attr("id"),10)}return props}function l_getPropsAsAttribs(iNodeProps){var nodeAttribs={};eDwNodeAttributes_3.eDwNodeAttributes.setAttribs(nodeAttribs,iNodeProps);return nodeAttribs}function l_getDefaultCamera(iElemJQ){var perspectiveStr=iElemJQ.attr("camPerspective");if(!perspectiveStr)return undefined;var posPtHC=new eDwTypes_7.HC.Point3(parseFloat(iElemJQ.attr("camPosX")),parseFloat(iElemJQ.attr("camPosY")),parseFloat(iElemJQ.attr("camPosZ")));var tgtPtHC=new eDwTypes_7.HC.Point3(parseFloat(iElemJQ.attr("camTgtX")),parseFloat(iElemJQ.attr("camTgtY")),parseFloat(iElemJQ.attr("camTgtZ")));var upVecHC=new eDwTypes_7.HC.Point3(parseFloat(iElemJQ.attr("upX")),parseFloat(iElemJQ.attr("upY")),parseFloat(iElemJQ.attr("upZ")));var width=parseFloat(iElemJQ.attr("camFieldWidth"));var height=parseFloat(iElemJQ.attr("camFieldHeight"));var projHC=perspectiveStr==="true"?eDwTypes_7.HC.Projection.Perspective:eDwTypes_7.HC.Projection.Orthographic;return eDwTypes_7.HC.Camera.create(posPtHC,tgtPtHC,upVecHC,projHC,width,height)}function l_makeNodeAttribArray(iHierNodes,iAttrib,iIgnoreActive){if(iAttrib===void 0){iAttrib=null}if(iIgnoreActive===void 0){iIgnoreActive=true}return iHierNodes.map((function(iHierNode){var attrib={};$.extend(attrib,iHierNode.getAttribs(iIgnoreActive));if(iAttrib)$.extend(attrib,iAttrib);return{HierNode:iHierNode,Attribs:attrib}}))}function l_notifyModelViewChange(iViewer,iModelView,iIsPart){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_2.ModelViewChangeEvent,iViewer,iModelView,!iIsPart)];case 1:_a.sent();return[2]}}))}))}return eDwModel}));define("eDwModelView",["require","exports","eDwHierarchyNode"],(function(require,exports,eDwHierarchyNode){"use strict";var eDwModelView=function(){function eDwModelView(Name,Category,iAttribs,iNodeIDHC,iModel,iDefCameraHC){if(iDefCameraHC===void 0){iDefCameraHC=null}this.Name=Name;this.Category=Category;this.Nodes={};this.mDefCameraHC=iDefCameraHC;this.Hierarchy=new eDwHierarchyNode(this.Name,this.Category,iAttribs,iNodeIDHC,null,this);this.Model=iModel}eDwModelView.prototype.getNodes=function(){var hierNodes=[];for(var hierNodeName in this.Nodes){hierNodes.push(this.Nodes[hierNodeName])}return hierNodes};eDwModelView.prototype.getDefaultCamera=function(){return this.mDefCameraHC};eDwModelView.prototype.resetAttribs=function(){return this.Hierarchy.resetAttribs()};return eDwModelView}();return eDwModelView}));define("eDwMoveSectionPlaneCmd",["require","exports","eDwTypes","eDwSupportsHistoryCmd"],(function(require,exports,eDwTypes_8,eDwSupportsHistoryCmd){"use strict";var eDwMoveSectionPlaneCmd=function(_super){__extends(eDwMoveSectionPlaneCmd,_super);function eDwMoveSectionPlaneCmd(iViewer){var _this=_super.call(this,iViewer)||this;_this.mInitialPntOnPlane=_this.mViewer.XSectionMgr.projectPoint(new eDwTypes_8.HC.Point3(0,0,0));return _this}eDwMoveSectionPlaneCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){var altDir;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];altDir=this.mDir.copy().negate();this.mViewer.XSectionMgr.moveCurrentAlongNormal(altDir);return[2,true]}}))}))};eDwMoveSectionPlaneCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.moveCurrentAlongNormal(this.mDir);return[2,true]}}))}))};eDwMoveSectionPlaneCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mFinalPntOnPlane=this.mViewer.XSectionMgr.projectPoint(new eDwTypes_8.HC.Point3(0,0,0));this.mDir=this.mFinalPntOnPlane.subtract(this.mInitialPntOnPlane);return[2]}}))}))};eDwMoveSectionPlaneCmd.prototype.isCommitted=function(){return _super.prototype.isCommitted.call(this)&&!!this.mInitialPntOnPlane&&!!this.mFinalPntOnPlane};Object.defineProperty(eDwMoveSectionPlaneCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwMoveSectionPlaneCmd}(eDwSupportsHistoryCmd);return eDwMoveSectionPlaneCmd}));define("eDwNodeAttributes",["require","exports","utils"],(function(require,exports,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.NodeDisplayState=exports.eDwNodeAttributes=void 0;var eDwNodeAttributes=function(){function eDwNodeAttributes(){}eDwNodeAttributes.initAttribs=function(iSourceAttribs){var targetAttribs={};targetAttribs=eDwNodeAttributes.mergeAttribs(targetAttribs,iSourceAttribs);return targetAttribs};eDwNodeAttributes.setAttribs=function(ioTargetAttribs,iSourceAttribs){var changedAttribNames=[];for(var attribKey in iSourceAttribs){if(ioTargetAttribs[attribKey]!==iSourceAttribs[attribKey]){ioTargetAttribs[attribKey]=iSourceAttribs[attribKey];changedAttribNames.push(attribKey)}}return changedAttribNames};eDwNodeAttributes.mergeAttribs=function(ioTargetAttribs,iSourceAttribs){return eDwNodeAttributes.combineAttribs(ioTargetAttribs,iSourceAttribs,(function(iTargetValue,iSourceValue){return iTargetValue||iSourceValue}))};eDwNodeAttributes.intersectAttribs=function(iSrcAttrib1,iSrcAttrib2){return eDwNodeAttributes.combineAttribs(iSrcAttrib1,iSrcAttrib2,(function(iTargetValue,iSourceValue){return iTargetValue&&iSourceValue}))};eDwNodeAttributes.combineAttribs=function(iSrcAttrib1,iSrcAttrib2,iCombineFunc){var fullAttribs={};if(iSrcAttrib1&&iSrcAttrib2){fullAttribs=l_syncAttributeKeys(iSrcAttrib1,iSrcAttrib2);for(var attribKey in fullAttribs){var value=iCombineFunc(iSrcAttrib1[attribKey],iSrcAttrib2[attribKey]);if(value!==undefined)fullAttribs[attribKey]=value;else delete fullAttribs[attribKey]}}return utils.isEqual(fullAttribs,{})?undefined:fullAttribs};return eDwNodeAttributes}();exports.eDwNodeAttributes=eDwNodeAttributes;var NodeDisplayState;(function(NodeDisplayState){NodeDisplayState["Visible"]="Visible";NodeDisplayState["Invisible"]="Invisible";NodeDisplayState["Opaque"]="Opaque";NodeDisplayState["Transparent"]="Transparent"})(NodeDisplayState=exports.NodeDisplayState||(exports.NodeDisplayState={}));function l_syncAttributeKeys(ioTargetAttribs,iSourceAttribs){var attribs=$.extend({},ioTargetAttribs);for(var attribKey in iSourceAttribs){if(!attribs[attribKey]){attribs[attribKey]=undefined}}return attribs}}));define("eDwNodeColorInfo",["require","exports","eDwTypes"],(function(require,exports,eDwTypes_9){"use strict";var eDwNodeColorInfo=function(){function eDwNodeColorInfo(iNodeID,iSecondaryID,iColor,iType){this.mNodeID=iNodeID;this.mSecondID=iSecondaryID;this.mType=iType}eDwNodeColorInfo.prototype.reset=function(iModelHC){switch(this.mType){case eDwTypes_9.EntityMode.EDGE:iModelHC.unsetNodeLineColor(this.mNodeID,this.mSecondID);break;case eDwTypes_9.EntityMode.FACE:iModelHC.unsetNodeFaceColor(this.mNodeID,this.mSecondID);break;case eDwTypes_9.EntityMode.VERTEX:default:break}};return eDwNodeColorInfo}();return eDwNodeColorInfo}));define("eDwOperationMixin",["require","exports"],(function(require,exports){"use strict";var eDwOperationMixin=function(){function eDwOperationMixin(){this.mExclusive=true}Object.defineProperty(eDwOperationMixin.prototype,"Exclusive",{get:function(){return this.mExclusive},enumerable:false,configurable:true});Object.defineProperty(eDwOperationMixin.prototype,"AllowsAggregation",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(eDwOperationMixin.prototype,"Aggregable",{get:function(){return false},enumerable:false,configurable:true});return eDwOperationMixin}();return eDwOperationMixin}));define("eDwOperatorBaseDeps",["require","exports","eDwSelObj","eDwKeyMgr","eDwTypes","utils","eDwGeomUtils"],(function(require,exports,eDwSelObj,eDwKeyMgr_1,eDwTypes_10,utils,eDwGeomUtils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.eDwBaseOperator=exports.OperatorHC=exports.eDwOperatorMgr=void 0;var eDwOperatorMgr=function(){function eDwOperatorMgr(iViewer){this.mOpsData={};this.mOperatorMgrHC=iViewer.HCViewer.getOperatorManager();this.resetToDefault();var cameraZoomOp=this.mOperatorMgrHC.getOperator(eDwTypes_10.HC.OperatorId.Zoom);cameraZoomOp.setMouseWheelZoomInverted(false)}eDwOperatorMgr.prototype.registerCustomOperator=function(ioOp,iActivate){if(iActivate===void 0){iActivate=false}ioOp.OperatorID=this.mOperatorMgrHC.registerCustomOperator(ioOp);this.mOpsData[ioOp.OperatorID]={Op:ioOp,ActivatedByDefault:iActivate};if(iActivate)this.push(ioOp.OperatorID);return ioOp.OperatorID};eDwOperatorMgr.prototype.unregisterCustomOperator=function(iOp){this.unregisterCustomOperatorByID(iOp.OperatorID)};eDwOperatorMgr.prototype.unregisterCustomOperatorByID=function(iOpID){if(this.popToOp(iOpID)===iOpID){this.pop()}this.mOperatorMgrHC.unregisterCustomOperator(iOpID);delete this.mOpsData[iOpID]};eDwOperatorMgr.prototype.unregisterAll=function(){var _this=this;utils.forAll((function(iOpID,iOpData){_this.unregisterCustomOperatorByID(iOpID)}),this.mOpsData)};eDwOperatorMgr.prototype.push=function(iOpID){var activeOpID=this.getActiveOperatorID();if(activeOpID!==iOpID){return this.mOperatorMgrHC.push(iOpID)}return false};eDwOperatorMgr.prototype.pop=function(iOpID){var retOpID=eDwTypes_10.HC.OperatorId.None;if(!iOpID||iOpID&&this.getActiveOperatorID()===iOpID){retOpID=this.mOperatorMgrHC.pop()||eDwTypes_10.HC.OperatorId.None}return retOpID};eDwOperatorMgr.prototype.popToOp=function(iOpID){var retOpID=eDwTypes_10.HC.OperatorId.None;var opStackPos=this.mOperatorMgrHC.indexOf(iOpID);if(opStackPos>-1){while(this.getActiveOperatorID()!==iOpID){this.pop()}retOpID=iOpID}return retOpID};eDwOperatorMgr.prototype.getOperator=function(iOpID){return this.mOperatorMgrHC.getOperator(iOpID)};eDwOperatorMgr.prototype.getActiveOperatorID=function(){return this.mOperatorMgrHC.peek()};eDwOperatorMgr.prototype.getOperatorIndex=function(iOp){var opsStack=[];var numOps=this.mOperatorMgrHC.size();var index=-1;for(var i=0;i=0;i++){this.mOperatorMgrHC.push(opsStack[i])}return index};eDwOperatorMgr.prototype.setOpID=function(iOpID,iIndex){return this.mOperatorMgrHC.set(iOpID,iIndex)};eDwOperatorMgr.prototype.set=function(iOp,iIndex){return this.setOpID(iOp.OperatorID,iIndex)};eDwOperatorMgr.prototype.resetToDefault=function(){var _this=this;for(var opID=eDwTypes_10.HC.OperatorId.NavCube;opID>eDwTypes_10.HC.OperatorId.Navigate;opID--){this.pop(opID)}utils.forAll((function(iOpID,iOpData){if(iOpData.ActivatedByDefault){_this.push(iOpData.Op.OperatorID)}}),this.mOpsData)};return eDwOperatorMgr}();exports.eDwOperatorMgr=eDwOperatorMgr;var OperatorHC=function(){function OperatorHC(iOp){this.mOp=iOp;this.OperatorID=NaN}OperatorHC.prototype.onActivate=function(){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];_a=this.mOp.onActivate;if(!_a)return[3,2];return[4,this.mOp.onActivate()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onDeactivate=function(){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];_a=this.mOp.onDeactivate;if(!_a)return[3,2];return[4,this.mOp.onDeactivate()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMouseDown=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEvent)return[2];_a=this.mOp.onMouseDown;if(!_a)return[3,2];return[4,this.mOp.onMouseDown(ioMouseEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMouseMove=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEvent)return[2];_a=this.mOp.onMouseMove;if(!_a)return[3,2];return[4,this.mOp.onMouseMove(ioMouseEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMouseUp=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEvent)return[2];_a=this.mOp.onMouseUp;if(!_a)return[3,2];return[4,this.mOp.onMouseUp(ioMouseEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMousewheel=function(ioMouseEveent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEveent)return[2];_a=this.mOp.onMousewheel;if(!_a)return[3,2];return[4,this.mOp.onMousewheel(ioMouseEveent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onTouchStart=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioTouchEvent)return[2];_a=this.mOp.onTouchStart;if(!_a)return[3,2];return[4,this.mOp.onTouchStart(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onTouchMove=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioTouchEvent)return[2];_a=this.mOp.onTouchMove;if(!_a)return[3,2];return[4,this.mOp.onTouchMove(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onTouchEnd=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioTouchEvent)return[2];_a=this.mOp.onTouchEnd;if(!_a)return[3,2];return[4,this.mOp.onTouchEnd(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onKeyDown=function(ioKeyEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioKeyEvent)return[2];_a=this.mOp.onKeyDown;if(!_a)return[3,2];return[4,this.mOp.onKeyDown(ioKeyEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onKeyUp=function(ioKeyEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioKeyEvent)return[2];_a=this.mOp.onKeyUp;if(!_a)return[3,2];return[4,this.mOp.onKeyUp(ioKeyEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onViewOrientationChange=function(){return __awaiter(this,void 0,void 0,(function(){var op,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];op=this.mOp;_a=op.onViewOrientationChange;if(!_a)return[3,2];return[4,op.onViewOrientationChange()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.stopInteraction=function(){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];_a=this.mOp.stopInteraction;if(!_a)return[3,2];return[4,this.mOp.stopInteraction()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};return OperatorHC}();exports.OperatorHC=OperatorHC;var OperatorBaseHC=function(){function OperatorBaseHC(iViewer,iClickCB,iDoubleClickCB){this.Viewer=iViewer;this.CurrTouches=[];this.DragPt=undefined;this.CurrInputInfo=undefined;this.ActiveMouseButton="none";this.mDoPickTimeOutHandle=NaN;this.mClickCB=iClickCB;this.mDoubleClickCB=iDoubleClickCB}OperatorBaseHC.prototype.onMouseDown=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioMouseEvent)return[2];if(eDwKeyMgr_1.eDwKeyMgr.isAnyPressed(ioMouseEvent)){this.setMouse(ioMouseEvent);this.ActiveMouseButton=eDwKeyMgr_1.eDwKeyMgr.getMouseButtonPressed(ioMouseEvent)}return[2]}))}))};OperatorBaseHC.prototype.onMouseMove=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var pos,oldInputInfo;return __generator(this,(function(_a){if(!ioMouseEvent)return[2];pos=ioMouseEvent.getPosition();if(this.CurrInputInfo){oldInputInfo=this.CurrInputInfo;this.setMouse(ioMouseEvent);if(!oldInputInfo.DragPt.equals(this.CurrInputInfo.DragPt)){this.DragPt=this.CurrInputInfo.DragPt}}console.debugLog("Operator","move screen pt = "+JSON.stringify(pos));return[2]}))}))};OperatorBaseHC.prototype.onMouseUp=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioMouseEvent)return[2];this.onUp(ioMouseEvent);delete this.DragPt;delete this.CurrInputInfo;return[2]}))}))};OperatorBaseHC.prototype.onTouchStart=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioTouchEvent)return[2];console.debugLog("TouchOp","Start - touch ID = "+ioTouchEvent.getId());this.addTouch(ioTouchEvent);return[2]}))}))};OperatorBaseHC.prototype.onTouchMove=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioTouchEvent)return[2];console.debugLog("TouchOp","Move - touch ID = "+ioTouchEvent.getId());if(!this.hasTouchMoved(ioTouchEvent)){ioTouchEvent.setHandled(true);return[2]}this.updateTouch(ioTouchEvent);return[2]}))}))};OperatorBaseHC.prototype.onTouchEnd=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioTouchEvent)return[2];console.debugLog("TouchOp","End - touch ID = "+ioTouchEvent.getId());ioTouchEvent.setHandled(false);this.removeTouchById(ioTouchEvent.getId());return[2]}))}))};OperatorBaseHC.prototype.onDeactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){delete this.DragPt;return[2]}))}))};OperatorBaseHC.getAsMouseEvent=function(iTouchEvent,iMouseInputType,iButton){if(iButton===void 0){iButton=eDwTypes_10.HC.Buttons.Left}if(iTouchEvent){var pos=iTouchEvent.getPosition();var mouseEvent=new eDwTypes_10.HC.Event.MouseInputEvent(pos.x,pos.y,eDwTypes_10.HC.Button.None,iButton,eDwTypes_10.HC.KeyModifiers.None,iMouseInputType);mouseEvent.setHandled(iTouchEvent.getHandled());return mouseEvent}return null};OperatorBaseHC.prototype.isDragging=function(){return!!this.DragPt};OperatorBaseHC.prototype.addTouch=function(ioTouchEvent){if(!this.getTouchById(ioTouchEvent.getId())){var pnt3DHC=eDwGeomUtils.screenToWorld(ioTouchEvent.getPosition(),this.Viewer.getHCView());if(pnt3DHC){this.CurrTouches.push({Event:ioTouchEvent,DragPt:pnt3DHC,Pos:ioTouchEvent.getPosition()})}}};OperatorBaseHC.prototype.getTouchById=function(iTouchID){for(var i=0;iepsX&&Math.abs(delta.y)>epsY};OperatorBaseHC.prototype.updateTouch=function(ioTouchEvent){var touch=this.getTouchById(ioTouchEvent.getId());if(touch){var pos2DHC=ioTouchEvent.getPosition();var pnt3DHC=eDwGeomUtils.screenToWorld(pos2DHC,this.Viewer.getHCView());if(pnt3DHC){touch.Pos=pos2DHC;touch.DragPt=pnt3DHC}}};OperatorBaseHC.prototype.setMouse=function(ioMouseEvent){var pos2DHC=ioMouseEvent.getPosition();var pnt3DHC=eDwGeomUtils.screenToWorld(pos2DHC,this.Viewer.getHCView());if(!pnt3DHC)return;this.CurrInputInfo={Event:ioMouseEvent,DragPt:pnt3DHC,Pos:pos2DHC}};OperatorBaseHC.prototype.onClick=function(ioInputEvent){return this.mClickCB?this.mClickCB(ioInputEvent):false};OperatorBaseHC.prototype.onDoubleClick=function(ioInputEvent){return this.mDoubleClickCB?this.mDoubleClickCB(ioInputEvent):false};OperatorBaseHC.prototype.onUp=function(ioMouseEvent){var _this=this;var clearPickTimeOut=function(){if(utils.isNaN(_this.mDoPickTimeOutHandle))return;clearTimeout(_this.mDoPickTimeOutHandle);_this.mDoPickTimeOutHandle=NaN;_this.ActiveMouseButton="none"};var processClick=function(ioMouseEvent){_this.onClick(ioMouseEvent);clearPickTimeOut()};var stopFurtherProcessing=false;if(this.ActiveMouseButton==="left"){stopFurtherProcessing=true;if(utils.isNaN(this.mDoPickTimeOutHandle)){this.mDoPickTimeOutHandle=setTimeout((function(){processClick(ioMouseEvent)}),500)}else{clearPickTimeOut();stopFurtherProcessing=this.onDoubleClick(ioMouseEvent)}}else if(this.ActiveMouseButton!=="none"){processClick(ioMouseEvent);stopFurtherProcessing=true}return stopFurtherProcessing};return OperatorBaseHC}();var eDwBaseOperator=function(_super){__extends(eDwBaseOperator,_super);function eDwBaseOperator(iViewer){var _this=this;var clickCB=function(ioInputEvent){return _this.onClick(ioInputEvent)};var doubleClickCB=function(ioInputEvent){return _this.onDoubleClick(ioInputEvent)};_this=_super.call(this,new OperatorBaseHC(iViewer,clickCB,doubleClickCB))||this;return _this}eDwBaseOperator.prototype.onTouchStart=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;var _this=this;return __generator(this,(function(_b){switch(_b.label){case 0:if(!ioTouchEvent)return[2];if(!(this.CurrTouches.length>1))return[3,3];if(!this.mOp)return[2];_a=this.mOp.onTouchStart;if(!_a)return[3,2];return[4,this.mOp.onTouchStart(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[3,5];case 3:return[4,this.wrapAndCallAsMouseEvent(ioTouchEvent,eDwTypes_10.HC.MouseInputType.Down,(function(ioMouseEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.onMouseDown(ioMouseEvent)];case 1:_a.sent();return[2]}}))}))}))];case 4:_b.sent();_b.label=5;case 5:return[2]}}))}))};eDwBaseOperator.prototype.onTouchMove=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;var _this=this;return __generator(this,(function(_b){switch(_b.label){case 0:if(!ioTouchEvent)return[2];if(!(this.CurrTouches.length>1))return[3,3];if(!this.mOp)return[2];_a=this.mOp.onTouchMove;if(!_a)return[3,2];return[4,this.mOp.onTouchMove(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[3,5];case 3:return[4,this.wrapAndCallAsMouseEvent(ioTouchEvent,eDwTypes_10.HC.MouseInputType.Move,(function(ioMouseEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.onMouseMove(ioMouseEvent)];case 1:_a.sent();return[2]}}))}))}))];case 4:_b.sent();_b.label=5;case 5:return[2]}}))}))};eDwBaseOperator.prototype.onTouchEnd=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;var _this=this;return __generator(this,(function(_b){switch(_b.label){case 0:if(!ioTouchEvent)return[2];if(!(this.CurrTouches.length>1))return[3,3];if(!this.mOp)return[2];_a=this.mOp.onTouchEnd;if(!_a)return[3,2];return[4,this.mOp.onTouchEnd(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[3,5];case 3:return[4,this.wrapAndCallAsMouseEvent(ioTouchEvent,eDwTypes_10.HC.MouseInputType.Up,(function(ioMouseEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.onMouseUp(ioMouseEvent)];case 1:_a.sent();return[2]}}))}))}),this.convertTouchToButtonHC(ioTouchEvent))];case 4:_b.sent();_b.label=5;case 5:return[2]}}))}))};Object.defineProperty(eDwBaseOperator.prototype,"Viewer",{get:function(){return this.mOp.Viewer},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"CurrInputInfo",{get:function(){return this.mOp.CurrInputInfo},set:function(iInputInfo){this.mOp.CurrInputInfo=iInputInfo},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"CurrTouches",{get:function(){return this.mOp.CurrTouches},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"ActiveMouseButton",{get:function(){return this.mOp.ActiveMouseButton},set:function(iActiveMouseButton){this.mOp.ActiveMouseButton=iActiveMouseButton},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"DragPt",{get:function(){return this.mOp.DragPt},set:function(iPnt3DHC){this.mOp.DragPt=iPnt3DHC},enumerable:false,configurable:true});eDwBaseOperator.prototype.isDragging=function(){return this.mOp.isDragging()};eDwBaseOperator.prototype.hasTouchMoved=function(ioTouchEvent){return this.mOp.hasTouchMoved(ioTouchEvent)};eDwBaseOperator.prototype.addTouch=function(ioTouchEvent){this.mOp.addTouch(ioTouchEvent)};eDwBaseOperator.prototype.getTouchById=function(iTouchID){return this.mOp.getTouchById(iTouchID)};eDwBaseOperator.prototype.removeTouchById=function(iTouchID){this.mOp.removeTouchById(iTouchID)};eDwBaseOperator.prototype.wrapAndCallAsMouseEvent=function(ioTouchEvent,iInputType,iMouseFunc,iButton){if(iButton===void 0){iButton=eDwTypes_10.HC.Buttons.Left}return __awaiter(this,void 0,void 0,(function(){var mouseEvent;return __generator(this,(function(_a){switch(_a.label){case 0:mouseEvent=OperatorBaseHC.getAsMouseEvent(ioTouchEvent,iInputType,iButton);if(!mouseEvent)return[3,2];console.debugLog("TouchAsMouse","Touch handled as mouse button "+iButton);this.ActiveMouseButton=eDwKeyMgr_1.eDwKeyMgr.getMouseButtonPressed(mouseEvent);return[4,iMouseFunc(mouseEvent)];case 1:_a.sent();ioTouchEvent.setHandled(mouseEvent.getHandled());_a.label=2;case 2:return[2]}}))}))};eDwBaseOperator.prototype.onClick=function(ioInputEvent){console.debugLog("Click","In eDwBaseOperator.onClick()");return false};eDwBaseOperator.prototype.onDoubleClick=function(ioInputEvent){console.debugLog("Click","In eDwBaseOperator.onDoubleClick()");return false};eDwBaseOperator.getPickResult=function(iEvent,iViewMgr,iPickConfig){if(iPickConfig===void 0){iPickConfig=new eDwTypes_10.HC.PickConfig(eDwTypes_10.HC.SelectionMask.All)}return __awaiter(this,void 0,void 0,(function(){var selObj;return __generator(this,(function(_a){switch(_a.label){case 0:selObj=eDwSelObj.createEmpty();if(!(iEvent&&iViewMgr))return[3,2];return[4,iViewMgr.pickFromPoint(iEvent.getPosition(),iPickConfig)];case 1:selObj=_a.sent();_a.label=2;case 2:return[2,selObj]}}))}))};eDwBaseOperator.prototype.convertTouchToButtonHC=function(ioTouchEvent){var buttonHC=eDwTypes_10.HC.Buttons.None;if(ioTouchEvent){buttonHC=eDwTypes_10.HC.Buttons.Left;if(!this.hasTouchMoved(ioTouchEvent)){var touchInfo=this.getTouchById(ioTouchEvent.getId());var startTime=touchInfo?touchInfo.Event.getDate().getTime():(new Date).getTime();if((new Date).getTime()-startTime>1e3){buttonHC=eDwTypes_10.HC.Buttons.Right}}}return buttonHC};return eDwBaseOperator}(OperatorHC);exports.eDwBaseOperator=eDwBaseOperator}));define("eDwPerspectiveCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwPerspectiveCmd=function(_super){__extends(eDwPerspectiveCmd,_super);function eDwPerspectiveCmd(iViewer,iNewState){var _this=_super.call(this,iViewer)||this;_this.mInitiallyActive=iViewer.getPerspectiveMode();_this.mFinallyActive=iNewState;return _this}eDwPerspectiveCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.setPerspectiveMode(this.mInitiallyActive);return[2,true]}}))}))};eDwPerspectiveCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.setPerspectiveMode(this.mFinallyActive);return[2,true]}}))}))};eDwPerspectiveCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mViewer.setPerspectiveMode(this.mFinallyActive);return[2]}}))}))};Object.defineProperty(eDwPerspectiveCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwPerspectiveCmd}(eDwSupportsHistoryCmd);return eDwPerspectiveCmd}));define("eDwResetCmd",["require","exports","eDwSupportsHistoryCmd","eDwEventMgr","eDwEvents"],(function(require,exports,eDwSupportsHistoryCmd,eDwEventMgr,eDwEvents_3){"use strict";var eDwResetCmd=function(_super){__extends(eDwResetCmd,_super);function eDwResetCmd(iViewer){var _this=_super.call(this,iViewer)||this;_this.mPerspective=iViewer.getPerspectiveMode();_this.mExplosionLevel=iViewer.getExplosionLevel();_this.mDrawMode=iViewer.getDrawMode();_this.mAmbientOcclusion=iViewer.getHCView().getAmbientOcclusionEnabled();_this.mCamera=iViewer.getHCView().getCamera();_this.resetToHome();return _this}eDwResetCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];return[4,this.resetToPrevious()];case 2:_a.sent();return[2,true]}}))}))};eDwResetCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];return[4,this.resetToHome()];case 2:_a.sent();return[2,true]}}))}))};eDwResetCmd.prototype.resetToHome=function(){return __awaiter(this,void 0,void 0,(function(){var viewMgr;return __generator(this,(function(_a){switch(_a.label){case 0:viewMgr=this.mViewer.ViewMgr;viewMgr.reset();return[4,this.mViewer.SelectionMgr.unSelectAllObjects()];case 1:_a.sent();this.mViewer.OperatorMgr.resetToDefault();this.mViewer.setPerspectiveMode(false);return[4,this.mViewer.getModel().resetToDefault()];case 2:_a.sent();this.mViewer.setExplosionLevel(0);this.mViewer.resetDrawMode();this.mViewer.ViewMgr.enableAmbientOcclusion(false);return[4,eDwEventMgr.get().fireEvent(eDwEvents_3.ResetSceneEvent,true)];case 3:_a.sent();return[2]}}))}))};eDwResetCmd.prototype.resetToPrevious=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mViewer.setPerspectiveMode(this.mPerspective);this.mViewer.ViewMgr.setCamera(this.mCamera);this.mViewer.setExplosionLevel(this.mExplosionLevel);this.mViewer.setDrawMode(this.mDrawMode);this.mViewer.ViewMgr.enableAmbientOcclusion(this.mAmbientOcclusion);return[4,eDwEventMgr.get().fireEvent(eDwEvents_3.ResetSceneEvent,false)];case 1:_a.sent();return[2]}}))}))};return eDwResetCmd}(eDwSupportsHistoryCmd);return eDwResetCmd}));define("eDwResultError",["require","exports","eDwBaseError"],(function(require,exports,eDwBaseError){"use strict";var eDwResultError=function(_super){__extends(eDwResultError,_super);function eDwResultError(iResult){var _this=_super.call(this,"Result Error")||this;_this.Result=iResult;return _this}return eDwResultError}(eDwBaseError);return eDwResultError}));define("eDwSectionFlipCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwSectionFlipCmd=function(_super){__extends(eDwSectionFlipCmd,_super);function eDwSectionFlipCmd(iViewer){return _super.call(this,iViewer)||this}eDwSectionFlipCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.flipSectionPlane();return[2,true]}}))}))};eDwSectionFlipCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.flipSectionPlane();return[2,true]}}))}))};eDwSectionFlipCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mViewer.XSectionMgr.flipSectionPlane();return[2]}}))}))};Object.defineProperty(eDwSectionFlipCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwSectionFlipCmd}(eDwSupportsHistoryCmd);return eDwSectionFlipCmd}));define("eDwSectionShowCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwSectionShowCmd=function(_super){__extends(eDwSectionShowCmd,_super);function eDwSectionShowCmd(iViewer,iShow){var _this=_super.call(this,iViewer)||this;_this.mInitialShow=true;_this.mFinalShow=iShow;return _this}eDwSectionShowCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.SectionVisibility=this.mInitialShow;return[2,true]}}))}))};eDwSectionShowCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.SectionVisibility=this.mFinalShow;return[2,true]}}))}))};eDwSectionShowCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mViewer.XSectionMgr.SectionVisibility=this.mFinalShow;return[2]}}))}))};Object.defineProperty(eDwSectionShowCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwSectionShowCmd}(eDwSupportsHistoryCmd);return eDwSectionShowCmd}));define("eDwSelMgr",["require","exports","eDwSelObj","eDwSelectionOperator","eDwEventMgr","eDwKeyMgr","eDwTypes","eDwEvents","utils"],(function(require,exports,eDwSelObj,eDwSelectionOperator,eDwEventMgr,eDwKeyMgr_2,eDwTypes_11,eDwEvents_4,utils){"use strict";var eDwSelMgr=function(){function eDwSelMgr(iViewer){iViewer.SelectionMgr=this;this.mViewer=iViewer;this.mSelMgrHC=iViewer.HCViewer.selectionManager;this.mSelectableObjsHC=[];var selectOp=new eDwSelectionOperator(iViewer,this);var opMgr=this.mViewer.OperatorMgr;this.mSelectOperatorIDHC=opMgr.registerCustomOperator(selectOp,true);this.mSelectOverlayNotifiers={}}eDwSelMgr.prototype.setColorForViewMode=function(mode){var _this=this;var nodeSelColor;var nodeSelOutlineColor=new eDwTypes_11.HC.Color(0,255,0);var nodeElmtSelColor;var nodeElmtSelOutlineColor=new eDwTypes_11.HC.Color(255,255,0);var beautifulGreen=new eDwTypes_11.HC.Color(4,200,5);switch(mode){case eDwTypes_11.HC.DrawMode.WireframeOnShaded:nodeSelColor=beautifulGreen;nodeElmtSelColor=beautifulGreen;break;case eDwTypes_11.HC.DrawMode.Shaded:nodeSelColor=beautifulGreen;nodeElmtSelColor=beautifulGreen;break;case eDwTypes_11.HC.DrawMode.Wireframe:case eDwTypes_11.HC.DrawMode.HiddenLine:nodeSelColor=eDwTypes_11.HC.Color.white();nodeElmtSelColor=eDwTypes_11.HC.Color.white();break;default:var msg="Unknown draw mode: "+mode;console.debugLog("Selection",msg);throw new Error(msg)}this.mSelMgrHC.setNodeSelectionColor(nodeSelColor);this.mSelMgrHC.setNodeSelectionOutlineColor(nodeSelOutlineColor);this.mSelMgrHC.setNodeElementSelectionColor(nodeElmtSelColor);this.mSelMgrHC.setNodeElementSelectionOutlineColor(nodeElmtSelOutlineColor);if(this.mViewer.getModel().isDrawing()&&!this.mViewer.ViewerFeatureOpts.Debug){this.mSelMgrHC.setNodeSelectionHighlightMode(eDwTypes_11.HC.SelectionHighlightMode.OutlineOnly);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mSelMgrHC.setHighlightNodeSelection(false)];case 1:_a.sent();return[2]}}))}))})()}};eDwSelMgr.prototype.unregister=function(){this.mViewer.OperatorMgr.unregisterCustomOperatorByID(this.mSelectOperatorIDHC);this.mViewer.SelectionMgr=null};eDwSelMgr.prototype.addSelectOverlayNotifier=function(iTypeIndex,iNotifier){if(!this.mSelectOverlayNotifiers[iTypeIndex]){this.mSelectOverlayNotifiers[iTypeIndex]=[]}this.mSelectOverlayNotifiers[iTypeIndex].push(iNotifier)};eDwSelMgr.prototype.removeSelectOverlayNotifier=function(iTypeIndex,iNotifier){var typeNotifiers=this.mSelectOverlayNotifiers[iTypeIndex];var pos=typeNotifiers.indexOf(iNotifier);if(pos>-1){typeNotifiers.splice(pos,1)}return false};eDwSelMgr.prototype.getSelectedNodeIDIndex=function(iHCNodeID){return this.getSelectableIDsHC().indexOf(iHCNodeID)};eDwSelMgr.prototype.onSelection=function(iSelectionEvent){return __awaiter(this,void 0,void 0,(function(){var keyMgr,ctrlKeyDown,shiftKeyDown,hierNodeSelObj,selObjIDHC,existingIdx,selectedAlready,selObjExists,numOfSelObjsAtStart;return __generator(this,(function(_a){switch(_a.label){case 0:keyMgr=eDwKeyMgr_2.eDwKeyMgr.get();ctrlKeyDown=keyMgr.isDown("Control");shiftKeyDown=keyMgr.isDown("Shift");hierNodeSelObj=this.createHierNodeSelObj(eDwSelObj.extendHCSelObj(iSelectionEvent.getSelection()));selObjIDHC=hierNodeSelObj.getIDHC();existingIdx=this.getSelectedNodeIDIndex(selObjIDHC);selectedAlready=existingIdx>-1;l_debugDumpSelection(hierNodeSelObj.getIDHC(),hierNodeSelObj.getSelectionType());selObjExists=utils.isNumber(selObjIDHC);numOfSelObjsAtStart=this.mSelectableObjsHC.length;if(!(numOfSelObjsAtStart&&!ctrlKeyDown&&!shiftKeyDown))return[3,2];return[4,this.unSelectAllObjects(false)];case 1:_a.sent();selectedAlready=false;return[3,5];case 2:if(!(ctrlKeyDown&&!shiftKeyDown&&selectedAlready&&selObjExists))return[3,4];this.mSelectableObjsHC.splice(existingIdx,1);return[4,this.unSelectObjs([hierNodeSelObj],this.mViewer.getModel().isDrawing())];case 3:_a.sent();return[2];case 4:if(!ctrlKeyDown&&shiftKeyDown&&selectedAlready&&selObjExists){return[2]}_a.label=5;case 5:if(!selObjExists)return[3,7];if(!selectedAlready)this.mSelectableObjsHC.push(hierNodeSelObj);return[4,eDwEventMgr.get().fireEvent(eDwEvents_4.SelectEvent,this.mViewer,[hierNodeSelObj])];case 6:_a.sent();return[3,9];case 7:if(!!numOfSelObjsAtStart)return[3,9];return[4,eDwEventMgr.get().fireEvent(eDwEvents_4.LeftClickEvent,this.mViewer)];case 8:_a.sent();_a.label=9;case 9:return[2]}}))}))};eDwSelMgr.prototype.selectByID=function(iID){return utils.isNumber(iID)?this.executeSelection(iID):false};eDwSelMgr.prototype.select=function(iCoords,iPickConfig){return __awaiter(this,void 0,void 0,(function(){var pickCfg,selObj,hierNodeSelObj;return __generator(this,(function(_a){switch(_a.label){case 0:pickCfg=iPickConfig?iPickConfig:new eDwTypes_11.HC.PickConfig(eDwTypes_11.HC.SelectionMask.Face);return[4,this.mViewer.ViewMgr.pickFromPoint(iCoords,pickCfg)];case 1:selObj=_a.sent();if(this.isSelectionHandled(selObj)){return[2,false]}hierNodeSelObj=this.createHierNodeSelObj(selObj);if(utils.isNumber(hierNodeSelObj.getIDHC())){return[2,this.executeSelection(hierNodeSelObj)]}this.mSelMgrHC.set(null);return[2,false]}}))}))};eDwSelMgr.prototype.isSelected=function(iHCNodeID){return this.getSelectableIDsHC().indexOf(iHCNodeID)<0?false:true};eDwSelMgr.prototype.append=function(iSelObj){this.mSelMgrHC.add(iSelObj)};eDwSelMgr.prototype.unSelectAllObjects=function(iClearHCSelList){if(iClearHCSelList===void 0){iClearHCSelList=true}return __awaiter(this,void 0,void 0,(function(){var unselectedHCObjs;return __generator(this,(function(_a){switch(_a.label){case 0:unselectedHCObjs=this.mSelectableObjsHC;this.mSelectableObjsHC=[];return[4,this.unSelectObjs(unselectedHCObjs,this.mViewer.getModel().isDrawing())];case 1:_a.sent();if(unselectedHCObjs.length>0&&iClearHCSelList){this.mSelMgrHC.selectNode(null)}return[2]}}))}))};eDwSelMgr.prototype.setViewToSelectedFace=function(){var camera=null;var selObjs=this.mSelMgrHC.getResults();for(var _i=0,selObjs_1=selObjs;_i0){return selIDsHC[selIDsHC.length-1]}return NaN};eDwSelMgr.prototype.getLastSelHierarchyNode=function(){var modelView=this.mViewer.getModel().getActiveModelView();return modelView.Nodes[this.getLastSelIDHC()]};eDwSelMgr.prototype.getSelectableIDsHC=function(){var selIDsHC=[];for(var _i=0,_a=this.mSelectableObjsHC;_i<_a.length;_i++){var selObjHC=_a[_i];var selIDHC=selObjHC.getNodeId();if(utils.isNumber(selIDHC))selIDsHC.push(selIDHC)}return selIDsHC};eDwSelMgr.prototype.getSelHierarchyNodes=function(){var selHierNodes=[];var modelView=this.mViewer.getModel().getActiveModelView();var seoIDsHC=this.getSelectableIDsHC();for(var _i=0,seoIDsHC_1=seoIDsHC;_i-1){iSelMgr.mSelectableObjsHC.splice(index,1)}var unselObjsHC_1=iSelMgr.mSelectableObjsHC;iSelMgr.mSelectableObjsHC=[];(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,iSelMgr.unSelectObjs(unselObjsHC_1,true)];case 1:_a.sent();return[4,hierNode.showBoundingBox(viewer,"on")];case 2:_a.sent();return[2]}}))}))})();shown=true}else{(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,hierNode.showBoundingBox(viewer,"toggle")];case 1:_a.sent();return[2]}}))}))})();shown=index>-1?false:true}if(shown){var selObjDupHC_1=eDwTypes_11.HC.Selection.SelectionItem.create(hierNode.HOOPSID);iSelMgr.addUniqueToSelectableObjsHC(selObjDupHC_1);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_4.SelectEvent,viewer,[selObjDupHC_1])];case 1:_a.sent();l_debugDumpSelection(selObjDupHC_1.getNodeId(),selObjDupHC_1.getSelectionType());return[2]}}))}))})()}}else{var selMgrHC=iSelMgr.mSelMgrHC;if(!selObjHC){selMgrHC.selectNode(nodeIDHC,iSelModeHC);var selObj=eDwSelObj.extendHCSelObj(selMgrHC.getLast());if(selObj.getIDHC()===nodeIDHC){iSelMgr.addUniqueToSelectableObjsHC(selObj)}}else{if(iSelModeHC===eDwTypes_11.HC.SelectionMode.Add){selMgrHC.add(selObjHC)}else if(iSelModeHC===eDwTypes_11.HC.SelectionMode.Set){selMgrHC.set(selObjHC)}else{var wasSelected=selMgrHC.isSelected(selObjHC);selMgrHC.toggle(selObjHC);if(wasSelected){var index=iSelMgr.mSelectableObjsHC.indexOf(selObjHC);if(index>-1){iSelMgr.mSelectableObjsHC.splice(index,1)}}}if(selMgrHC.isSelected(selObjHC)){iSelMgr.addUniqueToSelectableObjsHC(selObjHC)}}}return eDwTypes_11.HC.SelectionType.Part}return eDwTypes_11.HC.SelectionType.None}var ret=false;try{var selType=eDwTypes_11.HC.SelectionType.None;var keyMgr=eDwKeyMgr_2.eDwKeyMgr.get();if(!keyMgr.isDown("Control")&&!keyMgr.isDown("Shift")){selType=selectNodeHC(this,eDwTypes_11.HC.SelectionMode.Set);ret=true}else{var existingIdx=this.getSelectedNodeIDIndex(nodeIDHC);if(existingIdx>-1){if(keyMgr.isDown("Control")){this.mSelMgrHC.remove(this.mSelectableObjsHC[existingIdx]);this.mSelectableObjsHC.splice(existingIdx,1)}else if(keyMgr.isDown("Shift")){ret=true}}else{selType=selectNodeHC(this,eDwTypes_11.HC.SelectionMode.Add);if(this.getSelectedNodeIDIndex(nodeIDHC)>-1){ret=true}}}if(selType!==eDwTypes_11.HC.SelectionType.None){l_debugDumpSelection(nodeIDHC,selType)}}catch(iErr){console.log("eDwSelMgr.selectByID failed")}return ret};return eDwSelMgr}();function l_debugDumpSelection(iID,iSelType){console.debugLog("Selection","Selected Obj ID: "+iID+" - type: "+eDwTypes_11.HC.SelectionType[iSelType])}return eDwSelMgr}));define("eDwSelObj",["require","exports","eDwTypes","eDwGeomUtils","utils"],(function(require,exports,eDwTypes_12,eDwGeomUtils_1,utils){"use strict";var eDwSelObj=function(){function eDwSelObj(iSelObjHC,iToLocalTransformHC){if(iToLocalTransformHC===void 0){iToLocalTransformHC=null}utils.populateMixinObjectFromClasses(this,[eDwTypes_12.HC.Selection.SelectionItem]);$.extend(true,this,iSelObjHC);this.setPointInLocalSpace(iSelObjHC.getPosition(),iToLocalTransformHC)}eDwSelObj.prototype.getIDHC=function(){var nodeIDHC=this.getNodeId();return utils.isNumber(nodeIDHC)?nodeIDHC:NaN};eDwSelObj.prototype.getLocalPoint=function(){return this.mLocalPnt};eDwSelObj.prototype.getWorldPoint=function(){return this.getPosition()};eDwSelObj.prototype.getAsLocalPoint=function(iWorldPtHC){return this.mToLocalTransformHC&&iWorldPtHC?this.mToLocalTransformHC.transform(iWorldPtHC):iWorldPtHC};eDwSelObj.prototype.getAsWorldPoint=function(iLocalPtHC){var toWorldTransformHC=this.mToLocalTransformHC?eDwTypes_12.HC.Matrix.inverse(this.mToLocalTransformHC):null;return toWorldTransformHC&&iLocalPtHC?toWorldTransformHC.transform(iLocalPtHC):iLocalPtHC};eDwSelObj.prototype.getLocalVector=function(){var _this=this;return this.getVectorInfo((function(iPntWCHC){return _this.getAsLocalPoint(iPntWCHC)})).Vec};eDwSelObj.prototype.getWorldVector=function(){return this.getVectorInfo().Vec};eDwSelObj.prototype.getAsLocalVector=function(iWorldVecHC){var normalMatrix=this.mToLocalTransformHC?this.mToLocalTransformHC.normalMatrix():null;return iWorldVecHC&&normalMatrix?normalMatrix.transform(iWorldVecHC):null};eDwSelObj.prototype.getAsWorldVector=function(iLocalVecHC){var toWorldTransformHC=this.mToLocalTransformHC?eDwTypes_12.HC.Matrix.inverse(this.mToLocalTransformHC):null;var normalMatrix=toWorldTransformHC?toWorldTransformHC.normalMatrix():null;return iLocalVecHC&&normalMatrix?normalMatrix.transform(iLocalVecHC):null};eDwSelObj.prototype.getToLocalTransform=function(){return this.mToLocalTransformHC};eDwSelObj.prototype.findAngle=function(iSelObj){var _this=this;var selObj1Type=eDwSelObj.getSubEntityInfo(this).SubEntityTypeName;var selObj2Type=eDwSelObj.getSubEntityInfo(iSelObj).SubEntityTypeName;if(!selObj1Type||!selObj2Type||selObj2Type==="Point"||selObj1Type==="Point"){return NaN}var toLocalFunc;if(this.getToLocalTransform().equals(iSelObj.getToLocalTransform())){toLocalFunc=function(iPntWCHC){return _this.getAsLocalPoint(iPntWCHC)}}var selObjVecInfo1=this.getVectorInfo(toLocalFunc);var selObjVecInfo2=iSelObj.getVectorInfo(toLocalFunc);if(selObj1Type!==selObj2Type){var curveVecInfo=selObjVecInfo1;var faceVecInfo=selObjVecInfo2;if(selObj1Type==="Face"){curveVecInfo=selObjVecInfo2;faceVecInfo=selObjVecInfo1}var surfPlane=eDwTypes_12.HC.Plane.createFromPointAndNormal(faceVecInfo.Pts[0],faceVecInfo.Vec);faceVecInfo.Pts[0]=eDwGeomUtils_1.dropPointOnPlane(curveVecInfo.Pts[0],surfPlane);faceVecInfo.Pts[1]=eDwGeomUtils_1.dropPointOnPlane(curveVecInfo.Pts[1],surfPlane);faceVecInfo.Vec=eDwTypes_12.HC.Point3.subtract(faceVecInfo.Pts[0],faceVecInfo.Pts[1])}if(!selObjVecInfo1.Vec||!selObjVecInfo1.Pts||!selObjVecInfo2.Vec||!selObjVecInfo2.Pts)return NaN;var normal3DHC=eDwTypes_12.HC.Point3.cross(selObjVecInfo1.Vec,selObjVecInfo2.Vec);if(!eDwGeomUtils_1.isValidHCPoint(normal3DHC)||normal3DHC.length()newVec23DHC.length())vec13DHC=newVec13DHC;var newVec33DHC=eDwTypes_12.HC.Point3.subtract(pts3DHC[2],intPt3DHC);var newVec43DHC=eDwTypes_12.HC.Point3.subtract(pts3DHC[3],intPt3DHC);var vec23DHC=newVec43DHC;if(newVec33DHC.length()>newVec43DHC.length())vec23DHC=newVec33DHC;vec13DHC.normalize();vec23DHC.normalize();return Math.acos(eDwTypes_12.HC.Point3.dot(vec13DHC,vec23DHC))*180/Math.PI};eDwSelObj.extendHCSelObj=function(ioSelObj,iToLocalTransformHC){if(iToLocalTransformHC===void 0){iToLocalTransformHC=null}utils.populateMixinObjectFromClasses(ioSelObj,[eDwSelObj]);if(utils.isInstanceOf(ioSelObj,eDwSelObj)){var pos2DHC=ioSelObj.getPosition();if(pos2DHC){ioSelObj.setPointInLocalSpace(pos2DHC,iToLocalTransformHC)}return ioSelObj}throw new TypeError("eDwSelObj is undefined")};eDwSelObj.createEmpty=function(){return new eDwSelObj(eDwTypes_12.HC.Selection.SelectionItem.create())};eDwSelObj.getLocalTransform=function(ioSelObjHC,iModel){var toLocalTransformHC=new eDwTypes_12.HC.Matrix;var subEntityInfo=eDwSelObj.getSubEntityInfo(ioSelObjHC);if(subEntityInfo.SubEntity){var selObj=eDwSelObj.extendHCSelObj(ioSelObjHC);var selObjIDHC=selObj.getIDHC();var selHierNode=iModel.getHierarchyNode(selObjIDHC);if(selHierNode&&selHierNode.Category==="view"){var modelHC=iModel.getHCModel();var parentNodeHC=modelHC.getNodeParent(selHierNode.HOOPSID);var parentNetMatrixHC=modelHC.getNodeNetMatrix(parentNodeHC);var selNetMatrixHC=modelHC.getNodeNetMatrix(selObjIDHC);var invParentNetMatrix=parentNetMatrixHC.inverseAndDeterminant()[0]||new eDwTypes_12.HC.Matrix;var matrixHC=eDwTypes_12.HC.Matrix.multiply(selNetMatrixHC,invParentNetMatrix);toLocalTransformHC=eDwTypes_12.HC.Matrix.inverse(matrixHC)||new eDwTypes_12.HC.Matrix}}return toLocalTransformHC};eDwSelObj.getMinDistInfo=function(iSelPropsHC,iSelObjs,iModel){return __awaiter(this,void 0,void 0,(function(){function getMinDistPtToFace(iPointHC,iSelObj,iFaceSelObj,iModelHC){return __awaiter(this,void 0,void 0,(function(){var lineRay;return __generator(this,(function(_a){switch(_a.label){case 0:lineRay=new eDwTypes_12.HC.Ray(iPointHC,new eDwTypes_12.HC.Point3(0,0,0));return[4,getMinDistLineToFace(lineRay,iSelObj,iFaceSelObj,iModelHC)];case 1:return[2,_a.sent()]}}))}))}function getMinDistLineToFace(iRayHC,iSelObj,iFaceSelObj,iModelHC){return __awaiter(this,void 0,void 0,(function(){var distItem;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,iModelHC.computeMinimumFaceLineDistance(iFaceSelObj.getNodeId(),iFaceSelObj.getFaceEntity().getCadFaceIndex(),iRayHC)];case 1:distItem=_a.sent();return[2,adjustDistance(iSelObj,iFaceSelObj,distItem)]}}))}))}function adjustDistance(iSelObj,iFaceSelObj,ioDistItem){var toLocalTransformHC=iSelObj.getToLocalTransform();var toLocalTransformForFaceHC=iFaceSelObj.getToLocalTransform();if(toLocalTransformHC&&toLocalTransformForFaceHC&&toLocalTransformHC.equals(toLocalTransformForFaceHC)){ioDistItem.distance*=toLocalTransformHC.upperLeft3x3Determinant()}return ioDistItem}var selEntInfoHC0,selEntInfoHC1,modelHC,vertSelObj,faceSelObj,faceProp,pos2DHC,faceSelObj0,faceSelObj1,faceProp0,faceProp1,distItem,edgeSelObj,edgeProp,faceSelObj,faceProp,pntsWCHC,lineHC;return __generator(this,(function(_a){switch(_a.label){case 0:if(2!==iSelObjs.length)return[2,null];selEntInfoHC0=eDwSelObj.getSubEntityInfo(iSelObjs[0]);selEntInfoHC1=eDwSelObj.getSubEntityInfo(iSelObjs[1]);modelHC=iModel.getHCModel();if(!(selEntInfoHC0.SubEntityTypeName==="Point"&&selEntInfoHC1.SubEntityTypeName==="Face"||selEntInfoHC1.SubEntityTypeName==="Point"&&selEntInfoHC0.SubEntityTypeName==="Face"))return[3,3];vertSelObj=iSelObjs[0];faceSelObj=iSelObjs[1];faceProp=iSelPropsHC[1];if(selEntInfoHC1.SubEntityTypeName==="Point"&&selEntInfoHC0.SubEntityTypeName==="Face"){vertSelObj=iSelObjs[1];faceSelObj=iSelObjs[0];faceProp=iSelPropsHC[0]}pos2DHC=vertSelObj.getPosition();if(!pos2DHC){throw new TypeError("vertSelObj position is undefined")}if(!(faceProp instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,2];return[4,getMinDistPtToFace(vertSelObj.getPosition(),vertSelObj,faceSelObj,modelHC)];case 1:return[2,_a.sent()];case 2:return[3,10];case 3:if(!(selEntInfoHC0.SubEntityTypeName==="Face"&&selEntInfoHC1.SubEntityTypeName==="Face"))return[3,6];faceSelObj0=iSelObjs[0],faceSelObj1=iSelObjs[1];faceProp0=iSelPropsHC[0],faceProp1=iSelPropsHC[1];if(!(faceProp0 instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement&&faceProp1 instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,5];return[4,modelHC.computeMinimumFaceFaceDistance(faceSelObj0.getNodeId(),faceSelObj0.getFaceEntity().getCadFaceIndex(),faceSelObj1.getNodeId(),faceSelObj1.getFaceEntity().getCadFaceIndex())];case 4:distItem=_a.sent();return[2,adjustDistance(faceSelObj0,faceSelObj1,distItem)];case 5:return[3,10];case 6:if(!(selEntInfoHC0.SubEntityTypeName==="Line"&&selEntInfoHC1.SubEntityTypeName==="Face"||selEntInfoHC1.SubEntityTypeName==="Line"&&selEntInfoHC0.SubEntityTypeName==="Face"))return[3,10];edgeSelObj=iSelObjs[0];edgeProp=iSelPropsHC[0];faceSelObj=iSelObjs[1];faceProp=iSelPropsHC[1];if(selEntInfoHC1.SubEntityTypeName==="Line"&&selEntInfoHC0.SubEntityTypeName==="Face"){faceSelObj=iSelObjs[0];faceProp=iSelPropsHC[0];edgeSelObj=iSelObjs[1];edgeProp=iSelPropsHC[1]}if(!(edgeProp instanceof eDwTypes_12.HC.SubentityProperties.CircleElement&&faceProp instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,8];return[4,getMinDistPtToFace(edgeProp.origin,edgeSelObj,faceSelObj,modelHC)];case 7:return[2,_a.sent()];case 8:if(!(edgeProp instanceof eDwTypes_12.HC.SubentityProperties.LineElement&&faceProp instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,10];pntsWCHC=edgeSelObj.getLineEntity().getPoints();if(!(pntsWCHC.length===2))return[3,10];lineHC=new eDwTypes_12.HC.Ray(pntsWCHC[0],pntsWCHC[1]);return[4,getMinDistLineToFace(lineHC,edgeSelObj,faceSelObj,modelHC)];case 9:return[2,_a.sent()];case 10:return[2,null]}}))}))};eDwSelObj.getSelObjProperty=function(iSelObjHC,iModel){return __awaiter(this,void 0,void 0,(function(){var subEntityProperty,subEntityInfo,subEntityTypeName,selObj,subEntityID,modelHC,_a;return __generator(this,(function(_b){switch(_b.label){case 0:subEntityProperty=null;subEntityInfo=eDwSelObj.getSubEntityInfo(iSelObjHC);subEntityTypeName="Unknown";if(!subEntityInfo.SubEntity)return[3,6];selObj=eDwSelObj.extendHCSelObj(iSelObjHC);subEntityTypeName=subEntityInfo.SubEntityTypeName;subEntityID=eDwSelObj.getSubEntityID(subEntityInfo.SubEntity);modelHC=iModel.getHCModel();_a=subEntityTypeName;switch(_a){case"Line":return[3,1];case"Face":return[3,3];case"Point":return[3,5]}return[3,5];case 1:return[4,modelHC.getEdgeProperty(selObj.getIDHC(),subEntityID)];case 2:subEntityProperty=_b.sent();return[3,6];case 3:return[4,modelHC.getFaceProperty(selObj.getIDHC(),subEntityID)];case 4:subEntityProperty=_b.sent();return[3,6];case 5:return[3,6];case 6:return[2,{Property:subEntityProperty,Name:subEntityTypeName}]}}))}))};eDwSelObj.setSelObjSubEntityColor=function(iSelObjsHC,iModel,iColor){return eDwSelObj.setSelObjSubEntity(iSelObjsHC,iModel,iColor)};eDwSelObj.setSelObjSubEntityHighlight=function(iSelObjsHC,iModel,iHighlight){return eDwSelObj.setSelObjSubEntity(iSelObjsHC,iModel,iHighlight)};eDwSelObj.getSubEntityInfo=function(iSelObjHC){function checkIfSelectable(iSubEntity,iSelTypeMask){return eDwSelObj.getSubEntityBits(iSubEntity)&iSelTypeMask?true:false}var subEntity=null;var typeName="";var isSelectable=false;if(iSelObjHC){if(subEntity=iSelObjHC.getPointEntity()){typeName="Point";isSelectable=true}else if(subEntity=iSelObjHC.getLineEntity()){typeName="Line";var cEdgeSelMeasureHC=4;isSelectable=checkIfSelectable(subEntity,cEdgeSelMeasureHC)}else if(subEntity=iSelObjHC.getFaceEntity()){typeName="Face";var cFaceSelMeasureHC=1;isSelectable=checkIfSelectable(subEntity,cFaceSelMeasureHC)}}return{SubEntity:subEntity,SubEntityTypeName:typeName,IsSelectable:isSelectable}};eDwSelObj.getSubEntityTypeName=function(iSubEntityType){if(!iSubEntityType)return"";return utils.getObjectTypeName(iSubEntityType).slice(0,-6)};eDwSelObj.getSubEntityID=function(iSubEntity){return iSubEntity?iSubEntity._elementIndex:NaN};eDwSelObj.getSubEntityBits=function(iSubEntity){return iSubEntity?iSubEntity._elementBits:NaN};eDwSelObj.prototype.setPointInLocalSpace=function(iWorldPtHC,iToLocalTransformHC){if(iToLocalTransformHC){this.mLocalPnt=iWorldPtHC?iToLocalTransformHC.transform(iWorldPtHC):null;this.mToLocalTransformHC=iToLocalTransformHC}};eDwSelObj.setSelObjSubEntity=function(iSelObjsHC,iModel,iSetting){if(!iSelObjsHC||!iSelObjsHC.length)return[];var modelHC=iModel.getHCModel();var subEntityIDs=[];for(var _i=0,iSelObjsHC_2=iSelObjsHC;_i1){startCrvPt3DHC=iTransformPointFunc(crvPtsWC3DHC[0]);endCrvPt3DHC=iTransformPointFunc(crvPtsWC3DHC[numPts-1]);vec3DHC=eDwTypes_12.HC.Point3.subtract(endCrvPt3DHC,startCrvPt3DHC);if(vec3DHC.length()-1;--i){currentNode=childHierarchyMap[children[i]];viewIDsHC.push(currentNode.HOOPSID)}pickConfig=new eDwTypes_13.HC.PickConfig(eDwTypes_13.HC.SelectionMask.All);return[4,this.Viewer.ViewMgr.pickFromPoint(iCoords,pickConfig)];case 1:selObj=_a.sent();selObjIDHC=selObj.getIDHC();if(!utils.isNaN(selObjIDHC))return[3,3];return[4,this.Viewer.SelectionMgr.select(iCoords)];case 2:selSuccess=_a.sent();_a.label=3;case 3:hierNode=model.getHierarchyNode(selObjIDHC);if(!hierNode)return[3,6];if(!(viewIDsHC.indexOf(hierNode.HOOPSID)>-1))return[3,5];return[4,this.Viewer.SelectionMgr.selectByID(hierNode.HOOPSID)];case 4:selSuccess=_a.sent();_a.label=5;case 5:return[3,10];case 6:_i=0,viewIDsHC_1=viewIDsHC;_a.label=7;case 7:if(!(_i0){pluginName=matches[1]}else{console.warn("Could not locate external plugin name in file "+iPluginFile)}return[3,5];case 4:iExcp_11=_a.sent();console.warn("Failed to load external plugin - "+iExcp_11.message);return[3,5];case 5:return[2,pluginName]}}))}))};eDwServiceMgr.prototype.getPluginFiles=function(){return __awaiter(this,void 0,void 0,(function(){var _a,_b,iExcp_12;return __generator(this,(function(_c){switch(_c.label){case 0:if(!eDwServiceMgr.usesWebServices())return[2,this.mPluginFiles];if(!!this.mPluginFiles.length)return[3,7];_c.label=1;case 1:_c.trys.push([1,6,,7]);if(!this.mAdvancedServicesDisabled)return[3,3];console.debugLog("ServiceMgr","Loading static plugin list");_a=this;return[4,this.ajax("GET","js/staticPluginList.json",{})];case 2:_a.mPluginFiles=_c.sent();return[3,5];case 3:console.debugLog("ServiceMgr","Finding plugins...");_b=this;return[4,this.ajax("GET","EDrawingsService.svc/GetPlugins",{})];case 4:_b.mPluginFiles=_c.sent();_c.label=5;case 5:return[3,7];case 6:iExcp_12=_c.sent();console.warn("No plugins available.");return[3,7];case 7:return[2,this.mPluginFiles]}}))}))};eDwServiceMgr.prototype.extendLicense=function(iKey){return __awaiter(this,void 0,void 0,(function(){var params;return __generator(this,(function(_a){switch(_a.label){case 0:if(this.mAdvancedServicesDisabled||!eDwServiceMgr.usesWebServices()){return[2]}params={data:{iKey:iKey},cache:false};return[4,this.ajax("GET","EDrawingsService.svc/ExtendLicense",params)];case 1:_a.sent();return[2]}}))}))};eDwServiceMgr.prototype.getBaseCacheDirs=function(){return __awaiter(this,void 0,void 0,(function(){var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:if(!!this.mBaseCacheDirs.length)return[3,2];this.mBaseCacheDirs=[];this.mGetBaseCacheDirsPromise=$.get("cacheDirs.xml",(function(iDoc){var cacheDirs=iDoc.getElementsByTagName("modelSearchDirectory");var numDirs=cacheDirs.length;for(var i=0;i-1){foundPluginFileName=pluginFileName}}return[2,foundPluginFileName]}}))}))};eDwServiceMgr.prototype.ajax=function(iMethod,iService,iParams){return __awaiter(this,void 0,void 0,(function(){var paramsObj,retAJAX,iExcp_13;return __generator(this,(function(_a){switch(_a.label){case 0:paramsObj={type:iMethod,url:this.mServerURL+"/"+iService,async:true};if(iParams)$.extend(paramsObj,iParams);_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,$.ajax(paramsObj)];case 2:retAJAX=_a.sent();return[3,4];case 3:iExcp_13=_a.sent();console.warn("AJAX "+iMethod+" failed for "+iService+": "+iExcp_13.message);throw iExcp_13;case 4:return[2,retAJAX]}}))}))};return eDwServiceMgr}();return eDwServiceMgr}));define("eDwSetHierNodeAttribsCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwSetHierNodeAttribsCmd=function(_super){__extends(eDwSetHierNodeAttribsCmd,_super);function eDwSetHierNodeAttribsCmd(iViewer,iHierNodes,iAttrib){var _this=_super.call(this,iViewer)||this;_this.mInitialHierNodeAttribs=[];_this.mFinalHierNodeAttribs=[];var finalAttrib=$.extend(true,{},iAttrib);for(var _i=0,iHierNodes_2=iHierNodes;_i-1){this.mTouchOpIDs.splice(opIndex,1);this.mViewer.OperatorMgr.unregisterCustomOperatorByID(iOpID)}};eDwTouchOpsMgr.isTouchEnabled=function(){function matchMedia(iFeature){return window.matchMedia&&window.matchMedia(iFeature).matches?true:false}var enabled=false;if("PointerEvent"in window&&"maxTouchPoints"in navigator){var maxTouchPoints=navigator.maxTouchPoints;if(utils.isNumber(maxTouchPoints)){if(navigator.maxTouchPoints>0){enabled=true}else if(navigator.maxTouchPoints===0&&matchMedia("(any-pointer:coarse)")){enabled=true}}}else{if(matchMedia("(any-pointer:coarse)")){enabled=true}else if("TouchEvent"in window||"ontouchstart"in window){enabled=true}}console.debugLog("TouchOps","Touch enabled = "+enabled);return enabled};return eDwTouchOpsMgr}();return eDwTouchOpsMgr}));define("eDwTypes",["require","exports"],(function(require,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.EntityMode=exports.SectionPlaneOrientation=exports.HCI=exports.HC=void 0;var HC=Communicator;exports.HC=HC;var HCI=Communicator.Internal;exports.HCI=HCI;exports.SectionPlaneOrientation={XY:{Plane:HC.Plane.createFromPointAndNormal(new HC.Point3(0,0,0),new HC.Point3(0,0,1)),Index:0},YZ:{Plane:HC.Plane.createFromPointAndNormal(new HC.Point3(0,0,0),new HC.Point3(1,0,0)),Index:1},ZX:{Plane:HC.Plane.createFromPointAndNormal(new HC.Point3(0,0,0),new HC.Point3(0,1,0)),Index:2}};exports.EntityMode={FACE:1,EDGE:2,VERTEX:4,HOLE:8,ALL:4294967295}}));define("eDwUI",["require","exports","eDwTypes","eDwKeyMgr","eDwUIBaseEventHandlers","eDwCommandMgr","eDwZoomToFitCmd","eDwDrawModeCmd","eDwAnimateCmd","eDwAmbientOcclusionCmd","eDwPerspectiveCmd","eDwSetViewCmd","eDwSetViewCameraCmd","eDwCompositeCmd","eDwSectionFlipCmd","eDwSetViewNormalToSectionCmd","eDwShowSectionCapCmd","eDwSectionShowCmd","eDwChangeSectionPlaneCmd","eDwUIPluginMgr","eDwEventMgr","eDwUIMessageReporter","eDwUIShortcutMenu","eDwUIUtils","eDrawingsWebViewerUtils","eDwEvents","utils"],(function(require,exports,eDwTypes_14,eDwKeyMgr_3,eDwUIBaseEventHandlers,eDwCommandMgr,eDwZoomToFitCmd,eDwDrawModeCmd,eDwAnimateCmd,eDwAmbientOcclusionCmd,eDwPerspectiveCmd,eDwSetViewCmd,eDwSetViewCameraCmd,eDwCompositeCmd,eDwSectionFlipCmd,eDwSetViewNormalToSectionCmd,eDwShowSectionCapCmd,eDwSectionShowCmd,eDwChangeSectionPlaneCmd,eDwUIPluginMgr,eDwEventMgr,eDwUIMessageReporter,eDwUIShortcutMenu_1,eDwUIUtils,eDrawingsWVUtils,eDwEvents,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.eDwUI=void 0;var eDwUI=function(){function eDwUI(){this.mUIEventHandlers=new UIEventHandlers(this,eDwUIUtils.getViewerElementName(),c_canvasID);this.mItemActiveCallbacks={};this.mItemDeactiveCallbacks={};solidworks.web.touch.support();this.awfulUIHacks()}eDwUI.prototype.initUIEvents=function(iViewerFeatOpts){this.mViewerFeatureOpts=iViewerFeatOpts;this.registerHTMLEvents()};eDwUI.prototype.init=function(iViewer){var _this=this;this.mViewer=iViewer;this.centerBottomBar();this.mViewer.XSectionMgr.SectionCapVisibility=true;$("#edrawings-section-capping-button").addClass("state-on-button");$("#edrawings-section-show-button").addClass("state-on-button");eDwUIUtils.hide(".edrawings-ui-main",false);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents.ResetSceneEvent,true)];case 1:_a.sent();return[2]}}))}))})()};eDwUI.prototype.toggleFullScreen=function(){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var methodName,viewerElem,iExcp_14;return __generator(this,(function(_a){switch(_a.label){case 0:methodName="exitFullScreen()";_a.label=1;case 1:_a.trys.push([1,6,,7]);if(!l_isFullScreen())return[3,3];document.exitFullscreen=document.exitFullscreen||utils.getFirstMatchedMethodObj(document,"xitFullscreen");if(!document.exitFullscreen){console.warn("exitFullscreen() does not exist.");return[2]}return[4,document.exitFullscreen()];case 2:_a.sent();return[3,5];case 3:methodName="requestFullscreen()";viewerElem=$("#edrawings-viewer")[0];viewerElem.requestFullscreen=viewerElem.requestFullscreen||utils.getFirstMatchedMethodObj(viewerElem,"equestFullscreen");if(!viewerElem.requestFullscreen){console.warn("requestFullscreen() does not exist.");return[2]}return[4,viewerElem.requestFullscreen()];case 4:_a.sent();_a.label=5;case 5:return[3,7];case 6:iExcp_14=_a.sent();console.warn(methodName+" failed. It took too long.");return[3,7];case 7:return[2]}}))}))})()};eDwUI.prototype.unregister=function(){this.unregisterHTMLEvents();UIEventHandlers.doModelDataUnloadActions(this.mViewer)};eDwUI.prototype.setDrawMode=function(iValue){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var drawModeCmd;return __generator(this,(function(_a){switch(_a.label){case 0:drawModeCmd=new eDwDrawModeCmd(this.mViewer,iValue);return[4,eDwCommandMgr.get().run(drawModeCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()};eDwUI.prototype.setInitialDrawMode=function(){if(!this.mViewer.ViewerFeatureOpts.RenderType)return;this.setDrawMode(this.mViewer.ViewerFeatureOpts.RenderType)};eDwUI.prototype.setPerspectiveMode=function(iValue){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var perspectiveCmd;return __generator(this,(function(_a){switch(_a.label){case 0:perspectiveCmd=new eDwPerspectiveCmd(this.mViewer,iValue);return[4,eDwCommandMgr.get().run(perspectiveCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()};eDwUI.prototype.hideAllOtherPanels=function(iPanelCSSClassName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iPanelCSSClassName!==".edrawings-hud-menu"))return[3,2];return[4,this.hideActiveHUDMenu()];case 1:_a.sent();_a.label=2;case 2:if(!(iPanelCSSClassName!==".edrawings-submenu"))return[3,4];return[4,this.hideActiveSubmenu()];case 3:_a.sent();_a.label=4;case 4:eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide();return[2]}}))}))};eDwUI.prototype.onClick=function(iID,iActivate){var activateCallback=this.mItemActiveCallbacks[iID];var deactivateCallback=this.mItemDeactiveCallbacks[iID];if(iActivate){if(activateCallback)activateCallback()}else{if(deactivateCallback)deactivateCallback()}return activateCallback||deactivateCallback?true:false};eDwUI.prototype.registerHTMLEvents=function(){var _this=this;this.mUIEventHandlers.addHTMLEventHandlers(this.mViewerFeatureOpts);this.mModelDataLoadCompleteHandler=function(iEvent,iViewer){_this.mViewer=iViewer;eDwUIBaseEventHandlers.doModelDataLoadCompleteActions(_this.mUIEventHandlers,iViewer)};$("#"+c_canvasID).on("edw:ModelDataLoadComplete",this.mModelDataLoadCompleteHandler);var self=this;this.registerButtonForClickEffect("edrawings-section-flip-button",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var sectionFlipCmd;return __generator(this,(function(_a){switch(_a.label){case 0:sectionFlipCmd=new eDwSectionFlipCmd(this.mViewer);return[4,eDwCommandMgr.get().run(sectionFlipCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}));this.registerButtonForClickEffect("edrawings-section-normal-button",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var setViewNormalToSectionCmd;return __generator(this,(function(_a){switch(_a.label){case 0:setViewNormalToSectionCmd=new eDwSetViewNormalToSectionCmd(this.mViewer);return[4,eDwCommandMgr.get().run(setViewNormalToSectionCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}));function setXSectionOrientation(iEvent,iUI,iOrientation){iUI.setXSectionOrientation(iOrientation);eDwUIUtils.scrollToTarget(eDwUIUtils.getAsJQueryObj(iEvent.currentTarget))}$("#edrawings-section-xz-button").on("click.edw",(function(iEvent){return setXSectionOrientation(iEvent,_this,eDwTypes_14.SectionPlaneOrientation.ZX)}));$("#edrawings-section-yz-button").on("click.edw",(function(iEvent){return setXSectionOrientation(iEvent,_this,eDwTypes_14.SectionPlaneOrientation.YZ)}));$("#edrawings-section-xy-button").on("click.edw",(function(iEvent){return setXSectionOrientation(iEvent,_this,eDwTypes_14.SectionPlaneOrientation.XY)}));$("#edrawings-section-capping-button").on("click.edw",(function(iEvent){var buttonJQ=eDwUIUtils.getAsJQueryObj(iEvent.currentTarget);var visibility=!buttonJQ.hasClass("state-on-button");(function(){return __awaiter(_this,void 0,void 0,(function(){var showCapsCmd;return __generator(this,(function(_a){switch(_a.label){case 0:showCapsCmd=new eDwShowSectionCapCmd(this.mViewer,visibility);return[4,eDwCommandMgr.get().run(showCapsCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();buttonJQ.toggleClass("state-on-button");eDwUIUtils.scrollToTarget(buttonJQ)}));$("#edrawings-section-show-button").on("click.edw",(function(iEvent){var buttonJQ=eDwUIUtils.getAsJQueryObj(iEvent.currentTarget);var showSection=!buttonJQ.hasClass("state-on-button");(function(){return __awaiter(_this,void 0,void 0,(function(){var showSectionCmd;return __generator(this,(function(_a){switch(_a.label){case 0:showSectionCmd=new eDwSectionShowCmd(this.mViewer,showSection);return[4,eDwCommandMgr.get().run(showSectionCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();buttonJQ.toggleClass("state-on-button");eDwUIUtils.scrollToTarget(buttonJQ)}));this.mItemActiveCallbacks["#edrawings-button-section"]=function(){return __awaiter(_this,void 0,void 0,(function(){function compositeSectionDone(ioCmd){ioCmd.clearSubCmds();self.mViewer.XSectionMgr.deactivateCurrent();self.mViewer.XSectionMgr.turnOnSectionPlane(false)}var self;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:eDwUIUtils.addPanelModeEvents("#edrawings-section-menu",".edw.section","#edrawings-button-section");this.mCompositeXSectionCmd=new eDwCompositeCmd(this.mViewer);eDwCommandMgr.get().add(this.mCompositeXSectionCmd);this.mCompositeXSectionCmd.initCmdActionImplementation({compositeInit:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.mViewer.XSectionMgr.turnOnSectionPlane(true);this.setXSectionOrientation();return[2]}))}))},compositeUndo:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,true]}))}))},compositeRedo:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,true]}))}))},compositeCommit:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){compositeSectionDone(ioCmd);return[2]}))}))},compositeCancel:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){compositeSectionDone(ioCmd);return[2]}))}))}});self=this;if(!!this.mViewer.getModel().isDrawing())return[3,2];return[4,this.setActiveSubmenu("#edrawings-button-section","#edrawings-section-menu")];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-section"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:eDwUIUtils.deactivateMoveInput(".edw.section");return[4,eDwCommandMgr.get().remove(this.mCompositeXSectionCmd,"cancel")];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-section"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-section"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));function activateDebugPanel(iActivate,iHandlers){return __awaiter(this,void 0,void 0,(function(){var shortcutMenu;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,togglePanel(iActivate,"#edrawings-button-debug","#edrawings-debug-menu",".edw.debug",iHandlers)];case 1:_a.sent();if(iActivate){shortcutMenu=eDwUIShortcutMenu_1.eDwUIShortcutMenu.get();if(!shortcutMenu.isEmpty()){shortcutMenu.addMenuSeparator(c_debugGroupName)}shortcutMenu.addMenuItem(c_debugGroupName,"edrawings-debug-node-matrices",(function(iEvent,iUIItemJQ,iArg){if(utils.isOfType(iArg,"attr")){var nodeIDHC=parseInt(iArg.attr("data-hoopsid"),10);if(utils.isNumber(nodeIDHC)){var modelHC=self.mViewer.getModel().getHCModel();var matrixHC=modelHC.getNodeMatrix(nodeIDHC);var msg="
Matrix = "+JSON.stringify(matrixHC)+"
";matrixHC=modelHC.getNodeNetMatrix(nodeIDHC);msg+="
Net matrix = "+JSON.stringify(matrixHC)+"
";eDwUIMessageReporter.showMessageInDebugPanel(msg)}}eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide()}))}else{eDwUIShortcutMenu_1.eDwUIShortcutMenu.get().removeAllMenuItems(c_debugGroupName)}return[2]}}))}))}this.mItemActiveCallbacks["#edrawings-button-debug"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateDebugPanel(true,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-debug"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateDebugPanel(false,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-debug"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-debug"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));this.mItemActiveCallbacks["#edrawings-button-reset"]=function(){return __awaiter(_this,void 0,void 0,(function(){var _this=this;return __generator(this,(function(_a){eDwUIUtils.resetToHomeView(this.mViewer);window.setTimeout((function(){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI()];case 1:_a.sent();return[2]}}))}))})()}),1e3);return[2]}))}))};$(document).on(c_fullScreenChange,(function(iEvent){if(l_isFullScreen()){l_fullScreenBtnJS.removeClass(c_restoreClass)}else{l_fullScreenBtnJS.addClass(c_restoreClass);$("#edrawings-canvas-canvas-container").css({"background-color":""})}}));$("#edrawings-button-fs").on("click.edw",(function(){_this.toggleFullScreen()}));function clickDrawMode(iUI,iMode){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:iUI.setDrawMode(iMode);return[4,iUI.hideActiveHUDMenu()];case 1:_a.sent();return[2]}}))}))})()}$("#edrawings-button-shaded-hlrr").on("click.edw",(function(){clickDrawMode(_this,"HiddenLinesRemoved")}));$("#edrawings-button-shaded-hlrv").on("click.edw",(function(){clickDrawMode(_this,"HiddenLinesVisible")}));$("#edrawings-button-shaded-wireframe").on("click.edw",(function(){clickDrawMode(_this,"Wireframe")}));$("#edrawings-button-shaded-full").on("click.edw",(function(){clickDrawMode(_this,"ShadedWithEdges")}));$("#edrawings-button-shaded-noedges").on("click.edw",(function(){clickDrawMode(_this,"Shaded")}));this.mItemActiveCallbacks["#edrawings-button-animate"]=function(){return __awaiter(_this,void 0,void 0,(function(){var animateCmd;return __generator(this,(function(_a){switch(_a.label){case 0:animateCmd=new eDwAnimateCmd(this.mViewer);return[4,eDwCommandMgr.get().run(animateCmd,"commit")];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-animate"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mItemActiveCallbacks["#edrawings-button-animate"]()];case 1:_a.sent();return[2]}}))}))};$("#edrawings-button-frame-file-open").on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();return[2]}}))}))})()}));this.mItemActiveCallbacks["#edrawings-button-view"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.setActiveHUDMenu("#edrawings-button-view","#edrawings-hud-view-menu")];case 1:_a.sent();return[2]}}))}))};this.mItemActiveCallbacks["#edrawings-button-help"]=function(){return __awaiter(_this,void 0,void 0,(function(){var version,viewerHC;return __generator(this,(function(_a){switch(_a.label){case 0:version="
Version #: "+eDrawingsWVUtils.getViewerVersion()+"
";if(this.mViewerFeatureOpts.Debug){viewerHC=this.mViewer.HCViewer;version+="
HC Version:"+viewerHC.getViewerVersionString()+"
Format Version: "+viewerHC.getFormatVersionString()+"
"}$("#edrawings-version").html(version);return[4,this.setActiveHUDMenu("#edrawings-button-help","#edrawings-hud-help-menu")];case 1:_a.sent();return[2]}}))}))};$("#edrawings-hud-help-close").on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();return[2]}}))}))})()}));this.mItemActiveCallbacks["#edrawings-button-zoomtofit"]=function(){return __awaiter(_this,void 0,void 0,(function(){var viewHC,curModelView,nodeID,zoomToFitCmd;return __generator(this,(function(_a){switch(_a.label){case 0:viewHC=this.mViewer.getHCView();curModelView=this.mViewer.getModel().getActiveModelView();nodeID=curModelView.Hierarchy.HOOPSID;zoomToFitCmd=new eDwZoomToFitCmd(this.mViewer,nodeID,viewHC.getCamera());return[4,eDwCommandMgr.get().run(zoomToFitCmd,"commit")];case 1:_a.sent();return[2]}}))}))};this.mItemActiveCallbacks["#edrawings-button-shaded"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.setActiveHUDMenu("#edrawings-button-shaded","#edrawings-hud-shaded-menu")];case 1:_a.sent();return[2]}}))}))};function togglePanel(iActivate,iButtonID,iPanelID,iInputEventIDSuffix,iHandlers){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!iActivate)return[3,2];return[4,self.setActiveSubmenu(iButtonID,iPanelID)];case 1:_a.sent();eDwUIUtils.addPanelModeEvents(iPanelID,iInputEventIDSuffix,iButtonID);return[3,3];case 2:eDwUIUtils.deactivateMoveInput(iInputEventIDSuffix);_a.label=3;case 3:return[2]}}))}))}function activateSheetPanel(iActivate,iHandlers){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,togglePanel(iActivate,"#edrawings-button-sheet-tree","#edrawings-sheet-tree-menu",".edw.sheet",iHandlers)];case 1:_a.sent();return[2]}}))}))}this.mItemActiveCallbacks["#edrawings-button-sheet-tree"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateSheetPanel(true,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-sheet-tree"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateSheetPanel(false,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-sheet-tree"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-sheet-tree"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));function activateLayerPanel(iActivate,iHandlers){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,togglePanel(iActivate,"#edrawings-button-layer-control","#edrawings-layer-control-menu",".edw.layer",iHandlers)];case 1:_a.sent();return[2]}}))}))}this.mItemActiveCallbacks["#edrawings-button-layer-control"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateLayerPanel(true,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-layer-control"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateLayerPanel(false,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-layer-control"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-layer-control"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));eDwKeyMgr_3.eDwKeyMgr.get().add({key:"F11"},"keydown",(function(iEvent){iEvent.preventDefault();_this.toggleFullScreen();iEvent.stopPropagation()}));this.mItemActiveCallbacks["#edrawings-button-view-settings"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.setActiveHUDMenu("#edrawings-button-view-settings","#edrawings-hud-view-settings-menu")];case 1:_a.sent();return[2]}}))}))};var ambientOcc=$("#edrawings-button-view-ambient-occlusion");ambientOcc.on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var buttonActive,ambientOcclCmd;return __generator(this,(function(_a){switch(_a.label){case 0:buttonActive=ambientOcc.hasClass("state-on-button");return[4,this.hideActiveHUDMenu()];case 1:_a.sent();if(buttonActive)ambientOcc.removeClass("state-on-button");else ambientOcc.addClass("state-on-button");ambientOcclCmd=new eDwAmbientOcclusionCmd(this.mViewer,!buttonActive);return[4,eDwCommandMgr.get().run(ambientOcclCmd,"commit")];case 2:_a.sent();return[2]}}))}))})()}));$("#edrawings-button-view-perspective").on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var perspectiveMode;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();perspectiveMode=!this.mViewer.getPerspectiveMode();this.setPerspectiveMode(perspectiveMode);return[2]}}))}))})()}));this.registerButtonForClickEffect("edrawings-button-view-top",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Top)}));this.registerButtonForClickEffect("edrawings-button-view-bottom",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Bottom)}));this.registerButtonForClickEffect("edrawings-button-view-left",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Left)}));this.registerButtonForClickEffect("edrawings-button-view-right",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Right)}));this.registerButtonForClickEffect("edrawings-button-view-front",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Front)}));this.registerButtonForClickEffect("edrawings-button-view-back",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Back)}));this.registerButtonForClickEffect("edrawings-button-view-iso",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Iso)}))};eDwUI.prototype.unregisterHTMLEvents=function(){this.mUIEventHandlers.removeHTMLEventHandlers();$("#"+c_canvasID).off("edw:ModelDataLoadComplete",this.mModelDataLoadCompleteHandler);$("#edrawings-section-xz-button").off("click.edw");$("#edrawings-section-yz-button").off("click.edw");$("#edrawings-section-xy-button").off("click.edw");$("#edrawings-section-capping-button").off("click.edw");$("#edrawings-section-show-button").off("click.edw");$("#edrawings-button-fs").off("click.edw");$("#edrawings-button-shaded-hlrr").off("click.edw");$("#edrawings-button-shaded-hlrv").off("click.edw");$("#edrawings-button-shaded-wireframe").off("click.edw");$("#edrawings-button-shaded-full").off("click.edw");$("#edrawings-button-shaded-noedges").off("click.edw");$("#edrawings-button-sheets").off("click.edw");$("#edrawings-button-frame-file-open").off("click.edw");$("#edrawings-button-view-ambient-occlusion").off("click.edw");$("#edrawings-button-view-perspective").off("click.edw");$("#edrawings-hud-help-close").off("click.edw");$(document).off(c_fullScreenChange);$(document).off("click.edw");$(document).off("mousedown.edw");$(document).off("dblclick.edw");this.unregisterButtonForClickEffect("edrawings-section-flip-button");this.unregisterButtonForClickEffect("edrawings-section-normal-button");this.unregisterButtonForClickEffect("edrawings-face-normal-button");this.unregisterButtonForClickEffect("edrawings-button-view-top");this.unregisterButtonForClickEffect("edrawings-button-view-bottom");this.unregisterButtonForClickEffect("edrawings-button-view-left");this.unregisterButtonForClickEffect("edrawings-button-view-right");this.unregisterButtonForClickEffect("edrawings-button-view-front");this.unregisterButtonForClickEffect("edrawings-button-view-back");this.unregisterButtonForClickEffect("edrawings-button-view-iso")};eDwUI.prototype.setActiveSubmenu=function(iButtonID,iPanelID){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.activateUI(iButtonID,iPanelID)];case 1:_a.sent();return[2]}}))}))};eDwUI.prototype.hideActiveSubmenu=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-tool-button",".edrawings-submenu")];case 1:_a.sent();return[2]}}))}))};eDwUI.prototype.centerBottomBar=function(iWidth,iHeight){$(".tool-bar").css({height:"auto"});var barJQ=$(".tool-bar");var viewerElemJQ=$(eDwUIUtils.getViewerElementID());var leftButtonsJQ=$(".edrawings-icon-set.left");var rightButtonsJQ=$(".edrawings-icon-set.right");var centerButtonsJQ=$(".edrawings-icon-set.center");var width=(iWidth?iWidth:viewerElemJQ.width())-1;if(navigator.userAgent.indexOf("Trident")>=0){width=viewerElemJQ[0].clientWidth-1}barJQ.css({position:"absolute"});leftButtonsJQ.css({left:1+"px",position:"absolute"});rightButtonsJQ.css({right:1+"px",position:"absolute"});centerButtonsJQ.css({left:width/2-52/2+"px",position:"absolute"})};eDwUI.prototype.setActiveHUDMenu=function(iButtonID,iPanelID){return __awaiter(this,void 0,void 0,(function(){var buttonJQ,buttonOffset,posx,posy,canvasWidth,panelJQ,panelWidth;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();return[4,eDwUIUtils.activateUI(iButtonID,iPanelID)];case 2:_a.sent();if(iButtonID!=="#edrawings-button-help"){buttonJQ=$(iButtonID);buttonOffset=buttonJQ.offset();posx=buttonOffset.left;posy=buttonOffset.top+parseInt(buttonJQ.css("marginTop"))+parseInt(buttonJQ.css("borderTopWidth"))+buttonJQ.height();canvasWidth=$("#edrawings-canvas").width();panelJQ=$(iPanelID);panelWidth=panelJQ[0].offsetWidth;if(posx+panelWidth>canvasWidth){posx=canvasWidth-panelWidth-10}panelJQ.css({top:posy+"px",left:posx+"px"})}return[2]}}))}))};eDwUI.prototype.hideActiveHUDMenu=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-hud-button",".edrawings-hud-menu")];case 1:_a.sent();return[2]}}))}))};eDwUI.prototype.registerButtonForClickEffect=function(iButtonID,iHandler){var butJQ=$("#"+iButtonID);butJQ.on("mousedown.edw",(function(){butJQ.addClass("edrawings-on-state");eDwUIUtils.scrollToTarget(butJQ)}));butJQ.on("mouseup.edw",(function(){butJQ.removeClass("edrawings-on-state");iHandler()}))};eDwUI.prototype.unregisterButtonForClickEffect=function(iButtonID){var butJQ=$("#"+iButtonID);butJQ.off("mousedown.edw");butJQ.off("mouseup.edw")};eDwUI.prototype.setViewOrientation=function(iOrientation){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var setViewCmd;return __generator(this,(function(_a){switch(_a.label){case 0:setViewCmd=new eDwSetViewCmd(this.mViewer,iOrientation);return[4,eDwCommandMgr.get().run(setViewCmd,"commit")];case 1:_a.sent();return[4,this.hideActiveHUDMenu()];case 2:_a.sent();return[2]}}))}))})()};eDwUI.prototype.setXSectionOrientation=function(iNewSection){var _this=this;function setActive(iButtonID,iIsActive){$(iButtonID)[iIsActive?"addClass":"removeClass"]("state-on-button")}var sectionMgr=this.mViewer.XSectionMgr;var sectionIndex=iNewSection?iNewSection.Index:sectionMgr.SectionIndex;var planeFromEnum=null;switch(sectionIndex){case eDwTypes_14.SectionPlaneOrientation.YZ.Index:setActive("#edrawings-section-xy-button",false);setActive("#edrawings-section-yz-button",true);setActive("#edrawings-section-xz-button",false);planeFromEnum=eDwTypes_14.SectionPlaneOrientation.YZ;break;case eDwTypes_14.SectionPlaneOrientation.ZX.Index:setActive("#edrawings-section-xy-button",false);setActive("#edrawings-section-yz-button",false);setActive("#edrawings-section-xz-button",true);planeFromEnum=eDwTypes_14.SectionPlaneOrientation.ZX;break;case eDwTypes_14.SectionPlaneOrientation.XY.Index:eDwUIUtils.hide("#edrawings-section-xy-button",false);eDwUIUtils.hide("#edrawings-section-yz-button",false);eDwUIUtils.hide("#edrawings-section-xz-button",false);setActive("#edrawings-section-xy-button",true);setActive("#edrawings-section-yz-button",false);setActive("#edrawings-section-xz-button",false);planeFromEnum=eDwTypes_14.SectionPlaneOrientation.XY;break;default:console.debugLog("UI","Unsupported section plane orientation");break}var origPlaneEnum=null;if(sectionIndex!==sectionMgr.SectionIndex){switch(sectionMgr.SectionIndex){case eDwTypes_14.SectionPlaneOrientation.YZ.Index:origPlaneEnum=eDwTypes_14.SectionPlaneOrientation.YZ;break;case eDwTypes_14.SectionPlaneOrientation.ZX.Index:origPlaneEnum=eDwTypes_14.SectionPlaneOrientation.ZX;break;case eDwTypes_14.SectionPlaneOrientation.XY.Index:origPlaneEnum=eDwTypes_14.SectionPlaneOrientation.XY;break;default:console.debugLog("UI","Unsupported initial section plane orientation");break}if(planeFromEnum&&origPlaneEnum){(function(){return __awaiter(_this,void 0,void 0,(function(){var changeSectionPlaneCmd;return __generator(this,(function(_a){switch(_a.label){case 0:changeSectionPlaneCmd=new eDwChangeSectionPlaneCmd(this.mViewer,origPlaneEnum,planeFromEnum);return[4,eDwCommandMgr.get().run(changeSectionPlaneCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}}};eDwUI.prototype.awfulUIHacks=function(){var _this=this;l_init=function(){$("#edrawings-face-normal-button").removeClass("edrawings-inactive");_this.registerButtonForClickEffect("edrawings-face-normal-button",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var setViewCameraCmd;return __generator(this,(function(_a){switch(_a.label){case 0:setViewCameraCmd=new eDwSetViewCameraCmd(this.mViewer);return[4,eDwCommandMgr.get().run(setViewCameraCmd,"commit")];case 1:_a.sent();return[4,this.hideActiveHUDMenu()];case 2:_a.sent();return[2]}}))}))})()}))};l_uninit=function(){$("#edrawings-face-normal-button").addClass("edrawings-inactive");_this.unregisterButtonForClickEffect("edrawings-face-normal-button")}};return eDwUI}();exports.eDwUI=eDwUI;var UIEventHandlers=function(_super){__extends(UIEventHandlers,_super);function UIEventHandlers(iUI,iViewerHTMLID,iViewerHTMLCanvasID){var _this=_super.call(this,iViewerHTMLID,iViewerHTMLCanvasID)||this;_this.mUI=iUI;return _this}UIEventHandlers.prototype.addHTMLEventHandlers=function(iViewerFeatOpts){var _this=this;_super.prototype.addHTMLEventHandlers.call(this,iViewerFeatOpts);$("#edrawings-viewer").on("click.edw",".edrawings-tool-button",(function(iEvent){_this.onClick(iEvent,".edrawings-tool-button")}));$("#edrawings-viewer").on("click.edw",".edrawings-hud-button",(function(iEvent){_this.onClick(iEvent,".edrawings-hud-button",".edrawings-submenu")}));this.mUIHTMLEventMgr.addEventHandler("window","beforeunload",(function(iEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.mUI.unregister();return[2]}))}))}));this.mUIHTMLEventMgr.addEventHandler("window","Timeout",(function(iEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.mUI.unregister();return[2]}))}))}));$(".edrawings-menu-close").on("click.edw",(function(iEvent){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.deactivateActiveButton(".edrawings-tool-button")];case 1:_a.sent();return[2]}}))}))})()}));var viewerJQ=$(eDwUIUtils.getViewerElementID());viewerJQ.on("edw:ChangeViewerStyling",(function(iEvent,iStyleClassName){viewerJQ.removeClass("edrawings-viewer-regular");viewerJQ.removeClass("edrawings-viewer-timeout");if(iStyleClassName)viewerJQ.addClass(iStyleClassName)}));viewerJQ.on("edw:HidePanels",(function(iEvent,iSkipPanelsWithClass){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mUI.hideAllOtherPanels(iSkipPanelsWithClass)];case 1:_a.sent();return[2]}}))}))})()}));viewerJQ.on("edw:ReInitViewer",(function(iEvent,iViewerFeatOpts){_this.mUI.unregister();_this.mUI.initUIEvents(iViewerFeatOpts)}))};UIEventHandlers.prototype.removeHTMLEventHandlers=function(){_super.prototype.removeHTMLEventHandlers.call(this);$(".edrawings-menu-close").off("click.edw");$("#edrawings-viewer").off("click.edw",".edrawings-tool-button");$("#edrawings-viewer").off("click.edw",".edrawings-hud-button");var viewerJQ=$(eDwUIUtils.getViewerElementID());viewerJQ.off("edw:ChangeViewerStyling");viewerJQ.off("edw:HidePanels");viewerJQ.off("edw:ReInitViewer")};UIEventHandlers.doModelDataUnloadActions=function(iViewer){eDwUIBaseEventHandlers.doModelDataUnloadActions(iViewer)};UIEventHandlers.prototype.onInit=function(iViewer){var viewerFeatureOpts=iViewer.ViewerFeatureOpts;var model=iViewer.getModel();var isDrawing=model.isDrawing();eDwUIUtils.hide("#edrawings-button-reset",false);eDwUIUtils.hide("#edrawings-button-shaded",isDrawing);eDwUIUtils.hide("#edrawings-button-view-settings",isDrawing);eDwUIUtils.hide("#edrawings-button-animate",isDrawing);eDwUIUtils.hide("#edrawings-button-section",isDrawing);eDwUIUtils.hide("#edrawings-button-view",isDrawing);eDwUIUtils.hide("#edrawings-button-debug",!viewerFeatureOpts.Debug);eDwUIUtils.hide("#edrawings-button-tables-control",isDrawing||iViewer.TableMgr.numTables()===0);eDwUIUtils.hide("#edrawings-button-sheet-tree",!isDrawing);eDwUIUtils.hide("#edrawings-button-layer-control",!isDrawing);eDwUIUtils.hide(".edrawings-icon-set.center",isDrawing);this.removeHTMLEventHandlers()};UIEventHandlers.prototype.onInitFullUI=function(iViewer){_super.prototype.onInitFullUI.call(this,iViewer);this.addHTMLEventHandlers(iViewer.ViewerFeatureOpts);this.mUI.init(iViewer);eDwUIUtils.hide("#WaitBanner",true)};UIEventHandlers.prototype.onSelect=function(iViewer,iSelObjs){_super.prototype.onSelect.call(this,iViewer,iSelObjs);if(l_init)l_init()};UIEventHandlers.prototype.onUnselect=function(iViewer,iSelObjs){_super.prototype.onUnselect.call(this,iViewer,iSelObjs);if(l_uninit)l_uninit()};UIEventHandlers.prototype.onTimeout=function(iViewer){eDwUIUtils.hide("#TimeoutBanner",false);$(eDwUIUtils.getViewerElementID()).trigger("edw:ChangeViewerStyling","edrawings-viewer-timeout")};UIEventHandlers.prototype.onStartAnimation=function(iViewer){var eDwViewer=iViewer;$("#edrawings-canvas").on("click.edw",(function(){eDwViewer.ViewMgr.stop()}));var animateBtnJQ=$("#edrawings-button-animate");animateBtnJQ.removeClass("edrawings-animate-play-icon");animateBtnJQ.addClass("edrawings-animate-pause-icon")};UIEventHandlers.prototype.onStopAnimation=function(iViewer){var animateBtnJQ=$("#edrawings-button-animate");animateBtnJQ.addClass("edrawings-animate-play-icon");animateBtnJQ.removeClass("edrawings-animate-pause-icon")};UIEventHandlers.prototype.onAmbientOcclusionChange=function(iViewer,iAmbientOcclusionOn){var ambientOccButton=$("#edrawings-button-view-ambient-occlusion");if(iAmbientOcclusionOn){if(!ambientOccButton.hasClass("state-on-button")){ambientOccButton.addClass("state-on-button")}}else{if(ambientOccButton.hasClass("state-on-button")){ambientOccButton.removeClass("state-on-button")}}};UIEventHandlers.prototype.onProjectionModeChange=function(iViewer,iPerspectiveOn){var perspectiveButton=$("#edrawings-button-view-perspective");if(iPerspectiveOn){if(!perspectiveButton.hasClass("state-on-button")){perspectiveButton.addClass("state-on-button")}}else{if(perspectiveButton.hasClass("state-on-button")){perspectiveButton.removeClass("state-on-button")}}};UIEventHandlers.prototype.onDrawModeChange=function(iViewer,iDrawMode){function setActive(iButtonID,iIsActive){if(iIsActive&&!$(iButtonID).hasClass("state-on-button")){$(iButtonID).addClass("state-on-button")}else if(!iIsActive&&$(iButtonID).hasClass("state-on-button")){$(iButtonID).removeClass("state-on-button")}}function setActiveInGroup(iButtonID){setActive("#edrawings-button-shaded-full",false);setActive("#edrawings-button-shaded-noedges",false);setActive("#edrawings-button-shaded-wireframe",false);setActive("#edrawings-button-shaded-hlrr",false);setActive("#edrawings-button-shaded-hlrv",false);setActive(iButtonID,true)}switch(iDrawMode){case"ShadedWithEdges":setActiveInGroup("#edrawings-button-shaded-full");break;case"Shaded":setActiveInGroup("#edrawings-button-shaded-noedges");break;case"HiddenLinesRemoved":setActiveInGroup("#edrawings-button-shaded-hlrr");break;case"HiddenLinesVisible":setActiveInGroup("#edrawings-button-shaded-hlrv");break;case"Wireframe":setActiveInGroup("#edrawings-button-shaded-wireframe");break;default:throw new Error("Unknown draw mode in UI:"+iDrawMode)}};UIEventHandlers.prototype.onClick=function(iEvent,iButtonCSSClassName,iPanelCSSClassName){var _this=this;if(iPanelCSSClassName===void 0){iPanelCSSClassName=""}(function(){return __awaiter(_this,void 0,void 0,(function(){var targetJQ,buttonClickedID,deactivatedButtonID;return __generator(this,(function(_a){switch(_a.label){case 0:targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);buttonClickedID=targetJQ.closest(iButtonCSSClassName).attr("id");return[4,this.deactivateActiveButton(iButtonCSSClassName,iPanelCSSClassName)];case 1:deactivatedButtonID=_a.sent();if(deactivatedButtonID===buttonClickedID)return[2];this.handleClick("#"+buttonClickedID,true);return[2]}}))}))})()};UIEventHandlers.prototype.deactivateActiveButton=function(iButtonCSSClassName,iPanelCSSClassName){if(iPanelCSSClassName===void 0){iPanelCSSClassName=""}return __awaiter(this,void 0,void 0,(function(){var activeButtonID,activeButtonJQ;return __generator(this,(function(_a){switch(_a.label){case 0:activeButtonID="";activeButtonJQ=$(iButtonCSSClassName+".active-button");return[4,this.mUI.hideAllOtherPanels(iPanelCSSClassName)];case 1:_a.sent();if(activeButtonJQ.length){activeButtonID=activeButtonJQ[0].id;this.handleClick("#"+activeButtonID,false)}return[2,activeButtonID]}}))}))};UIEventHandlers.prototype.handleClick=function(iButtonID,iActivate){eDwUIUtils.scrollToTarget($(iButtonID));if(!this.mUI.onClick(iButtonID,iActivate)){var pluginMgr=eDwUIPluginMgr.get();pluginMgr.onClick(iButtonID,iActivate)}};return UIEventHandlers}(eDwUIBaseEventHandlers);var c_fullScreenChange="fullscreenchange.edw MSFullscreenChange.edw"+" webkitfullscreenchange.edw";var c_restoreClass="edrawings-button-fs-restore";var c_canvasID="edrawings-canvas";var c_debugGroupName="Debug";var l_fullScreenBtnJS;var l_init;var l_uninit;function l_isFullScreen(){if(!l_fullScreenBtnJS)l_fullScreenBtnJS=$("#edrawings-button-fs");return l_fullScreenBtnJS.hasClass(c_restoreClass)}}));define("eDwUIBaseEventHandlers",["require","exports","eDwEventMgr","eDwUIHTMLEventMgr","eDwCommandMgr","eDwChangeModelViewCmd","eDwCompositeCmd","eDwSetLayerVisibilityCmd","eDwUIPluginMgr","eDwEvents","eDwUIUtils","eDwUIShortcutMenu","utils"],(function(require,exports,eDwEventMgr,eDwUIHTMLEventMgr,eDwCommandMgr,eDwChangeModelViewCmd,eDwCompositeCmd,eDwSetLayerVisibilityCmd,eDwUIPluginMgr,eDwEvents,eDwUIUtils,eDwUIShortcutMenu_2,utils){"use strict";var eDwUIBaseEventHandlers=function(){function eDwUIBaseEventHandlers(iViewerHTMLID,iViewerHTMLCanvasID){this.mViewerHTMLID=iViewerHTMLID;this.mViewerHTMLCanvasID=iViewerHTMLCanvasID;this.mUIHTMLEventMgr=new eDwUIHTMLEventMgr}eDwUIBaseEventHandlers.prototype.addHTMLEventHandlers=function(iViewerFeatOpts){var _this=this;this.mViewerFeatureOpts=iViewerFeatOpts;var eventMgrHTML=this.mUIHTMLEventMgr;eventMgrHTML.addEventHandler("window","resize",(function(iEvent){_this.onResize(iEvent,_this.mViewer)}));eDwEventMgr.get().addEventHandlerFunc(eDwEvents.ResetSceneEvent,l_onResize);eDwUIUtils.addSubTreeArrowEventHandler(eventMgrHTML,"#edrawings-sheet-tree-menu");eventMgrHTML.addDelegatedEventHandler("#edrawings-sheet-tree-menu .edrawings-submenu-list-item","dblclick",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);if(targetJQ.hasClass("edrawings-root")){return}var selObjIDHC=eDwUIUtils.getIDHC(targetJQ);if(isNaN(selObjIDHC)||selObjIDHC<0){return}(function(){return __awaiter(_this,void 0,void 0,(function(){var cmdMgr,zoomToViewCmd,targetModelView,model,modelHC,modelViews,_i,modelViews_4,modelView,configIDHC,configChildren,activeModelView,changeModelViewCmd;return __generator(this,(function(_a){switch(_a.label){case 0:cmdMgr=eDwCommandMgr.get();zoomToViewCmd=new eDwCompositeCmd(this.mViewer);zoomToViewCmd.initCmdActionImplementation();return[4,cmdMgr.add(zoomToViewCmd)];case 1:_a.sent();targetModelView=null;model=this.mViewer.getModel();modelHC=model.getHCModel();modelViews=model.getModelViews();for(_i=0,modelViews_4=modelViews;_i-1){console.excludeDebugLogCategories.slice(pos,1)}}}));var selectorName="#edrawings-debug-menu .edrawings-submenu-list-item";eventMgrHTML.addDelegatedEventHandler(selectorName,"click",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);var id=eDwUIUtils.getIDHC(targetJQ);if(isNaN(id))return;$(selectorName).removeClass("edrawings-list-selected");$(targetJQ).addClass("edrawings-list-selected");_this.mViewer.SelectionMgr.selectByID(id)}));eventMgrHTML.addDelegatedEventHandler("#edrawings-debug-menu .edrawings-submenu-list-item","dblclick",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);var id=eDwUIUtils.getIDHC(targetJQ);if(isNaN(id))return;_this.onLeftDoubleClick(_this.mViewer)}));eventMgrHTML.addEventHandler("#edrawings-debug-menu .edrawings-menu-search-cancel","click",(function(iEvent){$("#edrawings-debug-menu "+".edrawings-menu-search-input").val("");var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.searchPanelList(_this.mViewer,targetJQ)}));eventMgrHTML.addEventHandler("#edrawings-debug-menu .edrawings-menu-search-input","keyup",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.searchPanelList(_this.mViewer,targetJQ)}));eventMgrHTML.addDelegatedEventHandler("#edrawings-layer-control-menu .item-layer-checkbox","click",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var layerName=eDwUIUtils.getSpanText(targetJQ.next("span.item-tree-text"));var isVisible=targetJQ.prop("checked");_this.setOneLayerVisibility(layerName,isVisible)}));eventMgrHTML.addDelegatedEventHandler("#edrawings-layer-control-menu .layer-all","click",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var isVisible=targetJQ.prop("checked");_this.setAllLayerVisibility(isVisible)}));eventMgrHTML.addEventHandler("#edrawings-filename-block","mouseover",(function(iEvent){var filenameJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);if(filenameJQ.length===1&&filenameJQ[0].scrollWidth>filenameJQ.width()){var mouseEvent=iEvent;l_positionTicker(mouseEvent,filenameJQ,$("#edrawings-filename-text").text())}}));eventMgrHTML.addEventHandler("#edrawings-filename-block","mouseout",(function(iEvent){l_hideTicker()}));eventMgrHTML.addDelegatedEventHandler("document .edrawings-submenu-list-item","mouseover",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var itemTreeTextJQ=targetJQ.find(".item-tree-text");var edrawingsSubmenuListJQ=targetJQ.closest(".edrawings-submenu-list");if(edrawingsSubmenuListJQ.length===1&&itemTreeTextJQ.length===1&&itemTreeTextJQ[0].scrollWidth>itemTreeTextJQ.width()){var mouseEvent=iEvent;l_positionTicker(mouseEvent,itemTreeTextJQ,itemTreeTextJQ.text())}}));eventMgrHTML.addDelegatedEventHandler("document .edrawings-submenu-list-item","mouseout",(function(iEvent){l_hideTicker()}));eventMgrHTML.addEventHandler("#edrawings-hud-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-left)","click",(function(iEvent){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar($("#edrawings-hud-bar .edrawings-hud-bar-content"),".edrawings-hud-button",".edrawings-hud-menu",-c_hudBarIconWidth)];case 1:_a.sent();return[2]}}))}))})()}));eventMgrHTML.addEventHandler("#edrawings-hud-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-right)","click",(function(iEvent){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar($("#edrawings-hud-bar .edrawings-hud-bar-content"),".edrawings-hud-button",".edrawings-hud-menu",c_hudBarIconWidth)];case 1:_a.sent();return[2]}}))}))})()}));eDwUIUtils.enableScrollOnTouch(eventMgrHTML,"#edrawings-hud-bar .edrawings-hud-bar-content","#edrawings-hud-bar",(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-hud-button",".edrawings-hud-menu")];case 1:_a.sent();return[2]}}))}))}));eventMgrHTML.addEventHandler("#edrawings-left-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-up)","click",(function(iEvent){var barJQ=$("#edrawings-left-bar");var contentJQ=barJQ.find(".edrawings-tool-bar-content");(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar(contentJQ,".edrawings-tool-button",".edrawings-submenu",-c_toolBarIconWidth,barJQ)];case 1:_a.sent();return[2]}}))}))})()}));eventMgrHTML.addEventHandler("#edrawings-left-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-down)","click",(function(iEvent){var barJQ=$("#edrawings-left-bar");var contentJQ=barJQ.find(".edrawings-tool-bar-content");(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar(contentJQ,".edrawings-tool-button",".edrawings-submenu",c_toolBarIconWidth,barJQ)];case 1:_a.sent();return[2]}}))}))})()}));eDwUIUtils.enableScrollOnTouch(eventMgrHTML,"#edrawings-left-bar .edrawings-tool-bar-content","#edrawings-left-bar",(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-tool-button",".edrawings-submenu")];case 1:_a.sent();return[2]}}))}))}))};eDwUIBaseEventHandlers.prototype.addDefaultHTMLPanelCloseEventHandlers=function(){if(this.mViewerFeatureOpts.Debug){eDwUIUtils.addCloseEventHandler("#edrawings-debug-menu",this.mUIHTMLEventMgr)}eDwUIUtils.addCloseEventHandler("#edrawings-sheet-tree-menu",this.mUIHTMLEventMgr);eDwUIUtils.addCloseEventHandler("#edrawings-layer-control-menu",this.mUIHTMLEventMgr)};eDwUIBaseEventHandlers.doModelDataLoadCompleteActions=function(ioEventHandlerObj,iViewer){ioEventHandlerObj.mViewer=iViewer;l_loadUIPlugins(iViewer);var handlerObj=ioEventHandlerObj;var eventMgr=eDwEventMgr.get();eventMgr.addEventHandlerObj(eDwEvents.InitEvent,handlerObj,"onInit");eventMgr.addEventHandlerObj(eDwEvents.InitFullUIEvent,handlerObj,"onInitFullUI");eventMgr.addEventHandlerObj(eDwEvents.SelectEvent,handlerObj,"onSelect");eventMgr.addEventHandlerObj(eDwEvents.UnselectEvent,handlerObj,"onUnselect");eventMgr.addEventHandlerObj(eDwEvents.StartAnimationEvent,handlerObj,"onStartAnimation");eventMgr.addEventHandlerObj(eDwEvents.StopAnimationEvent,handlerObj,"onStopAnimation");eventMgr.addEventHandlerObj(eDwEvents.LeftDoubleClickEvent,handlerObj,"onLeftDoubleClick");eventMgr.addEventHandlerObj(eDwEvents.TimeoutEvent,handlerObj,"onTimeout");eventMgr.addEventHandlerObj(eDwEvents.DrawModeChangeEvent,handlerObj,"onDrawModeChange");eventMgr.addEventHandlerObj(eDwEvents.ProjModeChangeEvent,handlerObj,"onProjectionModeChange");eventMgr.addEventHandlerObj(eDwEvents.NodeAttribChangeEvent,handlerObj,"onNodeAttribChanged");eventMgr.addEventHandlerObj(eDwEvents.ResetSceneEvent,handlerObj,"onResetScene");eventMgr.addEventHandlerObj(eDwEvents.AmbientOcclChangeEvent,handlerObj,"onAmbientOcclusionChange");eventMgr.addEventHandlerObj(eDwEvents.DoneEvent,handlerObj,"onDone");eventMgr.addEventHandlerObj(eDwEvents.ModelViewChangeEvent,handlerObj,"onModelViewChange")};eDwUIBaseEventHandlers.prototype.removeHTMLEventHandlers=function(){eDwUIUtils.disableScrollOnTouch(this.mUIHTMLEventMgr,"#edrawings-hud-bar .edrawings-hud-bar-content");eDwUIUtils.disableScrollOnTouch(this.mUIHTMLEventMgr,"#edrawings-left-bar .edrawings-tool-bar-content");this.mUIHTMLEventMgr.removeAllEventHandlers();eDwUIShortcutMenu_2.eDwUIShortcutMenu.destroy()};eDwUIBaseEventHandlers.doModelDataUnloadActions=function(iViewer){l_unloadUIPlugins();if(iViewer)iViewer.unregister();eDwEventMgr.get().removeAllEventHandlers()};eDwUIBaseEventHandlers.prototype.onInit=function(iViewer){this.mViewer=iViewer};eDwUIBaseEventHandlers.prototype.onInitFullUI=function(iViewer){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.updateUI(iViewer,iViewer.getModel().getActiveModelView(),true)];case 1:_a.sent();return[2]}}))}))})()};eDwUIBaseEventHandlers.prototype.onDone=function(iViewer){iViewer.destroy()};eDwUIBaseEventHandlers.prototype.onSelect=function(iViewer,iSelObjs){this.handleSelectionChange(iViewer,iSelObjs,true)};eDwUIBaseEventHandlers.prototype.onUnselect=function(iViewer,iSelObjs){this.handleSelectionChange(iViewer,iSelObjs,false)};eDwUIBaseEventHandlers.prototype.onLeftDoubleClick=function(iViewer){eDwUIUtils.zoomToFit(iViewer);eDwUIShortcutMenu_2.eDwUIShortcutMenu.hide()};eDwUIBaseEventHandlers.prototype.onModelViewChange=function(iViewer,iNewModelView,iIsAssembly){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.updateUI(iViewer,iNewModelView)];case 1:_a.sent();return[2]}}))}))})()};eDwUIBaseEventHandlers.prototype.onNodeAttribChanged=function(iViewer,iHierNodesAndAttribs){if(iViewer.ViewerFeatureOpts.Debug){for(var _i=0,iHierNodesAndAttribs_3=iHierNodesAndAttribs;_i1){hudBarJQ.offset({left:Math.ceil(filenameBlockRight),top:hudBarOffset.top});l_resizeTopBar()}else if(hudBarContentJQ[0].scrollWidth===0||hudBarContentJQ.width()>=hudBarContentJQ[0].scrollWidth){topBarJQ.removeClass("edrawings-collided-hud-bar");hudBarJQ.removeClass("edrawings-collided");hudBarJQ.css({left:""})}}else{if(filenameBlockOffset.left!==hudBarOffset.left&&filenameBlockRight>hudBarOffset.left){hudBarJQ.offset({left:Math.ceil(filenameBlockRight),top:hudBarOffset.top});topBarJQ.addClass("edrawings-collided-hud-bar");hudBarJQ.addClass("edrawings-collided")}}eDwUIUtils.adjustScrollArrows(hudBarContentJQ[0].scrollLeft,hudBarContentJQ[0].scrollWidth,hudBarContentJQ.width(),true,leftButtonWrapperJQ,rightButtonWrapperJQ,hudBarJQ);if(topBarJQ.hasClass("edrawings-collided-hud-bar")){if(hudBarContentJQ.innerWidth()c_filenameBlockThresholdWidth){if(topBarJQ.hasClass("edrawings-out-of-view")){topBarJQ.removeClass("edrawings-out-of-view")}}else{topBarJQ.addClass("edrawings-out-of-view")}}else{if(filenameBlockJQ[0].scrollWidth-filenameBlockInnerWidth>1){if(filenameBlockJQ.width()0&&toolBarContentJQ[0].scrollHeight<=leftBarContentJQ.innerHeight()){leftBarJQ.removeClass("edrawings-collided")}}else{if(leftBarContentJQ[0].scrollHeight>0&&leftBarContentJQ[0].scrollHeight>Math.round(leftBarContentJQ.innerHeight())){leftBarJQ.addClass("edrawings-collided")}}eDwUIUtils.adjustScrollArrows(toolBarContentJQ[0].scrollTop,toolBarContentJQ[0].scrollHeight,toolBarContentJQ.height(),false,upButtonWrapperJQ,downButtonWrapperJQ,leftBarJQ);if(leftBarJQ.hasClass("edrawings-collided")){if(toolBarContentJQ.innerHeight()=window.innerWidth){var diff=iMouseEvent.clientX+iItemJQ[0].scrollWidth+scrollWidthPadding-window.innerWidth;if(iMouseEvent.clientX>=diff){tickerLeft=iMouseEvent.clientX-diff;tickerWidth=iItemJQ[0].scrollWidth+scrollWidthPadding}else{tickerLeft=0;tickerAnimation=true;if(window.innerWidth>tickerMinWidth){tickerWidth=window.innerWidth}else{tickerWidth=tickerMinWidth}var threeTimes=[iText,iText,iText].join(" ");tickerJQ.text(threeTimes)}}if(itemOffset.top-tickerMinHeight<=0){if(itemOffset.top+iItemJQ[0].clientHeight+tickerMinHeight<=window.innerHeight){tickerTop=itemOffset.top+iItemJQ[0].clientHeight}else{var diff=iMouseEvent.clientY+tickerMinHeight-window.innerHeight;if(iMouseEvent.clientY>diff){tickerTop=iMouseEvent.clientY-diff}else{tickerTop=0}}}var tickerwrapJQ=tickerJQ.closest(".edrawings-ticker-wrapper");tickerwrapJQ.offset({left:tickerLeft,top:tickerTop}).css("width",tickerWidth).removeClass("edrawings-ui-hide");if(tickerAnimation){tickerwrapJQ.addClass("edrawings-animation")}}function l_hideTicker(){var tickerwrapJQ=$(".edrawings-ticker-wrapper");if(!tickerwrapJQ.hasClass("edrawings-ui-hide")){var tickerJQ=tickerwrapJQ.find(".edrawings-ticker");tickerJQ.text("");tickerwrapJQ.addClass("edrawings-ui-hide").removeClass("edrawings-animation").css("left","").css("top","").css("width","")}}function l_positionMenuPanelCollapseButton(){var activeButtonsJQ=$(".edrawings-tool-button.active-button");if(activeButtonsJQ.length){if(eDwUIUtils.scrollToTarget(activeButtonsJQ)){l_resizeToolBar()}var collapsedPanelsJQ=$(".edrawings-submenu.active.edrawings-collapsed");if(collapsedPanelsJQ.length){var attrStyle=collapsedPanelsJQ.find(".edrawings-menu-panel-arrow-collapse").attr("style");if(!!attrStyle){eDwUIUtils.positionMenuPanelArrowCollapseButton(collapsedPanelsJQ,activeButtonsJQ)}}}}function l_fixMenuPanelInwardToolbar(){var panelsJQ=$(".edrawings-submenu.active:not(.edrawings-collapsed), .edrawings-hud-menu.active");panelsJQ.each((function(iIndex,iPanel){var panelJQ=$(iPanel);eDwUIUtils.fixMenuPanelInwardToolbar(panelJQ)}))}function l_scrollUIBar(iContentJQ,iDeactivateButtonClass,iDeactivateMenuClass,iScrollDist,iBarJQ){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iContentJQ&&iContentJQ.length>0))return[3,2];return[4,eDwUIUtils.deactivateUI(iDeactivateButtonClass,iDeactivateMenuClass)];case 1:_a.sent();eDwUIUtils.executeScrolling(iScrollDist,0,iContentJQ,iBarJQ);_a.label=2;case 2:return[2]}}))}))}return eDwUIBaseEventHandlers}));define("eDwUIBasePlugin",["require","exports","eDwUIHTMLEventMgr","eDwEventMgr","eDwEvents","eDwUIShortcutMenu","eDwUIUtils","utils"],(function(require,exports,eDwUIHTMLEventMgr,eDwEventMgr,eDwEvents_6,eDwUIShortcutMenu_3,eDwUIUtils,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.eDwUIBasePlugin=void 0;var eDwUIBasePlugin=function(){function eDwUIBasePlugin(iPluginGroupName,iViewer,iButtonInfo,iViewerFeatOpts){var _this=this;if(iViewer===void 0){iViewer=null}if(iButtonInfo===void 0){iButtonInfo=null}if(iViewerFeatOpts===void 0){iViewerFeatOpts=null}console.debugLog("UIPlugin","Constructed "+iPluginGroupName+" plugin.");this.mPluginGroupName=iPluginGroupName;this.mViewer=iViewer;this.mViewerFeatOpts=iViewerFeatOpts||iViewer&&iViewer.ViewerFeatureOpts;this.mUIHTMLEventMgr=new eDwUIHTMLEventMgr;this.mPluginDependencies=[];this.mPluginButtonInfo=iButtonInfo;if(iViewer){eDwUIShortcutMenu_3.eDwUIShortcutMenu.get().setPluginCheck(iPluginGroupName,(function(iPluginName){return _this.check(iPluginName)}))}}eDwUIBasePlugin.prototype.init=function(iPanelsToLoad){return __awaiter(this,void 0,void 0,(function(){var promises,_i,iPanelsToLoad_1,panelToLoad;return __generator(this,(function(_a){switch(_a.label){case 0:this.addAppObjEvent(eDwEvents_6.ActivateUIOpEvent,"onActivate",true);this.addAppObjEvent(eDwEvents_6.DeactivateUIOpEvent,"onDeactivate",true);if(!iPanelsToLoad)return[3,2];promises=[];for(_i=0,iPanelsToLoad_1=iPanelsToLoad;_i-1?true:false};eDwUIBasePlugin.prototype.addEventHandlers=function(){};eDwUIBasePlugin.prototype.removeEventHandlers=function(){this.mUIHTMLEventMgr.removeAllEventHandlers()};eDwUIBasePlugin.prototype.onActivate=function(iButtonJQ){return this.isButtonForThisPlugin(iButtonJQ)};eDwUIBasePlugin.prototype.onDeactivate=function(iButtonJQ){return this.isButtonForThisPlugin(iButtonJQ)};eDwUIBasePlugin.prototype.addAppObjEvent=function(iAppEvent,iEventObjMethod,iAdd){var eventMgr=eDwEventMgr.get();var eventMgrMethod=iAdd?"addEventHandlerObj":"removeEventHandlerObj";eventMgr[eventMgrMethod](iAppEvent,this,iEventObjMethod)};eDwUIBasePlugin.prototype.loadPanel=function(iPanelID,iHTMLFileName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.loadPanel(iPanelID,iHTMLFileName)];case 1:return[2,_a.sent()]}}))}))};Object.defineProperty(eDwUIBasePlugin.prototype,"PluginGroupName",{get:function(){return this.mPluginGroupName},enumerable:false,configurable:true});Object.defineProperty(eDwUIBasePlugin.prototype,"PluginButtonID",{get:function(){return this.mPluginButtonInfo?this.mPluginButtonInfo.ID:""},enumerable:false,configurable:true});Object.defineProperty(eDwUIBasePlugin.prototype,"Dependencies",{get:function(){return this.mPluginDependencies},enumerable:false,configurable:true});return eDwUIBasePlugin}();exports.eDwUIBasePlugin=eDwUIBasePlugin}));define("eDwUIDebugHTMLGenerator",["require","exports","eDwUIHTMLGenerator","eDwTypes"],(function(require,exports,eDwUIHTMLGenerator_1,eDwTypes_15){"use strict";var _a;var eDwUIDebugHTMLGenerator=function(_super){__extends(eDwUIDebugHTMLGenerator,_super);function eDwUIDebugHTMLGenerator(iViewer,iPanelUIID){var _this=_super.call(this,iViewer,iPanelUIID)||this;_this.mHCModel=iViewer.getModel().getHCModel();return _this}eDwUIDebugHTMLGenerator.prototype.getNodeFromID=function(iNodeID){return l_getHCNode(iNodeID)};eDwUIDebugHTMLGenerator.prototype.getPostSpanHTML=function(iAdditionalClasses){return""};eDwUIDebugHTMLGenerator.prototype.forNodeGetName=function(iNode){return this.mHCModel.getNodeName(l_getHCNode(iNode))||"unknown node name"};eDwUIDebugHTMLGenerator.prototype.forNodeGetID=function(iNode){return l_getHCNode(iNode)};eDwUIDebugHTMLGenerator.prototype.forNodeGetParentID=function(iNode){return this.mHCModel.getNodeParent(l_getHCNode(iNode))||NaN};eDwUIDebugHTMLGenerator.prototype.forNodeGetChildren=function(iNode){return this.mHCModel.getNodeChildren(l_getHCNode(iNode))};eDwUIDebugHTMLGenerator.prototype.forNodeHasChildren=function(iNode){return this.forNodeGetChildren(iNode).length>0};eDwUIDebugHTMLGenerator.prototype.forNodeGetDataAttributes=function(iNode){return _super.prototype.forNodeGetDataAttributes.call(this,iNode)};eDwUIDebugHTMLGenerator.prototype.forNodeGetElementContent=function(iNode){var _this=this;var nodeIDHC=this.forNodeGetID(iNode);(function(){return __awaiter(_this,void 0,void 0,(function(){var meshIDs,numMeshIDs;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mHCModel.getMeshIds([nodeIDHC])];case 1:meshIDs=_a.sent();numMeshIDs=meshIDs.length;console.log("Node ID: "+nodeIDHC+" Num mesh IDs: "+numMeshIDs);return[2]}}))}))})();return this.forNodeGetName(iNode)+" ID: "+nodeIDHC+" TYPE: "+c_nodeTypes[this.mHCModel.getNodeType(nodeIDHC)]+" VISIBLE: "+this.mHCModel.getNodeVisibility(nodeIDHC)};eDwUIDebugHTMLGenerator.prototype.forNodeGetDisplayStateCSSClass=function(iNode){return"edrawings-body-visible"};return eDwUIDebugHTMLGenerator}(eDwUIHTMLGenerator_1.eDwUIHTMLGenerator);var c_nodeTypes=(_a={},_a[eDwTypes_15.HC.NodeType.AssemblyNode]="Assembly",_a[eDwTypes_15.HC.NodeType.Body]="Body",_a[eDwTypes_15.HC.NodeType.BodyInstance]="Body Instance",_a[eDwTypes_15.HC.NodeType.BrepBody]="BRep Body",_a[eDwTypes_15.HC.NodeType.CadView]="CAD View",_a[eDwTypes_15.HC.NodeType.DrawingSheet]="Drawing Sheet",_a[eDwTypes_15.HC.NodeType.Part]="Part",_a[eDwTypes_15.HC.NodeType.PartInstance]="Part Instance",_a[eDwTypes_15.HC.NodeType.Pmi]="PMI",_a[eDwTypes_15.HC.NodeType.PmiBody]="PMI Body",_a[eDwTypes_15.HC.NodeType.PointsBody]="Points Body",_a[eDwTypes_15.HC.NodeType.TessBody]="Tessellation Body",_a[eDwTypes_15.HC.NodeType.Unknown]="Unknown",_a[eDwTypes_15.HC.NodeType.ViewFrame]="View Frame",_a[eDwTypes_15.HC.NodeType.WireBody]="Wire Body",_a);function l_isHCNode(iNode){return!isNaN(iNode)}function l_getHCNode(iNode){if(!l_isHCNode(iNode)){throw new Error("Not an HC node:\n"+JSON.stringify(iNode))}return iNode}return eDwUIDebugHTMLGenerator}));define("eDwUIHTMLEventMgr",["require","exports","eDwUIUtils"],(function(require,exports,eDwUIUtils){"use strict";var eDwUIHTMLEventMgr=function(){function eDwUIHTMLEventMgr(){this.mEventHandlerData={}}eDwUIHTMLEventMgr.prototype.addDelegatedEventHandler=function(iElemSelector,iEventName,iEventHandler){if(!iElemSelector||!iEventName||!iEventHandler)return false;var selectors=iElemSelector.split(" ");if(selectors.length<2)return false;var ancestorElementID=selectors.shift();return this.commonAddEventHandler(ancestorElementID,iEventName,iEventHandler,selectors.join().replace(".",""))};eDwUIHTMLEventMgr.prototype.addEventHandler=function(iElemID,iEventName,iEventHandler){if(!iElemID||!iEventName||!iEventHandler)return false;return this.commonAddEventHandler(iElemID,iEventName,iEventHandler)};eDwUIHTMLEventMgr.prototype.removeAllEventHandlers=function(){for(var eventName in this.mEventHandlerData){if(this.mEventHandlerData.hasOwnProperty(eventName)){var handlersOfEvent=this.mEventHandlerData[eventName];for(var elemID in handlersOfEvent){if(handlersOfEvent.hasOwnProperty(elemID)){this.removeEventHandlersByID(elemID,eventName,handlersOfEvent)}}delete this.mEventHandlerData[eventName]}}this.mEventHandlerData={}};eDwUIHTMLEventMgr.prototype.removeEventHandlers=function(iElemID,iEventName){var handlersRemoved=false;if(this.mEventHandlerData.hasOwnProperty(iEventName)){var handlersOfEvent=this.mEventHandlerData[iEventName];if(handlersOfEvent.hasOwnProperty(iElemID)){handlersRemoved=this.removeEventHandlersByID(iElemID,iEventName,handlersOfEvent)}}return handlersRemoved};eDwUIHTMLEventMgr.prototype.commonAddEventHandler=function(iElemID,iEventName,iEventHandler,iElemClasses){if(iElemClasses===void 0){iElemClasses=""}if(!iElemID)return false;var elements=[];if(iElemID==="window")elements.push(window);else if(iElemID==="document")elements.push(document);else elements=$(iElemID).toArray();if(!elements.length)return false;var handlersOfEvent=this.mEventHandlerData[iEventName];if(!handlersOfEvent){handlersOfEvent=this.mEventHandlerData[iEventName]={}}var elemHandlers=handlersOfEvent[iElemID];if(!elemHandlers){elemHandlers=handlersOfEvent[iElemID]={MainDispatcher:null,Handlers:[]}}if(elemHandlers.MainDispatcher){for(var _i=0,elements_1=elements;_i-1||highlight===""?"":" edrawings-list-option";var currOffset=utils.isNaN(iLeftPaddingInPX)?this.mInitialLeftPaddingInPX+"px":iLeftPaddingInPX+"px";var generatedHTML="
";generatedHTML+=this.getPreSpanHTML(iNode,additionalClasses,expanded,iIgnoreChildren);generatedHTML+=""+this.forNodeGetElementContent(iNode)+"";generatedHTML+=this.getPostSpanHTML(nonRootClass+" "+additionalClasses);generatedHTML+="
";return generatedHTML};eDwUIHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,""]}))}))};eDwUIHTMLGenerator.prototype.getNodeFromID=function(iNodeID){var modelViews=this.mViewer.getModel().getModelViews();for(var _i=0,modelViews_5=modelViews;_i
";return generatedHTML};eDwUIHTMLGenerator.prototype.getPostSpanHTML=function(iAdditionalClasses){return"
"};eDwUIHTMLGenerator.prototype.computeOffset=function(iLeftPaddingInPX){if(iLeftPaddingInPX===void 0){iLeftPaddingInPX=NaN}return utils.isNaN(iLeftPaddingInPX)?this.mInitialLeftPaddingInPX:iLeftPaddingInPX+this.mLeftPaddingInPX};eDwUIHTMLGenerator.prototype.forNodeGetName=function(iNode){return l_getHierarchyNode(iNode).Name};eDwUIHTMLGenerator.prototype.forNodeGetID=function(iNode){return l_getHierarchyNode(iNode).HOOPSID};eDwUIHTMLGenerator.prototype.forNodeGetParentID=function(iNode){var parentHierNode=l_getHierarchyNode(iNode).Parent;return parentHierNode?parentHierNode.HOOPSID:NaN};eDwUIHTMLGenerator.prototype.forNodeGetChildren=function(iNode){var childrenObj=l_getHierarchyNode(iNode).getChildrenAndKeys();return Object.keys(childrenObj).map((function(key){return childrenObj[key]}))};eDwUIHTMLGenerator.prototype.forNodeHasChildren=function(iNode){return this.forNodeGetChildren(iNode).length>0};eDwUIHTMLGenerator.prototype.forNodeGetDataAttributes=function(iNode){var parentNodeID=this.forNodeGetParentID(iNode);return" data-hoopsid='"+this.forNodeGetID(iNode)+"' "+(parentNodeID!==undefined?"data-hoopsparentid='"+parentNodeID+"' ":"")};eDwUIHTMLGenerator.prototype.forNodeGetElementContent=function(iNode){return this.forNodeGetName(iNode)};eDwUIHTMLGenerator.prototype.forNodeGetDisplayStateCSSClass=function(iNode){return eDwUIHTMLGenerator.getDisplayStateCSSClass(l_getHierarchyNode(iNode))};return eDwUIHTMLGenerator}();exports.eDwUIHTMLGenerator=eDwUIHTMLGenerator;function l_getHierarchyNode(iNode){if(!eDwHierarchyNode.isHierarchyNode(iNode)){throw new Error("Not a hierarchy node:\n"+JSON.stringify(iNode))}return iNode}}));define("eDwUIHierNodeVisMenuItemsPlugin",["require","exports","eDwCommandMgr","eDwSetHierNodeAttribsCmd","eDwShowOnlyCmd","eDwUIUtils","eDwEventMgr","eDwUIShortcutMenu","eDwKeyMgr","eDwEvents","eDwTypes","eDwUIBasePlugin","utils"],(function(require,exports,eDwCommandMgr,eDwSetHierNodeAttribsCmd,eDwShowOnlyCmd,eDwUIUtils,eDwEventMgr,eDwUIShortcutMenu_4,eDwKeyMgr_4,eDwEvents_7,eDwTypes_16,eDwUIBasePlugin_1,utils){"use strict";var eDwUIHierNodeVisMenuItemPlugin=function(_super){__extends(eDwUIHierNodeVisMenuItemPlugin,_super);function eDwUIHierNodeVisMenuItemPlugin(iViewer,iViewerFeatOpts){return _super.call(this,"HideShow",iViewer)||this}eDwUIHierNodeVisMenuItemPlugin.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){function isNotPartModel(iViewer){return!iViewer.getModel().isPart()}var shortcutMenu,isVisibleForASMAndDRW,isVisibleForASM,isVisibleNonRootForASMAndDRW;var _this=this;return __generator(this,(function(_a){_super.prototype.init.call(this);shortcutMenu=eDwUIShortcutMenu_4.eDwUIShortcutMenu.get();if(!shortcutMenu.isEmpty()){shortcutMenu.addMenuSeparator(this.PluginGroupName)}isVisibleForASMAndDRW=function(iViewer,iIsSelected){return iIsSelected&&isNotPartModel(iViewer)};isVisibleForASM=function(iViewer,iIsSelected){return iIsSelected&&iViewer.getModel().isAssembly()};isVisibleNonRootForASMAndDRW=function(iViewer,iIsSelected){var model=iViewer.getModel();var modelViewHierNode=model.getActiveModelView().Hierarchy;var lastSelHierNode=iViewer.SelectionMgr.getLastSelHierarchyNode();return iIsSelected&&(model.isDrawing()||model.isAssembly()&&modelViewHierNode!==lastSelHierNode.Parent)};shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-hide-show",(function(iEvent,iUIItemJQ,iArg){var selMgr=_this.mViewer.SelectionMgr;var selHierNodes=selMgr.getSelHierarchyNodes();if(selHierNodes&&selHierNodes.length){(function(){return __awaiter(_this,void 0,void 0,(function(){var attrib,selHideShowCmd;return __generator(this,(function(_a){switch(_a.label){case 0:attrib={Visible:!selHierNodes[0].getAttribs().Visible};selHideShowCmd=new eDwSetHierNodeAttribsCmd(this.mViewer,selHierNodes,attrib);return[4,eDwCommandMgr.get().run(selHideShowCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isVisibleForASMAndDRW);shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-transp-solid",(function(iEvent,iUIItemJQ,iArg){(function(){return __awaiter(_this,void 0,void 0,(function(){var selMgr,selHierNodes,attrib,selTransSolidCmd;return __generator(this,(function(_a){switch(_a.label){case 0:selMgr=this.mViewer.SelectionMgr;selHierNodes=selMgr.getSelHierarchyNodes();if(!(selHierNodes&&selHierNodes.length))return[3,2];attrib={Opaque:!selHierNodes[0].getAttribs().Opaque};selTransSolidCmd=new eDwSetHierNodeAttribsCmd(this.mViewer,selHierNodes,attrib);return[4,eDwCommandMgr.get().run(selTransSolidCmd,"commit")];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))})();eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isVisibleForASM);shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-isolate",(function(iEvent,iUIItemJQ,iArg){(function(){return __awaiter(_this,void 0,void 0,(function(){var selMgr,showOnlyCmd;return __generator(this,(function(_a){switch(_a.label){case 0:selMgr=this.mViewer.SelectionMgr;showOnlyCmd=new eDwShowOnlyCmd(this.mViewer,selMgr.getSelHierarchyNodes());return[4,eDwCommandMgr.get().run(showOnlyCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isVisibleNonRootForASMAndDRW);shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-show-all",(function(iEvent,iUIItemJQ,iArg){(function(){return __awaiter(_this,void 0,void 0,(function(){var showAllCmd;return __generator(this,(function(_a){switch(_a.label){case 0:showAllCmd=new eDwShowOnlyCmd(this.mViewer);return[4,eDwCommandMgr.get().run(showAllCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isNotPartModel);this.mUIHTMLEventMgr.addDelegatedEventHandler("document .edrawings-submenu-list-item-button","click",(function(iEvent){console.debugLog("UIPlugin","HideShow menu button click");var selected=false;var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var parentJQ=targetJQ.parent();eDwUIUtils.scrollToTarget(parentJQ);var selIDHC=eDwUIUtils.getIDHC(parentJQ);if(!isNaN(selIDHC)){var existingIdx=_this.mViewer.SelectionMgr.getSelectedNodeIDIndex(selIDHC);selected=existingIdx>-1?true:_this.mViewer.SelectionMgr.selectByID(selIDHC)}if(selected){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.fireEvent(iEvent,eDwEvents_7.RightClickEvent)];case 1:_a.sent();return[2]}}))}))})()}}));console.debugLog("UIPlugin","Added HideShow click event handler");this.mUIHTMLEventMgr.addDelegatedEventHandler("document .edrawings-submenu-list-item","mouseup",(function(iEvent){console.debugLog("UIPlugin","HideShow menu mouseup");var eventJQ=$(iEvent);var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);if(!targetJQ||!targetJQ.length||!eventJQ||!eventJQ.length||targetJQ.hasClass("edrawings-root")||targetJQ.hasClass("edrawings-tree-arrow")||targetJQ.hasClass("edrawings-tree-expanded")||targetJQ.hasClass("edrawings-tree-icon")){return}if(!targetJQ.hasClass("edrawings-submenu-list-item"))return;var mouseEvent=iEvent;var pressedRMB=eDwKeyMgr_4.eDwKeyMgr.isRMBPressed(mouseEvent);var selected=false;var selIDHC=eDwUIUtils.getIDHC(targetJQ);if(utils.isNumber(selIDHC)){if(!eDwKeyMgr_4.eDwKeyMgr.get().isDown("Shift")){selected=_this.mViewer.SelectionMgr.selectByID(selIDHC)}else{var selector=".edrawings-submenu-list-item"+".edrawings-list-selected:has([data-hoopsid])";var filter=".edrawings-submenu-list-item:has([data-hoopsid])";var collectionPrevJQ=targetJQ.prevUntil(selector,filter);if(collectionPrevJQ.length===0||collectionPrevJQ.last().prev(selector).length===0){collectionPrevJQ=$([])}var collectionNextJQ=targetJQ.nextUntil(selector,filter);if(collectionNextJQ.length===0||collectionNextJQ.last().next(selector).length===0){collectionNextJQ=$([])}var collectionJQ=$([]).add(collectionPrevJQ).add(targetJQ).add(collectionNextJQ);collectionJQ.each((function(iIdx,iElement){var elementJQ=$(iElement);var selIDHC=eDwUIUtils.getIDHC(elementJQ);_this.mViewer.SelectionMgr.selectByID(selIDHC)}));selected=true;iEvent.preventDefault()}}else{selected=!targetJQ.hasClass("edrawings-list-selected");targetJQ[selected?"addClass":"removeClass"]("edrawings-list-selected")}(function(){return __awaiter(_this,void 0,void 0,(function(){var eventMgr,onSelectDoRMB;var _this=this;return __generator(this,(function(_a){eventMgr=eDwEventMgr.get();onSelectDoRMB=function(iViewer){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:eventMgr.removeEventHandlerFunc(eDwEvents_7.SelectEvent,"onSelectDoRMB");return[4,this.fireEvent(iEvent,eDwEvents_7.RightClickEvent)];case 1:_a.sent();return[2]}}))}))};if(selected&&pressedRMB){eventMgr.addEventHandlerFunc(eDwEvents_7.SelectEvent,onSelectDoRMB)}return[2]}))}))})()}));console.debugLog("UIPlugin","Added HideShow mouseup event handler");return[2]}))}))};eDwUIHierNodeVisMenuItemPlugin.prototype.check=function(iPluginName){return _super.prototype.check.call(this,iPluginName)||iPluginName===undefined};eDwUIHierNodeVisMenuItemPlugin.prototype.fireEvent=function(iEvent,iAppEvent){return __awaiter(this,void 0,void 0,(function(){var screenPos;return __generator(this,(function(_a){switch(_a.label){case 0:if(!iEvent||!iAppEvent||!this.mViewer)return[2];if(!(iAppEvent===eDwEvents_7.RightClickEvent))return[3,3];if(!utils.isOfType(iEvent,"clientX"))return[3,2];screenPos=new eDwTypes_16.HC.Point2(iEvent.clientX,iEvent.clientY);return[4,eDwEventMgr.get().fireEvent(iAppEvent,this.mViewer,screenPos,$(iEvent.target),this.PluginGroupName)];case 1:_a.sent();_a.label=2;case 2:return[3,5];case 3:if(!(iAppEvent===eDwEvents_7.UnselectEvent))return[3,5];return[4,eDwEventMgr.get().fireEvent(iAppEvent,this.mViewer,[])];case 4:_a.sent();_a.label=5;case 5:return[2]}}))}))};return eDwUIHierNodeVisMenuItemPlugin}(eDwUIBasePlugin_1.eDwUIBasePlugin);return eDwUIHierNodeVisMenuItemPlugin}));define("eDwUILayerHTMLGenerator",["require","exports","eDwUIHTMLGenerator","eDwLayer","utils"],(function(require,exports,eDwUIHTMLGenerator_2,eDwLayer,utils){"use strict";var eDwUILayerHTMLGenerator=function(_super){__extends(eDwUILayerHTMLGenerator,_super);function eDwUILayerHTMLGenerator(iViewer,iPanelUIID){return _super.call(this,iViewer,iPanelUIID)||this}eDwUILayerHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){var generatedHTML,layers,_i,layers_2,layer;return __generator(this,(function(_a){generatedHTML="";layers=this.mViewer.getModel().getLayers();if(layers.length){generatedHTML+="
"+" "+""+"Name
"+"
"}for(_i=0,layers_2=layers;_i"};eDwUILayerHTMLGenerator.prototype.getPostSpanHTML=function(iAdditionalClasses){return""};eDwUILayerHTMLGenerator.prototype.shouldIncludeNode=function(iLayer){return true};eDwUILayerHTMLGenerator.prototype.forNodeGetName=function(iNode){return l_getLayer(iNode).getName()};eDwUILayerHTMLGenerator.prototype.forNodeGetID=function(iNode){return l_getLayer(iNode).getIDHC()};eDwUILayerHTMLGenerator.prototype.forNodeGetParentID=function(iNode){return NaN};eDwUILayerHTMLGenerator.prototype.forNodeGetChildren=function(iNode){var childNodes=[];if(this.mViewer.ViewerFeatureOpts.Debug){childNodes=l_getLayer(iNode).getNodeIDsHC()}return childNodes};eDwUILayerHTMLGenerator.prototype.forNodeGetDataAttributes=function(iNode){return""};eDwUILayerHTMLGenerator.prototype.forNodeGetDisplayStateCSSClass=function(iNode){return""};return eDwUILayerHTMLGenerator}(eDwUIHTMLGenerator_2.eDwUIHTMLGenerator);function l_getLayer(iNode){if(!utils.isInstanceOf(iNode,eDwLayer)){throw new Error("Not a layer:\n"+JSON.stringify(iNode))}return iNode}return eDwUILayerHTMLGenerator}));define("eDwUIMessageReporter",["require","exports","eDwUIUtils","utils"],(function(require,exports,eDwUIUtils,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.showMessageInDebugPanel=exports.showMessagePanelFromCSScontent=exports.showResultPanel=exports.showServerLoadErrorPanel=void 0;function showServerLoadErrorPanel(iServerID,iModelCacheName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_addParagraphToPanelText({},"edrawings-server-load-failure-1")];case 1:_a.sent();return[4,l_showServerError(iServerID,iModelCacheName)];case 2:_a.sent();return[2]}}))}))}exports.showServerLoadErrorPanel=showServerLoadErrorPanel;function showResultPanel(iResult){return __awaiter(this,void 0,void 0,(function(){var showButtons,_a;return __generator(this,(function(_b){switch(_b.label){case 0:showButtons=false;if(!utils.isOfType(iResult,"ServerID"))return[3,2];return[4,l_showConversionResultPanel(iResult)];case 1:showButtons=_b.sent();return[3,5];case 2:_a=iResult.ErrorCode;return[3,3];case 3:return[4,l_showPanelGeneric(iResult)];case 4:showButtons=_b.sent();return[3,5];case 5:return[2,showButtons]}}))}))}exports.showResultPanel=showResultPanel;function showMessagePanelFromCSScontent(iTextClass,iOptions){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_addParagraphToPanelText(!!iOptions?iOptions:{},iTextClass)];case 1:_a.sent();return[4,l_showMessagePanel()];case 2:_a.sent();return[2]}}))}))}exports.showMessagePanelFromCSScontent=showMessagePanelFromCSScontent;function showMessageInDebugPanel(iMsg){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_showMessagePanel(iMsg,true,true)];case 1:_a.sent();return[2]}}))}))}exports.showMessageInDebugPanel=showMessageInDebugPanel;function l_showConversionResultPanel(iResult){return __awaiter(this,void 0,void 0,(function(){var showButtons,_a;return __generator(this,(function(_b){switch(_b.label){case 0:showButtons=l_shouldShowButtons();_a=iResult.ErrorCode;switch(_a){case"URLNotAccessible":return[3,1];case"UnsupportedFileType":return[3,4];case"UnknownLicenseError":return[3,7];case"LicenseVersionMismatch":return[3,10];case"NoMoreLicenses":return[3,13];case"CannotConnectToLicenseServer":return[3,16];case"LicenseExpired":return[3,19];case"UnknownError":return[3,22]}return[3,25];case 1:return[4,l_addParagraphToPanelText({"data-file-url":iResult.ErrorData[0]},"edrawings-server-url-inaccessible")];case 2:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-error-title edrawings-dialog-no-close")];case 3:_b.sent();return[3,29];case 4:return[4,l_addParagraphToPanelText({"data-file":iResult.FileName},"edrawings-server-unsupported-file-type")];case 5:_b.sent();return[4,l_showMessagePanel("",true,showButtons,"edrawings-error-title edrawings-dialog-no-close")];case 6:_b.sent();return[3,29];case 7:return[4,l_addParagraphToPanelText({},"edrawings-unknown-license-error")];case 8:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 9:_b.sent();return[3,29];case 10:return[4,l_addParagraphToPanelText({},"edrawings-license-version-mismatch-error")];case 11:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 12:_b.sent();return[3,29];case 13:return[4,l_addParagraphToPanelText({},"edrawings-no-licenses-error")];case 14:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 15:_b.sent();return[3,29];case 16:return[4,l_addParagraphToPanelText({},"edrawings-license-server-connection-error")];case 17:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 18:_b.sent();return[3,29];case 19:return[4,l_addParagraphToPanelText({},"edrawings-license-expired-error")];case 20:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 21:_b.sent();return[3,29];case 22:return[4,l_addParagraphToPanelText({},"edrawings-unknown-error")];case 23:_b.sent();return[4,l_showServerError(iResult.ServerID,iResult.ModelCacheName)];case 24:_b.sent();return[3,29];case 25:if(!l_isDebug())return[3,27];return[4,l_showPanelGeneric(iResult)];case 26:_b.sent();return[3,28];case 27:showServerLoadErrorPanel(iResult.ServerID,iResult.ModelCacheName);_b.label=28;case 28:return[3,29];case 29:return[2,showButtons]}}))}))}function l_showPanelGeneric(iResult){return __awaiter(this,void 0,void 0,(function(){var _a,msg,classes,_i,_b,data;return __generator(this,(function(_c){switch(_c.label){case 0:_a=iResult.ErrorCode;switch(_a){case"AJAXFailure":return[3,1];case"IncompleteFileProcessing":return[3,4];case"ModelLoadInViewerFailed":return[3,7]}return[3,11];case 1:return[4,l_addParagraphToPanelText({},"edrawings-server-ajax-failure")];case 2:_c.sent();return[4,l_showMessagePanel("",true,false,"edrawings-error-title edrawings-dialog-no-close")];case 3:_c.sent();return[3,13];case 4:return[4,l_addParagraphToPanelText({},"edrawings-unable-process-file")];case 5:_c.sent();return[4,l_showMessagePanel("",true,true,"edrawings-error-title edrawings-dialog-no-close")];case 6:_c.sent();return[3,13];case 7:return[4,l_addParagraphToPanelText({"data-error-message":iResult.ErrorData[0]},"edrawings-viewer-load-failure")];case 8:_c.sent();return[4,l_addParagraphToPanelText({"data-model-cache-name":iResult.ErrorData[1]},"edrawings-server-load-failure-3")];case 9:_c.sent();return[4,l_showMessagePanel("",true,true,"edrawings-error-title edrawings-dialog-no-close")];case 10:_c.sent();return[3,13];case 11:msg="";classes="edrawings-dialog-no-close";switch(iResult.ErrorCode){case"Error":classes+=" edrawings-error-title";break;case"Warn":classes+=" edrawings-warn-title";break;default:classes+=" edrawings-info-title";msg+="
"+iResult.ErrorCode+"
";break}for(_i=0,_b=iResult.ErrorData;_i<_b.length;_i++){data=_b[_i];msg+="
"+data+"
"}return[4,l_showMessagePanel(msg,true,false,classes)];case 12:_c.sent();return[3,13];case 13:return[2,l_shouldShowButtons()]}}))}))}function l_addParagraphToPanelText(iOptions,iTextClass){return __awaiter(this,void 0,void 0,(function(){function getValue(iValue){return typeof iValue==="string"?"'"+iValue+"'":iValue.toString()}var msgPanelTextJQ,div,optionKeys,_i,optionKeys_1,optionKey;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_getDialogPanelTextElem()];case 1:msgPanelTextJQ=_a.sent();div="
";msgPanelTextJQ.append(div);return[2]}}))}))}function l_showMessagePanel(iMsg,iModal,iShowButtons,iDlgClasses){if(iMsg===void 0){iMsg=""}if(iModal===void 0){iModal=true}if(iShowButtons===void 0){iShowButtons=false}if(iDlgClasses===void 0){iDlgClasses="edrawings-info-title edrawings-dialog-no-close"}return __awaiter(this,void 0,void 0,(function(){var msgPanelTextJQ,opts,msgPanel,msgPanelTitleJQ,text;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_getDialogPanelTextElem()];case 1:msgPanelTextJQ=_a.sent();if(iMsg)msgPanelTextJQ.html(iMsg);opts={modal:iModal,width:window.innerWidth*.6,minWidth:200,dialogClass:iDlgClasses,closeOnEscape:iShowButtons};msgPanel=$("#edrawings-dialog-panel");if(iShowButtons){$.extend(opts,{buttons:{Ok:function(){msgPanel.dialog("close")}},close:function(iEvent){$(".edrawings-dialog-content").remove()}})}$.extend(opts,{beforeClose:function(iEvent){eDwUIUtils.getAsJQueryObj(iEvent.target).closest(".ui-dialog").siblings(".ui-widget-overlay").addBack().off("drop")},open:function(iEvent){eDwUIUtils.getAsJQueryObj(iEvent.target).closest(".ui-dialog").siblings(".ui-widget-overlay").addBack().on("drop",(function(iEvent2){iEvent2.preventDefault();iEvent2.stopPropagation()}))}});eDwUIUtils.hide("#WaitBanner",true);msgPanel.dialog(opts);if(iDlgClasses.indexOf("edrawings")>-1&&iDlgClasses.indexOf("title")>-1){msgPanelTitleJQ=msgPanel.prev().find(".ui-dialog-title");text="";if(msgPanelTitleJQ){text=msgPanelTitleJQ.css("content").replace(/^['"]+|\\|(;\s?})+|['"]$/g,"")}msgPanelTitleJQ.text(text)}return[2]}}))}))}function l_shouldShowButtons(){var viewerHTMLElem=$(eDwUIUtils.getViewerElementID()).get(0);return $._data(viewerHTMLElem,"events").dragover}function l_isDebug(){var viewerFeatOpts={Debug:false};eDwUIUtils.getRequestedQueryStringParams(location.href,viewerFeatOpts,false);return viewerFeatOpts.Debug||false}function l_getDialogPanelTextElem(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!!lDialogTextJQ.length)return[3,2];return[4,eDwUIUtils.loadPanel("#edrawings-dialog-panel","dialogpanel.html")];case 1:_a.sent();lDialogTextJQ=$("#edrawings-dialog-panel-text");_a.label=2;case 2:return[2,lDialogTextJQ]}}))}))}function l_showServerError(iServerID,iModelCacheName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_addParagraphToPanelText({"data-server-id":iServerID},"edrawings-server-load-failure-2")];case 1:_a.sent();return[4,l_addParagraphToPanelText({"data-model-cache-name":iModelCacheName},"edrawings-server-load-failure-3")];case 2:_a.sent();return[4,l_showMessagePanel("",true,false,"edrawings-error-title edrawings-dialog-no-close")];case 3:_a.sent();return[2]}}))}))}var lDialogTextJQ=$()}));define("eDwUIModelViewHTMLGenerator",["require","exports","eDwUIHTMLGenerator"],(function(require,exports,eDwUIHTMLGenerator_3){"use strict";var eDwUIModelViewHTMLGenerator=function(_super){__extends(eDwUIModelViewHTMLGenerator,_super);function eDwUIModelViewHTMLGenerator(iViewer,iPanelUIID){return _super.call(this,iViewer,iPanelUIID)||this}eDwUIModelViewHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){var generatedHTML,modelViews,_i,modelViews_6,modelView,modelViewHierNode;return __generator(this,(function(_a){generatedHTML="";modelViews=this.mViewer.getModel().getModelViews();for(_i=0,modelViews_6=modelViews;_iparentRect.Width){posx=parentRect.Width-menuWidth-5}if(posy+menuHeight>parentRect.Height){posy=parentRect.Height-menuHeight-5}menuJQ.css({top:posy+"px",left:posx+"px"});eDwUIUtils.hide(c_menuID,false)};eDwUIShortcutMenu.hide=function(){eDwUIUtils.hide(c_menuID,true);eDwUIUtils.hide(c_menuID+" ul",true);eDwUIUtils.hide(c_menuID+" li",true)};return eDwUIShortcutMenu}();exports.eDwUIShortcutMenu=eDwUIShortcutMenu;var c_menuID="#edrawings-shortcut-menu";var c_divider="-";var c_dummyText="dummy";function l_validatePlugin(iPluginName){if(!iPluginName){console.debugLog("shortcutmenu","Missing menu group name.");throw new eDwGenericError("Missing menu group name.")}}function l_insertInMenu(iElementStyle,iPluginName,iCSSClassName,iParentMenuJQ){l_validatePlugin(iPluginName);var text=iCSSClassName==="edrawings-shortcut-divider"?c_divider:c_dummyText;var menuElemJQ=$("<"+iElementStyle+" class ='"+iCSSClassName+" edrawings-shortcut-menu-text'>"+text+"");menuElemJQ.attr("plugin-name",iPluginName);if(!menuElemJQ.attr("id")){menuElemJQ.attr("id",iCSSClassName+"-id")}iParentMenuJQ.append(menuElemJQ);iParentMenuJQ.menu("refresh");if(text===c_dummyText)menuElemJQ.text("");return menuElemJQ}function l_removeFromMenu(iParentMenuSelector,iPluginName,iMenuItemCSSClassName){return $(iParentMenuSelector).find("[plugin-name='"+iPluginName+"']"+iMenuItemCSSClassName).remove()}function l_getNumVisMenuItems(iPluginName){var menuItems=$(c_menuID+" li");var hiddenMenuItems=$(c_menuID+" li.edrawings-ui-hide");if(iPluginName){menuItems=menuItems.find("[plugin-name='"+iPluginName+"']");hiddenMenuItems=hiddenMenuItems.find("[plugin-name='"+iPluginName+"']")}return menuItems.length-hiddenMenuItems.length}function l_shouldBeVisible(iViewer,iArg){return typeof iArg==="boolean"?false:true}}));define("eDwUITableHTMLGenerator",["require","exports","eDwUIHTMLGenerator"],(function(require,exports,eDwUIHTMLGenerator_5){"use strict";var eDwUITableHTMLGenerator=function(_super){__extends(eDwUITableHTMLGenerator,_super);function eDwUITableHTMLGenerator(iViewer,iPanelUIID){return _super.call(this,iViewer,iPanelUIID)||this}eDwUITableHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){var generatedHTML,activeModelView,tableNodes,_i,tableNodes_1,tableNode;return __generator(this,(function(_a){generatedHTML="";activeModelView=this.mViewer.getModel().getActiveModelView();if(activeModelView&&activeModelView.Hierarchy){tableNodes=activeModelView.Hierarchy.find("Category","table");for(_i=0,tableNodes_1=tableNodes;_i0))}}exports.searchPanelList=searchPanelList;function updateModelViewTargets(iModelView,iFilter,iTargetClass){var targetSpans=$("span[data-hoopsid='"+iModelView.Hierarchy.HOOPSID+"']");if(targetSpans.length>0){var viewTab=targetSpans.filter(iFilter);if(viewTab.length>0){var parentJQ=viewTab.parent();parentJQ.addClass(iTargetClass);scrollToTarget(parentJQ)}}}exports.updateModelViewTargets=updateModelViewTargets;function switchModelView(iEvent,iViewer,iClassForNodeID){var _this=this;if(!iEvent)return;var targetJQ=getAsJQueryObj(iEvent.target);if(!targetJQ.length)return;var modelViewDivJQ=$(iClassForNodeID,targetJQ);if(!modelViewDivJQ.length)return;var model=iViewer.getModel();var nodeIDHC=parseInt(modelViewDivJQ.data("hoopsid"),10);var modelViewHierNode=model.getHierarchyNode(nodeIDHC);var newModelView=modelViewHierNode.getModelView();var currModelView=model.getActiveModelView();if(newModelView===currModelView)return;(function(){return __awaiter(_this,void 0,void 0,(function(){var changeModelViewCmd;return __generator(this,(function(_a){switch(_a.label){case 0:changeModelViewCmd=new eDwChangeModelViewCmd(iViewer,newModelView);return[4,eDwCommandMgr.get().run(changeModelViewCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}exports.switchModelView=switchModelView;function expandSelected(iViewer,iSelHierNode){var activeModelView=iViewer.getModel().getActiveModelView();function expandNode(iTargetJQ){if(!iTargetJQ.length)return;if(!iTargetJQ.hasClass("edrawings-tree-expanded")){var panelUIID=getUIPanelID(iTargetJQ);if(!$(panelUIID).is(":visible"))return;var gen=getUIGenerator(panelUIID);var offset=parseInt($(iTargetJQ).css("padding-left"),10);var nodeToExpand=parseInt(iTargetJQ.data("hoopsid"),10);var hierarchyNode=activeModelView.Nodes[nodeToExpand];var appendNode=iTargetJQ.closest(".edrawings-submenu-list-item");appendNode.after(gen.generateHTMLForChildNodes(hierarchyNode,false,offset));iTargetJQ.addClass("edrawings-tree-expanded")}}var hierNode=iSelHierNode.Parent;while(hierNode&&hierNode!==activeModelView.Hierarchy){var expandNodes=$('[data-hoopsid="'+hierNode.HOOPSID+'"][class~="edrawings-tree-arrow"]');$.each(expandNodes,(function(iIdx,iTarget){expandNode($(iTarget))}));hierNode=hierNode.Parent}}exports.expandSelected=expandSelected;function scrollToTreeNode(iSelHierNode,iSetSelected){var treeItem={node:$("span[data-hoopsid='"+iSelHierNode.HOOPSID+"']:not(.config-tab-text)"),ownerNode:$("div[data-hoopsid='"+iSelHierNode.HOOPSID+"']")};if(treeItem.ownerNode.length){var classAction_1=iSetSelected?"addClass":"removeClass";$.each(treeItem.node,(function(iIdx,iTarget){$(iTarget)[classAction_1]("edrawings-list-selected")}));$.each(treeItem.ownerNode,(function(iIdx,iTarget){var targetJQ=$(iTarget);targetJQ[classAction_1]("edrawings-list-selected");if(!targetJQ.hasClass("edrawings-submenu-list-item")){return}targetJQ.find(".edrawings-submenu-list-item-button")[classAction_1]("edrawings-list-option");var panel=targetJQ.closest(".edrawings-menu");var panelHiddenState=panel.is(":hidden");hide(panel.attr("id"),false);if(iSetSelected){scrollToTarget(targetJQ,panelHiddenState?"none":"slow")}hide(panel.attr("id"),panelHiddenState)}))}}exports.scrollToTreeNode=scrollToTreeNode;function addCloseEventHandler(iPanelID,iUIHTMLEventMgr){iUIHTMLEventMgr.addDelegatedEventHandler(iPanelID+" .edrawings-menu-close","click",(function(iEvent){hide(iPanelID,true)}))}exports.addCloseEventHandler=addCloseEventHandler;function deactivateMoveInput(iInputEventIDSuffix){$(document).off("mousemove"+iInputEventIDSuffix);$(document).off("mousedown"+iInputEventIDSuffix);$(document).off("mouseup"+iInputEventIDSuffix);$(document).off("click"+iInputEventIDSuffix)}exports.deactivateMoveInput=deactivateMoveInput;function loadComponentHTML(){return __awaiter(this,void 0,void 0,(function(){var loadPromises;return __generator(this,(function(_a){switch(_a.label){case 0:loadPromises=[];utils.appendToArray(loadPanel("#edrawings-sheet-tree-menu","sheetspanel.html"),loadPromises);utils.appendToArray(loadPanel("#edrawings-layer-control-menu","layerspanel.html"),loadPromises);utils.appendToArray(loadPanel("#edrawings-debug-menu","debugpanel.html"),loadPromises);return[4,Promise.all(loadPromises)];case 1:_a.sent();return[2]}}))}))}exports.loadComponentHTML=loadComponentHTML;function inhibitEventBehavior(iEvent){iEvent.preventDefault();iEvent.stopPropagation()}exports.inhibitEventBehavior=inhibitEventBehavior;function populateModelViewPanel(iViewer,iPanelUIID,iTextClass){return __awaiter(this,void 0,void 0,(function(){var listModelViewMenu,gen,_a,_b;return __generator(this,(function(_c){switch(_c.label){case 0:listModelViewMenu=$(iPanelUIID+" .edrawings-submenu-list");listModelViewMenu.empty();gen=getUIGenerator(iPanelUIID);_b=(_a=listModelViewMenu).append;return[4,gen.generateHTML(iTextClass)];case 1:_b.apply(_a,[_c.sent()]);return[2]}}))}))}exports.populateModelViewPanel=populateModelViewPanel;function addPanelModeEvents(iPanelID,iInputEventIDSuffix,iButtonID){var click="click"+iInputEventIDSuffix;$(document).on(click,iPanelID+" .edrawings-menu-panel-arrow-collapse",(function(iJQEvent){var msg="Panel resize: "+click;console.debugLog("UIPanelResize",msg);iJQEvent.preventDefault();var panelJQ=$(iPanelID);panelJQ.toggleClass("edrawings-collapsed");var activeButtonJQ=iButtonID?$(iButtonID):undefined;positionMenuPanelArrowCollapseButton(panelJQ,activeButtonJQ);iJQEvent.stopImmediatePropagation()}));var panelJQ=$(iPanelID);panelJQ.removeClass("edrawings-collapsed");l_setMenuPanelArrowCollapseButtonPosition(panelJQ);fixMenuPanelInwardToolbar(panelJQ)}exports.addPanelModeEvents=addPanelModeEvents;function getText(iElement){return $(iElement).text().trim()}exports.getText=getText;function getTarget(iTargetJQ){return iTargetJQ.hasClass("config-tab-text")?iTargetJQ.parent():iTargetJQ}exports.getTarget=getTarget;function getSpanText(iTargetJQ){var target=getTarget(iTargetJQ);if(!target.is("span")){target=target.find("span")}if(!target||!target.length)return"";return target[0].innerText}exports.getSpanText=getSpanText;function loadPanel(iElemOrClassID,iPanelHTML){return __awaiter(this,void 0,void 0,(function(){var loaded,iExcp_16;return __generator(this,(function(_a){switch(_a.label){case 0:if(!eDwServiceMgr.usesWebServices())return[2,false];loaded=false;_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,eDwServiceMgr.get().load(iElemOrClassID,iPanelHTML)];case 2:_a.sent();loaded=true;console.debugLog("PanelLoad","Loaded panel id = "+iElemOrClassID+" HTML file = "+iPanelHTML);return[3,4];case 3:iExcp_16=_a.sent();console.debugLog("PanelLoad","Failed to load "+iPanelHTML+": "+iExcp_16.message);return[3,4];case 4:return[2,loaded]}}))}))}exports.loadPanel=loadPanel;function hide(iSelector,iOff){var selJQ=$(iSelector);selJQ[iOff?"addClass":"removeClass"]("edrawings-ui-hide");return selJQ}exports.hide=hide;function getRequestedQueryStringParams(iURL,ioViewerFeatOpts,iWarnOfOtherParams){if(iWarnOfOtherParams===void 0){iWarnOfOtherParams=true}var hashes=iURL.slice(iURL.indexOf("?")+1).split("&");for(var i=0;i1){var strVal=hash[1];var val=strVal==="true"?true:strVal==="false"?false:strVal;if(ioViewerFeatOpts.hasOwnProperty(hash[0])){ioViewerFeatOpts[hash[0]]=val}else if(iWarnOfOtherParams){console.warn(hash[0]+" is not a valid query parameter.")}}}}exports.getRequestedQueryStringParams=getRequestedQueryStringParams;function getPosition(iTargetJQ){var ret={top:0,left:0};if(iTargetJQ)ret=iTargetJQ.position();return ret}exports.getPosition=getPosition;function scrollToTarget(iTargetJQ,iAnimationSpeed){if(iAnimationSpeed===void 0){iAnimationSpeed="slow"}var animationSpeed=iAnimationSpeed;var targetOffset=iTargetJQ.offset();var targetParentJQ=iTargetJQ.parent();if(targetParentJQ.length&&targetParentJQ[0]===$(document)[0]){return false}var targetParentOffset=targetParentJQ.offset();var updated=false;if(targetParentJQ[0].scrollWidth>targetParentJQ.width()){var targetParentPaddingLeft=parseInt(targetParentJQ.css("paddingLeft"));var diff=l_computeTargetMinimalAdjustment(targetOffset.left,parseInt(iTargetJQ.css("marginLeft"))+parseInt(iTargetJQ.css("borderLeftWidth"))+iTargetJQ[0].scrollWidth+parseInt(iTargetJQ.css("borderRightWidth"))+parseInt(iTargetJQ.css("marginRight")),targetParentOffset.left+parseInt(targetParentJQ.css("marginLeft"))+parseInt(targetParentJQ.css("borderLeftWidth"))+targetParentPaddingLeft,targetParentJQ[0].clientWidth-targetParentPaddingLeft-parseInt(targetParentJQ.css("paddingRight")));if(diff!==0){var pos=targetParentJQ.scrollLeft()+diff;if(Math.abs(diff)>targetParentJQ.width()){var targetJQpostionLeft=iTargetJQ.position().left;pos=targetParentJQ.scrollLeft()+targetJQpostionLeft}else{animationSpeed="none"}l_scrollToTarget(targetParentJQ,pos,animationSpeed,"scrollLeft");updated=true}}if(targetParentJQ[0].scrollHeight>targetParentJQ.height()){var targetParentPaddingTop=parseInt(targetParentJQ.css("paddingTop"));var diff=l_computeTargetMinimalAdjustment(targetOffset.top,parseInt(iTargetJQ.css("marginTop"))+parseInt(iTargetJQ.css("borderTopWidth"))+iTargetJQ[0].scrollHeight+parseInt(iTargetJQ.css("borderBottomWidth"))+parseInt(iTargetJQ.css("marginBottom")),targetParentOffset.top+parseInt(targetParentJQ.css("marginTop"))+parseInt(targetParentJQ.css("borderTopWidth"))+targetParentPaddingTop,targetParentJQ[0].clientHeight-targetParentPaddingTop-parseInt(targetParentJQ.css("paddingBottom")));if(diff!==0){var pos=targetParentJQ.scrollTop()+diff;if(Math.abs(diff)>targetParentJQ.height()){var targetJQpostionTop=iTargetJQ.position().top;pos=targetParentJQ.scrollTop()+targetJQpostionTop}else{animationSpeed="none"}l_scrollToTarget(targetParentJQ,pos,animationSpeed,"scrollTop");updated=true}}return updated}exports.scrollToTarget=scrollToTarget;function getIDHC(iTargetJQ){if(!iTargetJQ)return Number.NaN;return parseInt(iTargetJQ.data("hoopsid"),10)}exports.getIDHC=getIDHC;function activateUI(iButtonID,iPanelID){return __awaiter(this,void 0,void 0,(function(){var panelJQ,buttonJQ;return __generator(this,(function(_a){switch(_a.label){case 0:if(iPanelID){panelJQ=hide(iPanelID,false).addClass("active");fixMenuPanelInwardToolbar(panelJQ)}if(!iButtonID)return[3,2];buttonJQ=$(iButtonID);buttonJQ.addClass("active-button");scrollToTarget(buttonJQ,"none");return[4,eDwEventMgr.get().fireEvent(eDwEvents_9.ActivateUIOpEvent,buttonJQ)];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}exports.activateUI=activateUI;function deactivateUI(iButtonCSSClassName,iPanelCSSClassName){if(iButtonCSSClassName===void 0){iButtonCSSClassName=""}if(iPanelCSSClassName===void 0){iPanelCSSClassName=""}return __awaiter(this,void 0,void 0,(function(){var activeButtonsJQ,panelsJQ;return __generator(this,(function(_a){switch(_a.label){case 0:activeButtonsJQ=$(iButtonCSSClassName+".active-button");if(!activeButtonsJQ.length)return[3,2];return[4,eDwEventMgr.get().fireEvent(eDwEvents_9.DeactivateUIOpEvent,activeButtonsJQ)];case 1:_a.sent();activeButtonsJQ.removeClass("active-button");_a.label=2;case 2:panelsJQ=hide(iPanelCSSClassName+".active",true).removeClass("active");panelsJQ.each((function(iIdx,iPanel){fixMenuPanelInwardToolbar($(iPanel),true)}));return[2,activeButtonsJQ]}}))}))}exports.deactivateUI=deactivateUI;function isIDInJQuery(iListJQ,iID){var inJQList=false;for(var key in iListJQ){if(iListJQ[key].id===iID){inJQList=true;break}}return inJQList}exports.isIDInJQuery=isIDInJQuery;function isStateOn(iID){return $(iID).hasClass("state-on-button")}exports.isStateOn=isStateOn;function resetToHomeView(iViewer){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var resetCmd;return __generator(this,(function(_a){switch(_a.label){case 0:resetCmd=new eDwResetCmd(iViewer);return[4,eDwCommandMgr.get().run(resetCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}exports.resetToHomeView=resetToHomeView;function getViewerElementName(){return"edrawings-viewer"}exports.getViewerElementName=getViewerElementName;function getViewerElementID(){return"#"+getViewerElementName()}exports.getViewerElementID=getViewerElementID;function makeResult(iExcp){var result={ErrorCode:"UnknownError",ErrorData:[]};if(iExcp instanceof eDwResultError){result=iExcp.Result}else if(iExcp instanceof eDwAJAXError){result.ErrorCode=iExcp.ErrorCode;result.ErrorData=[iExcp.message]}else{result.ErrorCode=iExcp.name;result.ErrorData=[iExcp.message]}return result}exports.makeResult=makeResult;function viewFile(iModelName,iModelKey,iParams,iContainerName,iModelData){return __awaiter(this,void 0,void 0,(function(){function createViewer(iWebSocketEndpoint){if(iWebSocketEndpoint===""){return null}var streamAlways=iParams.StreamAlwaysConnected;var streamModes=eDwTypes_17.HC.StreamingMode;var webViewerInfo={};webViewerInfo.containerId=iContainerName;webViewerInfo.model=iModelKey;webViewerInfo.endpointUri=iWebSocketEndpoint;webViewerInfo.streamingMode=streamAlways?streamModes.Interactive:streamModes.All;webViewerInfo.streamingMode=iModelData?null:webViewerInfo.streamingMode;webViewerInfo.buffer=iModelData;webViewerInfo.boundingPreviewMode=eDwTypes_17.HC.BoundingPreviewMode.None;eDwEventMgr.get().addEventHandlerFunc(eDwEvents_9.GLContextLostEvent,c_onContextLost);var viewer=new eDwView(webViewerInfo,iParams);hide("#"+iContainerName,false);if(iModelName){$("#edrawings-filename-text").html(decodeURIComponent(iModelName))}var modelName=!iModelName&&iModelKey?iModelKey:iModelName;if(!modelName)return null;if(modelName.search(".zip")>-1){modelName=modelName.substring(0,modelName.length-4)}console.debugLog("ModelLoad","Created new edw viewer");return viewer}var wsEndPt,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!iModelData)return[3,1];_a=null;return[3,3];case 1:return[4,eDwServiceMgr.get().getWebSocketEndpoint(iModelKey,iParams.WebSocketEndpoint)];case 2:_a=_b.sent();_b.label=3;case 3:wsEndPt=_a;return[2,createViewer(wsEndPt)]}}))}))}exports.viewFile=viewFile;function fixMenuPanelInwardToolbar(iPanelJQ,iToClear){if(iToClear===void 0){iToClear=false}if(iToClear){iPanelJQ.removeClass("edrawings-collided");return}if(iPanelJQ.hasClass("edrawings-hud-menu")){var panel=iPanelJQ[0];if(panel.scrollHeight>panel.clientHeight){iPanelJQ.addClass("edrawings-collided")}else{iPanelJQ.removeClass("edrawings-collided")}}else if(iPanelJQ.hasClass("edrawings-submenu")){var wrapperJQ=iPanelJQ.find(".edrawings-menu-panel-wrapper");var wasCollided=iPanelJQ.hasClass("edrawings-collided");if(iPanelJQ[0].scrollHeight>iPanelJQ[0].clientHeight&&iPanelJQ[0].scrollHeight-iPanelJQ[0].clientHeight>1||wrapperJQ[0].scrollHeight>wrapperJQ[0].clientHeight&&wrapperJQ[0].scrollHeight-wrapperJQ[0].clientHeight>1){if(!wasCollided){iPanelJQ.addClass("edrawings-collided")}iPanelJQ.addClass("edrawings-wiggle");setTimeout((function(){iPanelJQ.removeClass("edrawings-wiggle")}),0)}else{iPanelJQ.removeClass("edrawings-collided");if(wasCollided){fixMenuPanelInwardToolbar(iPanelJQ)}}}}exports.fixMenuPanelInwardToolbar=fixMenuPanelInwardToolbar;function positionMenuPanelArrowCollapseButton(iPanelJQ,iButtonJQ){if(!iPanelJQ.hasClass("edrawings-collapsed")){l_setMenuPanelArrowCollapseButtonPosition(iPanelJQ);fixMenuPanelInwardToolbar(iPanelJQ)}else{if(iButtonJQ){var arrowCollapseButtonJQ=iPanelJQ.find(".edrawings-menu-panel-arrow-collapse");var activeButtonRect=iButtonJQ[0].getBoundingClientRect();var arrowCollapseButtonRect=arrowCollapseButtonJQ[0].getBoundingClientRect();var diffTop=activeButtonRect.top-arrowCollapseButtonRect.top;l_setMenuPanelArrowCollapseButtonPosition(arrowCollapseButtonJQ,arrowCollapseButtonJQ.position().top+diffTop)}fixMenuPanelInwardToolbar(iPanelJQ,true)}}exports.positionMenuPanelArrowCollapseButton=positionMenuPanelArrowCollapseButton;function executeScrolling(iDiffX,iDiffY,iContentJQ,iBarJQ){var contentParentJQ=iContentJQ.parent();var leftButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-left)");var rightButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-right)");var upButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-up)");var downButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-down)");if(iContentJQ[0].scrollWidth>iContentJQ.width()){var scrollLeft=iContentJQ.scrollLeft();var newScrollLeft=scrollLeft+iDiffX;iContentJQ.scrollLeft(newScrollLeft);adjustScrollArrows(iContentJQ.scrollLeft(),iContentJQ[0].scrollWidth,iContentJQ.width(),true,leftButtonWrapperJQ,rightButtonWrapperJQ,iBarJQ)}if(iContentJQ[0].scrollHeight>iContentJQ.height()){var scrollTop=iContentJQ.scrollTop();var newScrollTop=scrollTop+iDiffY;iContentJQ.scrollTop(newScrollTop);adjustScrollArrows(iContentJQ.scrollTop(),iContentJQ[0].scrollHeight,iContentJQ.height(),false,upButtonWrapperJQ,downButtonWrapperJQ,iBarJQ)}return iDiffX!==0||iDiffY!==0}exports.executeScrolling=executeScrolling;function enableScrollOnTouch(ioUIHTMLEventMgr,iContentJqSel,iBarJqSel,iHandlerOnScroll){var _this=this;var contentJQ=$(iContentJqSel);var barJQ=iBarJqSel?$(iBarJqSel):undefined;var hasScrolled=false;var stopClickTarget;var stopClickPropagation=false;ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchstart",(function(iEventStart){hasScrolled=false;stopClickPropagation=false;stopClickTarget=undefined;var touchEventStart=iEventStart;var lastScreenX=touchEventStart.changedTouches[0].screenX;var lastScreenY=touchEventStart.changedTouches[0].screenY;ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchmove",(function(iEventMove){var touchEventMove=iEventMove;var xDiff=touchEventMove.changedTouches[0].screenX-lastScreenX;lastScreenX=touchEventMove.changedTouches[0].screenX;var yDiff=touchEventMove.changedTouches[0].screenY-lastScreenY;lastScreenY=touchEventMove.changedTouches[0].screenY;var updated=executeScrolling(-xDiff,-yDiff,contentJQ,barJQ);if(updated&&iHandlerOnScroll){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,iHandlerOnScroll()];case 1:_a.sent();return[2]}}))}))})()}hasScrolled=hasScrolled||updated}))}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchend",(function(iEvent){var touchEvent=iEvent;ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");if(hasScrolled){touchEvent.preventDefault();touchEvent.stopPropagation();stopClickPropagation=true;stopClickTarget=touchEvent.target}else{stopClickPropagation=false;stopClickTarget=undefined}hasScrolled=false}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchcancel",(function(iEvent){ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");hasScrolled=false;stopClickPropagation=false}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"mousedown",(function(iEvent){hasScrolled=false;stopClickPropagation=false;if(!eDwKeyMgr_5.eDwKeyMgr.isLMBPressed(iEvent)){return}var eventDown=iEvent;var lastScreenX=eventDown.screenX;var lastScreenY=eventDown.screenY;ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousemove");ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"mousemove",(function(iEventMove){var eventMove=iEventMove;var xDiff=eventMove.screenX-lastScreenX;var yDiff=eventMove.screenY-lastScreenY;lastScreenX=eventMove.screenX;lastScreenY=eventMove.screenY;var updated=executeScrolling(-xDiff,-yDiff,contentJQ,barJQ);if(updated&&iHandlerOnScroll){iHandlerOnScroll()}hasScrolled=hasScrolled||updated}))}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"mouseup",(function(iEvent){ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousemove");if(hasScrolled){iEvent.stopImmediatePropagation();iEvent.preventDefault();stopClickPropagation=true;stopClickTarget=iEvent.target}else{stopClickPropagation=false;stopClickTarget=undefined}hasScrolled=false}));var propagationHandler=function(iEvent2){if(stopClickPropagation&&iEvent2.target===stopClickTarget){iEvent2.stopImmediatePropagation();iEvent2.preventDefault()}stopClickPropagation=false;stopClickTarget=undefined};var nameSpace=iContentJqSel.replace(/[\.\s]/g,"");var dataKey="click.edw."+nameSpace;contentJQ.off(dataKey,"*");contentJQ.on(dataKey,"*",propagationHandler)}exports.enableScrollOnTouch=enableScrollOnTouch;function disableScrollOnTouch(iUIHTMLEventMgr,iContentJqSel){iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchstart");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchend");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchcancel");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousedown");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousemove");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mouseup");var contentJQ=$(iContentJqSel);var nameSpace=iContentJqSel.replace(/[\.\s]/g,"");var dataKey="click.edw."+nameSpace;contentJQ.off(dataKey,"*")}exports.disableScrollOnTouch=disableScrollOnTouch;function adjustScrollArrows(iOffset,iRange,iVisibleRange,isHorizonatalScrolling,iDecreaseWrapperJQ,iIncreaseWrapperJQ,iBarJQ){if(iOffset<=0){iDecreaseWrapperJQ.addClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.addClass(isHorizonatalScrolling?"edrawings-removed-arrow-left":"edrawings-removed-arrow-up")}}else{iDecreaseWrapperJQ.removeClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.removeClass(isHorizonatalScrolling?"edrawings-removed-arrow-left":"edrawings-removed-arrow-up")}}if(iOffset+iVisibleRange>=iRange){iIncreaseWrapperJQ.addClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.addClass(isHorizonatalScrolling?"edrawings-removed-arrow-right":"edrawings-removed-arrow-down")}}else{iIncreaseWrapperJQ.removeClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.removeClass(isHorizonatalScrolling?"edrawings-removed-arrow-right":"edrawings-removed-arrow-down")}}}exports.adjustScrollArrows=adjustScrollArrows;function getAsJQueryObj(iObj){return iObj?$(iObj):$()}exports.getAsJQueryObj=getAsJQueryObj;var l_generators={};function l_getAllDisplayStateCSSClasses(iHierNode){var classes="";for(var displayState in eDwNodeAttributes_4.NodeDisplayState){classes+="edrawings-"+iHierNode.Category+"-"+displayState.toLowerCase()+" "}return classes}function l_populatePanel(iViewer,iCategoryName,iListID,iPanelUIID,iAdditionalClasses){if(iAdditionalClasses===void 0){iAdditionalClasses=""}return __awaiter(this,void 0,void 0,(function(){var activeModelView,list,gen,_a,_b;return __generator(this,(function(_c){switch(_c.label){case 0:activeModelView=iViewer.getModel().getActiveModelView();if(!activeModelView||!activeModelView.Hierarchy)return[2];list=$(iListID);list.empty();gen=getUIGenerator(iPanelUIID);_b=(_a=list).append;return[4,gen.generateHTML(iAdditionalClasses)];case 1:_b.apply(_a,[_c.sent()]);return[2]}}))}))}function l_populateLayerPanel(iViewer){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_populatePanel(iViewer,"layer","#edrawings-layer-control-list","#edrawings-layer-control-menu")];case 1:_a.sent();return[2]}}))}))}function l_populateDebugPanel(iViewer){var list=$("#edrawings-debug-menu .edrawings-submenu-list");list.empty();var gen=getUIGenerator("#edrawings-debug-menu");var model=iViewer.getModel();var modelView=model.getActiveModelView();if(modelView&&modelView.Hierarchy){var layers=model.getLayers();for(var _i=0,layers_3=layers;_iiReferenceSide+iReferenceOffset){diff=iTargetSide+iTargetOffset-(iReferenceSide+iReferenceOffset)}return diff}function l_scrollToTarget(iTargetJQ,iPos,iAnimationSpeed,iStartPos){var _a;if(iAnimationSpeed===void 0){iAnimationSpeed="slow"}if(iStartPos===void 0){iStartPos="scrollTop"}if(!iTargetJQ)return;if(iAnimationSpeed==="none"){iTargetJQ[iStartPos](iPos)}else{iTargetJQ.animate((_a={},_a[iStartPos]=iPos,_a),iAnimationSpeed)}}}));define("eDwUnits",["require","exports"],(function(require,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.cDefaultAngleUnit=exports.cDefaultLengthUnit=exports.LengthTypeValues=exports.AngleTypeValues=void 0;exports.AngleTypeValues=["degree","radian"];exports.LengthTypeValues=["millimeter","centimeter","meter","inch","foot","footAndInch"];exports.cDefaultLengthUnit="millimeter";exports.cDefaultAngleUnit="degree"}));define("eDwView",["require","exports","eDwSelMgr","eDwXSectionMgr","eDwViewMgr","eDwTimer","eDwOperatorBaseDeps","eDwEventMgr","eDwHistoryMgr","eDwModel","eDwTypes","eDwEvents","eDwTouchOpsMgr","eDwTableMgr"],(function(require,exports,eDwSelMgr,eDwXSectionMgr,eDwViewMgr,eDwTimer,eDwOperatorBaseDeps_2,eDwEventMgr,eDwHistoryMgr,eDwModel,eDwTypes_18,eDwEvents_10,eDwTouchOpsMgr,eDwTableMgr){"use strict";var eDwView=function(){function eDwView(iViewerInfo,iFeatureOptions){this.mElemID=iViewerInfo.containerId||"";this.HCViewer=new eDwTypes_18.HC.WebViewer(iViewerInfo);this.mTimer=new eDwTimer;this.ViewerFeatureOpts=iFeatureOptions;this.mDrawMode=iFeatureOptions.RenderType||"ShadedWithEdges";this.OperatorMgr=new eDwOperatorBaseDeps_2.eDwOperatorMgr(this);this.TableMgr=new eDwTableMgr(this);var streamAll=this.HCViewer.getStreamingMode()===eDwTypes_18.HC.StreamingMode.All;var timeBeforeTimeout=streamAll?14400:120;var timeBeforeWarnTimeout=timeBeforeTimeout-10;this.HCViewer.setClientTimeout(timeBeforeTimeout,timeBeforeWarnTimeout);this.mInitCamera=null;this.mModelKey=iViewerInfo.model||"";this.setupWebViewer()}eDwView.prototype.getHCView=function(){return this.HCViewer.view};eDwView.prototype.getHCMarkupManager=function(){return this.HCViewer.markupManager};eDwView.prototype.getModel=function(){if(!this.mModel){this.mModel=new eDwModel(this)}return this.mModel};eDwView.prototype.processProductStructure=function(){return __awaiter(this,void 0,void 0,(function(){var model,activeModelView,modelViewDefCamera;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:this.mInitCamera=this.getHCView().getCamera();model=this.getModel();activeModelView=model.getActiveModelView();modelViewDefCamera=activeModelView.getDefaultCamera();if(modelViewDefCamera)this.mInitCamera=modelViewDefCamera;this.ViewMgr.setCamera(this.mInitCamera);$("#"+this.mElemID).trigger("edw:ModelDataLoadComplete",this);return[4,this.finishInit()];case 1:_a.sent();if(this.HCViewer.getStreamingMode()===eDwTypes_18.HC.StreamingMode.All){this.HCViewer.waitForIdle().then((function(){l_closeHCConnection(_this)}))}return[2]}}))}))};eDwView.prototype.setupWebViewer=function(){var _this=this;var processingSelection=false;var eventMgr=eDwEventMgr.get();function deprecatedCallback(iDeprecatedFuncName){var argArray=[];for(var key in arguments){argArray.push(arguments[key])}console.debugLog("Deprecated","Deprecated call: "+argArray.join("."))}this.mHCCallbacksObj={sceneReady:function(){console.debugLog("ViewerLoad","Scene ready");_this.HCViewer.resizeCanvas()},streamingActivated:function(){console.debugLog("Viewer","Streaming activated")},streamingDeactivated:function(){console.debugLog("Viewer","Streaming deactivated")},selection:function(iSelEvent){if(!processingSelection){processingSelection=true;try{(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.SelectionMgr.onSelection(iSelEvent);return[2]}))}))})()}catch(iException){}processingSelection=false}},timeoutWarning:function(iRemainingMinutes){console.debugLog("Viewer","Inactivity timeout pending in "+iRemainingMinutes+" minutes.");_this.mTimer.ellapsed();_this.mTimer.dumpToConsole()},timeout:function(){console.debugLog("Viewer","Inactivity timeout");_this.mTimer.ellapsed();_this.mTimer.dumpToConsole();(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.TimeoutEvent,this)];case 1:_a.sent();return[2]}}))}))})();l_closeHCConnection(_this)},modelLoadFailure:function(iModelName,iReason){console.warn("Model "+iModelName+" load failed: "+iReason);$("#"+_this.mElemID).trigger("edw:ModelLoadFailed",[_this,iModelName,iReason]);l_closeHCConnection(_this)},deprecated:deprecatedCallback,info:function(iInfoType,iMsg){console.debugLog("Debug",iInfoType.toString()+" "+iMsg)},missingModel:function(iModelPath){console.debugLog("Debug","Missing model: "+iModelPath);l_closeHCConnection(_this)},webGlContextLost:function(){console.debugLog("Debug","Browser lost GL context! Render incomplete!!");(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.GLContextLostEvent,this)];case 1:_a.sent();return[2]}}))}))})();l_closeHCConnection(_this)},assemblyTreeReady:function(){console.debugLog("ViewerLoad","Assembly tree ready.")},modelStructureReady:function(){console.debugLog("ViewerLoad","Model structure ready.");$("#"+_this.mElemID).trigger("edw:ModelLoaded",_this)},modelSwitched:function(){console.debugLog("ViewerLoad","Model switch done.");$("#"+_this.mElemID).trigger("edw:ModelLoaded",_this)},viewCreated:function(iHCView){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.ViewCreatedEvent,iHCView)];case 1:_a.sent();return[2]}}))}))})()},viewLoaded:function(iHCView){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.ViewLoadedEvent,iHCView)];case 1:_a.sent();return[2]}}))}))})()},viewDeleted:function(iHCView){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.ViewDeletedEvent,iHCView)];case 1:_a.sent();return[2]}}))}))})()},camera:function(iCamera){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.CameraChangeEvent,iCamera)];case 1:_a.sent();return[2]}}))}))})()}};this.HCViewer.setCallbacks(this.mHCCallbacksObj);this.HCViewer.start()};eDwView.prototype.getInitCamera=function(){return this.mInitCamera};eDwView.prototype.getCurrModelKey=function(){return this.mModelKey};eDwView.prototype.unregister=function(){var _this=this;if(this.HCViewer)this.HCViewer.unsetCallbacks(this.mHCCallbacksObj);this.OperatorMgr.unregisterAll();(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.DoneEvent,this)];case 1:_a.sent();return[2]}}))}))})()};eDwView.prototype.destroy=function(){this.HCViewer.shutdown()};eDwView.prototype.setExplosionLevel=function(iLevel){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.HCViewer.explodeManager.setMagnitude(iLevel)];case 1:_a.sent();return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.ExplodeLevelChangeEvent,this,iLevel)];case 2:_a.sent();return[2]}}))}))})()};eDwView.prototype.getExplosionLevel=function(){return this.HCViewer.explodeManager.getMagnitude()};eDwView.prototype.getDrawMode=function(){return this.mDrawMode};eDwView.prototype.setDrawMode=function(iValue){var _this=this;var viewHC=this.getHCView();var settingsHC=viewHC.getHiddenLineSettings();switch(iValue){case"ShadedWithEdges":viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.WireframeOnShaded);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.WireframeOnShaded);break;case"Shaded":viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.Shaded);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.Shaded);break;case"HiddenLinesRemoved":settingsHC.setObscuredLineOpacity(0);viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.HiddenLine);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.HiddenLine);break;case"HiddenLinesVisible":settingsHC.setObscuredLineOpacity(.5);viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.HiddenLine);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.HiddenLine);break;case"Wireframe":settingsHC.setObscuredLineOpacity(1);viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.HiddenLine);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.HiddenLine);break;default:throw new Error("Unknown draw mode: "+iValue)}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mDrawMode=iValue;return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.DrawModeChangeEvent,this,iValue)];case 1:_a.sent();return[2]}}))}))})()};eDwView.prototype.getPerspectiveMode=function(){return this.getHCView().getProjectionMode()===eDwTypes_18.HC.Projection.Perspective};eDwView.prototype.setPerspectiveMode=function(iValue){var _this=this;if(!iValue){this.getHCView().setProjectionMode(eDwTypes_18.HC.Projection.Orthographic)}else{this.getHCView().setProjectionMode(eDwTypes_18.HC.Projection.Perspective)}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.ProjModeChangeEvent,this,iValue)];case 1:_a.sent();return[2]}}))}))})();return iValue};eDwView.prototype.resetDrawMode=function(){this.setDrawMode(this.ViewerFeatureOpts.RenderType||"ShadedWithEdges")};eDwView.prototype.initializeManagers=function(){new eDwSelMgr(this);new eDwXSectionMgr(this);new eDwViewMgr(this);new eDwTouchOpsMgr(this)};eDwView.prototype.drawDebugBoundingBox=function(iBBox){return __awaiter(this,void 0,void 0,(function(){var modelHC,beautifulGreen,vmin,vmax,p0,p1,p2,p3,p4,p5,p6,p7,polylineData0,polylineData1,polylineData2,polylineData3,rgba,i,tmp,boxMesh,key,meshInstance;return __generator(this,(function(_a){switch(_a.label){case 0:modelHC=this.getModel().getHCModel();beautifulGreen=new eDwTypes_18.HC.Color(0,255,0);vmin=iBBox.min;vmax=iBBox.max;p0=new eDwTypes_18.HC.Point3(vmin.x,vmin.y,vmax.z);p1=new eDwTypes_18.HC.Point3(vmin.x,vmax.y,vmax.z);p2=new eDwTypes_18.HC.Point3(vmax.x,vmax.y,vmax.z);p3=new eDwTypes_18.HC.Point3(vmax.x,vmin.y,vmax.z);p4=new eDwTypes_18.HC.Point3(vmin.x,vmin.y,vmin.z);p5=new eDwTypes_18.HC.Point3(vmin.x,vmax.y,vmin.z);p6=new eDwTypes_18.HC.Point3(vmax.x,vmax.y,vmin.z);p7=new eDwTypes_18.HC.Point3(vmax.x,vmin.y,vmin.z);polylineData0=[p0.x,p0.y,p0.z,p1.x,p1.y,p1.z,p2.x,p2.y,p2.z,p3.x,p3.y,p3.z,p0.x,p0.y,p0.z];polylineData1=[p4.x,p4.y,p4.z,p5.x,p5.y,p5.z,p6.x,p6.y,p6.z,p7.x,p7.y,p7.z,p4.x,p4.y,p4.z];polylineData2=[p4.x,p4.y,p4.z,p0.x,p0.y,p0.z,p1.x,p1.y,p1.z,p5.x,p5.y,p5.z,p4.x,p4.y,p4.z];polylineData3=[p7.x,p7.y,p7.z,p3.x,p3.y,p3.z,p2.x,p2.y,p2.z,p6.x,p6.y,p6.z,p7.x,p7.y,p7.z];rgba=[];for(i=0;i<5;i++){tmp=[beautifulGreen.r,beautifulGreen.g,beautifulGreen.b,255];rgba=rgba.concat(tmp)}boxMesh=new eDwTypes_18.HC.MeshData;boxMesh.addPolyline(polylineData0,rgba);boxMesh.addPolyline(polylineData1,rgba);boxMesh.addPolyline(polylineData2,rgba);boxMesh.addPolyline(polylineData3,rgba);return[4,modelHC.createMesh(boxMesh)];case 1:key=_a.sent();meshInstance=new eDwTypes_18.HC.MeshInstanceData(key);return[2,modelHC.createMeshInstance(meshInstance)]}}))}))};eDwView.prototype.finishInit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.InitEvent,this)];case 1:_a.sent();this.HCViewer.sheetManager.setBackgroundSheetEnabled(false);eDwHistoryMgr.get().clear();return[2]}}))}))};return eDwView}();function l_closeHCConnection(iViewer){if(!iViewer)return;var viewHC=iViewer.getHCView();viewHC.setCamera(viewHC.getCamera());console.debugLog("Viewer","Closing viewer connection...");iViewer.HCViewer.closeConnection()}return eDwView}));define("eDwViewMgr",["require","exports","eDwEventMgr","eDwSelObj","eDwEvents","eDwTypes"],(function(require,exports,eDwEventMgr,eDwSelObj,eDwEvents_11,eDwTypes_19){"use strict";var eDwViewMgr=function(){function eDwViewMgr(iViewer){if(!iViewer)throw new Error("Must have viewer object");iViewer.ViewMgr=this;this.mViewAnimationIndex=0;this.mViewAnimationActive=false;this.mAnimationTimeOutID=-1;this.mViewer=iViewer}eDwViewMgr.prototype.start=function(){var _this=this;if(this.mViewer.getModel().isDrawing())return;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_11.StartAnimationEvent,this.mViewer)];case 1:_a.sent();return[2]}}))}))})();this.mViewAnimationActive=true;this.animateNextView()};eDwViewMgr.prototype.stop=function(){var _this=this;this.mViewAnimationActive=false;if(this.mAnimationTimeOutID>-1){window.clearTimeout(this.mAnimationTimeOutID);this.mAnimationTimeOutID=-1}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_11.StopAnimationEvent,this.mViewer)];case 1:_a.sent();return[2]}}))}))})()};eDwViewMgr.prototype.reset=function(){this.stop();this.mViewAnimationIndex=0};eDwViewMgr.prototype.isActive=function(){return this.mViewAnimationActive};eDwViewMgr.prototype.setViewOrientation=function(iEyeDirHC,iDuration){var _this=this;if(iDuration===void 0){iDuration=400}var centerHC=this.mViewer.getModel().getBoundingBox().center();var viewHC=this.mViewer.getHCView();var cameraHC=viewHC.getCamera().copy();var upVecHC=cameraHC.getUp();var eyeVecHC=cameraHC.getTarget().subtract(cameraHC.getPosition());var dist=eyeVecHC.length();switch(iEyeDirHC){case eDwTypes_19.HC.ViewOrientation.Front:eyeVecHC.set(0,0,1).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Back:eyeVecHC.set(0,0,-1).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Left:eyeVecHC.set(-1,0,0).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Right:eyeVecHC.set(1,0,0).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Top:eyeVecHC.set(0,1,0).scale(dist);upVecHC.set(0,0,-1);break;case eDwTypes_19.HC.ViewOrientation.Bottom:eyeVecHC.set(0,-1,0).scale(dist);upVecHC.set(0,0,1);break;case eDwTypes_19.HC.ViewOrientation.Iso:eyeVecHC.set(1,1,1).normalize().scale(dist);upVecHC.set(-.408204,.816541,-.408204);break;default:throw new Error("Unsupported orientation: "+iEyeDirHC)}this.adjustOrientation(eyeVecHC,upVecHC);cameraHC.setPosition(eyeVecHC.add(centerHC));cameraHC.setUp(upVecHC);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,viewHC.fitWorld(iDuration,cameraHC)];case 1:_a.sent();return[2]}}))}))})();return cameraHC};eDwViewMgr.prototype.setViewOrientationToDirection=function(normal){var camera=this.mViewer.getHCView().getCamera();var position=camera.getPosition();var target=camera.getTarget();var up=camera.getUp();var delta=target.subtract(position);var distance=delta.length();var bbox=this.mViewer.getModel().getBoundingBox();var bbox_min=bbox.min;var bbox_max=bbox.max;target=eDwTypes_19.HC.Point3.add(bbox_max,bbox_min).scale(.5);var eyeVec=eDwTypes_19.HC.Point3.scale(normal,distance);position=eDwTypes_19.HC.Point3.add(target,eyeVec);var vTest=new eDwTypes_19.HC.Point3(1,0,0);var isParallel=eDwTypes_19.HC.Point3.dot(vTest,normal);if(Math.abs(Math.abs(isParallel)-1)<.001){vTest.set(0,1,0);var vec=eDwTypes_19.HC.Point3.cross(normal,vTest);vec=vec.normalize();up=eDwTypes_19.HC.Point3.cross(vec,normal);up=up.normalize()}else{up=eDwTypes_19.HC.Point3.cross(normal,vTest);up=up.normalize()}var dotProd=eDwTypes_19.HC.Point3.dot(up,new eDwTypes_19.HC.Point3(1,0,0));if(Math.abs(Math.abs(dotProd)-1)<.001&&dotProd<0){up=up.negate()}dotProd=eDwTypes_19.HC.Point3.dot(up,new eDwTypes_19.HC.Point3(0,1,0));if(Math.abs(Math.abs(dotProd)-1)<.001&&dotProd<0){up=up.negate()}dotProd=eDwTypes_19.HC.Point3.dot(up,new eDwTypes_19.HC.Point3(0,0,1));if(Math.abs(Math.abs(dotProd)-1)<.001&&dotProd<0){up=up.negate()}camera.setPosition(position);camera.setTarget(target);camera.setUp(up);this.setCamera(camera,500);return camera};eDwViewMgr.prototype.setCamera=function(iCameraHC,iTimeInMS){if(iTimeInMS===void 0){iTimeInMS=400}if(!iCameraHC)return false;var cameraHC=iCameraHC.copy();cameraHC.setProjection(this.mViewer.getHCView().getCamera().getProjection());return this.mViewer.getHCView().setCamera(cameraHC,iTimeInMS)};eDwViewMgr.prototype.enableAmbientOcclusion=function(iEnable){var _this=this;this.mViewer.getHCView().setAmbientOcclusionEnabled(iEnable);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_11.AmbientOcclChangeEvent,this,iEnable)];case 1:_a.sent();return[2]}}))}))})()};eDwViewMgr.prototype.fitScreenToNodes=function(iNodeIDsHC,ioCamera){return __awaiter(this,void 0,void 0,(function(){var model,bboxHC,subtract,viewVec,centerHC,add,ratio,boxMaxLen;return __generator(this,(function(_a){switch(_a.label){case 0:if(!ioCamera)return[2];model=this.mViewer.getModel();return[4,model.getBoundingBoxOfIDsHC(iNodeIDsHC)];case 1:bboxHC=_a.sent();if(bboxHC.isDegenerate())return[2];subtract=eDwTypes_19.HC.Point3.subtract;viewVec=subtract(ioCamera.getPosition(),ioCamera.getTarget());centerHC=bboxHC.center().copy();ioCamera.setTarget(centerHC);add=eDwTypes_19.HC.Point3.add;ioCamera.setPosition(add(centerHC,viewVec));ratio=ioCamera.getWidth()/ioCamera.getHeight();if(this.mViewer.getModel().isDrawing()){bboxHC.min.z=bboxHC.max.z=0}boxMaxLen=bboxHC.extents().length();ioCamera.setHeight(boxMaxLen);ioCamera.setWidth(boxMaxLen*ratio);this.setCamera(ioCamera,400);return[2]}}))}))};eDwViewMgr.prototype.pickFromPoint=function(iPnt2DHC,iPickConfig){return __awaiter(this,void 0,void 0,(function(){var selObjHC,toLocalTransformHC,viewHC,iExcp_17;return __generator(this,(function(_a){switch(_a.label){case 0:selObjHC=eDwTypes_19.HC.Selection.SelectionItem.create();toLocalTransformHC=new eDwTypes_19.HC.Matrix;_a.label=1;case 1:_a.trys.push([1,3,,4]);viewHC=this.mViewer.getHCView();return[4,viewHC.pickFromPoint(iPnt2DHC,iPickConfig)];case 2:selObjHC=_a.sent();console.debugLog("eDwViewMgr","eDwViewMgr.pickFromPoint() - "+selObjHC.getNodeId()+" - "+JSON.stringify(iPnt2DHC));console.assert(!isNaN(toLocalTransformHC.m[0]),"Not number before");toLocalTransformHC=eDwSelObj.getLocalTransform(selObjHC,this.mViewer.getModel());console.assert(!isNaN(toLocalTransformHC.m[0]),"Not number after");return[3,4];case 3:iExcp_17=_a.sent();console.debugLog("eDwViewMgr","eDwViewMgr.pickFromPoint() failed - "+iExcp_17.message);return[3,4];case 4:console.assert(!isNaN(toLocalTransformHC.m[0]),"Not number after 2");return[2,new eDwSelObj(selObjHC,toLocalTransformHC)]}}))}))};eDwViewMgr.prototype.onCameraUpdate=function(){this.mViewAnimationIndex+=1;if(this.mViewAnimationIndex>=eDwViewMgr.viewAnimations.length){this.mViewAnimationIndex=0;this.mViewAnimationActive=false;this.stop()}if(this.mViewAnimationActive){this.animateNextView()}};eDwViewMgr.prototype.animateNextView=function(){var _this=this;if(this.mViewAnimationActive){this.setViewOrientation(eDwViewMgr.viewAnimations[this.mViewAnimationIndex],2e3);this.mAnimationTimeOutID=window.setTimeout((function(){_this.onCameraUpdate()}),2e3)}};eDwViewMgr.prototype.adjustOrientation=function(ioEveVecHC,ioUpVecHC){if(this.mViewer.getModel().getProperty("zUp")==="true"){cCamZUpMat.transform(ioEveVecHC,ioEveVecHC);cCamZUpMat.transform(ioUpVecHC,ioUpVecHC)}};eDwViewMgr.viewAnimations=[eDwTypes_19.HC.ViewOrientation.Front,eDwTypes_19.HC.ViewOrientation.Back,eDwTypes_19.HC.ViewOrientation.Left,eDwTypes_19.HC.ViewOrientation.Right,eDwTypes_19.HC.ViewOrientation.Bottom,eDwTypes_19.HC.ViewOrientation.Top,eDwTypes_19.HC.ViewOrientation.Iso];return eDwViewMgr}();var cCamZUpMat=eDwTypes_19.HC.Matrix.createFromArray([0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,1]);return eDwViewMgr}));define("eDwXSectionMgr",["require","exports","eDwXSectionOperator","eDwGeomUtils","eDwTypes","eDwTypes"],(function(require,exports,eDwXSectionOperator,eDwGeomUtils,eDwTypes_20,eDwTypes_21){"use strict";var eDwXSectionMgr=function(){function eDwXSectionMgr(iViewer){iViewer.XSectionMgr=this;this.mViewer=iViewer;var xSectionOp=new eDwXSectionOperator(iViewer);this.mXSectionOpID=iViewer.OperatorMgr.registerCustomOperator(xSectionOp);this.HCXSectionMgr=iViewer.HCViewer.cuttingManager;this.SectionCapVisibility=false;this.mXSectionIndex=eDwTypes_20.SectionPlaneOrientation.XY.Index;this.mSectionVisibility=true;this.mSectionsVisibilityState=[false,false,false]}eDwXSectionMgr.prototype.unregister=function(){this.mViewer.OperatorMgr.unregisterCustomOperatorByID(this.mXSectionOpID);this.mViewer.XSectionMgr=null};eDwXSectionMgr.prototype.turnOnSectionPlane=function(iOn){var _this=this;if(this.getXSectionHC()){if(iOn){(function(){return __awaiter(_this,void 0,void 0,(function(){var ret;return __generator(this,(function(_a){switch(_a.label){case 0:ret=this.mViewer.OperatorMgr.push(this.mXSectionOpID);console.debugLog("Section","Section plane operator push ret = "+ret);return[4,this.HCXSectionMgr.setCappingGeometryVisibility(true)];case 1:_a.sent();return[2]}}))}))})()}else{var opID=this.mViewer.OperatorMgr.pop();console.debugLog("Section","Popped op ID = "+opID+" xSection op ID = "+this.mXSectionOpID)}}};eDwXSectionMgr.prototype.activateCurrent=function(){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.getXSectionHC().activate()];case 1:_a.sent();return[4,this.setToCurrentSectionPlane()];case 2:_a.sent();if(!!this.mSectionVisibility)return[3,4];return[4,this.updateSectionVisibility(false)];case 3:_a.sent();_a.label=4;case 4:return[2]}}))}))})()};eDwXSectionMgr.prototype.deactivateCurrent=function(){var _this=this;this.mSectionsVisibilityState=[false,false,false];(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.getXSectionHC().deactivate()];case 1:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.isCurrentActive=function(){return this.getXSectionHC().isActive()};Object.defineProperty(eDwXSectionMgr.prototype,"SectionIndex",{get:function(){return this.mXSectionIndex},enumerable:false,configurable:true});eDwXSectionMgr.prototype.setSectionPlane=function(ioSection,iAllowActivation){if(iAllowActivation===void 0){iAllowActivation=true}return __awaiter(this,void 0,void 0,(function(){var bbox,bboxExtents,sectionHC,boxCenter,sectionPlane,minPlanePt,maxPlanePt,vec,centerPt,dir,mirrorPlaneNormal,mirrorPlane,maxOnPlnPt,minOnPlnPt,mirrorPlaneDist,distDir,revDistDir,pts;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mViewer.getModel().calculateBoundingBox()];case 1:bbox=_a.sent();bboxExtents=bbox.extents();if(!ioSection||bboxExtents.equals(eDwTypes_21.HC.Point3.zero()))return[2];sectionHC=this.getXSectionHC();if(!(ioSection.Index!==this.mXSectionIndex))return[3,6];if(!sectionHC)return[3,5];if(!sectionHC.isActive())return[3,3];return[4,sectionHC.deactivate()];case 2:_a.sent();_a.label=3;case 3:return[4,this.HCXSectionMgr.refreshPlaneGeometry()];case 4:_a.sent();_a.label=5;case 5:this.mXSectionIndex=ioSection.Index;sectionHC=this.getXSectionHC();_a.label=6;case 6:boxCenter=bbox.center();if(!(sectionHC.getCount()<1))return[3,9];sectionPlane=ioSection.Plane.copy();sectionPlane.d=-sectionPlane.distanceToPoint(boxCenter);minPlanePt=eDwGeomUtils.dropPointOnPlane(bbox.min,sectionPlane);maxPlanePt=eDwGeomUtils.dropPointOnPlane(bbox.max,sectionPlane);vec=maxPlanePt.copy().subtract(minPlanePt);vec=vec.scale(.55);centerPt=eDwGeomUtils.dropPointOnPlane(boxCenter,sectionPlane);dir=sectionPlane.normal.copy();centerPt=centerPt.add(dir.scale(sectionPlane.d));mirrorPlaneNormal=eDwTypes_21.HC.Point3.zero();eDwTypes_21.HC.Util.oneVectorCross(sectionPlane.normal.copy(),mirrorPlaneNormal);mirrorPlane=eDwTypes_21.HC.Plane.createFromPointAndNormal(centerPt,mirrorPlaneNormal);maxOnPlnPt=eDwTypes_21.HC.Point3.add(centerPt,vec);minOnPlnPt=eDwTypes_21.HC.Point3.add(centerPt,vec.scale(-1));mirrorPlaneDist=mirrorPlane.distanceToPoint(maxOnPlnPt);distDir=mirrorPlaneNormal.copy().scale(2*mirrorPlaneDist);revDistDir=distDir.copy().scale(-1);pts=[];pts.push(minOnPlnPt);pts.push(eDwTypes_21.HC.Point3.add(maxOnPlnPt,revDistDir));pts.push(maxOnPlnPt);pts.push(eDwTypes_21.HC.Point3.add(minOnPlnPt,distDir));sectionHC=this.getXSectionHC();return[4,sectionHC.addPlane(sectionPlane,pts)];case 7:_a.sent();return[4,sectionHC.setColor(eDwTypes_21.HC.Color.createFromFloat(0,1,0))];case 8:_a.sent();_a.label=9;case 9:return[4,this.updateSectionVisibility(this.mSectionVisibility)];case 10:_a.sent();return[4,this.HCXSectionMgr.setStandinGeometryPickable(true)];case 11:_a.sent();return[2]}}))}))};eDwXSectionMgr.prototype.flipSectionPlane=function(){var _this=this;var sectionHC=this.getXSectionHC();if(!sectionHC)return;var sectionPlane=sectionHC.getPlane(0);if(!sectionPlane)return;sectionPlane.normal.negate();sectionPlane.d=-sectionPlane.d;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,sectionHC.updatePlane(0,sectionPlane)];case 1:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.setViewToSectionPlane=function(){var sectionHC=this.getXSectionHC();if(!sectionHC)return null;var sectionPlane=sectionHC.getPlane(0);if(!sectionPlane)return null;return this.mViewer.ViewMgr.setViewOrientationToDirection(sectionPlane.normal.copy())};eDwXSectionMgr.prototype.moveCurrentAlongNormal=function(iDistVec){var _this=this;var camera=this.mViewer.getHCView().getCamera();var camPosition=camera.getPosition();var camTarget=camera.getTarget();var camUp=camera.getUp();var camZ=camTarget.subtract(camPosition);camZ=camZ.normalize();var camY=camUp.normalize();var camX=eDwTypes_21.HC.Point3.cross(camZ,camY);var realVec=camX.scale(iDistVec.x).add(camY.scale(iDistVec.y));realVec.add(camZ.scale(iDistVec.z));var sectionHC=this.getXSectionHC();var sectionPlaneHC=sectionHC.getPlane(0);var normal=sectionPlaneHC.normal.copy();normal=normal.normalize();var distance=eDwTypes_21.HC.Point3.dot(realVec,normal);if(Math.abs(distance)<1e-6)return;sectionPlaneHC.d-=distance;var lenVec=normal.scale(distance);var newPosMat=new eDwTypes_21.HC.Matrix;newPosMat=newPosMat.setTranslationComponent(lenVec.x,lenVec.y,lenVec.z);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,sectionHC.updatePlane(0,sectionPlaneHC,newPosMat,true,false)];case 1:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.disableSectionCapVisibility=function(iDisable){this.setSectionCapVisibility(iDisable?false:this.mEnableSectionCaps)};eDwXSectionMgr.prototype.projectPoint=function(iPnt){var sectionHC=this.getXSectionHC();var sectionPlaneHC=sectionHC.getPlane(0);return eDwGeomUtils.dropPointOnPlane(iPnt,sectionPlaneHC)};eDwXSectionMgr.prototype.getXSectionHC=function(){return this.HCXSectionMgr.getCuttingSection(this.mXSectionIndex)};eDwXSectionMgr.prototype.setSectionCapVisibility=function(iEnable){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.HCXSectionMgr.setCappingFaceColor(iEnable?cSectionCapFaceColor:null)];case 1:_a.sent();return[4,this.HCXSectionMgr.setCappingLineColor(iEnable?null:cSectionCapOutlineColor)];case 2:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.updateSectionVisibility=function(iVisible){return __awaiter(this,void 0,void 0,(function(){var activePlaneX,isSectionVisible,iExcp_18;return __generator(this,(function(_a){switch(_a.label){case 0:activePlaneX=this.getXSectionHC();activePlaneX.setOpacity(iVisible?cSectionPlaneOpacity:0);isSectionVisible=this.mSectionsVisibilityState[this.mXSectionIndex];this.mSectionsVisibilityState[this.mXSectionIndex]=iVisible;if(!iVisible)return[3,7];if(!(activePlaneX.isActive()&&isSectionVisible))return[3,4];_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,activePlaneX.deactivate()];case 2:_a.sent();return[3,4];case 3:iExcp_18=_a.sent();return[3,4];case 4:return[4,this.HCXSectionMgr.refreshPlaneGeometry()];case 5:_a.sent();return[4,activePlaneX.activate()];case 6:_a.sent();_a.label=7;case 7:return[2]}}))}))};eDwXSectionMgr.prototype.setToCurrentSectionPlane=function(){return __awaiter(this,void 0,void 0,(function(){var orientation,orientations,_a,_b,_i,orientationName;return __generator(this,(function(_c){switch(_c.label){case 0:orientations=eDwTypes_20.SectionPlaneOrientation;_a=[];for(_b in orientations)_a.push(_b);_i=0;_c.label=1;case 1:if(!(_i<_a.length))return[3,4];orientationName=_a[_i];orientation=orientations[orientationName];if(!(orientation.Index===this.mXSectionIndex))return[3,3];return[4,this.setSectionPlane(orientation)];case 2:_c.sent();return[2];case 3:_i++;return[3,1];case 4:return[2]}}))}))};Object.defineProperty(eDwXSectionMgr.prototype,"SectionCapVisibility",{get:function(){return this.mEnableSectionCaps},set:function(iEnable){this.mEnableSectionCaps=iEnable;this.setSectionCapVisibility(iEnable)},enumerable:false,configurable:true});Object.defineProperty(eDwXSectionMgr.prototype,"SectionVisibility",{set:function(iVisible){var _this=this;this.mSectionVisibility=iVisible;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.updateSectionVisibility(this.mSectionVisibility)];case 1:_a.sent();return[2]}}))}))})()},enumerable:false,configurable:true});return eDwXSectionMgr}();var cSectionPlaneOpacity=.3;var cSectionCapFaceColor=new eDwTypes_21.HC.Color(128,128,128);var cSectionCapOutlineColor=new eDwTypes_21.HC.Color(255,0,0);return eDwXSectionMgr}));define("eDwXSectionOperator",["require","exports","eDwTypes","eDwOperatorBaseDeps","eDwCommandMgr","eDwMoveSectionPlaneCmd","utils"],(function(require,exports,eDwTypes_22,eDwOperatorBaseDeps_3,eDwCommandMgr,eDwMoveSectionPlaneCmd,utils){"use strict";var eDwXSectionOperator=function(_super){__extends(eDwXSectionOperator,_super);function eDwXSectionOperator(iViewer){return _super.call(this,iViewer)||this}eDwXSectionOperator.prototype.onActivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.onActivate.call(this)];case 1:_a.sent();this.Viewer.XSectionMgr.activateCurrent();return[2]}}))}))};eDwXSectionOperator.prototype.onDeactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.Viewer.XSectionMgr.deactivateCurrent();return[4,_super.prototype.onDeactivate.call(this)];case 1:_a.sent();return[2]}}))}))};eDwXSectionOperator.prototype.onMouseDown=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var selObj,selObjNodeIDHC,sectionMgr,typeOfSel,objHC,sectionMgrHC;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:if(!ioMouseEvent||!this.Viewer.XSectionMgr.isCurrentActive()){ioMouseEvent.setHandled(true);return[2]}return[4,eDwOperatorBaseDeps_3.eDwBaseOperator.getPickResult(ioMouseEvent,this.Viewer.ViewMgr)];case 1:selObj=_a.sent();selObjNodeIDHC=selObj.getIDHC();if(utils.isNaN(selObjNodeIDHC)||selObjNodeIDHC>=0){ioMouseEvent.setHandled(false);return[2]}return[4,_super.prototype.onMouseDown.call(this,ioMouseEvent)];case 2:_a.sent();sectionMgr=this.Viewer.XSectionMgr;sectionMgr.disableSectionCapVisibility(true);ioMouseEvent.setHandled(true);if(selObjNodeIDHC){typeOfSel=selObj.getSelectionType();objHC=typeOfSel===eDwTypes_22.HC.SelectionType.None?null:selObj;console.debugLog("Section","sel obj = "+JSON.stringify(objHC));sectionMgrHC=this.Viewer.XSectionMgr.HCXSectionMgr;if(sectionMgrHC.getCuttingSectionFromNodeId(selObjNodeIDHC)){this.mSectionDragPtHC=this.screenToWorld(ioMouseEvent.getPosition())||this.mSectionDragPtHC}}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!this.mMoveSectionCmd)return[3,2];return[4,this.mMoveSectionCmd.cancel()];case 1:_a.sent();_a.label=2;case 2:this.mMoveSectionCmd=new eDwMoveSectionPlaneCmd(this.Viewer);return[2]}}))}))})();return[2]}}))}))};eDwXSectionOperator.prototype.onMouseMove=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var crossSectionMgr,pos2DHC,pnt3DHC,delta;return __generator(this,(function(_a){ioMouseEvent.setHandled(false);crossSectionMgr=this.Viewer.XSectionMgr;if(!crossSectionMgr.isCurrentActive()){return[2]}if(this.CurrInputInfo&&this.mSectionDragPtHC){pos2DHC=ioMouseEvent.getPosition();pnt3DHC=this.screenToWorld(pos2DHC);if(!pnt3DHC)return[2];delta=eDwTypes_22.HC.Point3.subtract(pnt3DHC,this.mSectionDragPtHC);this.Viewer.XSectionMgr.moveCurrentAlongNormal(delta);this.mSectionDragPtHC=pnt3DHC;ioMouseEvent.setHandled(true)}return[2]}))}))};eDwXSectionOperator.prototype.onMouseUp=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.onMouseUp.call(this,ioMouseEvent)];case 1:_a.sent();this.Viewer.XSectionMgr.disableSectionCapVisibility(false);ioMouseEvent.setHandled(false);delete this.mSectionDragPtHC;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!this.mMoveSectionCmd)return[3,2];return[4,eDwCommandMgr.get().run(this.mMoveSectionCmd,"commit")];case 1:_a.sent();_a.label=2;case 2:delete this.mMoveSectionCmd;return[2]}}))}))})();return[2]}}))}))};eDwXSectionOperator.prototype.needsSelection=function(iEventType){return iEventType===eDwTypes_22.HC.EventType.MouseDown||iEventType===eDwTypes_22.HC.EventType.TouchStart};eDwXSectionOperator.prototype.screenToWorld=function(iPos2DHC){var viewHC=this.Viewer.getHCView();var normScrPos2DHC=viewHC.pointToWindowPosition(iPos2DHC);var inPnt3DHC=new eDwTypes_22.HC.Point3(normScrPos2DHC.x,normScrPos2DHC.y,0);var projMatHC=viewHC.getProjectionMatrix();projMatHC.m[15]=1;var invMatHC=eDwTypes_22.HC.Matrix.inverse(projMatHC);if(!invMatHC)return null;var tMatHC=invMatHC.transpose();var worldPnt3D=eDwTypes_22.HC.Point3.zero();var div=inPnt3DHC.x*tMatHC.m[3]+inPnt3DHC.y*tMatHC.m[7]+inPnt3DHC.z*tMatHC.m[11]+tMatHC.m[15];worldPnt3D.x=(inPnt3DHC.x*tMatHC.m[0]+inPnt3DHC.y*tMatHC.m[1]+inPnt3DHC.z*tMatHC.m[2]+tMatHC.m[3])/div;worldPnt3D.y=(inPnt3DHC.x*tMatHC.m[4]+inPnt3DHC.y*tMatHC.m[5]+inPnt3DHC.z*tMatHC.m[6]+tMatHC.m[7])/div;worldPnt3D.z=(inPnt3DHC.x*tMatHC.m[8]+inPnt3DHC.y*tMatHC.m[9]+inPnt3DHC.z*tMatHC.m[10]+tMatHC.m[11])/div;return worldPnt3D};return eDwXSectionOperator}(eDwOperatorBaseDeps_3.eDwBaseOperator);return eDwXSectionOperator}));define("eDwZoomToFitCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwZoomToFitCmd=function(_super){__extends(eDwZoomToFitCmd,_super);function eDwZoomToFitCmd(iViewer,iNodeID,iCamera){var _this=_super.call(this,iViewer)||this;_this.mInitialCamera=iCamera.copy();_this.mFinalCamera=iCamera.copy();_this.mNodeIDHC=iNodeID;return _this}eDwZoomToFitCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.ViewMgr.setCamera(this.mInitialCamera);return[2,true]}}))}))};eDwZoomToFitCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.ViewMgr.setCamera(this.mFinalCamera);return[2,true]}}))}))};eDwZoomToFitCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();return[4,this.mViewer.ViewMgr.fitScreenToNodes([this.mNodeIDHC],this.mFinalCamera)];case 2:_a.sent();return[2]}}))}))};Object.defineProperty(eDwZoomToFitCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwZoomToFitCmd}(eDwSupportsHistoryCmd);return eDwZoomToFitCmd}));requirejs.config({baseUrl:"./js/3rdParty",paths:{jquery:"jquery.min","jquery-ui":"jquery-ui.min","jquery.fullscreen":"jquery.fullscreen.min","jquery.iframe-transport":"jquery.iframe-transport","jquery.fileupload":"jquery.fileupload","solidworks.web":"solidworks.web"},map:{"jquery.fileupload":{"jquery-ui/ui/widget":"jquery-ui"}},shim:{eDrawingsBase:{deps:["jquery"]},"jquery-ui":{deps:["jquery"]},"jquery.fullscreen":{deps:["jquery"]},"jquery.iframe-transport":{deps:["jquery"]},"jquery-ajax-native":{deps:["jquery"]}}});requirejs(["eDrawingsWebViewer"],(function(eDwWebViewer){console.excludeDebugLogCategories=["UIEvents","BaseSelOp","Operator"];eDwWebViewer.start()}));define("utils",["require","exports"],(function(require,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.makeArray=exports.getFirstMatchedMethodObj=exports.formatString=exports.ReversibleStringEnum=exports.deepCopyArray=exports.getExtension=exports.isEqual=exports.isNumber=exports.isNaN=exports.appendToArray=exports.isOfType=exports.getObjectTypeName=exports.isInstanceOf=exports.populateMixinObjectFromClasses=exports.populateMixinObject=exports.MixinBase=exports.getUint8Array=exports.forAll=void 0;function forAll(iFunc,iDictionary){if(!iDictionary)return;Object.keys(iDictionary).forEach((function(iKeyString){var key=parseInt(iKeyString,10);iFunc(key,iDictionary[key])}))}exports.forAll=forAll;function getUint8Array(iBase64EncodedString){var binString=window.atob(iBase64EncodedString);var len=binString.length;var bytes=new Uint8Array(len);for(var i=0;i-1?true:false}return iInstance instanceof iConstructor?true:isMixinInstance()}exports.isInstanceOf=isInstanceOf;function getObjectTypeName(iObj){if(!iObj)return"";return iObj.constructor.toString().split(" ")[1].split("(")[0]}exports.getObjectTypeName=getObjectTypeName;function isOfType(iArg,iDiscriminator){var argType=typeof iArg;return iArg&&(argType==="object"||argType==="function")?iDiscriminator in iArg:false}exports.isOfType=isOfType;function appendToArray(iElemForArray,ioArray){if(!iElemForArray||!ioArray)return;if(iElemForArray instanceof Promise){ioArray.push(iElemForArray.catch((function(iExcp){return iExcp})))}else{ioArray.push(iElemForArray)}}exports.appendToArray=appendToArray;function isNaN(iInput){return!isNumber(iInput)}exports.isNaN=isNaN;var cOrigNaN=window.isNaN;window.isNaN=isNaN;function isNumber(iInput){return typeof iInput==="number"&&(iInput===0||!cOrigNaN(iInput))?true:false}exports.isNumber=isNumber;function isEqual(iFirstObj,iSecondObj,iStrict){if(iStrict===void 0){iStrict=false}if(iFirstObj===iSecondObj)return true;if(!iFirstObj||!iSecondObj)return false;if(typeof iFirstObj!==typeof iSecondObj)return false;var numKeys=Object.keys(iFirstObj).length;if(iStrict&&numKeys!==Object.keys(iSecondObj).length)return false;var matchKeys=0;for(var key in iFirstObj){if(iFirstObj[key]===iSecondObj[key])++matchKeys}return numKeys===matchKeys?true:false}exports.isEqual=isEqual;function getExtension(iString){if(!iString)return"";var pos=iString.lastIndexOf(".");return pos===-1?"":iString.substr(pos+1).toLowerCase()}exports.getExtension=getExtension;function deepCopyArray(iArray){return JSON.parse(JSON.stringify(iArray))}exports.deepCopyArray=deepCopyArray;var ReversibleStringEnum=function(){function ReversibleStringEnum(iReversibleMapData){this.mMapping=iReversibleMapData;this.mReverseMapping={};for(var key in iReversibleMapData){this.mReverseMapping[iReversibleMapData[key]]=key}}ReversibleStringEnum.prototype.getValue=function(iKey){var value=this.mMapping[iKey];return value?value:this.mReverseMapping[iKey]};return ReversibleStringEnum}();exports.ReversibleStringEnum=ReversibleStringEnum;function formatString(iFormat){var iArgs=[];for(var _i=1;_i-1?iKey:null}));return props.length?iObj[props[0]]:null}exports.getFirstMatchedMethodObj=getFirstMatchedMethodObj;function makeArray(iObj){return iObj?Object.keys(iObj).map((function(iKey){return iObj[iKey]})):[]}exports.makeArray=makeArray})); +var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};var __generator=this&&this.__generator||function(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]-1){return}var augmentedMsg=iMsg;var stack=(new Error).stack;if(stack){var stackLine=stack.split("\n")[2];if(!stackLine)return;var callerLine=stackLine.slice(stackLine.lastIndexOf("("),stackLine.lastIndexOf(")")+1);if(!callerLine){callerLine=stackLine.slice(stackLine.lastIndexOf("@")+1);callerLine="("+callerLine+")"}augmentedMsg=callerLine+" "+iMsg}if(console.debugLogCategories.indexOf(iCategory)>-1||console.debugLogCategories.indexOf("*")>-1){if(iParams&&iParams.length)console.log(augmentedMsg,iParams);else console.log(augmentedMsg)}};define("eDrawingsWebViewer",["require","exports","eDwUI","eDwServiceMgr","eDwUIMessageReporter","eDrawingsWebViewerUtils","utils","eDwUIUtils"],(function(require,exports,eDwUI_1,eDwServiceMgr,eDwUIMessageReporter,eDrawingsWebViewerUtils,Utils,eDwUIUtils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.start=void 0;function start(iViewerOpts,iServerURL){eDrawingsWebViewerUtils.startViewer(iServerURL||c_server,"edrawings-canvas",iViewerOpts,l_init,eDwUIMessageReporter.showResultPanel)}exports.start=start;function l_init(ioViewerOpts,iContainerElemID){c_eDrawingsUI.initUIEvents(ioViewerOpts);var modelContents="VgAAAEQAAABFAAAA/v///wAAAABlAAAA/v///wIAAAAJAAAEAAAAAP3////9////MwAAAP7////9////AAAAAAMAAABjAAAAAAAAAAIAAAAAAAAAAAAAYIp18r8AAABAd9XuPwAAACBOG++/AAAAQAaBpb8AAAAgLbKNPwAAAAAAAAAAAAAAQCxX2D8AAABABebqPwAAAKC3r9g/AAAAQAY+5j8AAADA7MfTP2UAAAD+////AgAAAAkAAAQAAAAA/f////3///9lAAAA/f///wIAAAALAAAEAAAAAP7///8BAAAATgAAAP3///9YAAAA/v///wAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAA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NrEF91zm4X7LvgfJOSHe+1lDfUX7eOB8LPZel1x3I9ug2iEIAzg6TNq2sfErY5f/43uoWmN01Mf7vzvcMbDb+spj2kf+ajM/dguRouSgTh+lzfprkjIP1tN8Ny9VXp3RmLXZJbijLii8gxvTpzd46VbUUZ1HJnurXcupT5RF7GvvyrZftstOXmttMB381dcMdqNsc9z54a2kjrsPsq69eoRR4Ssn67MLt9Q4XPg1vyjVyC27jriuMxWD9/DZVcpNGFmBZKbTXO+JFdcZ7C5daagRCvQ/+2hz0a/SrcXDf6i545d1kJueI/qTP3up9kc7xJeunaBTefVyznxWfnG0vx22Z++urDVDZRaF+13iz60ErPCqTzKNhWIOt22yXyudC/r73qrc+dLnR3f6+z2to479Mgs5rCBGeRu07PKodk53lVTs5rrpmaVq03PyqlFa5qLBmYwh83NKldbzpYLa8C8xcsv8kgUx3FuizO74rY2qFzNsC8tMV8bYxVlj6fTJKerVdq1HYlL26yizPNOWsC52zAFbSV5YyQ9UAdbXW/20E2y1dpYaItwGS/stF9etEy0VizcDbkus+XTac7TbdFWbMXCNcnittwvNbXuXGvNwLvTxvNCZl66ln5EGfucb9dsQJNPolqyfMOfefb2DDV/0pJcjQDdwedvzLGblce3AHF56yborlnQy5ZBixoB3bMXDlYm4nZaieuaobidBuS63JBbhMG5nTbnutuie3WjbhG263Zt2vkqrdheaa3psbXplvUolxHwah9WluGXzRJ4/oluMtFurDS/92om/1arjc9sIqhNxj0LSLYbKC1HwLVJWZ+nZvl+gDaSaARXnPY/f7VhiTT/Y2foay3X2MOb73ct7Ul5QWO2knELhaamofn00J6+mrR5bZfOzu/WTGbv/kTrrxfr/XGOf27pIJuxAIkmM42aYQtcJi+fpSOkjupyW55lKugOyOijVpv3RUYInL1hpXsJYf6fd2whVdVeYNkqwTY04TyZizwhDxO0vbgiie9K6GcrYYGTcCSeBZzhDzKtQVxQDBhiuXbh/pZ5g0mLivj6WrQMKf1hVm2WWib0fv++3DVFaHK/2c1fcNYIOfyCwUplJTXzcontf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7dIKZZzvQMWbMZunGehXehcW+qO/VHRvBzmpdyKg5EoFvm/exkxs077mp0iXIHc0fozNEkrPaMMzbK0AOm9w2VrInVeW6Y63UEYJaKFqcBN7DfMkNK6Q9xx4zYxUemtKHwqOyEW1wHZuMlN4X20TazyKvdENuEFkHUObIMvkAXLp/IMa////1QAAAAAAAAAAAAAAAAAAAA=";if(modelContents!==""){eDwServiceMgr.get().disableAdvancedServices();ioViewerOpts.URL="";eDwUIUtils.viewFile("Mould-450-15",null,ioViewerOpts,iContainerElemID,Utils.getUint8Array(modelContents))}}var c_eDrawingsUI=new eDwUI_1.eDwUI;var c_server=location.origin+location.pathname.slice(0,location.pathname.lastIndexOf("/")+1)}));define("eDrawingsWebViewerUtils",["require","exports","eDwEventMgr","eDwServiceMgr","eDwResultError","eDwAJAXError","eDwUIPluginMgr","eDwTypes","eDwEvents","eDwUIUtils","utils"],(function(require,exports,eDwEventMgr,eDwServiceMgr,eDwResultError,eDwAJAXError,eDwUIPluginMgr,eDwTypes_1,eDwEvents_1,eDwUIUtils,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.removeModelStreamCache=exports.shutdownViewer=exports.startViewer=exports.getViewerVersion=void 0;function getViewerVersion(){return"30.5.0.0019"}exports.getViewerVersion=getViewerVersion;function startViewer(iServerURL,iCanvasID,iViewerOpts,iInit,iOnError){var _this=this;l_ModelLoadEvents=function(iState){var viewerCanvasID="#"+iCanvasID;if(iState==="init"){var viewerJQ=$(viewerCanvasID);viewerJQ.on("edw:ModelLoaded",(function(iEvent,iViewer){var viewHC=iViewer.getHCView();viewHC.setPointSize(0,eDwTypes_1.HC.PointSizeUnit.ScreenPixels);viewHC.setHardEdgesEnabled(false);(function(){return __awaiter(_this,void 0,void 0,(function(){var iExcp_1;return __generator(this,(function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);return[4,l_processProductStructure(iViewer,iServerURL)];case 1:_a.sent();return[3,3];case 2:iExcp_1=_a.sent();l_displayError(iExcp_1,iOnError);return[3,3];case 3:return[2]}}))}))})()}));viewerJQ.on("edw:ModelLoadFailed",(function(iEvent,iViewer,iModelName,iReason){if(iOnError){iOnError({ErrorCode:"ModelLoadInViewerFailed",ErrorData:[iReason,iModelName]})}}))}else{var viewerJQ=$(viewerCanvasID);viewerJQ.off("edw:ModelLoaded");viewerJQ.off("edw:ModelLoadFailed")}};var viewerFeatOpts={};$.extend(viewerFeatOpts,c_featOps);if(iViewerOpts){$.extend(viewerFeatOpts,iViewerOpts)}else{eDwUIUtils.getRequestedQueryStringParams(location.href,viewerFeatOpts)}if(viewerFeatOpts.Debug){if(!console.debugLogCategories||console.debugLogCategories.length===0){console.debugLogCategories=[];console.debugLogCategories.push("*")}}eDwServiceMgr.create(iServerURL);(function(){return __awaiter(_this,void 0,void 0,(function(){var iExcp_2;return __generator(this,(function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);l_ModelLoadEvents("init");return[4,l_init(iCanvasID,viewerFeatOpts,iInit)];case 1:_a.sent();return[3,3];case 2:iExcp_2=_a.sent();l_displayError(iExcp_2,iOnError);return[3,3];case 3:return[2]}}))}))})()}exports.startViewer=startViewer;function shutdownViewer(iViewer){l_ModelLoadEvents("shutdown");iViewer.unregister()}exports.shutdownViewer=shutdownViewer;function removeModelStreamCache(iViewer,iServer){return __awaiter(this,void 0,void 0,(function(){var modelKey,serviceMgr,iExcp_3;return __generator(this,(function(_a){switch(_a.label){case 0:modelKey=iViewer.getCurrModelKey();if(!modelKey||!iViewer.ViewerFeatureOpts.DeleteModelCacheFileWhenDone){return[2]}console.debugLog("ModelLoad","Attempting to remove cached model: "+modelKey);serviceMgr=eDwServiceMgr.get();_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,serviceMgr.removeNamedCache(modelKey,iViewer.ViewerFeatureOpts.DeleteModelCacheFileWhenDone)];case 2:_a.sent();console.debugLog("ModelLoad","Removed cached model: "+modelKey);return[3,4];case 3:iExcp_3=_a.sent();console.debugLog("ModelLoad","Failed to remove cached model: "+modelKey);console.debugLog("ModelLoad",iExcp_3.message);throw iExcp_3;case 4:return[2]}}))}))}exports.removeModelStreamCache=removeModelStreamCache;function l_init(iContainerElemID,ioViewerOpts,iInit){return __awaiter(this,void 0,void 0,(function(){var serviceMgr;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:serviceMgr=eDwServiceMgr.get();serviceMgr.disableAdvancedServices(utils.getExtension(ioViewerOpts.URL)==="scs");(function(){return __awaiter(_this,void 0,void 0,(function(){var pluginFiles,_i,pluginFiles_1,pluginFile,pluginClassName;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,serviceMgr.getPluginFiles()];case 1:pluginFiles=_a.sent();_i=0,pluginFiles_1=pluginFiles;_a.label=2;case 2:if(!(_i-1))return[3,4];return[4,exclusiveCmds[i].commit()];case 2:_a.sent();_a.label=3;case 3:--i;return[3,1];case 4:this.mActiveCmds=this.mActiveCmds.filter((function(iCmd){return!iCmd.Exclusive}));_a.label=5;case 5:return[2]}}))}))};eDwCommandMgr.prototype.detach=function(iCmd){var cmdPos=this.mActiveCmds.indexOf(iCmd);if(cmdPos===-1)return false;var removedCmds=this.mActiveCmds.splice(cmdPos,1);return removedCmds.length===1?true:false};return eDwCommandMgr}();return eDwCommandMgr}));define("eDwCompositeCmd",["require","exports","eDwSupportsHistoryCmd","eDwHistoryMgr","eDwCommandMgr","utils"],(function(require,exports,eDwSupportsHistoryCmd,eDwHistoryMgr,eDwCommandMgr,Utils){"use strict";var eDwCompositeCmd=function(_super){__extends(eDwCompositeCmd,_super);function eDwCompositeCmd(iViewer){var _this=_super.call(this,iViewer)||this;_this.mSubCmds=[];eDwHistoryMgr.get().pushStack();return _this}eDwCompositeCmd.prototype.initCmdActionImplementation=function(iHistoryActions){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mCmdHistoryActions=iHistoryActions;if(!(this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeInit))return[3,2];return[4,this.mCmdHistoryActions.compositeInit(this)];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))};eDwCompositeCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){var actionExists,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!_super.prototype.undo.call(this))return[2,false];actionExists=this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeUndo;if(!actionExists)return[3,2];return[4,this.mCmdHistoryActions.compositeUndo(this)];case 1:_a=_b.sent();return[3,4];case 2:return[4,this.undoSubCmds()];case 3:_a=_b.sent();_b.label=4;case 4:return[2,_a]}}))}))};eDwCompositeCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){var actionExists,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!_super.prototype.redo.call(this))return[2,false];actionExists=this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeRedo;if(!actionExists)return[3,2];return[4,this.mCmdHistoryActions.compositeRedo(this)];case 1:_a=_b.sent();return[3,4];case 2:return[4,this.redoSubCmds()];case 3:_a=_b.sent();_b.label=4;case 4:return[2,_a]}}))}))};eDwCompositeCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mSubCmds=eDwHistoryMgr.get().popStack();return[4,_super.prototype.commit.call(this)];case 1:_a.sent();if(!(this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeCommit))return[3,3];return[4,this.mCmdHistoryActions.compositeCommit(this)];case 2:_a.sent();_a.label=3;case 3:return[2]}}))}))};eDwCompositeCmd.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mSubCmds=eDwHistoryMgr.get().popStack();return[4,_super.prototype.cancel.call(this)];case 1:_a.sent();if(!(this.mCmdHistoryActions&&this.mCmdHistoryActions.compositeCancel))return[3,3];return[4,this.mCmdHistoryActions.compositeCancel(this)];case 2:_a.sent();return[3,5];case 3:return[4,this.cancelSubCmds()];case 4:_a.sent();_a.label=5;case 5:this.clearSubCmds();return[2]}}))}))};eDwCompositeCmd.prototype.isCommitted=function(){return _super.prototype.isCommitted.call(this)&&!(this.InitialState===undefined)&&!(this.FinalState===undefined)};Object.defineProperty(eDwCompositeCmd.prototype,"AllowsAggregation",{get:function(){return true},enumerable:false,configurable:true});eDwCompositeCmd.prototype.undoSubCmds=function(){return __awaiter(this,void 0,void 0,(function(){var isSuccessful,lastCmdIndex,i,cmd,ret;return __generator(this,(function(_a){switch(_a.label){case 0:isSuccessful=true;lastCmdIndex=this.mSubCmds.length-1;i=lastCmdIndex;_a.label=1;case 1:if(!(i>-1))return[3,4];cmd=this.mSubCmds[i];return[4,cmd.undo()];case 2:ret=_a.sent();console.debugLog("History","Undo subcommand history at index "+i+(ret?" succeeded.":" failed.")+" Object Type = "+Utils.getObjectTypeName(cmd)+".");if(!ret){isSuccessful=false}_a.label=3;case 3:i--;return[3,1];case 4:return[2,isSuccessful]}}))}))};eDwCompositeCmd.prototype.cancelSubCmds=function(){return __awaiter(this,void 0,void 0,(function(){var cmdMgr,lastCmdIndex,i;return __generator(this,(function(_a){switch(_a.label){case 0:cmdMgr=eDwCommandMgr.get();lastCmdIndex=this.mSubCmds.length-1;i=lastCmdIndex;_a.label=1;case 1:if(!(i>-1))return[3,4];return[4,cmdMgr.remove(this.mSubCmds[i],"cancel")];case 2:_a.sent();_a.label=3;case 3:i--;return[3,1];case 4:delete this.InitialState;delete this.FinalState;return[2]}}))}))};eDwCompositeCmd.prototype.redoSubCmds=function(){return __awaiter(this,void 0,void 0,(function(){var isSuccessful,numCmds,i,cmd,ret;return __generator(this,(function(_a){switch(_a.label){case 0:isSuccessful=true;numCmds=this.mSubCmds.length;i=0;_a.label=1;case 1:if(!(i-1){eventHandlerMaps.splice(index,1);++numRemoved}}}return numRemoved};eDwEventMgr.prototype.removeAllEventHandlers=function(){this.mEventHandlers.clear()};eDwEventMgr.prototype.removeEventHandlers=function(iEvent){this.mEventHandlers.delete(iEvent)};eDwEventMgr.prototype.fireEvent=function(iEvent){var iArgs=[];for(var _i=1;_i-1){changedPropAttribNames.push(attribName)}}return changedPropAttribNames};eDwHierarchyNode.isHierarchyNode=function(iNode){return iNode.Name};eDwHierarchyNode.sPropagatingAttribNames=["Visible","Opaque"];return eDwHierarchyNode}();return eDwHierarchyNode}));define("eDwHistoryMgr",["require","exports","utils"],(function(require,exports,Utils){"use strict";var eDwHistoryMgr=function(){function eDwHistoryMgr(){this.clear()}eDwHistoryMgr.get=function(){if(!eDwHistoryMgr.sHistoryMgr){eDwHistoryMgr.sHistoryMgr=new eDwHistoryMgr}return eDwHistoryMgr.sHistoryMgr};eDwHistoryMgr.prototype.undo=function(){var currStacksElem=this.getCurrStackElem();var currStack=currStacksElem.Stack;var currStackCmdIndex=currStacksElem.getCurrCmdIndex();if(currStackCmdIndex<0||currStack.length===0){console.debugLog("History","Already before first command.");return null}currStacksElem.incrementCurrCmdIndex(-1);var cmd=currStack[currStackCmdIndex];cmd.undo();console.debugLog("History","Undoing command at index "+currStackCmdIndex+" Object type: "+Utils.getObjectTypeName(cmd));return cmd};eDwHistoryMgr.prototype.redo=function(){var currStacksElem=this.getCurrStackElem();var currStack=currStacksElem.Stack;var nextStackCmdIndex=currStacksElem.getCurrCmdIndex()+1;if(nextStackCmdIndex>=currStack.length){console.debugLog("History","Already after last command.");return null}currStacksElem.incrementCurrCmdIndex(1);var cmd=currStack[nextStackCmdIndex];cmd.redo();console.debugLog("History","Redoing command at index "+nextStackCmdIndex+" Object type: "+Utils.getObjectTypeName(cmd));return cmd};eDwHistoryMgr.prototype.push=function(iCmd){if(!iCmd)return;var currStacksElem=this.getCurrStackElem();var currStack=currStacksElem.Stack;var currStackSize=currStack.length;var currStackCmdIndex=currStacksElem.getCurrCmdIndex();if(currStackCmdIndex!==currStackSize-1){currStack.splice(currStackCmdIndex+1);console.debugLog("History","Truncated history to "+(currStackCmdIndex+1)+" elements.")}currStack.push(iCmd);currStacksElem.incrementCurrCmdIndex(1);console.debugLog("History","Adding command to history at index "+(currStackCmdIndex+1)+" Object Type = "+Utils.getObjectTypeName(iCmd)+".")};eDwHistoryMgr.prototype.clear=function(){console.debugLog("History","Clear all history.");this.mCmdStacksStack=[];this.pushStack()};eDwHistoryMgr.prototype.pushStack=function(){console.debugLog("History","Add a new history stack at index "+this.mCmdStacksStack.length+".");this.mCmdStacksStack.push(new eDwCmdStacksElem)};eDwHistoryMgr.prototype.popStack=function(){console.debugLog("History","Remove history stack from index "+(this.mCmdStacksStack.length-1)+" down to 0.");var activeCmds=[];var currStackElem=this.mCmdStacksStack.pop();if(currStackElem){var currCmdIndex=currStackElem.getCurrCmdIndex()+1;for(var i=0;i-1&&iKeyInfo[key]){keyModifiers+=key+"-"}}return keyModifiers?keyModifiers.substring(0,keyModifiers.length-1):"none"}}));define("eDwLayer",["require","exports","eDwNodeAttributes","utils"],(function(require,exports,eDwNodeAttributes_2,utils){"use strict";var eDwLayer=function(){function eDwLayer(iLayerName,iLayerIDHC,iAttribs){this.mName=iLayerName;this.mIDHC=iLayerIDHC;this.mInitAttribs=eDwNodeAttributes_2.eDwNodeAttributes.initAttribs(iAttribs);this.mAttribs=eDwNodeAttributes_2.eDwNodeAttributes.initAttribs(iAttribs);this.mNodeIDHCToHierNodeMap={}}eDwLayer.prototype.addNodes=function(iNodeIDsHC,iModel){for(var _i=0,iNodeIDsHC_1=iNodeIDsHC;_i.5){footVal*=signFactor;formattedString=utils.formatString("${footVal}ft ${formattedInches}",footVal.toFixed(0),formattedString)}return formattedString},area:function(iVal){var userUnits=_this.mUserUnits["Length"];var func=basicUserUnitResults[userUnits];var valueWithUnits=func.call(_this,iVal);return utils.formatString(cCommonUnitFormat,valueWithUnits,"^2")}};var unit=this.mUserUnits[iUnitType];unit=unit||iUnitType.toLowerCase();var func=basicUserUnitResults[unit];return func?func.call(this,iValue):iValue.toString()};eDwModel.prototype.setAttribOnHierNodes=function(iHierNodes,iAttribs){return __awaiter(this,void 0,void 0,(function(){var changedHierNodes,changedAncestorHierNodeMap,_i,iHierNodes_1,hierNode,changedAttribNames,propagatingAttribNames,changedChildHierNodes,parentHierNode,_a,propagatingAttribNames_1,attribName,attrib,parentAttrib,value,mergedAttrib,parentIDHC,parentIDHC,changedHierNodesAndAttribs,changedHCNodeID,ancHierNode;return __generator(this,(function(_b){switch(_b.label){case 0:changedHierNodes=[];changedAncestorHierNodeMap={};for(_i=0,iHierNodes_1=iHierNodes;_i0){var sceneData=$(data[0]);this.mOrigin=sceneData.attr("origin");switch(sceneData.attr("type")){case"drawing":this.mCategory="DRAWING";break;case"part":this.mCategory="PART";break;case"assembly":this.mCategory="ASSEMBLY";break;default:break}}this.mProperties=docJQ.find("property");var lengthUnit=this.getProperty("lengthunit");var isValidUnit=eDwUnits_1.LengthTypeValues.indexOf(lengthUnit)>-1;this.mUserUnits.Length=isValidUnit?lengthUnit:this.mUserUnits.Length;var angleUnit=this.getProperty("angleunit");isValidUnit=eDwUnits_1.AngleTypeValues.indexOf(angleUnit)>-1;this.mUserUnits.Angle=isValidUnit?angleUnit:this.mUserUnits.Angle;if(this.mCategory==="DRAWING"){this.parseModelViews(docJQ,"sheet","views","Unnamed Sheet","sheet");this.processLayers(iPropsMapHC)}else{this.parseModelViews(docJQ,"configuration","hierarchy","Unnamed Config","config");if(this.mCategory==="ASSEMBLY"){var modelViews=this.getModelViews();for(var _i=0,modelViews_3=modelViews;_i (HC values) | ";for(var _i=0,_a=this.mModelViews;_i<_a.length;_i++){var modelView=_a[_i];var nodeIDHC=modelView.Hierarchy.HOOPSID;msg+=modelView.Name+" - "+this.isVisibleForNodeHC(nodeIDHC)+" | "}console.debugLog("NodeVisibility",msg);console.debugLog("NodeVisibility","Active model view = "+this.mActiveModelView.Name);var hierNodes=this.mActiveModelView.getNodes();for(var _b=0,hierNodes_1=hierNodes;_b0&&ioHierachyNode){for(var i=0;i"){props.Name=props.Name.replace("<","<");props.Name=props.Name.replace(">",">")}props.Visible=trueFalseOrIndeterminate(iElemJQ.attr("visible"));props.Opaque=falseTrueOrIndeterminate(iElemJQ.attr("transparent"));props.Selectable=trueFalseOrIndeterminate(iElemJQ.attr("selectable"));props.HOOPSID=parseInt(iElemJQ.attr("id"),10)}return props}function l_getPropsAsAttribs(iNodeProps){var nodeAttribs={};eDwNodeAttributes_3.eDwNodeAttributes.setAttribs(nodeAttribs,iNodeProps);return nodeAttribs}function l_getDefaultCamera(iElemJQ){var perspectiveStr=iElemJQ.attr("camPerspective");if(!perspectiveStr)return undefined;var posPtHC=new eDwTypes_7.HC.Point3(parseFloat(iElemJQ.attr("camPosX")),parseFloat(iElemJQ.attr("camPosY")),parseFloat(iElemJQ.attr("camPosZ")));var tgtPtHC=new eDwTypes_7.HC.Point3(parseFloat(iElemJQ.attr("camTgtX")),parseFloat(iElemJQ.attr("camTgtY")),parseFloat(iElemJQ.attr("camTgtZ")));var upVecHC=new eDwTypes_7.HC.Point3(parseFloat(iElemJQ.attr("upX")),parseFloat(iElemJQ.attr("upY")),parseFloat(iElemJQ.attr("upZ")));var width=parseFloat(iElemJQ.attr("camFieldWidth"));var height=parseFloat(iElemJQ.attr("camFieldHeight"));var projHC=perspectiveStr==="true"?eDwTypes_7.HC.Projection.Perspective:eDwTypes_7.HC.Projection.Orthographic;return eDwTypes_7.HC.Camera.create(posPtHC,tgtPtHC,upVecHC,projHC,width,height)}function l_makeNodeAttribArray(iHierNodes,iAttrib,iIgnoreActive){if(iAttrib===void 0){iAttrib=null}if(iIgnoreActive===void 0){iIgnoreActive=true}return iHierNodes.map((function(iHierNode){var attrib={};$.extend(attrib,iHierNode.getAttribs(iIgnoreActive));if(iAttrib)$.extend(attrib,iAttrib);return{HierNode:iHierNode,Attribs:attrib}}))}function l_notifyModelViewChange(iViewer,iModelView,iIsPart){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_2.ModelViewChangeEvent,iViewer,iModelView,!iIsPart)];case 1:_a.sent();return[2]}}))}))}return eDwModel}));define("eDwModelView",["require","exports","eDwHierarchyNode"],(function(require,exports,eDwHierarchyNode){"use strict";var eDwModelView=function(){function eDwModelView(Name,Category,iAttribs,iNodeIDHC,iModel,iDefCameraHC){if(iDefCameraHC===void 0){iDefCameraHC=null}this.Name=Name;this.Category=Category;this.Nodes={};this.mDefCameraHC=iDefCameraHC;this.Hierarchy=new eDwHierarchyNode(this.Name,this.Category,iAttribs,iNodeIDHC,null,this);this.Model=iModel}eDwModelView.prototype.getNodes=function(){var hierNodes=[];for(var hierNodeName in this.Nodes){hierNodes.push(this.Nodes[hierNodeName])}return hierNodes};eDwModelView.prototype.getDefaultCamera=function(){return this.mDefCameraHC};eDwModelView.prototype.resetAttribs=function(){return this.Hierarchy.resetAttribs()};return eDwModelView}();return eDwModelView}));define("eDwMoveSectionPlaneCmd",["require","exports","eDwTypes","eDwSupportsHistoryCmd"],(function(require,exports,eDwTypes_8,eDwSupportsHistoryCmd){"use strict";var eDwMoveSectionPlaneCmd=function(_super){__extends(eDwMoveSectionPlaneCmd,_super);function eDwMoveSectionPlaneCmd(iViewer){var _this=_super.call(this,iViewer)||this;_this.mInitialPntOnPlane=_this.mViewer.XSectionMgr.projectPoint(new eDwTypes_8.HC.Point3(0,0,0));return _this}eDwMoveSectionPlaneCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){var altDir;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];altDir=this.mDir.copy().negate();this.mViewer.XSectionMgr.moveCurrentAlongNormal(altDir);return[2,true]}}))}))};eDwMoveSectionPlaneCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.moveCurrentAlongNormal(this.mDir);return[2,true]}}))}))};eDwMoveSectionPlaneCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mFinalPntOnPlane=this.mViewer.XSectionMgr.projectPoint(new eDwTypes_8.HC.Point3(0,0,0));this.mDir=this.mFinalPntOnPlane.subtract(this.mInitialPntOnPlane);return[2]}}))}))};eDwMoveSectionPlaneCmd.prototype.isCommitted=function(){return _super.prototype.isCommitted.call(this)&&!!this.mInitialPntOnPlane&&!!this.mFinalPntOnPlane};Object.defineProperty(eDwMoveSectionPlaneCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwMoveSectionPlaneCmd}(eDwSupportsHistoryCmd);return eDwMoveSectionPlaneCmd}));define("eDwNodeAttributes",["require","exports","utils"],(function(require,exports,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.NodeDisplayState=exports.eDwNodeAttributes=void 0;var eDwNodeAttributes=function(){function eDwNodeAttributes(){}eDwNodeAttributes.initAttribs=function(iSourceAttribs){var targetAttribs={};targetAttribs=eDwNodeAttributes.mergeAttribs(targetAttribs,iSourceAttribs);return targetAttribs};eDwNodeAttributes.setAttribs=function(ioTargetAttribs,iSourceAttribs){var changedAttribNames=[];for(var attribKey in iSourceAttribs){if(ioTargetAttribs[attribKey]!==iSourceAttribs[attribKey]){ioTargetAttribs[attribKey]=iSourceAttribs[attribKey];changedAttribNames.push(attribKey)}}return changedAttribNames};eDwNodeAttributes.mergeAttribs=function(ioTargetAttribs,iSourceAttribs){return eDwNodeAttributes.combineAttribs(ioTargetAttribs,iSourceAttribs,(function(iTargetValue,iSourceValue){return iTargetValue||iSourceValue}))};eDwNodeAttributes.intersectAttribs=function(iSrcAttrib1,iSrcAttrib2){return eDwNodeAttributes.combineAttribs(iSrcAttrib1,iSrcAttrib2,(function(iTargetValue,iSourceValue){return iTargetValue&&iSourceValue}))};eDwNodeAttributes.combineAttribs=function(iSrcAttrib1,iSrcAttrib2,iCombineFunc){var fullAttribs={};if(iSrcAttrib1&&iSrcAttrib2){fullAttribs=l_syncAttributeKeys(iSrcAttrib1,iSrcAttrib2);for(var attribKey in fullAttribs){var value=iCombineFunc(iSrcAttrib1[attribKey],iSrcAttrib2[attribKey]);if(value!==undefined)fullAttribs[attribKey]=value;else delete fullAttribs[attribKey]}}return utils.isEqual(fullAttribs,{})?undefined:fullAttribs};return eDwNodeAttributes}();exports.eDwNodeAttributes=eDwNodeAttributes;var NodeDisplayState;(function(NodeDisplayState){NodeDisplayState["Visible"]="Visible";NodeDisplayState["Invisible"]="Invisible";NodeDisplayState["Opaque"]="Opaque";NodeDisplayState["Transparent"]="Transparent"})(NodeDisplayState=exports.NodeDisplayState||(exports.NodeDisplayState={}));function l_syncAttributeKeys(ioTargetAttribs,iSourceAttribs){var attribs=$.extend({},ioTargetAttribs);for(var attribKey in iSourceAttribs){if(!attribs[attribKey]){attribs[attribKey]=undefined}}return attribs}}));define("eDwNodeColorInfo",["require","exports","eDwTypes"],(function(require,exports,eDwTypes_9){"use strict";var eDwNodeColorInfo=function(){function eDwNodeColorInfo(iNodeID,iSecondaryID,iColor,iType){this.mNodeID=iNodeID;this.mSecondID=iSecondaryID;this.mType=iType}eDwNodeColorInfo.prototype.reset=function(iModelHC){switch(this.mType){case eDwTypes_9.EntityMode.EDGE:iModelHC.unsetNodeLineColor(this.mNodeID,this.mSecondID);break;case eDwTypes_9.EntityMode.FACE:iModelHC.unsetNodeFaceColor(this.mNodeID,this.mSecondID);break;case eDwTypes_9.EntityMode.VERTEX:default:break}};return eDwNodeColorInfo}();return eDwNodeColorInfo}));define("eDwOperationMixin",["require","exports"],(function(require,exports){"use strict";var eDwOperationMixin=function(){function eDwOperationMixin(){this.mExclusive=true}Object.defineProperty(eDwOperationMixin.prototype,"Exclusive",{get:function(){return this.mExclusive},enumerable:false,configurable:true});Object.defineProperty(eDwOperationMixin.prototype,"AllowsAggregation",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(eDwOperationMixin.prototype,"Aggregable",{get:function(){return false},enumerable:false,configurable:true});return eDwOperationMixin}();return eDwOperationMixin}));define("eDwOperatorBaseDeps",["require","exports","eDwSelObj","eDwKeyMgr","eDwTypes","utils","eDwGeomUtils"],(function(require,exports,eDwSelObj,eDwKeyMgr_1,eDwTypes_10,utils,eDwGeomUtils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.eDwBaseOperator=exports.OperatorHC=exports.eDwOperatorMgr=void 0;var eDwOperatorMgr=function(){function eDwOperatorMgr(iViewer){this.mOpsData={};this.mOperatorMgrHC=iViewer.HCViewer.getOperatorManager();this.resetToDefault();var cameraZoomOp=this.mOperatorMgrHC.getOperator(eDwTypes_10.HC.OperatorId.Zoom);cameraZoomOp.setMouseWheelZoomInverted(false)}eDwOperatorMgr.prototype.registerCustomOperator=function(ioOp,iActivate){if(iActivate===void 0){iActivate=false}ioOp.OperatorID=this.mOperatorMgrHC.registerCustomOperator(ioOp);this.mOpsData[ioOp.OperatorID]={Op:ioOp,ActivatedByDefault:iActivate};if(iActivate)this.push(ioOp.OperatorID);return ioOp.OperatorID};eDwOperatorMgr.prototype.unregisterCustomOperator=function(iOp){this.unregisterCustomOperatorByID(iOp.OperatorID)};eDwOperatorMgr.prototype.unregisterCustomOperatorByID=function(iOpID){if(this.popToOp(iOpID)===iOpID){this.pop()}this.mOperatorMgrHC.unregisterCustomOperator(iOpID);delete this.mOpsData[iOpID]};eDwOperatorMgr.prototype.unregisterAll=function(){var _this=this;utils.forAll((function(iOpID,iOpData){_this.unregisterCustomOperatorByID(iOpID)}),this.mOpsData)};eDwOperatorMgr.prototype.push=function(iOpID){var activeOpID=this.getActiveOperatorID();if(activeOpID!==iOpID){return this.mOperatorMgrHC.push(iOpID)}return false};eDwOperatorMgr.prototype.pop=function(iOpID){var retOpID=eDwTypes_10.HC.OperatorId.None;if(!iOpID||iOpID&&this.getActiveOperatorID()===iOpID){retOpID=this.mOperatorMgrHC.pop()||eDwTypes_10.HC.OperatorId.None}return retOpID};eDwOperatorMgr.prototype.popToOp=function(iOpID){var retOpID=eDwTypes_10.HC.OperatorId.None;var opStackPos=this.mOperatorMgrHC.indexOf(iOpID);if(opStackPos>-1){while(this.getActiveOperatorID()!==iOpID){this.pop()}retOpID=iOpID}return retOpID};eDwOperatorMgr.prototype.getOperator=function(iOpID){return this.mOperatorMgrHC.getOperator(iOpID)};eDwOperatorMgr.prototype.getActiveOperatorID=function(){return this.mOperatorMgrHC.peek()};eDwOperatorMgr.prototype.getOperatorIndex=function(iOp){var opsStack=[];var numOps=this.mOperatorMgrHC.size();var index=-1;for(var i=0;i=0;i++){this.mOperatorMgrHC.push(opsStack[i])}return index};eDwOperatorMgr.prototype.setOpID=function(iOpID,iIndex){return this.mOperatorMgrHC.set(iOpID,iIndex)};eDwOperatorMgr.prototype.set=function(iOp,iIndex){return this.setOpID(iOp.OperatorID,iIndex)};eDwOperatorMgr.prototype.resetToDefault=function(){var _this=this;for(var opID=eDwTypes_10.HC.OperatorId.NavCube;opID>eDwTypes_10.HC.OperatorId.Navigate;opID--){this.pop(opID)}utils.forAll((function(iOpID,iOpData){if(iOpData.ActivatedByDefault){_this.push(iOpData.Op.OperatorID)}}),this.mOpsData)};return eDwOperatorMgr}();exports.eDwOperatorMgr=eDwOperatorMgr;var OperatorHC=function(){function OperatorHC(iOp){this.mOp=iOp;this.OperatorID=NaN}OperatorHC.prototype.onActivate=function(){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];_a=this.mOp.onActivate;if(!_a)return[3,2];return[4,this.mOp.onActivate()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onDeactivate=function(){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];_a=this.mOp.onDeactivate;if(!_a)return[3,2];return[4,this.mOp.onDeactivate()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMouseDown=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEvent)return[2];_a=this.mOp.onMouseDown;if(!_a)return[3,2];return[4,this.mOp.onMouseDown(ioMouseEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMouseMove=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEvent)return[2];_a=this.mOp.onMouseMove;if(!_a)return[3,2];return[4,this.mOp.onMouseMove(ioMouseEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMouseUp=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEvent)return[2];_a=this.mOp.onMouseUp;if(!_a)return[3,2];return[4,this.mOp.onMouseUp(ioMouseEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onMousewheel=function(ioMouseEveent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioMouseEveent)return[2];_a=this.mOp.onMousewheel;if(!_a)return[3,2];return[4,this.mOp.onMousewheel(ioMouseEveent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onTouchStart=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioTouchEvent)return[2];_a=this.mOp.onTouchStart;if(!_a)return[3,2];return[4,this.mOp.onTouchStart(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onTouchMove=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioTouchEvent)return[2];_a=this.mOp.onTouchMove;if(!_a)return[3,2];return[4,this.mOp.onTouchMove(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onTouchEnd=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioTouchEvent)return[2];_a=this.mOp.onTouchEnd;if(!_a)return[3,2];return[4,this.mOp.onTouchEnd(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onKeyDown=function(ioKeyEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioKeyEvent)return[2];_a=this.mOp.onKeyDown;if(!_a)return[3,2];return[4,this.mOp.onKeyDown(ioKeyEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onKeyUp=function(ioKeyEvent){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp||!ioKeyEvent)return[2];_a=this.mOp.onKeyUp;if(!_a)return[3,2];return[4,this.mOp.onKeyUp(ioKeyEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.onViewOrientationChange=function(){return __awaiter(this,void 0,void 0,(function(){var op,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];op=this.mOp;_a=op.onViewOrientationChange;if(!_a)return[3,2];return[4,op.onViewOrientationChange()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};OperatorHC.prototype.stopInteraction=function(){return __awaiter(this,void 0,void 0,(function(){var _a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!this.mOp)return[2];_a=this.mOp.stopInteraction;if(!_a)return[3,2];return[4,this.mOp.stopInteraction()];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[2]}}))}))};return OperatorHC}();exports.OperatorHC=OperatorHC;var OperatorBaseHC=function(){function OperatorBaseHC(iViewer,iClickCB,iDoubleClickCB){this.Viewer=iViewer;this.CurrTouches=[];this.DragPt=undefined;this.CurrInputInfo=undefined;this.ActiveMouseButton="none";this.mDoPickTimeOutHandle=NaN;this.mClickCB=iClickCB;this.mDoubleClickCB=iDoubleClickCB}OperatorBaseHC.prototype.onMouseDown=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioMouseEvent)return[2];if(eDwKeyMgr_1.eDwKeyMgr.isAnyPressed(ioMouseEvent)){this.setMouse(ioMouseEvent);this.ActiveMouseButton=eDwKeyMgr_1.eDwKeyMgr.getMouseButtonPressed(ioMouseEvent)}return[2]}))}))};OperatorBaseHC.prototype.onMouseMove=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var pos,oldInputInfo;return __generator(this,(function(_a){if(!ioMouseEvent)return[2];pos=ioMouseEvent.getPosition();if(this.CurrInputInfo){oldInputInfo=this.CurrInputInfo;this.setMouse(ioMouseEvent);if(!oldInputInfo.DragPt.equals(this.CurrInputInfo.DragPt)){this.DragPt=this.CurrInputInfo.DragPt}}console.debugLog("Operator","move screen pt = "+JSON.stringify(pos));return[2]}))}))};OperatorBaseHC.prototype.onMouseUp=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioMouseEvent)return[2];this.onUp(ioMouseEvent);delete this.DragPt;delete this.CurrInputInfo;return[2]}))}))};OperatorBaseHC.prototype.onTouchStart=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioTouchEvent)return[2];console.debugLog("TouchOp","Start - touch ID = "+ioTouchEvent.getId());this.addTouch(ioTouchEvent);return[2]}))}))};OperatorBaseHC.prototype.onTouchMove=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioTouchEvent)return[2];console.debugLog("TouchOp","Move - touch ID = "+ioTouchEvent.getId());if(!this.hasTouchMoved(ioTouchEvent)){ioTouchEvent.setHandled(true);return[2]}this.updateTouch(ioTouchEvent);return[2]}))}))};OperatorBaseHC.prototype.onTouchEnd=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){if(!ioTouchEvent)return[2];console.debugLog("TouchOp","End - touch ID = "+ioTouchEvent.getId());ioTouchEvent.setHandled(false);this.removeTouchById(ioTouchEvent.getId());return[2]}))}))};OperatorBaseHC.prototype.onDeactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){delete this.DragPt;return[2]}))}))};OperatorBaseHC.getAsMouseEvent=function(iTouchEvent,iMouseInputType,iButton){if(iButton===void 0){iButton=eDwTypes_10.HC.Buttons.Left}if(iTouchEvent){var pos=iTouchEvent.getPosition();var mouseEvent=new eDwTypes_10.HC.Event.MouseInputEvent(pos.x,pos.y,eDwTypes_10.HC.Button.None,iButton,eDwTypes_10.HC.KeyModifiers.None,iMouseInputType);mouseEvent.setHandled(iTouchEvent.getHandled());return mouseEvent}return null};OperatorBaseHC.prototype.isDragging=function(){return!!this.DragPt};OperatorBaseHC.prototype.addTouch=function(ioTouchEvent){if(!this.getTouchById(ioTouchEvent.getId())){var pnt3DHC=eDwGeomUtils.screenToWorld(ioTouchEvent.getPosition(),this.Viewer.getHCView());if(pnt3DHC){this.CurrTouches.push({Event:ioTouchEvent,DragPt:pnt3DHC,Pos:ioTouchEvent.getPosition()})}}};OperatorBaseHC.prototype.getTouchById=function(iTouchID){for(var i=0;iepsX&&Math.abs(delta.y)>epsY};OperatorBaseHC.prototype.updateTouch=function(ioTouchEvent){var touch=this.getTouchById(ioTouchEvent.getId());if(touch){var pos2DHC=ioTouchEvent.getPosition();var pnt3DHC=eDwGeomUtils.screenToWorld(pos2DHC,this.Viewer.getHCView());if(pnt3DHC){touch.Pos=pos2DHC;touch.DragPt=pnt3DHC}}};OperatorBaseHC.prototype.setMouse=function(ioMouseEvent){var pos2DHC=ioMouseEvent.getPosition();var pnt3DHC=eDwGeomUtils.screenToWorld(pos2DHC,this.Viewer.getHCView());if(!pnt3DHC)return;this.CurrInputInfo={Event:ioMouseEvent,DragPt:pnt3DHC,Pos:pos2DHC}};OperatorBaseHC.prototype.onClick=function(ioInputEvent){return this.mClickCB?this.mClickCB(ioInputEvent):false};OperatorBaseHC.prototype.onDoubleClick=function(ioInputEvent){return this.mDoubleClickCB?this.mDoubleClickCB(ioInputEvent):false};OperatorBaseHC.prototype.onUp=function(ioMouseEvent){var _this=this;var clearPickTimeOut=function(){if(utils.isNaN(_this.mDoPickTimeOutHandle))return;clearTimeout(_this.mDoPickTimeOutHandle);_this.mDoPickTimeOutHandle=NaN;_this.ActiveMouseButton="none"};var processClick=function(ioMouseEvent){_this.onClick(ioMouseEvent);clearPickTimeOut()};var stopFurtherProcessing=false;if(this.ActiveMouseButton==="left"){stopFurtherProcessing=true;if(utils.isNaN(this.mDoPickTimeOutHandle)){this.mDoPickTimeOutHandle=setTimeout((function(){processClick(ioMouseEvent)}),500)}else{clearPickTimeOut();stopFurtherProcessing=this.onDoubleClick(ioMouseEvent)}}else if(this.ActiveMouseButton!=="none"){processClick(ioMouseEvent);stopFurtherProcessing=true}return stopFurtherProcessing};return OperatorBaseHC}();var eDwBaseOperator=function(_super){__extends(eDwBaseOperator,_super);function eDwBaseOperator(iViewer){var _this=this;var clickCB=function(ioInputEvent){return _this.onClick(ioInputEvent)};var doubleClickCB=function(ioInputEvent){return _this.onDoubleClick(ioInputEvent)};_this=_super.call(this,new OperatorBaseHC(iViewer,clickCB,doubleClickCB))||this;return _this}eDwBaseOperator.prototype.onTouchStart=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;var _this=this;return __generator(this,(function(_b){switch(_b.label){case 0:if(!ioTouchEvent)return[2];if(!(this.CurrTouches.length>1))return[3,3];if(!this.mOp)return[2];_a=this.mOp.onTouchStart;if(!_a)return[3,2];return[4,this.mOp.onTouchStart(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[3,5];case 3:return[4,this.wrapAndCallAsMouseEvent(ioTouchEvent,eDwTypes_10.HC.MouseInputType.Down,(function(ioMouseEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.onMouseDown(ioMouseEvent)];case 1:_a.sent();return[2]}}))}))}))];case 4:_b.sent();_b.label=5;case 5:return[2]}}))}))};eDwBaseOperator.prototype.onTouchMove=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;var _this=this;return __generator(this,(function(_b){switch(_b.label){case 0:if(!ioTouchEvent)return[2];if(!(this.CurrTouches.length>1))return[3,3];if(!this.mOp)return[2];_a=this.mOp.onTouchMove;if(!_a)return[3,2];return[4,this.mOp.onTouchMove(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[3,5];case 3:return[4,this.wrapAndCallAsMouseEvent(ioTouchEvent,eDwTypes_10.HC.MouseInputType.Move,(function(ioMouseEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.onMouseMove(ioMouseEvent)];case 1:_a.sent();return[2]}}))}))}))];case 4:_b.sent();_b.label=5;case 5:return[2]}}))}))};eDwBaseOperator.prototype.onTouchEnd=function(ioTouchEvent){return __awaiter(this,void 0,void 0,(function(){var _a;var _this=this;return __generator(this,(function(_b){switch(_b.label){case 0:if(!ioTouchEvent)return[2];if(!(this.CurrTouches.length>1))return[3,3];if(!this.mOp)return[2];_a=this.mOp.onTouchEnd;if(!_a)return[3,2];return[4,this.mOp.onTouchEnd(ioTouchEvent)];case 1:_a=_b.sent();_b.label=2;case 2:_a;return[3,5];case 3:return[4,this.wrapAndCallAsMouseEvent(ioTouchEvent,eDwTypes_10.HC.MouseInputType.Up,(function(ioMouseEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.onMouseUp(ioMouseEvent)];case 1:_a.sent();return[2]}}))}))}),this.convertTouchToButtonHC(ioTouchEvent))];case 4:_b.sent();_b.label=5;case 5:return[2]}}))}))};Object.defineProperty(eDwBaseOperator.prototype,"Viewer",{get:function(){return this.mOp.Viewer},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"CurrInputInfo",{get:function(){return this.mOp.CurrInputInfo},set:function(iInputInfo){this.mOp.CurrInputInfo=iInputInfo},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"CurrTouches",{get:function(){return this.mOp.CurrTouches},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"ActiveMouseButton",{get:function(){return this.mOp.ActiveMouseButton},set:function(iActiveMouseButton){this.mOp.ActiveMouseButton=iActiveMouseButton},enumerable:false,configurable:true});Object.defineProperty(eDwBaseOperator.prototype,"DragPt",{get:function(){return this.mOp.DragPt},set:function(iPnt3DHC){this.mOp.DragPt=iPnt3DHC},enumerable:false,configurable:true});eDwBaseOperator.prototype.isDragging=function(){return this.mOp.isDragging()};eDwBaseOperator.prototype.hasTouchMoved=function(ioTouchEvent){return this.mOp.hasTouchMoved(ioTouchEvent)};eDwBaseOperator.prototype.addTouch=function(ioTouchEvent){this.mOp.addTouch(ioTouchEvent)};eDwBaseOperator.prototype.getTouchById=function(iTouchID){return this.mOp.getTouchById(iTouchID)};eDwBaseOperator.prototype.removeTouchById=function(iTouchID){this.mOp.removeTouchById(iTouchID)};eDwBaseOperator.prototype.wrapAndCallAsMouseEvent=function(ioTouchEvent,iInputType,iMouseFunc,iButton){if(iButton===void 0){iButton=eDwTypes_10.HC.Buttons.Left}return __awaiter(this,void 0,void 0,(function(){var mouseEvent;return __generator(this,(function(_a){switch(_a.label){case 0:mouseEvent=OperatorBaseHC.getAsMouseEvent(ioTouchEvent,iInputType,iButton);if(!mouseEvent)return[3,2];console.debugLog("TouchAsMouse","Touch handled as mouse button "+iButton);this.ActiveMouseButton=eDwKeyMgr_1.eDwKeyMgr.getMouseButtonPressed(mouseEvent);return[4,iMouseFunc(mouseEvent)];case 1:_a.sent();ioTouchEvent.setHandled(mouseEvent.getHandled());_a.label=2;case 2:return[2]}}))}))};eDwBaseOperator.prototype.onClick=function(ioInputEvent){console.debugLog("Click","In eDwBaseOperator.onClick()");return false};eDwBaseOperator.prototype.onDoubleClick=function(ioInputEvent){console.debugLog("Click","In eDwBaseOperator.onDoubleClick()");return false};eDwBaseOperator.getPickResult=function(iEvent,iViewMgr,iPickConfig){if(iPickConfig===void 0){iPickConfig=new eDwTypes_10.HC.PickConfig(eDwTypes_10.HC.SelectionMask.All)}return __awaiter(this,void 0,void 0,(function(){var selObj;return __generator(this,(function(_a){switch(_a.label){case 0:selObj=eDwSelObj.createEmpty();if(!(iEvent&&iViewMgr))return[3,2];return[4,iViewMgr.pickFromPoint(iEvent.getPosition(),iPickConfig)];case 1:selObj=_a.sent();_a.label=2;case 2:return[2,selObj]}}))}))};eDwBaseOperator.prototype.convertTouchToButtonHC=function(ioTouchEvent){var buttonHC=eDwTypes_10.HC.Buttons.None;if(ioTouchEvent){buttonHC=eDwTypes_10.HC.Buttons.Left;if(!this.hasTouchMoved(ioTouchEvent)){var touchInfo=this.getTouchById(ioTouchEvent.getId());var startTime=touchInfo?touchInfo.Event.getDate().getTime():(new Date).getTime();if((new Date).getTime()-startTime>1e3){buttonHC=eDwTypes_10.HC.Buttons.Right}}}return buttonHC};return eDwBaseOperator}(OperatorHC);exports.eDwBaseOperator=eDwBaseOperator}));define("eDwPerspectiveCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwPerspectiveCmd=function(_super){__extends(eDwPerspectiveCmd,_super);function eDwPerspectiveCmd(iViewer,iNewState){var _this=_super.call(this,iViewer)||this;_this.mInitiallyActive=iViewer.getPerspectiveMode();_this.mFinallyActive=iNewState;return _this}eDwPerspectiveCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.setPerspectiveMode(this.mInitiallyActive);return[2,true]}}))}))};eDwPerspectiveCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.setPerspectiveMode(this.mFinallyActive);return[2,true]}}))}))};eDwPerspectiveCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mViewer.setPerspectiveMode(this.mFinallyActive);return[2]}}))}))};Object.defineProperty(eDwPerspectiveCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwPerspectiveCmd}(eDwSupportsHistoryCmd);return eDwPerspectiveCmd}));define("eDwResetCmd",["require","exports","eDwSupportsHistoryCmd","eDwEventMgr","eDwEvents"],(function(require,exports,eDwSupportsHistoryCmd,eDwEventMgr,eDwEvents_3){"use strict";var eDwResetCmd=function(_super){__extends(eDwResetCmd,_super);function eDwResetCmd(iViewer){var _this=_super.call(this,iViewer)||this;_this.mPerspective=iViewer.getPerspectiveMode();_this.mExplosionLevel=iViewer.getExplosionLevel();_this.mDrawMode=iViewer.getDrawMode();_this.mAmbientOcclusion=iViewer.getHCView().getAmbientOcclusionEnabled();_this.mCamera=iViewer.getHCView().getCamera();_this.resetToHome();return _this}eDwResetCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];return[4,this.resetToPrevious()];case 2:_a.sent();return[2,true]}}))}))};eDwResetCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];return[4,this.resetToHome()];case 2:_a.sent();return[2,true]}}))}))};eDwResetCmd.prototype.resetToHome=function(){return __awaiter(this,void 0,void 0,(function(){var viewMgr;return __generator(this,(function(_a){switch(_a.label){case 0:viewMgr=this.mViewer.ViewMgr;viewMgr.reset();return[4,this.mViewer.SelectionMgr.unSelectAllObjects()];case 1:_a.sent();this.mViewer.OperatorMgr.resetToDefault();this.mViewer.setPerspectiveMode(false);return[4,this.mViewer.getModel().resetToDefault()];case 2:_a.sent();this.mViewer.setExplosionLevel(0);this.mViewer.resetDrawMode();this.mViewer.ViewMgr.enableAmbientOcclusion(false);return[4,eDwEventMgr.get().fireEvent(eDwEvents_3.ResetSceneEvent,true)];case 3:_a.sent();return[2]}}))}))};eDwResetCmd.prototype.resetToPrevious=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mViewer.setPerspectiveMode(this.mPerspective);this.mViewer.ViewMgr.setCamera(this.mCamera);this.mViewer.setExplosionLevel(this.mExplosionLevel);this.mViewer.setDrawMode(this.mDrawMode);this.mViewer.ViewMgr.enableAmbientOcclusion(this.mAmbientOcclusion);return[4,eDwEventMgr.get().fireEvent(eDwEvents_3.ResetSceneEvent,false)];case 1:_a.sent();return[2]}}))}))};return eDwResetCmd}(eDwSupportsHistoryCmd);return eDwResetCmd}));define("eDwResultError",["require","exports","eDwBaseError"],(function(require,exports,eDwBaseError){"use strict";var eDwResultError=function(_super){__extends(eDwResultError,_super);function eDwResultError(iResult){var _this=_super.call(this,"Result Error")||this;_this.Result=iResult;return _this}return eDwResultError}(eDwBaseError);return eDwResultError}));define("eDwSectionFlipCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwSectionFlipCmd=function(_super){__extends(eDwSectionFlipCmd,_super);function eDwSectionFlipCmd(iViewer){return _super.call(this,iViewer)||this}eDwSectionFlipCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.flipSectionPlane();return[2,true]}}))}))};eDwSectionFlipCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.flipSectionPlane();return[2,true]}}))}))};eDwSectionFlipCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mViewer.XSectionMgr.flipSectionPlane();return[2]}}))}))};Object.defineProperty(eDwSectionFlipCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwSectionFlipCmd}(eDwSupportsHistoryCmd);return eDwSectionFlipCmd}));define("eDwSectionShowCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwSectionShowCmd=function(_super){__extends(eDwSectionShowCmd,_super);function eDwSectionShowCmd(iViewer,iShow){var _this=_super.call(this,iViewer)||this;_this.mInitialShow=true;_this.mFinalShow=iShow;return _this}eDwSectionShowCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.SectionVisibility=this.mInitialShow;return[2,true]}}))}))};eDwSectionShowCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.XSectionMgr.SectionVisibility=this.mFinalShow;return[2,true]}}))}))};eDwSectionShowCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();this.mViewer.XSectionMgr.SectionVisibility=this.mFinalShow;return[2]}}))}))};Object.defineProperty(eDwSectionShowCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwSectionShowCmd}(eDwSupportsHistoryCmd);return eDwSectionShowCmd}));define("eDwSelMgr",["require","exports","eDwSelObj","eDwSelectionOperator","eDwEventMgr","eDwKeyMgr","eDwTypes","eDwEvents","utils"],(function(require,exports,eDwSelObj,eDwSelectionOperator,eDwEventMgr,eDwKeyMgr_2,eDwTypes_11,eDwEvents_4,utils){"use strict";var eDwSelMgr=function(){function eDwSelMgr(iViewer){iViewer.SelectionMgr=this;this.mViewer=iViewer;this.mSelMgrHC=iViewer.HCViewer.selectionManager;this.mSelectableObjsHC=[];var selectOp=new eDwSelectionOperator(iViewer,this);var opMgr=this.mViewer.OperatorMgr;this.mSelectOperatorIDHC=opMgr.registerCustomOperator(selectOp,true);this.mSelectOverlayNotifiers={}}eDwSelMgr.prototype.setColorForViewMode=function(mode){var _this=this;var nodeSelColor;var nodeSelOutlineColor=new eDwTypes_11.HC.Color(0,255,0);var nodeElmtSelColor;var nodeElmtSelOutlineColor=new eDwTypes_11.HC.Color(255,255,0);var beautifulGreen=new eDwTypes_11.HC.Color(4,200,5);switch(mode){case eDwTypes_11.HC.DrawMode.WireframeOnShaded:nodeSelColor=beautifulGreen;nodeElmtSelColor=beautifulGreen;break;case eDwTypes_11.HC.DrawMode.Shaded:nodeSelColor=beautifulGreen;nodeElmtSelColor=beautifulGreen;break;case eDwTypes_11.HC.DrawMode.Wireframe:case eDwTypes_11.HC.DrawMode.HiddenLine:nodeSelColor=eDwTypes_11.HC.Color.white();nodeElmtSelColor=eDwTypes_11.HC.Color.white();break;default:var msg="Unknown draw mode: "+mode;console.debugLog("Selection",msg);throw new Error(msg)}this.mSelMgrHC.setNodeSelectionColor(nodeSelColor);this.mSelMgrHC.setNodeSelectionOutlineColor(nodeSelOutlineColor);this.mSelMgrHC.setNodeElementSelectionColor(nodeElmtSelColor);this.mSelMgrHC.setNodeElementSelectionOutlineColor(nodeElmtSelOutlineColor);if(this.mViewer.getModel().isDrawing()&&!this.mViewer.ViewerFeatureOpts.Debug){this.mSelMgrHC.setNodeSelectionHighlightMode(eDwTypes_11.HC.SelectionHighlightMode.OutlineOnly);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mSelMgrHC.setHighlightNodeSelection(false)];case 1:_a.sent();return[2]}}))}))})()}};eDwSelMgr.prototype.unregister=function(){this.mViewer.OperatorMgr.unregisterCustomOperatorByID(this.mSelectOperatorIDHC);this.mViewer.SelectionMgr=null};eDwSelMgr.prototype.addSelectOverlayNotifier=function(iTypeIndex,iNotifier){if(!this.mSelectOverlayNotifiers[iTypeIndex]){this.mSelectOverlayNotifiers[iTypeIndex]=[]}this.mSelectOverlayNotifiers[iTypeIndex].push(iNotifier)};eDwSelMgr.prototype.removeSelectOverlayNotifier=function(iTypeIndex,iNotifier){var typeNotifiers=this.mSelectOverlayNotifiers[iTypeIndex];var pos=typeNotifiers.indexOf(iNotifier);if(pos>-1){typeNotifiers.splice(pos,1)}return false};eDwSelMgr.prototype.getSelectedNodeIDIndex=function(iHCNodeID){return this.getSelectableIDsHC().indexOf(iHCNodeID)};eDwSelMgr.prototype.onSelection=function(iSelectionEvent){return __awaiter(this,void 0,void 0,(function(){var keyMgr,ctrlKeyDown,shiftKeyDown,hierNodeSelObj,selObjIDHC,existingIdx,selectedAlready,selObjExists,numOfSelObjsAtStart;return __generator(this,(function(_a){switch(_a.label){case 0:keyMgr=eDwKeyMgr_2.eDwKeyMgr.get();ctrlKeyDown=keyMgr.isDown("Control");shiftKeyDown=keyMgr.isDown("Shift");hierNodeSelObj=this.createHierNodeSelObj(eDwSelObj.extendHCSelObj(iSelectionEvent.getSelection()));selObjIDHC=hierNodeSelObj.getIDHC();existingIdx=this.getSelectedNodeIDIndex(selObjIDHC);selectedAlready=existingIdx>-1;l_debugDumpSelection(hierNodeSelObj.getIDHC(),hierNodeSelObj.getSelectionType());selObjExists=utils.isNumber(selObjIDHC);numOfSelObjsAtStart=this.mSelectableObjsHC.length;if(!(numOfSelObjsAtStart&&!ctrlKeyDown&&!shiftKeyDown))return[3,2];return[4,this.unSelectAllObjects(false)];case 1:_a.sent();selectedAlready=false;return[3,5];case 2:if(!(ctrlKeyDown&&!shiftKeyDown&&selectedAlready&&selObjExists))return[3,4];this.mSelectableObjsHC.splice(existingIdx,1);return[4,this.unSelectObjs([hierNodeSelObj],this.mViewer.getModel().isDrawing())];case 3:_a.sent();return[2];case 4:if(!ctrlKeyDown&&shiftKeyDown&&selectedAlready&&selObjExists){return[2]}_a.label=5;case 5:if(!selObjExists)return[3,7];if(!selectedAlready)this.mSelectableObjsHC.push(hierNodeSelObj);return[4,eDwEventMgr.get().fireEvent(eDwEvents_4.SelectEvent,this.mViewer,[hierNodeSelObj])];case 6:_a.sent();return[3,9];case 7:if(!!numOfSelObjsAtStart)return[3,9];return[4,eDwEventMgr.get().fireEvent(eDwEvents_4.LeftClickEvent,this.mViewer)];case 8:_a.sent();_a.label=9;case 9:return[2]}}))}))};eDwSelMgr.prototype.selectByID=function(iID){return utils.isNumber(iID)?this.executeSelection(iID):false};eDwSelMgr.prototype.select=function(iCoords,iPickConfig){return __awaiter(this,void 0,void 0,(function(){var pickCfg,selObj,hierNodeSelObj;return __generator(this,(function(_a){switch(_a.label){case 0:pickCfg=iPickConfig?iPickConfig:new eDwTypes_11.HC.PickConfig(eDwTypes_11.HC.SelectionMask.Face);return[4,this.mViewer.ViewMgr.pickFromPoint(iCoords,pickCfg)];case 1:selObj=_a.sent();if(this.isSelectionHandled(selObj)){return[2,false]}hierNodeSelObj=this.createHierNodeSelObj(selObj);if(utils.isNumber(hierNodeSelObj.getIDHC())){return[2,this.executeSelection(hierNodeSelObj)]}this.mSelMgrHC.set(null);return[2,false]}}))}))};eDwSelMgr.prototype.isSelected=function(iHCNodeID){return this.getSelectableIDsHC().indexOf(iHCNodeID)<0?false:true};eDwSelMgr.prototype.append=function(iSelObj){this.mSelMgrHC.add(iSelObj)};eDwSelMgr.prototype.unSelectAllObjects=function(iClearHCSelList){if(iClearHCSelList===void 0){iClearHCSelList=true}return __awaiter(this,void 0,void 0,(function(){var unselectedHCObjs;return __generator(this,(function(_a){switch(_a.label){case 0:unselectedHCObjs=this.mSelectableObjsHC;this.mSelectableObjsHC=[];return[4,this.unSelectObjs(unselectedHCObjs,this.mViewer.getModel().isDrawing())];case 1:_a.sent();if(unselectedHCObjs.length>0&&iClearHCSelList){this.mSelMgrHC.selectNode(null)}return[2]}}))}))};eDwSelMgr.prototype.setViewToSelectedFace=function(){var camera=null;var selObjs=this.mSelMgrHC.getResults();for(var _i=0,selObjs_1=selObjs;_i0){return selIDsHC[selIDsHC.length-1]}return NaN};eDwSelMgr.prototype.getLastSelHierarchyNode=function(){var modelView=this.mViewer.getModel().getActiveModelView();return modelView.Nodes[this.getLastSelIDHC()]};eDwSelMgr.prototype.getSelectableIDsHC=function(){var selIDsHC=[];for(var _i=0,_a=this.mSelectableObjsHC;_i<_a.length;_i++){var selObjHC=_a[_i];var selIDHC=selObjHC.getNodeId();if(utils.isNumber(selIDHC))selIDsHC.push(selIDHC)}return selIDsHC};eDwSelMgr.prototype.getSelHierarchyNodes=function(){var selHierNodes=[];var modelView=this.mViewer.getModel().getActiveModelView();var seoIDsHC=this.getSelectableIDsHC();for(var _i=0,seoIDsHC_1=seoIDsHC;_i-1){iSelMgr.mSelectableObjsHC.splice(index,1)}var unselObjsHC_1=iSelMgr.mSelectableObjsHC;iSelMgr.mSelectableObjsHC=[];(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,iSelMgr.unSelectObjs(unselObjsHC_1,true)];case 1:_a.sent();return[4,hierNode.showBoundingBox(viewer,"on")];case 2:_a.sent();return[2]}}))}))})();shown=true}else{(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,hierNode.showBoundingBox(viewer,"toggle")];case 1:_a.sent();return[2]}}))}))})();shown=index>-1?false:true}if(shown){var selObjDupHC_1=eDwTypes_11.HC.Selection.SelectionItem.create(hierNode.HOOPSID);iSelMgr.addUniqueToSelectableObjsHC(selObjDupHC_1);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_4.SelectEvent,viewer,[selObjDupHC_1])];case 1:_a.sent();l_debugDumpSelection(selObjDupHC_1.getNodeId(),selObjDupHC_1.getSelectionType());return[2]}}))}))})()}}else{var selMgrHC=iSelMgr.mSelMgrHC;if(!selObjHC){selMgrHC.selectNode(nodeIDHC,iSelModeHC);var selObj=eDwSelObj.extendHCSelObj(selMgrHC.getLast());if(selObj.getIDHC()===nodeIDHC){iSelMgr.addUniqueToSelectableObjsHC(selObj)}}else{if(iSelModeHC===eDwTypes_11.HC.SelectionMode.Add){selMgrHC.add(selObjHC)}else if(iSelModeHC===eDwTypes_11.HC.SelectionMode.Set){selMgrHC.set(selObjHC)}else{var wasSelected=selMgrHC.isSelected(selObjHC);selMgrHC.toggle(selObjHC);if(wasSelected){var index=iSelMgr.mSelectableObjsHC.indexOf(selObjHC);if(index>-1){iSelMgr.mSelectableObjsHC.splice(index,1)}}}if(selMgrHC.isSelected(selObjHC)){iSelMgr.addUniqueToSelectableObjsHC(selObjHC)}}}return eDwTypes_11.HC.SelectionType.Part}return eDwTypes_11.HC.SelectionType.None}var ret=false;try{var selType=eDwTypes_11.HC.SelectionType.None;var keyMgr=eDwKeyMgr_2.eDwKeyMgr.get();if(!keyMgr.isDown("Control")&&!keyMgr.isDown("Shift")){selType=selectNodeHC(this,eDwTypes_11.HC.SelectionMode.Set);ret=true}else{var existingIdx=this.getSelectedNodeIDIndex(nodeIDHC);if(existingIdx>-1){if(keyMgr.isDown("Control")){this.mSelMgrHC.remove(this.mSelectableObjsHC[existingIdx]);this.mSelectableObjsHC.splice(existingIdx,1)}else if(keyMgr.isDown("Shift")){ret=true}}else{selType=selectNodeHC(this,eDwTypes_11.HC.SelectionMode.Add);if(this.getSelectedNodeIDIndex(nodeIDHC)>-1){ret=true}}}if(selType!==eDwTypes_11.HC.SelectionType.None){l_debugDumpSelection(nodeIDHC,selType)}}catch(iErr){console.log("eDwSelMgr.selectByID failed")}return ret};return eDwSelMgr}();function l_debugDumpSelection(iID,iSelType){console.debugLog("Selection","Selected Obj ID: "+iID+" - type: "+eDwTypes_11.HC.SelectionType[iSelType])}return eDwSelMgr}));define("eDwSelObj",["require","exports","eDwTypes","eDwGeomUtils","utils"],(function(require,exports,eDwTypes_12,eDwGeomUtils_1,utils){"use strict";var eDwSelObj=function(){function eDwSelObj(iSelObjHC,iToLocalTransformHC){if(iToLocalTransformHC===void 0){iToLocalTransformHC=null}utils.populateMixinObjectFromClasses(this,[eDwTypes_12.HC.Selection.SelectionItem]);$.extend(true,this,iSelObjHC);this.setPointInLocalSpace(iSelObjHC.getPosition(),iToLocalTransformHC)}eDwSelObj.prototype.getIDHC=function(){var nodeIDHC=this.getNodeId();return utils.isNumber(nodeIDHC)?nodeIDHC:NaN};eDwSelObj.prototype.getLocalPoint=function(){return this.mLocalPnt};eDwSelObj.prototype.getWorldPoint=function(){return this.getPosition()};eDwSelObj.prototype.getAsLocalPoint=function(iWorldPtHC){return this.mToLocalTransformHC&&iWorldPtHC?this.mToLocalTransformHC.transform(iWorldPtHC):iWorldPtHC};eDwSelObj.prototype.getAsWorldPoint=function(iLocalPtHC){var toWorldTransformHC=this.mToLocalTransformHC?eDwTypes_12.HC.Matrix.inverse(this.mToLocalTransformHC):null;return toWorldTransformHC&&iLocalPtHC?toWorldTransformHC.transform(iLocalPtHC):iLocalPtHC};eDwSelObj.prototype.getLocalVector=function(){var _this=this;return this.getVectorInfo((function(iPntWCHC){return _this.getAsLocalPoint(iPntWCHC)})).Vec};eDwSelObj.prototype.getWorldVector=function(){return this.getVectorInfo().Vec};eDwSelObj.prototype.getAsLocalVector=function(iWorldVecHC){var normalMatrix=this.mToLocalTransformHC?this.mToLocalTransformHC.normalMatrix():null;return iWorldVecHC&&normalMatrix?normalMatrix.transform(iWorldVecHC):null};eDwSelObj.prototype.getAsWorldVector=function(iLocalVecHC){var toWorldTransformHC=this.mToLocalTransformHC?eDwTypes_12.HC.Matrix.inverse(this.mToLocalTransformHC):null;var normalMatrix=toWorldTransformHC?toWorldTransformHC.normalMatrix():null;return iLocalVecHC&&normalMatrix?normalMatrix.transform(iLocalVecHC):null};eDwSelObj.prototype.getToLocalTransform=function(){return this.mToLocalTransformHC};eDwSelObj.prototype.findAngle=function(iSelObj){var _this=this;var selObj1Type=eDwSelObj.getSubEntityInfo(this).SubEntityTypeName;var selObj2Type=eDwSelObj.getSubEntityInfo(iSelObj).SubEntityTypeName;if(!selObj1Type||!selObj2Type||selObj2Type==="Point"||selObj1Type==="Point"){return NaN}var toLocalFunc;if(this.getToLocalTransform().equals(iSelObj.getToLocalTransform())){toLocalFunc=function(iPntWCHC){return _this.getAsLocalPoint(iPntWCHC)}}var selObjVecInfo1=this.getVectorInfo(toLocalFunc);var selObjVecInfo2=iSelObj.getVectorInfo(toLocalFunc);if(selObj1Type!==selObj2Type){var curveVecInfo=selObjVecInfo1;var faceVecInfo=selObjVecInfo2;if(selObj1Type==="Face"){curveVecInfo=selObjVecInfo2;faceVecInfo=selObjVecInfo1}var surfPlane=eDwTypes_12.HC.Plane.createFromPointAndNormal(faceVecInfo.Pts[0],faceVecInfo.Vec);faceVecInfo.Pts[0]=eDwGeomUtils_1.dropPointOnPlane(curveVecInfo.Pts[0],surfPlane);faceVecInfo.Pts[1]=eDwGeomUtils_1.dropPointOnPlane(curveVecInfo.Pts[1],surfPlane);faceVecInfo.Vec=eDwTypes_12.HC.Point3.subtract(faceVecInfo.Pts[0],faceVecInfo.Pts[1])}if(!selObjVecInfo1.Vec||!selObjVecInfo1.Pts||!selObjVecInfo2.Vec||!selObjVecInfo2.Pts)return NaN;var normal3DHC=eDwTypes_12.HC.Point3.cross(selObjVecInfo1.Vec,selObjVecInfo2.Vec);if(!eDwGeomUtils_1.isValidHCPoint(normal3DHC)||normal3DHC.length()newVec23DHC.length())vec13DHC=newVec13DHC;var newVec33DHC=eDwTypes_12.HC.Point3.subtract(pts3DHC[2],intPt3DHC);var newVec43DHC=eDwTypes_12.HC.Point3.subtract(pts3DHC[3],intPt3DHC);var vec23DHC=newVec43DHC;if(newVec33DHC.length()>newVec43DHC.length())vec23DHC=newVec33DHC;vec13DHC.normalize();vec23DHC.normalize();return Math.acos(eDwTypes_12.HC.Point3.dot(vec13DHC,vec23DHC))*180/Math.PI};eDwSelObj.extendHCSelObj=function(ioSelObj,iToLocalTransformHC){if(iToLocalTransformHC===void 0){iToLocalTransformHC=null}utils.populateMixinObjectFromClasses(ioSelObj,[eDwSelObj]);if(utils.isInstanceOf(ioSelObj,eDwSelObj)){var pos2DHC=ioSelObj.getPosition();if(pos2DHC){ioSelObj.setPointInLocalSpace(pos2DHC,iToLocalTransformHC)}return ioSelObj}throw new TypeError("eDwSelObj is undefined")};eDwSelObj.createEmpty=function(){return new eDwSelObj(eDwTypes_12.HC.Selection.SelectionItem.create())};eDwSelObj.getLocalTransform=function(ioSelObjHC,iModel){var toLocalTransformHC=new eDwTypes_12.HC.Matrix;var subEntityInfo=eDwSelObj.getSubEntityInfo(ioSelObjHC);if(subEntityInfo.SubEntity){var selObj=eDwSelObj.extendHCSelObj(ioSelObjHC);var selObjIDHC=selObj.getIDHC();var selHierNode=iModel.getHierarchyNode(selObjIDHC);if(selHierNode&&selHierNode.Category==="view"){var modelHC=iModel.getHCModel();var parentNodeHC=modelHC.getNodeParent(selHierNode.HOOPSID);var parentNetMatrixHC=modelHC.getNodeNetMatrix(parentNodeHC);var selNetMatrixHC=modelHC.getNodeNetMatrix(selObjIDHC);var invParentNetMatrix=parentNetMatrixHC.inverseAndDeterminant()[0]||new eDwTypes_12.HC.Matrix;var matrixHC=eDwTypes_12.HC.Matrix.multiply(selNetMatrixHC,invParentNetMatrix);toLocalTransformHC=eDwTypes_12.HC.Matrix.inverse(matrixHC)||new eDwTypes_12.HC.Matrix}}return toLocalTransformHC};eDwSelObj.getMinDistInfo=function(iSelPropsHC,iSelObjs,iModel){return __awaiter(this,void 0,void 0,(function(){function getMinDistPtToFace(iPointHC,iSelObj,iFaceSelObj,iModelHC){return __awaiter(this,void 0,void 0,(function(){var lineRay;return __generator(this,(function(_a){switch(_a.label){case 0:lineRay=new eDwTypes_12.HC.Ray(iPointHC,new eDwTypes_12.HC.Point3(0,0,0));return[4,getMinDistLineToFace(lineRay,iSelObj,iFaceSelObj,iModelHC)];case 1:return[2,_a.sent()]}}))}))}function getMinDistLineToFace(iRayHC,iSelObj,iFaceSelObj,iModelHC){return __awaiter(this,void 0,void 0,(function(){var distItem;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,iModelHC.computeMinimumFaceLineDistance(iFaceSelObj.getNodeId(),iFaceSelObj.getFaceEntity().getCadFaceIndex(),iRayHC)];case 1:distItem=_a.sent();return[2,adjustDistance(iSelObj,iFaceSelObj,distItem)]}}))}))}function adjustDistance(iSelObj,iFaceSelObj,ioDistItem){var toLocalTransformHC=iSelObj.getToLocalTransform();var toLocalTransformForFaceHC=iFaceSelObj.getToLocalTransform();if(toLocalTransformHC&&toLocalTransformForFaceHC&&toLocalTransformHC.equals(toLocalTransformForFaceHC)){ioDistItem.distance*=toLocalTransformHC.upperLeft3x3Determinant()}return ioDistItem}var selEntInfoHC0,selEntInfoHC1,modelHC,vertSelObj,faceSelObj,faceProp,pos2DHC,faceSelObj0,faceSelObj1,faceProp0,faceProp1,distItem,edgeSelObj,edgeProp,faceSelObj,faceProp,pntsWCHC,lineHC;return __generator(this,(function(_a){switch(_a.label){case 0:if(2!==iSelObjs.length)return[2,null];selEntInfoHC0=eDwSelObj.getSubEntityInfo(iSelObjs[0]);selEntInfoHC1=eDwSelObj.getSubEntityInfo(iSelObjs[1]);modelHC=iModel.getHCModel();if(!(selEntInfoHC0.SubEntityTypeName==="Point"&&selEntInfoHC1.SubEntityTypeName==="Face"||selEntInfoHC1.SubEntityTypeName==="Point"&&selEntInfoHC0.SubEntityTypeName==="Face"))return[3,3];vertSelObj=iSelObjs[0];faceSelObj=iSelObjs[1];faceProp=iSelPropsHC[1];if(selEntInfoHC1.SubEntityTypeName==="Point"&&selEntInfoHC0.SubEntityTypeName==="Face"){vertSelObj=iSelObjs[1];faceSelObj=iSelObjs[0];faceProp=iSelPropsHC[0]}pos2DHC=vertSelObj.getPosition();if(!pos2DHC){throw new TypeError("vertSelObj position is undefined")}if(!(faceProp instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,2];return[4,getMinDistPtToFace(vertSelObj.getPosition(),vertSelObj,faceSelObj,modelHC)];case 1:return[2,_a.sent()];case 2:return[3,10];case 3:if(!(selEntInfoHC0.SubEntityTypeName==="Face"&&selEntInfoHC1.SubEntityTypeName==="Face"))return[3,6];faceSelObj0=iSelObjs[0],faceSelObj1=iSelObjs[1];faceProp0=iSelPropsHC[0],faceProp1=iSelPropsHC[1];if(!(faceProp0 instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement&&faceProp1 instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,5];return[4,modelHC.computeMinimumFaceFaceDistance(faceSelObj0.getNodeId(),faceSelObj0.getFaceEntity().getCadFaceIndex(),faceSelObj1.getNodeId(),faceSelObj1.getFaceEntity().getCadFaceIndex())];case 4:distItem=_a.sent();return[2,adjustDistance(faceSelObj0,faceSelObj1,distItem)];case 5:return[3,10];case 6:if(!(selEntInfoHC0.SubEntityTypeName==="Line"&&selEntInfoHC1.SubEntityTypeName==="Face"||selEntInfoHC1.SubEntityTypeName==="Line"&&selEntInfoHC0.SubEntityTypeName==="Face"))return[3,10];edgeSelObj=iSelObjs[0];edgeProp=iSelPropsHC[0];faceSelObj=iSelObjs[1];faceProp=iSelPropsHC[1];if(selEntInfoHC1.SubEntityTypeName==="Line"&&selEntInfoHC0.SubEntityTypeName==="Face"){faceSelObj=iSelObjs[0];faceProp=iSelPropsHC[0];edgeSelObj=iSelObjs[1];edgeProp=iSelPropsHC[1]}if(!(edgeProp instanceof eDwTypes_12.HC.SubentityProperties.CircleElement&&faceProp instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,8];return[4,getMinDistPtToFace(edgeProp.origin,edgeSelObj,faceSelObj,modelHC)];case 7:return[2,_a.sent()];case 8:if(!(edgeProp instanceof eDwTypes_12.HC.SubentityProperties.LineElement&&faceProp instanceof eDwTypes_12.HC.SubentityProperties.PlaneElement))return[3,10];pntsWCHC=edgeSelObj.getLineEntity().getPoints();if(!(pntsWCHC.length===2))return[3,10];lineHC=new eDwTypes_12.HC.Ray(pntsWCHC[0],pntsWCHC[1]);return[4,getMinDistLineToFace(lineHC,edgeSelObj,faceSelObj,modelHC)];case 9:return[2,_a.sent()];case 10:return[2,null]}}))}))};eDwSelObj.getSelObjProperty=function(iSelObjHC,iModel){return __awaiter(this,void 0,void 0,(function(){var subEntityProperty,subEntityInfo,subEntityTypeName,selObj,subEntityID,modelHC,_a;return __generator(this,(function(_b){switch(_b.label){case 0:subEntityProperty=null;subEntityInfo=eDwSelObj.getSubEntityInfo(iSelObjHC);subEntityTypeName="Unknown";if(!subEntityInfo.SubEntity)return[3,6];selObj=eDwSelObj.extendHCSelObj(iSelObjHC);subEntityTypeName=subEntityInfo.SubEntityTypeName;subEntityID=eDwSelObj.getSubEntityID(subEntityInfo.SubEntity);modelHC=iModel.getHCModel();_a=subEntityTypeName;switch(_a){case"Line":return[3,1];case"Face":return[3,3];case"Point":return[3,5]}return[3,5];case 1:return[4,modelHC.getEdgeProperty(selObj.getIDHC(),subEntityID)];case 2:subEntityProperty=_b.sent();return[3,6];case 3:return[4,modelHC.getFaceProperty(selObj.getIDHC(),subEntityID)];case 4:subEntityProperty=_b.sent();return[3,6];case 5:return[3,6];case 6:return[2,{Property:subEntityProperty,Name:subEntityTypeName}]}}))}))};eDwSelObj.setSelObjSubEntityColor=function(iSelObjsHC,iModel,iColor){return eDwSelObj.setSelObjSubEntity(iSelObjsHC,iModel,iColor)};eDwSelObj.setSelObjSubEntityHighlight=function(iSelObjsHC,iModel,iHighlight){return eDwSelObj.setSelObjSubEntity(iSelObjsHC,iModel,iHighlight)};eDwSelObj.getSubEntityInfo=function(iSelObjHC){function checkIfSelectable(iSubEntity,iSelTypeMask){return eDwSelObj.getSubEntityBits(iSubEntity)&iSelTypeMask?true:false}var subEntity=null;var typeName="";var isSelectable=false;if(iSelObjHC){if(subEntity=iSelObjHC.getPointEntity()){typeName="Point";isSelectable=true}else if(subEntity=iSelObjHC.getLineEntity()){typeName="Line";var cEdgeSelMeasureHC=4;isSelectable=checkIfSelectable(subEntity,cEdgeSelMeasureHC)}else if(subEntity=iSelObjHC.getFaceEntity()){typeName="Face";var cFaceSelMeasureHC=1;isSelectable=checkIfSelectable(subEntity,cFaceSelMeasureHC)}}return{SubEntity:subEntity,SubEntityTypeName:typeName,IsSelectable:isSelectable}};eDwSelObj.getSubEntityTypeName=function(iSubEntityType){if(!iSubEntityType)return"";return utils.getObjectTypeName(iSubEntityType).slice(0,-6)};eDwSelObj.getSubEntityID=function(iSubEntity){return iSubEntity?iSubEntity._elementIndex:NaN};eDwSelObj.getSubEntityBits=function(iSubEntity){return iSubEntity?iSubEntity._elementBits:NaN};eDwSelObj.prototype.setPointInLocalSpace=function(iWorldPtHC,iToLocalTransformHC){if(iToLocalTransformHC){this.mLocalPnt=iWorldPtHC?iToLocalTransformHC.transform(iWorldPtHC):null;this.mToLocalTransformHC=iToLocalTransformHC}};eDwSelObj.setSelObjSubEntity=function(iSelObjsHC,iModel,iSetting){if(!iSelObjsHC||!iSelObjsHC.length)return[];var modelHC=iModel.getHCModel();var subEntityIDs=[];for(var _i=0,iSelObjsHC_2=iSelObjsHC;_i1){startCrvPt3DHC=iTransformPointFunc(crvPtsWC3DHC[0]);endCrvPt3DHC=iTransformPointFunc(crvPtsWC3DHC[numPts-1]);vec3DHC=eDwTypes_12.HC.Point3.subtract(endCrvPt3DHC,startCrvPt3DHC);if(vec3DHC.length()-1;--i){currentNode=childHierarchyMap[children[i]];viewIDsHC.push(currentNode.HOOPSID)}pickConfig=new eDwTypes_13.HC.PickConfig(eDwTypes_13.HC.SelectionMask.All);return[4,this.Viewer.ViewMgr.pickFromPoint(iCoords,pickConfig)];case 1:selObj=_a.sent();selObjIDHC=selObj.getIDHC();if(!utils.isNaN(selObjIDHC))return[3,3];return[4,this.Viewer.SelectionMgr.select(iCoords)];case 2:selSuccess=_a.sent();_a.label=3;case 3:hierNode=model.getHierarchyNode(selObjIDHC);if(!hierNode)return[3,6];if(!(viewIDsHC.indexOf(hierNode.HOOPSID)>-1))return[3,5];return[4,this.Viewer.SelectionMgr.selectByID(hierNode.HOOPSID)];case 4:selSuccess=_a.sent();_a.label=5;case 5:return[3,10];case 6:_i=0,viewIDsHC_1=viewIDsHC;_a.label=7;case 7:if(!(_i0){pluginName=matches[1]}else{console.warn("Could not locate external plugin name in file "+iPluginFile)}return[3,5];case 4:iExcp_11=_a.sent();console.warn("Failed to load external plugin - "+iExcp_11.message);return[3,5];case 5:return[2,pluginName]}}))}))};eDwServiceMgr.prototype.getPluginFiles=function(){return __awaiter(this,void 0,void 0,(function(){var _a,_b,iExcp_12;return __generator(this,(function(_c){switch(_c.label){case 0:if(!eDwServiceMgr.usesWebServices())return[2,this.mPluginFiles];if(!!this.mPluginFiles.length)return[3,7];_c.label=1;case 1:_c.trys.push([1,6,,7]);if(!this.mAdvancedServicesDisabled)return[3,3];console.debugLog("ServiceMgr","Loading static plugin list");_a=this;return[4,this.ajax("GET","js/staticPluginList.json",{})];case 2:_a.mPluginFiles=_c.sent();return[3,5];case 3:console.debugLog("ServiceMgr","Finding plugins...");_b=this;return[4,this.ajax("GET","EDrawingsService.svc/GetPlugins",{})];case 4:_b.mPluginFiles=_c.sent();_c.label=5;case 5:return[3,7];case 6:iExcp_12=_c.sent();console.warn("No plugins available.");return[3,7];case 7:return[2,this.mPluginFiles]}}))}))};eDwServiceMgr.prototype.extendLicense=function(iKey){return __awaiter(this,void 0,void 0,(function(){var params;return __generator(this,(function(_a){switch(_a.label){case 0:if(this.mAdvancedServicesDisabled||!eDwServiceMgr.usesWebServices()){return[2]}params={data:{iKey:iKey},cache:false};return[4,this.ajax("GET","EDrawingsService.svc/ExtendLicense",params)];case 1:_a.sent();return[2]}}))}))};eDwServiceMgr.prototype.getBaseCacheDirs=function(){return __awaiter(this,void 0,void 0,(function(){var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:if(!!this.mBaseCacheDirs.length)return[3,2];this.mBaseCacheDirs=[];this.mGetBaseCacheDirsPromise=$.get("cacheDirs.xml",(function(iDoc){var cacheDirs=iDoc.getElementsByTagName("modelSearchDirectory");var numDirs=cacheDirs.length;for(var i=0;i-1){foundPluginFileName=pluginFileName}}return[2,foundPluginFileName]}}))}))};eDwServiceMgr.prototype.ajax=function(iMethod,iService,iParams){return __awaiter(this,void 0,void 0,(function(){var paramsObj,retAJAX,iExcp_13;return __generator(this,(function(_a){switch(_a.label){case 0:paramsObj={type:iMethod,url:this.mServerURL+"/"+iService,async:true};if(iParams)$.extend(paramsObj,iParams);_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,$.ajax(paramsObj)];case 2:retAJAX=_a.sent();return[3,4];case 3:iExcp_13=_a.sent();console.warn("AJAX "+iMethod+" failed for "+iService+": "+iExcp_13.message);throw iExcp_13;case 4:return[2,retAJAX]}}))}))};return eDwServiceMgr}();return eDwServiceMgr}));define("eDwSetHierNodeAttribsCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwSetHierNodeAttribsCmd=function(_super){__extends(eDwSetHierNodeAttribsCmd,_super);function eDwSetHierNodeAttribsCmd(iViewer,iHierNodes,iAttrib){var _this=_super.call(this,iViewer)||this;_this.mInitialHierNodeAttribs=[];_this.mFinalHierNodeAttribs=[];var finalAttrib=$.extend(true,{},iAttrib);for(var _i=0,iHierNodes_2=iHierNodes;_i-1){this.mTouchOpIDs.splice(opIndex,1);this.mViewer.OperatorMgr.unregisterCustomOperatorByID(iOpID)}};eDwTouchOpsMgr.isTouchEnabled=function(){function matchMedia(iFeature){return window.matchMedia&&window.matchMedia(iFeature).matches?true:false}var enabled=false;if("PointerEvent"in window&&"maxTouchPoints"in navigator){var maxTouchPoints=navigator.maxTouchPoints;if(utils.isNumber(maxTouchPoints)){if(navigator.maxTouchPoints>0){enabled=true}else if(navigator.maxTouchPoints===0&&matchMedia("(any-pointer:coarse)")){enabled=true}}}else{if(matchMedia("(any-pointer:coarse)")){enabled=true}else if("TouchEvent"in window||"ontouchstart"in window){enabled=true}}console.debugLog("TouchOps","Touch enabled = "+enabled);return enabled};return eDwTouchOpsMgr}();return eDwTouchOpsMgr}));define("eDwTypes",["require","exports"],(function(require,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.EntityMode=exports.SectionPlaneOrientation=exports.HCI=exports.HC=void 0;var HC=Communicator;exports.HC=HC;var HCI=Communicator.Internal;exports.HCI=HCI;exports.SectionPlaneOrientation={XY:{Plane:HC.Plane.createFromPointAndNormal(new HC.Point3(0,0,0),new HC.Point3(0,0,1)),Index:0},YZ:{Plane:HC.Plane.createFromPointAndNormal(new HC.Point3(0,0,0),new HC.Point3(1,0,0)),Index:1},ZX:{Plane:HC.Plane.createFromPointAndNormal(new HC.Point3(0,0,0),new HC.Point3(0,1,0)),Index:2}};exports.EntityMode={FACE:1,EDGE:2,VERTEX:4,HOLE:8,ALL:4294967295}}));define("eDwUI",["require","exports","eDwTypes","eDwKeyMgr","eDwUIBaseEventHandlers","eDwCommandMgr","eDwZoomToFitCmd","eDwDrawModeCmd","eDwAnimateCmd","eDwAmbientOcclusionCmd","eDwPerspectiveCmd","eDwSetViewCmd","eDwSetViewCameraCmd","eDwCompositeCmd","eDwSectionFlipCmd","eDwSetViewNormalToSectionCmd","eDwShowSectionCapCmd","eDwSectionShowCmd","eDwChangeSectionPlaneCmd","eDwUIPluginMgr","eDwEventMgr","eDwUIMessageReporter","eDwUIShortcutMenu","eDwUIUtils","eDrawingsWebViewerUtils","eDwEvents","utils"],(function(require,exports,eDwTypes_14,eDwKeyMgr_3,eDwUIBaseEventHandlers,eDwCommandMgr,eDwZoomToFitCmd,eDwDrawModeCmd,eDwAnimateCmd,eDwAmbientOcclusionCmd,eDwPerspectiveCmd,eDwSetViewCmd,eDwSetViewCameraCmd,eDwCompositeCmd,eDwSectionFlipCmd,eDwSetViewNormalToSectionCmd,eDwShowSectionCapCmd,eDwSectionShowCmd,eDwChangeSectionPlaneCmd,eDwUIPluginMgr,eDwEventMgr,eDwUIMessageReporter,eDwUIShortcutMenu_1,eDwUIUtils,eDrawingsWVUtils,eDwEvents,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.eDwUI=void 0;var eDwUI=function(){function eDwUI(){this.mUIEventHandlers=new UIEventHandlers(this,eDwUIUtils.getViewerElementName(),c_canvasID);this.mItemActiveCallbacks={};this.mItemDeactiveCallbacks={};solidworks.web.touch.support();this.awfulUIHacks()}eDwUI.prototype.initUIEvents=function(iViewerFeatOpts){this.mViewerFeatureOpts=iViewerFeatOpts;this.registerHTMLEvents()};eDwUI.prototype.init=function(iViewer){var _this=this;this.mViewer=iViewer;this.centerBottomBar();this.mViewer.XSectionMgr.SectionCapVisibility=true;$("#edrawings-section-capping-button").addClass("state-on-button");$("#edrawings-section-show-button").addClass("state-on-button");eDwUIUtils.hide(".edrawings-ui-main",false);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents.ResetSceneEvent,true)];case 1:_a.sent();return[2]}}))}))})()};eDwUI.prototype.toggleFullScreen=function(){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var methodName,viewerElem,iExcp_14;return __generator(this,(function(_a){switch(_a.label){case 0:methodName="exitFullScreen()";_a.label=1;case 1:_a.trys.push([1,6,,7]);if(!l_isFullScreen())return[3,3];document.exitFullscreen=document.exitFullscreen||utils.getFirstMatchedMethodObj(document,"xitFullscreen");if(!document.exitFullscreen){console.warn("exitFullscreen() does not exist.");return[2]}return[4,document.exitFullscreen()];case 2:_a.sent();return[3,5];case 3:methodName="requestFullscreen()";viewerElem=$("#edrawings-viewer")[0];viewerElem.requestFullscreen=viewerElem.requestFullscreen||utils.getFirstMatchedMethodObj(viewerElem,"equestFullscreen");if(!viewerElem.requestFullscreen){console.warn("requestFullscreen() does not exist.");return[2]}return[4,viewerElem.requestFullscreen()];case 4:_a.sent();_a.label=5;case 5:return[3,7];case 6:iExcp_14=_a.sent();console.warn(methodName+" failed. It took too long.");return[3,7];case 7:return[2]}}))}))})()};eDwUI.prototype.unregister=function(){this.unregisterHTMLEvents();UIEventHandlers.doModelDataUnloadActions(this.mViewer)};eDwUI.prototype.setDrawMode=function(iValue){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var drawModeCmd;return __generator(this,(function(_a){switch(_a.label){case 0:drawModeCmd=new eDwDrawModeCmd(this.mViewer,iValue);return[4,eDwCommandMgr.get().run(drawModeCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()};eDwUI.prototype.setInitialDrawMode=function(){if(!this.mViewer.ViewerFeatureOpts.RenderType)return;this.setDrawMode(this.mViewer.ViewerFeatureOpts.RenderType)};eDwUI.prototype.setPerspectiveMode=function(iValue){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var perspectiveCmd;return __generator(this,(function(_a){switch(_a.label){case 0:perspectiveCmd=new eDwPerspectiveCmd(this.mViewer,iValue);return[4,eDwCommandMgr.get().run(perspectiveCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()};eDwUI.prototype.hideAllOtherPanels=function(iPanelCSSClassName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iPanelCSSClassName!==".edrawings-hud-menu"))return[3,2];return[4,this.hideActiveHUDMenu()];case 1:_a.sent();_a.label=2;case 2:if(!(iPanelCSSClassName!==".edrawings-submenu"))return[3,4];return[4,this.hideActiveSubmenu()];case 3:_a.sent();_a.label=4;case 4:eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide();return[2]}}))}))};eDwUI.prototype.onClick=function(iID,iActivate){var activateCallback=this.mItemActiveCallbacks[iID];var deactivateCallback=this.mItemDeactiveCallbacks[iID];if(iActivate){if(activateCallback)activateCallback()}else{if(deactivateCallback)deactivateCallback()}return activateCallback||deactivateCallback?true:false};eDwUI.prototype.registerHTMLEvents=function(){var _this=this;this.mUIEventHandlers.addHTMLEventHandlers(this.mViewerFeatureOpts);this.mModelDataLoadCompleteHandler=function(iEvent,iViewer){_this.mViewer=iViewer;eDwUIBaseEventHandlers.doModelDataLoadCompleteActions(_this.mUIEventHandlers,iViewer)};$("#"+c_canvasID).on("edw:ModelDataLoadComplete",this.mModelDataLoadCompleteHandler);var self=this;this.registerButtonForClickEffect("edrawings-section-flip-button",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var sectionFlipCmd;return __generator(this,(function(_a){switch(_a.label){case 0:sectionFlipCmd=new eDwSectionFlipCmd(this.mViewer);return[4,eDwCommandMgr.get().run(sectionFlipCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}));this.registerButtonForClickEffect("edrawings-section-normal-button",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var setViewNormalToSectionCmd;return __generator(this,(function(_a){switch(_a.label){case 0:setViewNormalToSectionCmd=new eDwSetViewNormalToSectionCmd(this.mViewer);return[4,eDwCommandMgr.get().run(setViewNormalToSectionCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}));function setXSectionOrientation(iEvent,iUI,iOrientation){iUI.setXSectionOrientation(iOrientation);eDwUIUtils.scrollToTarget(eDwUIUtils.getAsJQueryObj(iEvent.currentTarget))}$("#edrawings-section-xz-button").on("click.edw",(function(iEvent){return setXSectionOrientation(iEvent,_this,eDwTypes_14.SectionPlaneOrientation.ZX)}));$("#edrawings-section-yz-button").on("click.edw",(function(iEvent){return setXSectionOrientation(iEvent,_this,eDwTypes_14.SectionPlaneOrientation.YZ)}));$("#edrawings-section-xy-button").on("click.edw",(function(iEvent){return setXSectionOrientation(iEvent,_this,eDwTypes_14.SectionPlaneOrientation.XY)}));$("#edrawings-section-capping-button").on("click.edw",(function(iEvent){var buttonJQ=eDwUIUtils.getAsJQueryObj(iEvent.currentTarget);var visibility=!buttonJQ.hasClass("state-on-button");(function(){return __awaiter(_this,void 0,void 0,(function(){var showCapsCmd;return __generator(this,(function(_a){switch(_a.label){case 0:showCapsCmd=new eDwShowSectionCapCmd(this.mViewer,visibility);return[4,eDwCommandMgr.get().run(showCapsCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();buttonJQ.toggleClass("state-on-button");eDwUIUtils.scrollToTarget(buttonJQ)}));$("#edrawings-section-show-button").on("click.edw",(function(iEvent){var buttonJQ=eDwUIUtils.getAsJQueryObj(iEvent.currentTarget);var showSection=!buttonJQ.hasClass("state-on-button");(function(){return __awaiter(_this,void 0,void 0,(function(){var showSectionCmd;return __generator(this,(function(_a){switch(_a.label){case 0:showSectionCmd=new eDwSectionShowCmd(this.mViewer,showSection);return[4,eDwCommandMgr.get().run(showSectionCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();buttonJQ.toggleClass("state-on-button");eDwUIUtils.scrollToTarget(buttonJQ)}));this.mItemActiveCallbacks["#edrawings-button-section"]=function(){return __awaiter(_this,void 0,void 0,(function(){function compositeSectionDone(ioCmd){ioCmd.clearSubCmds();self.mViewer.XSectionMgr.deactivateCurrent();self.mViewer.XSectionMgr.turnOnSectionPlane(false)}var self;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:eDwUIUtils.addPanelModeEvents("#edrawings-section-menu",".edw.section","#edrawings-button-section");this.mCompositeXSectionCmd=new eDwCompositeCmd(this.mViewer);eDwCommandMgr.get().add(this.mCompositeXSectionCmd);this.mCompositeXSectionCmd.initCmdActionImplementation({compositeInit:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.mViewer.XSectionMgr.turnOnSectionPlane(true);this.setXSectionOrientation();return[2]}))}))},compositeUndo:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,true]}))}))},compositeRedo:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,true]}))}))},compositeCommit:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){compositeSectionDone(ioCmd);return[2]}))}))},compositeCancel:function(ioCmd){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){compositeSectionDone(ioCmd);return[2]}))}))}});self=this;if(!!this.mViewer.getModel().isDrawing())return[3,2];return[4,this.setActiveSubmenu("#edrawings-button-section","#edrawings-section-menu")];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-section"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:eDwUIUtils.deactivateMoveInput(".edw.section");return[4,eDwCommandMgr.get().remove(this.mCompositeXSectionCmd,"cancel")];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-section"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-section"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));function activateDebugPanel(iActivate,iHandlers){return __awaiter(this,void 0,void 0,(function(){var shortcutMenu;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,togglePanel(iActivate,"#edrawings-button-debug","#edrawings-debug-menu",".edw.debug",iHandlers)];case 1:_a.sent();if(iActivate){shortcutMenu=eDwUIShortcutMenu_1.eDwUIShortcutMenu.get();if(!shortcutMenu.isEmpty()){shortcutMenu.addMenuSeparator(c_debugGroupName)}shortcutMenu.addMenuItem(c_debugGroupName,"edrawings-debug-node-matrices",(function(iEvent,iUIItemJQ,iArg){if(utils.isOfType(iArg,"attr")){var nodeIDHC=parseInt(iArg.attr("data-hoopsid"),10);if(utils.isNumber(nodeIDHC)){var modelHC=self.mViewer.getModel().getHCModel();var matrixHC=modelHC.getNodeMatrix(nodeIDHC);var msg="
Matrix = "+JSON.stringify(matrixHC)+"
";matrixHC=modelHC.getNodeNetMatrix(nodeIDHC);msg+="
Net matrix = "+JSON.stringify(matrixHC)+"
";eDwUIMessageReporter.showMessageInDebugPanel(msg)}}eDwUIShortcutMenu_1.eDwUIShortcutMenu.hide()}))}else{eDwUIShortcutMenu_1.eDwUIShortcutMenu.get().removeAllMenuItems(c_debugGroupName)}return[2]}}))}))}this.mItemActiveCallbacks["#edrawings-button-debug"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateDebugPanel(true,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-debug"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateDebugPanel(false,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-debug"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-debug"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));this.mItemActiveCallbacks["#edrawings-button-reset"]=function(){return __awaiter(_this,void 0,void 0,(function(){var _this=this;return __generator(this,(function(_a){eDwUIUtils.resetToHomeView(this.mViewer);window.setTimeout((function(){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI()];case 1:_a.sent();return[2]}}))}))})()}),1e3);return[2]}))}))};$(document).on(c_fullScreenChange,(function(iEvent){if(l_isFullScreen()){l_fullScreenBtnJS.removeClass(c_restoreClass)}else{l_fullScreenBtnJS.addClass(c_restoreClass);$("#edrawings-canvas-canvas-container").css({"background-color":""})}}));$("#edrawings-button-fs").on("click.edw",(function(){_this.toggleFullScreen()}));function clickDrawMode(iUI,iMode){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:iUI.setDrawMode(iMode);return[4,iUI.hideActiveHUDMenu()];case 1:_a.sent();return[2]}}))}))})()}$("#edrawings-button-shaded-hlrr").on("click.edw",(function(){clickDrawMode(_this,"HiddenLinesRemoved")}));$("#edrawings-button-shaded-hlrv").on("click.edw",(function(){clickDrawMode(_this,"HiddenLinesVisible")}));$("#edrawings-button-shaded-wireframe").on("click.edw",(function(){clickDrawMode(_this,"Wireframe")}));$("#edrawings-button-shaded-full").on("click.edw",(function(){clickDrawMode(_this,"ShadedWithEdges")}));$("#edrawings-button-shaded-noedges").on("click.edw",(function(){clickDrawMode(_this,"Shaded")}));this.mItemActiveCallbacks["#edrawings-button-animate"]=function(){return __awaiter(_this,void 0,void 0,(function(){var animateCmd;return __generator(this,(function(_a){switch(_a.label){case 0:animateCmd=new eDwAnimateCmd(this.mViewer);return[4,eDwCommandMgr.get().run(animateCmd,"commit")];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-animate"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mItemActiveCallbacks["#edrawings-button-animate"]()];case 1:_a.sent();return[2]}}))}))};$("#edrawings-button-frame-file-open").on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();return[2]}}))}))})()}));this.mItemActiveCallbacks["#edrawings-button-view"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.setActiveHUDMenu("#edrawings-button-view","#edrawings-hud-view-menu")];case 1:_a.sent();return[2]}}))}))};this.mItemActiveCallbacks["#edrawings-button-help"]=function(){return __awaiter(_this,void 0,void 0,(function(){var version,viewerHC;return __generator(this,(function(_a){switch(_a.label){case 0:version="
Version #: "+eDrawingsWVUtils.getViewerVersion()+"
";if(this.mViewerFeatureOpts.Debug){viewerHC=this.mViewer.HCViewer;version+="
HC Version:"+viewerHC.getViewerVersionString()+"
Format Version: "+viewerHC.getFormatVersionString()+"
"}$("#edrawings-version").html(version);return[4,this.setActiveHUDMenu("#edrawings-button-help","#edrawings-hud-help-menu")];case 1:_a.sent();return[2]}}))}))};$("#edrawings-hud-help-close").on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();return[2]}}))}))})()}));this.mItemActiveCallbacks["#edrawings-button-zoomtofit"]=function(){return __awaiter(_this,void 0,void 0,(function(){var viewHC,curModelView,nodeID,zoomToFitCmd;return __generator(this,(function(_a){switch(_a.label){case 0:viewHC=this.mViewer.getHCView();curModelView=this.mViewer.getModel().getActiveModelView();nodeID=curModelView.Hierarchy.HOOPSID;zoomToFitCmd=new eDwZoomToFitCmd(this.mViewer,nodeID,viewHC.getCamera());return[4,eDwCommandMgr.get().run(zoomToFitCmd,"commit")];case 1:_a.sent();return[2]}}))}))};this.mItemActiveCallbacks["#edrawings-button-shaded"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.setActiveHUDMenu("#edrawings-button-shaded","#edrawings-hud-shaded-menu")];case 1:_a.sent();return[2]}}))}))};function togglePanel(iActivate,iButtonID,iPanelID,iInputEventIDSuffix,iHandlers){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!iActivate)return[3,2];return[4,self.setActiveSubmenu(iButtonID,iPanelID)];case 1:_a.sent();eDwUIUtils.addPanelModeEvents(iPanelID,iInputEventIDSuffix,iButtonID);return[3,3];case 2:eDwUIUtils.deactivateMoveInput(iInputEventIDSuffix);_a.label=3;case 3:return[2]}}))}))}function activateSheetPanel(iActivate,iHandlers){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,togglePanel(iActivate,"#edrawings-button-sheet-tree","#edrawings-sheet-tree-menu",".edw.sheet",iHandlers)];case 1:_a.sent();return[2]}}))}))}this.mItemActiveCallbacks["#edrawings-button-sheet-tree"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateSheetPanel(true,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-sheet-tree"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateSheetPanel(false,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-sheet-tree"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-sheet-tree"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));function activateLayerPanel(iActivate,iHandlers){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,togglePanel(iActivate,"#edrawings-button-layer-control","#edrawings-layer-control-menu",".edw.layer",iHandlers)];case 1:_a.sent();return[2]}}))}))}this.mItemActiveCallbacks["#edrawings-button-layer-control"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateLayerPanel(true,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};this.mItemDeactiveCallbacks["#edrawings-button-layer-control"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,activateLayerPanel(false,this.mUIEventHandlers)];case 1:_a.sent();return[2]}}))}))};eDwEventMgr.get().addEventHandlerFunc(eDwEvents.DeactivateUIOpEvent,(function(iActiveButtonsJQ){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iActiveButtonsJQ[0].id==="edrawings-button-layer-control"))return[3,2];return[4,this.mItemDeactiveCallbacks["#edrawings-button-layer-control"]()];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}));eDwKeyMgr_3.eDwKeyMgr.get().add({key:"F11"},"keydown",(function(iEvent){iEvent.preventDefault();_this.toggleFullScreen();iEvent.stopPropagation()}));this.mItemActiveCallbacks["#edrawings-button-view-settings"]=function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.setActiveHUDMenu("#edrawings-button-view-settings","#edrawings-hud-view-settings-menu")];case 1:_a.sent();return[2]}}))}))};var ambientOcc=$("#edrawings-button-view-ambient-occlusion");ambientOcc.on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var buttonActive,ambientOcclCmd;return __generator(this,(function(_a){switch(_a.label){case 0:buttonActive=ambientOcc.hasClass("state-on-button");return[4,this.hideActiveHUDMenu()];case 1:_a.sent();if(buttonActive)ambientOcc.removeClass("state-on-button");else ambientOcc.addClass("state-on-button");ambientOcclCmd=new eDwAmbientOcclusionCmd(this.mViewer,!buttonActive);return[4,eDwCommandMgr.get().run(ambientOcclCmd,"commit")];case 2:_a.sent();return[2]}}))}))})()}));$("#edrawings-button-view-perspective").on("click.edw",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var perspectiveMode;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();perspectiveMode=!this.mViewer.getPerspectiveMode();this.setPerspectiveMode(perspectiveMode);return[2]}}))}))})()}));this.registerButtonForClickEffect("edrawings-button-view-top",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Top)}));this.registerButtonForClickEffect("edrawings-button-view-bottom",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Bottom)}));this.registerButtonForClickEffect("edrawings-button-view-left",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Left)}));this.registerButtonForClickEffect("edrawings-button-view-right",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Right)}));this.registerButtonForClickEffect("edrawings-button-view-front",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Front)}));this.registerButtonForClickEffect("edrawings-button-view-back",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Back)}));this.registerButtonForClickEffect("edrawings-button-view-iso",(function(){_this.setViewOrientation(eDwTypes_14.HC.ViewOrientation.Iso)}))};eDwUI.prototype.unregisterHTMLEvents=function(){this.mUIEventHandlers.removeHTMLEventHandlers();$("#"+c_canvasID).off("edw:ModelDataLoadComplete",this.mModelDataLoadCompleteHandler);$("#edrawings-section-xz-button").off("click.edw");$("#edrawings-section-yz-button").off("click.edw");$("#edrawings-section-xy-button").off("click.edw");$("#edrawings-section-capping-button").off("click.edw");$("#edrawings-section-show-button").off("click.edw");$("#edrawings-button-fs").off("click.edw");$("#edrawings-button-shaded-hlrr").off("click.edw");$("#edrawings-button-shaded-hlrv").off("click.edw");$("#edrawings-button-shaded-wireframe").off("click.edw");$("#edrawings-button-shaded-full").off("click.edw");$("#edrawings-button-shaded-noedges").off("click.edw");$("#edrawings-button-sheets").off("click.edw");$("#edrawings-button-frame-file-open").off("click.edw");$("#edrawings-button-view-ambient-occlusion").off("click.edw");$("#edrawings-button-view-perspective").off("click.edw");$("#edrawings-hud-help-close").off("click.edw");$(document).off(c_fullScreenChange);$(document).off("click.edw");$(document).off("mousedown.edw");$(document).off("dblclick.edw");this.unregisterButtonForClickEffect("edrawings-section-flip-button");this.unregisterButtonForClickEffect("edrawings-section-normal-button");this.unregisterButtonForClickEffect("edrawings-face-normal-button");this.unregisterButtonForClickEffect("edrawings-button-view-top");this.unregisterButtonForClickEffect("edrawings-button-view-bottom");this.unregisterButtonForClickEffect("edrawings-button-view-left");this.unregisterButtonForClickEffect("edrawings-button-view-right");this.unregisterButtonForClickEffect("edrawings-button-view-front");this.unregisterButtonForClickEffect("edrawings-button-view-back");this.unregisterButtonForClickEffect("edrawings-button-view-iso")};eDwUI.prototype.setActiveSubmenu=function(iButtonID,iPanelID){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.activateUI(iButtonID,iPanelID)];case 1:_a.sent();return[2]}}))}))};eDwUI.prototype.hideActiveSubmenu=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-tool-button",".edrawings-submenu")];case 1:_a.sent();return[2]}}))}))};eDwUI.prototype.centerBottomBar=function(iWidth,iHeight){$(".tool-bar").css({height:"auto"});var barJQ=$(".tool-bar");var viewerElemJQ=$(eDwUIUtils.getViewerElementID());var leftButtonsJQ=$(".edrawings-icon-set.left");var rightButtonsJQ=$(".edrawings-icon-set.right");var centerButtonsJQ=$(".edrawings-icon-set.center");var width=(iWidth?iWidth:viewerElemJQ.width())-1;if(navigator.userAgent.indexOf("Trident")>=0){width=viewerElemJQ[0].clientWidth-1}barJQ.css({position:"absolute"});leftButtonsJQ.css({left:1+"px",position:"absolute"});rightButtonsJQ.css({right:1+"px",position:"absolute"});centerButtonsJQ.css({left:width/2-52/2+"px",position:"absolute"})};eDwUI.prototype.setActiveHUDMenu=function(iButtonID,iPanelID){return __awaiter(this,void 0,void 0,(function(){var buttonJQ,buttonOffset,posx,posy,canvasWidth,panelJQ,panelWidth;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.hideActiveHUDMenu()];case 1:_a.sent();return[4,eDwUIUtils.activateUI(iButtonID,iPanelID)];case 2:_a.sent();if(iButtonID!=="#edrawings-button-help"){buttonJQ=$(iButtonID);buttonOffset=buttonJQ.offset();posx=buttonOffset.left;posy=buttonOffset.top+parseInt(buttonJQ.css("marginTop"))+parseInt(buttonJQ.css("borderTopWidth"))+buttonJQ.height();canvasWidth=$("#edrawings-canvas").width();panelJQ=$(iPanelID);panelWidth=panelJQ[0].offsetWidth;if(posx+panelWidth>canvasWidth){posx=canvasWidth-panelWidth-10}panelJQ.css({top:posy+"px",left:posx+"px"})}return[2]}}))}))};eDwUI.prototype.hideActiveHUDMenu=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-hud-button",".edrawings-hud-menu")];case 1:_a.sent();return[2]}}))}))};eDwUI.prototype.registerButtonForClickEffect=function(iButtonID,iHandler){var butJQ=$("#"+iButtonID);butJQ.on("mousedown.edw",(function(){butJQ.addClass("edrawings-on-state");eDwUIUtils.scrollToTarget(butJQ)}));butJQ.on("mouseup.edw",(function(){butJQ.removeClass("edrawings-on-state");iHandler()}))};eDwUI.prototype.unregisterButtonForClickEffect=function(iButtonID){var butJQ=$("#"+iButtonID);butJQ.off("mousedown.edw");butJQ.off("mouseup.edw")};eDwUI.prototype.setViewOrientation=function(iOrientation){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var setViewCmd;return __generator(this,(function(_a){switch(_a.label){case 0:setViewCmd=new eDwSetViewCmd(this.mViewer,iOrientation);return[4,eDwCommandMgr.get().run(setViewCmd,"commit")];case 1:_a.sent();return[4,this.hideActiveHUDMenu()];case 2:_a.sent();return[2]}}))}))})()};eDwUI.prototype.setXSectionOrientation=function(iNewSection){var _this=this;function setActive(iButtonID,iIsActive){$(iButtonID)[iIsActive?"addClass":"removeClass"]("state-on-button")}var sectionMgr=this.mViewer.XSectionMgr;var sectionIndex=iNewSection?iNewSection.Index:sectionMgr.SectionIndex;var planeFromEnum=null;switch(sectionIndex){case eDwTypes_14.SectionPlaneOrientation.YZ.Index:setActive("#edrawings-section-xy-button",false);setActive("#edrawings-section-yz-button",true);setActive("#edrawings-section-xz-button",false);planeFromEnum=eDwTypes_14.SectionPlaneOrientation.YZ;break;case eDwTypes_14.SectionPlaneOrientation.ZX.Index:setActive("#edrawings-section-xy-button",false);setActive("#edrawings-section-yz-button",false);setActive("#edrawings-section-xz-button",true);planeFromEnum=eDwTypes_14.SectionPlaneOrientation.ZX;break;case eDwTypes_14.SectionPlaneOrientation.XY.Index:eDwUIUtils.hide("#edrawings-section-xy-button",false);eDwUIUtils.hide("#edrawings-section-yz-button",false);eDwUIUtils.hide("#edrawings-section-xz-button",false);setActive("#edrawings-section-xy-button",true);setActive("#edrawings-section-yz-button",false);setActive("#edrawings-section-xz-button",false);planeFromEnum=eDwTypes_14.SectionPlaneOrientation.XY;break;default:console.debugLog("UI","Unsupported section plane orientation");break}var origPlaneEnum=null;if(sectionIndex!==sectionMgr.SectionIndex){switch(sectionMgr.SectionIndex){case eDwTypes_14.SectionPlaneOrientation.YZ.Index:origPlaneEnum=eDwTypes_14.SectionPlaneOrientation.YZ;break;case eDwTypes_14.SectionPlaneOrientation.ZX.Index:origPlaneEnum=eDwTypes_14.SectionPlaneOrientation.ZX;break;case eDwTypes_14.SectionPlaneOrientation.XY.Index:origPlaneEnum=eDwTypes_14.SectionPlaneOrientation.XY;break;default:console.debugLog("UI","Unsupported initial section plane orientation");break}if(planeFromEnum&&origPlaneEnum){(function(){return __awaiter(_this,void 0,void 0,(function(){var changeSectionPlaneCmd;return __generator(this,(function(_a){switch(_a.label){case 0:changeSectionPlaneCmd=new eDwChangeSectionPlaneCmd(this.mViewer,origPlaneEnum,planeFromEnum);return[4,eDwCommandMgr.get().run(changeSectionPlaneCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}}};eDwUI.prototype.awfulUIHacks=function(){var _this=this;l_init=function(){$("#edrawings-face-normal-button").removeClass("edrawings-inactive");_this.registerButtonForClickEffect("edrawings-face-normal-button",(function(){(function(){return __awaiter(_this,void 0,void 0,(function(){var setViewCameraCmd;return __generator(this,(function(_a){switch(_a.label){case 0:setViewCameraCmd=new eDwSetViewCameraCmd(this.mViewer);return[4,eDwCommandMgr.get().run(setViewCameraCmd,"commit")];case 1:_a.sent();return[4,this.hideActiveHUDMenu()];case 2:_a.sent();return[2]}}))}))})()}))};l_uninit=function(){$("#edrawings-face-normal-button").addClass("edrawings-inactive");_this.unregisterButtonForClickEffect("edrawings-face-normal-button")}};return eDwUI}();exports.eDwUI=eDwUI;var UIEventHandlers=function(_super){__extends(UIEventHandlers,_super);function UIEventHandlers(iUI,iViewerHTMLID,iViewerHTMLCanvasID){var _this=_super.call(this,iViewerHTMLID,iViewerHTMLCanvasID)||this;_this.mUI=iUI;return _this}UIEventHandlers.prototype.addHTMLEventHandlers=function(iViewerFeatOpts){var _this=this;_super.prototype.addHTMLEventHandlers.call(this,iViewerFeatOpts);$("#edrawings-viewer").on("click.edw",".edrawings-tool-button",(function(iEvent){_this.onClick(iEvent,".edrawings-tool-button")}));$("#edrawings-viewer").on("click.edw",".edrawings-hud-button",(function(iEvent){_this.onClick(iEvent,".edrawings-hud-button",".edrawings-submenu")}));this.mUIHTMLEventMgr.addEventHandler("window","beforeunload",(function(iEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.mUI.unregister();return[2]}))}))}));this.mUIHTMLEventMgr.addEventHandler("window","Timeout",(function(iEvent){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.mUI.unregister();return[2]}))}))}));$(".edrawings-menu-close").on("click.edw",(function(iEvent){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.deactivateActiveButton(".edrawings-tool-button")];case 1:_a.sent();return[2]}}))}))})()}));var viewerJQ=$(eDwUIUtils.getViewerElementID());viewerJQ.on("edw:ChangeViewerStyling",(function(iEvent,iStyleClassName){viewerJQ.removeClass("edrawings-viewer-regular");viewerJQ.removeClass("edrawings-viewer-timeout");if(iStyleClassName)viewerJQ.addClass(iStyleClassName)}));viewerJQ.on("edw:HidePanels",(function(iEvent,iSkipPanelsWithClass){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mUI.hideAllOtherPanels(iSkipPanelsWithClass)];case 1:_a.sent();return[2]}}))}))})()}));viewerJQ.on("edw:ReInitViewer",(function(iEvent,iViewerFeatOpts){_this.mUI.unregister();_this.mUI.initUIEvents(iViewerFeatOpts)}))};UIEventHandlers.prototype.removeHTMLEventHandlers=function(){_super.prototype.removeHTMLEventHandlers.call(this);$(".edrawings-menu-close").off("click.edw");$("#edrawings-viewer").off("click.edw",".edrawings-tool-button");$("#edrawings-viewer").off("click.edw",".edrawings-hud-button");var viewerJQ=$(eDwUIUtils.getViewerElementID());viewerJQ.off("edw:ChangeViewerStyling");viewerJQ.off("edw:HidePanels");viewerJQ.off("edw:ReInitViewer")};UIEventHandlers.doModelDataUnloadActions=function(iViewer){eDwUIBaseEventHandlers.doModelDataUnloadActions(iViewer)};UIEventHandlers.prototype.onInit=function(iViewer){var viewerFeatureOpts=iViewer.ViewerFeatureOpts;var model=iViewer.getModel();var isDrawing=model.isDrawing();eDwUIUtils.hide("#edrawings-button-reset",false);eDwUIUtils.hide("#edrawings-button-shaded",isDrawing);eDwUIUtils.hide("#edrawings-button-view-settings",isDrawing);eDwUIUtils.hide("#edrawings-button-animate",isDrawing);eDwUIUtils.hide("#edrawings-button-section",isDrawing);eDwUIUtils.hide("#edrawings-button-view",isDrawing);eDwUIUtils.hide("#edrawings-button-debug",!viewerFeatureOpts.Debug);eDwUIUtils.hide("#edrawings-button-tables-control",isDrawing||iViewer.TableMgr.numTables()===0);eDwUIUtils.hide("#edrawings-button-sheet-tree",!isDrawing);eDwUIUtils.hide("#edrawings-button-layer-control",!isDrawing);eDwUIUtils.hide(".edrawings-icon-set.center",isDrawing);this.removeHTMLEventHandlers()};UIEventHandlers.prototype.onInitFullUI=function(iViewer){_super.prototype.onInitFullUI.call(this,iViewer);this.addHTMLEventHandlers(iViewer.ViewerFeatureOpts);this.mUI.init(iViewer);eDwUIUtils.hide("#WaitBanner",true)};UIEventHandlers.prototype.onSelect=function(iViewer,iSelObjs){_super.prototype.onSelect.call(this,iViewer,iSelObjs);if(l_init)l_init()};UIEventHandlers.prototype.onUnselect=function(iViewer,iSelObjs){_super.prototype.onUnselect.call(this,iViewer,iSelObjs);if(l_uninit)l_uninit()};UIEventHandlers.prototype.onTimeout=function(iViewer){eDwUIUtils.hide("#TimeoutBanner",false);$(eDwUIUtils.getViewerElementID()).trigger("edw:ChangeViewerStyling","edrawings-viewer-timeout")};UIEventHandlers.prototype.onStartAnimation=function(iViewer){var eDwViewer=iViewer;$("#edrawings-canvas").on("click.edw",(function(){eDwViewer.ViewMgr.stop()}));var animateBtnJQ=$("#edrawings-button-animate");animateBtnJQ.removeClass("edrawings-animate-play-icon");animateBtnJQ.addClass("edrawings-animate-pause-icon")};UIEventHandlers.prototype.onStopAnimation=function(iViewer){var animateBtnJQ=$("#edrawings-button-animate");animateBtnJQ.addClass("edrawings-animate-play-icon");animateBtnJQ.removeClass("edrawings-animate-pause-icon")};UIEventHandlers.prototype.onAmbientOcclusionChange=function(iViewer,iAmbientOcclusionOn){var ambientOccButton=$("#edrawings-button-view-ambient-occlusion");if(iAmbientOcclusionOn){if(!ambientOccButton.hasClass("state-on-button")){ambientOccButton.addClass("state-on-button")}}else{if(ambientOccButton.hasClass("state-on-button")){ambientOccButton.removeClass("state-on-button")}}};UIEventHandlers.prototype.onProjectionModeChange=function(iViewer,iPerspectiveOn){var perspectiveButton=$("#edrawings-button-view-perspective");if(iPerspectiveOn){if(!perspectiveButton.hasClass("state-on-button")){perspectiveButton.addClass("state-on-button")}}else{if(perspectiveButton.hasClass("state-on-button")){perspectiveButton.removeClass("state-on-button")}}};UIEventHandlers.prototype.onDrawModeChange=function(iViewer,iDrawMode){function setActive(iButtonID,iIsActive){if(iIsActive&&!$(iButtonID).hasClass("state-on-button")){$(iButtonID).addClass("state-on-button")}else if(!iIsActive&&$(iButtonID).hasClass("state-on-button")){$(iButtonID).removeClass("state-on-button")}}function setActiveInGroup(iButtonID){setActive("#edrawings-button-shaded-full",false);setActive("#edrawings-button-shaded-noedges",false);setActive("#edrawings-button-shaded-wireframe",false);setActive("#edrawings-button-shaded-hlrr",false);setActive("#edrawings-button-shaded-hlrv",false);setActive(iButtonID,true)}switch(iDrawMode){case"ShadedWithEdges":setActiveInGroup("#edrawings-button-shaded-full");break;case"Shaded":setActiveInGroup("#edrawings-button-shaded-noedges");break;case"HiddenLinesRemoved":setActiveInGroup("#edrawings-button-shaded-hlrr");break;case"HiddenLinesVisible":setActiveInGroup("#edrawings-button-shaded-hlrv");break;case"Wireframe":setActiveInGroup("#edrawings-button-shaded-wireframe");break;default:throw new Error("Unknown draw mode in UI:"+iDrawMode)}};UIEventHandlers.prototype.onClick=function(iEvent,iButtonCSSClassName,iPanelCSSClassName){var _this=this;if(iPanelCSSClassName===void 0){iPanelCSSClassName=""}(function(){return __awaiter(_this,void 0,void 0,(function(){var targetJQ,buttonClickedID,deactivatedButtonID;return __generator(this,(function(_a){switch(_a.label){case 0:targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);buttonClickedID=targetJQ.closest(iButtonCSSClassName).attr("id");return[4,this.deactivateActiveButton(iButtonCSSClassName,iPanelCSSClassName)];case 1:deactivatedButtonID=_a.sent();if(deactivatedButtonID===buttonClickedID)return[2];this.handleClick("#"+buttonClickedID,true);return[2]}}))}))})()};UIEventHandlers.prototype.deactivateActiveButton=function(iButtonCSSClassName,iPanelCSSClassName){if(iPanelCSSClassName===void 0){iPanelCSSClassName=""}return __awaiter(this,void 0,void 0,(function(){var activeButtonID,activeButtonJQ;return __generator(this,(function(_a){switch(_a.label){case 0:activeButtonID="";activeButtonJQ=$(iButtonCSSClassName+".active-button");return[4,this.mUI.hideAllOtherPanels(iPanelCSSClassName)];case 1:_a.sent();if(activeButtonJQ.length){activeButtonID=activeButtonJQ[0].id;this.handleClick("#"+activeButtonID,false)}return[2,activeButtonID]}}))}))};UIEventHandlers.prototype.handleClick=function(iButtonID,iActivate){eDwUIUtils.scrollToTarget($(iButtonID));if(!this.mUI.onClick(iButtonID,iActivate)){var pluginMgr=eDwUIPluginMgr.get();pluginMgr.onClick(iButtonID,iActivate)}};return UIEventHandlers}(eDwUIBaseEventHandlers);var c_fullScreenChange="fullscreenchange.edw MSFullscreenChange.edw"+" webkitfullscreenchange.edw";var c_restoreClass="edrawings-button-fs-restore";var c_canvasID="edrawings-canvas";var c_debugGroupName="Debug";var l_fullScreenBtnJS;var l_init;var l_uninit;function l_isFullScreen(){if(!l_fullScreenBtnJS)l_fullScreenBtnJS=$("#edrawings-button-fs");return l_fullScreenBtnJS.hasClass(c_restoreClass)}}));define("eDwUIBaseEventHandlers",["require","exports","eDwEventMgr","eDwUIHTMLEventMgr","eDwCommandMgr","eDwChangeModelViewCmd","eDwCompositeCmd","eDwSetLayerVisibilityCmd","eDwUIPluginMgr","eDwEvents","eDwUIUtils","eDwUIShortcutMenu","utils"],(function(require,exports,eDwEventMgr,eDwUIHTMLEventMgr,eDwCommandMgr,eDwChangeModelViewCmd,eDwCompositeCmd,eDwSetLayerVisibilityCmd,eDwUIPluginMgr,eDwEvents,eDwUIUtils,eDwUIShortcutMenu_2,utils){"use strict";var eDwUIBaseEventHandlers=function(){function eDwUIBaseEventHandlers(iViewerHTMLID,iViewerHTMLCanvasID){this.mViewerHTMLID=iViewerHTMLID;this.mViewerHTMLCanvasID=iViewerHTMLCanvasID;this.mUIHTMLEventMgr=new eDwUIHTMLEventMgr}eDwUIBaseEventHandlers.prototype.addHTMLEventHandlers=function(iViewerFeatOpts){var _this=this;this.mViewerFeatureOpts=iViewerFeatOpts;var eventMgrHTML=this.mUIHTMLEventMgr;eventMgrHTML.addEventHandler("window","resize",(function(iEvent){_this.onResize(iEvent,_this.mViewer)}));eDwEventMgr.get().addEventHandlerFunc(eDwEvents.ResetSceneEvent,l_onResize);eDwUIUtils.addSubTreeArrowEventHandler(eventMgrHTML,"#edrawings-sheet-tree-menu");eventMgrHTML.addDelegatedEventHandler("#edrawings-sheet-tree-menu .edrawings-submenu-list-item","dblclick",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);if(targetJQ.hasClass("edrawings-root")){return}var selObjIDHC=eDwUIUtils.getIDHC(targetJQ);if(isNaN(selObjIDHC)||selObjIDHC<0){return}(function(){return __awaiter(_this,void 0,void 0,(function(){var cmdMgr,zoomToViewCmd,targetModelView,model,modelHC,modelViews,_i,modelViews_4,modelView,configIDHC,configChildren,activeModelView,changeModelViewCmd;return __generator(this,(function(_a){switch(_a.label){case 0:cmdMgr=eDwCommandMgr.get();zoomToViewCmd=new eDwCompositeCmd(this.mViewer);zoomToViewCmd.initCmdActionImplementation();return[4,cmdMgr.add(zoomToViewCmd)];case 1:_a.sent();targetModelView=null;model=this.mViewer.getModel();modelHC=model.getHCModel();modelViews=model.getModelViews();for(_i=0,modelViews_4=modelViews;_i-1){console.excludeDebugLogCategories.slice(pos,1)}}}));var selectorName="#edrawings-debug-menu .edrawings-submenu-list-item";eventMgrHTML.addDelegatedEventHandler(selectorName,"click",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);var id=eDwUIUtils.getIDHC(targetJQ);if(isNaN(id))return;$(selectorName).removeClass("edrawings-list-selected");$(targetJQ).addClass("edrawings-list-selected");_this.mViewer.SelectionMgr.selectByID(id)}));eventMgrHTML.addDelegatedEventHandler("#edrawings-debug-menu .edrawings-submenu-list-item","dblclick",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);var id=eDwUIUtils.getIDHC(targetJQ);if(isNaN(id))return;_this.onLeftDoubleClick(_this.mViewer)}));eventMgrHTML.addEventHandler("#edrawings-debug-menu .edrawings-menu-search-cancel","click",(function(iEvent){$("#edrawings-debug-menu "+".edrawings-menu-search-input").val("");var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.searchPanelList(_this.mViewer,targetJQ)}));eventMgrHTML.addEventHandler("#edrawings-debug-menu .edrawings-menu-search-input","keyup",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.searchPanelList(_this.mViewer,targetJQ)}));eventMgrHTML.addDelegatedEventHandler("#edrawings-layer-control-menu .item-layer-checkbox","click",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var layerName=eDwUIUtils.getSpanText(targetJQ.next("span.item-tree-text"));var isVisible=targetJQ.prop("checked");_this.setOneLayerVisibility(layerName,isVisible)}));eventMgrHTML.addDelegatedEventHandler("#edrawings-layer-control-menu .layer-all","click",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var isVisible=targetJQ.prop("checked");_this.setAllLayerVisibility(isVisible)}));eventMgrHTML.addEventHandler("#edrawings-filename-block","mouseover",(function(iEvent){var filenameJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);if(filenameJQ.length===1&&filenameJQ[0].scrollWidth>filenameJQ.width()){var mouseEvent=iEvent;l_positionTicker(mouseEvent,filenameJQ,$("#edrawings-filename-text").text())}}));eventMgrHTML.addEventHandler("#edrawings-filename-block","mouseout",(function(iEvent){l_hideTicker()}));eventMgrHTML.addDelegatedEventHandler("document .edrawings-submenu-list-item","mouseover",(function(iEvent){var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var itemTreeTextJQ=targetJQ.find(".item-tree-text");var edrawingsSubmenuListJQ=targetJQ.closest(".edrawings-submenu-list");if(edrawingsSubmenuListJQ.length===1&&itemTreeTextJQ.length===1&&itemTreeTextJQ[0].scrollWidth>itemTreeTextJQ.width()){var mouseEvent=iEvent;l_positionTicker(mouseEvent,itemTreeTextJQ,itemTreeTextJQ.text())}}));eventMgrHTML.addDelegatedEventHandler("document .edrawings-submenu-list-item","mouseout",(function(iEvent){l_hideTicker()}));eventMgrHTML.addEventHandler("#edrawings-hud-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-left)","click",(function(iEvent){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar($("#edrawings-hud-bar .edrawings-hud-bar-content"),".edrawings-hud-button",".edrawings-hud-menu",-c_hudBarIconWidth)];case 1:_a.sent();return[2]}}))}))})()}));eventMgrHTML.addEventHandler("#edrawings-hud-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-right)","click",(function(iEvent){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar($("#edrawings-hud-bar .edrawings-hud-bar-content"),".edrawings-hud-button",".edrawings-hud-menu",c_hudBarIconWidth)];case 1:_a.sent();return[2]}}))}))})()}));eDwUIUtils.enableScrollOnTouch(eventMgrHTML,"#edrawings-hud-bar .edrawings-hud-bar-content","#edrawings-hud-bar",(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-hud-button",".edrawings-hud-menu")];case 1:_a.sent();return[2]}}))}))}));eventMgrHTML.addEventHandler("#edrawings-left-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-up)","click",(function(iEvent){var barJQ=$("#edrawings-left-bar");var contentJQ=barJQ.find(".edrawings-tool-bar-content");(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar(contentJQ,".edrawings-tool-button",".edrawings-submenu",-c_toolBarIconWidth,barJQ)];case 1:_a.sent();return[2]}}))}))})()}));eventMgrHTML.addEventHandler("#edrawings-left-bar .edrawings-arrow-wrapper:has(> .edrawings-arrow-down)","click",(function(iEvent){var barJQ=$("#edrawings-left-bar");var contentJQ=barJQ.find(".edrawings-tool-bar-content");(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_scrollUIBar(contentJQ,".edrawings-tool-button",".edrawings-submenu",c_toolBarIconWidth,barJQ)];case 1:_a.sent();return[2]}}))}))})()}));eDwUIUtils.enableScrollOnTouch(eventMgrHTML,"#edrawings-left-bar .edrawings-tool-bar-content","#edrawings-left-bar",(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.deactivateUI(".edrawings-tool-button",".edrawings-submenu")];case 1:_a.sent();return[2]}}))}))}))};eDwUIBaseEventHandlers.prototype.addDefaultHTMLPanelCloseEventHandlers=function(){if(this.mViewerFeatureOpts.Debug){eDwUIUtils.addCloseEventHandler("#edrawings-debug-menu",this.mUIHTMLEventMgr)}eDwUIUtils.addCloseEventHandler("#edrawings-sheet-tree-menu",this.mUIHTMLEventMgr);eDwUIUtils.addCloseEventHandler("#edrawings-layer-control-menu",this.mUIHTMLEventMgr)};eDwUIBaseEventHandlers.doModelDataLoadCompleteActions=function(ioEventHandlerObj,iViewer){ioEventHandlerObj.mViewer=iViewer;l_loadUIPlugins(iViewer);var handlerObj=ioEventHandlerObj;var eventMgr=eDwEventMgr.get();eventMgr.addEventHandlerObj(eDwEvents.InitEvent,handlerObj,"onInit");eventMgr.addEventHandlerObj(eDwEvents.InitFullUIEvent,handlerObj,"onInitFullUI");eventMgr.addEventHandlerObj(eDwEvents.SelectEvent,handlerObj,"onSelect");eventMgr.addEventHandlerObj(eDwEvents.UnselectEvent,handlerObj,"onUnselect");eventMgr.addEventHandlerObj(eDwEvents.StartAnimationEvent,handlerObj,"onStartAnimation");eventMgr.addEventHandlerObj(eDwEvents.StopAnimationEvent,handlerObj,"onStopAnimation");eventMgr.addEventHandlerObj(eDwEvents.LeftDoubleClickEvent,handlerObj,"onLeftDoubleClick");eventMgr.addEventHandlerObj(eDwEvents.TimeoutEvent,handlerObj,"onTimeout");eventMgr.addEventHandlerObj(eDwEvents.DrawModeChangeEvent,handlerObj,"onDrawModeChange");eventMgr.addEventHandlerObj(eDwEvents.ProjModeChangeEvent,handlerObj,"onProjectionModeChange");eventMgr.addEventHandlerObj(eDwEvents.NodeAttribChangeEvent,handlerObj,"onNodeAttribChanged");eventMgr.addEventHandlerObj(eDwEvents.ResetSceneEvent,handlerObj,"onResetScene");eventMgr.addEventHandlerObj(eDwEvents.AmbientOcclChangeEvent,handlerObj,"onAmbientOcclusionChange");eventMgr.addEventHandlerObj(eDwEvents.DoneEvent,handlerObj,"onDone");eventMgr.addEventHandlerObj(eDwEvents.ModelViewChangeEvent,handlerObj,"onModelViewChange")};eDwUIBaseEventHandlers.prototype.removeHTMLEventHandlers=function(){eDwUIUtils.disableScrollOnTouch(this.mUIHTMLEventMgr,"#edrawings-hud-bar .edrawings-hud-bar-content");eDwUIUtils.disableScrollOnTouch(this.mUIHTMLEventMgr,"#edrawings-left-bar .edrawings-tool-bar-content");this.mUIHTMLEventMgr.removeAllEventHandlers();eDwUIShortcutMenu_2.eDwUIShortcutMenu.destroy()};eDwUIBaseEventHandlers.doModelDataUnloadActions=function(iViewer){l_unloadUIPlugins();if(iViewer)iViewer.unregister();eDwEventMgr.get().removeAllEventHandlers()};eDwUIBaseEventHandlers.prototype.onInit=function(iViewer){this.mViewer=iViewer};eDwUIBaseEventHandlers.prototype.onInitFullUI=function(iViewer){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.updateUI(iViewer,iViewer.getModel().getActiveModelView(),true)];case 1:_a.sent();return[2]}}))}))})()};eDwUIBaseEventHandlers.prototype.onDone=function(iViewer){iViewer.destroy()};eDwUIBaseEventHandlers.prototype.onSelect=function(iViewer,iSelObjs){this.handleSelectionChange(iViewer,iSelObjs,true)};eDwUIBaseEventHandlers.prototype.onUnselect=function(iViewer,iSelObjs){this.handleSelectionChange(iViewer,iSelObjs,false)};eDwUIBaseEventHandlers.prototype.onLeftDoubleClick=function(iViewer){eDwUIUtils.zoomToFit(iViewer);eDwUIShortcutMenu_2.eDwUIShortcutMenu.hide()};eDwUIBaseEventHandlers.prototype.onModelViewChange=function(iViewer,iNewModelView,iIsAssembly){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.updateUI(iViewer,iNewModelView)];case 1:_a.sent();return[2]}}))}))})()};eDwUIBaseEventHandlers.prototype.onNodeAttribChanged=function(iViewer,iHierNodesAndAttribs){if(iViewer.ViewerFeatureOpts.Debug){for(var _i=0,iHierNodesAndAttribs_3=iHierNodesAndAttribs;_i1){hudBarJQ.offset({left:Math.ceil(filenameBlockRight),top:hudBarOffset.top});l_resizeTopBar()}else if(hudBarContentJQ[0].scrollWidth===0||hudBarContentJQ.width()>=hudBarContentJQ[0].scrollWidth){topBarJQ.removeClass("edrawings-collided-hud-bar");hudBarJQ.removeClass("edrawings-collided");hudBarJQ.css({left:""})}}else{if(filenameBlockOffset.left!==hudBarOffset.left&&filenameBlockRight>hudBarOffset.left){hudBarJQ.offset({left:Math.ceil(filenameBlockRight),top:hudBarOffset.top});topBarJQ.addClass("edrawings-collided-hud-bar");hudBarJQ.addClass("edrawings-collided")}}eDwUIUtils.adjustScrollArrows(hudBarContentJQ[0].scrollLeft,hudBarContentJQ[0].scrollWidth,hudBarContentJQ.width(),true,leftButtonWrapperJQ,rightButtonWrapperJQ,hudBarJQ);if(topBarJQ.hasClass("edrawings-collided-hud-bar")){if(hudBarContentJQ.innerWidth()c_filenameBlockThresholdWidth){if(topBarJQ.hasClass("edrawings-out-of-view")){topBarJQ.removeClass("edrawings-out-of-view")}}else{topBarJQ.addClass("edrawings-out-of-view")}}else{if(filenameBlockJQ[0].scrollWidth-filenameBlockInnerWidth>1){if(filenameBlockJQ.width()0&&toolBarContentJQ[0].scrollHeight<=leftBarContentJQ.innerHeight()){leftBarJQ.removeClass("edrawings-collided")}}else{if(leftBarContentJQ[0].scrollHeight>0&&leftBarContentJQ[0].scrollHeight>Math.round(leftBarContentJQ.innerHeight())){leftBarJQ.addClass("edrawings-collided")}}eDwUIUtils.adjustScrollArrows(toolBarContentJQ[0].scrollTop,toolBarContentJQ[0].scrollHeight,toolBarContentJQ.height(),false,upButtonWrapperJQ,downButtonWrapperJQ,leftBarJQ);if(leftBarJQ.hasClass("edrawings-collided")){if(toolBarContentJQ.innerHeight()=window.innerWidth){var diff=iMouseEvent.clientX+iItemJQ[0].scrollWidth+scrollWidthPadding-window.innerWidth;if(iMouseEvent.clientX>=diff){tickerLeft=iMouseEvent.clientX-diff;tickerWidth=iItemJQ[0].scrollWidth+scrollWidthPadding}else{tickerLeft=0;tickerAnimation=true;if(window.innerWidth>tickerMinWidth){tickerWidth=window.innerWidth}else{tickerWidth=tickerMinWidth}var threeTimes=[iText,iText,iText].join(" ");tickerJQ.text(threeTimes)}}if(itemOffset.top-tickerMinHeight<=0){if(itemOffset.top+iItemJQ[0].clientHeight+tickerMinHeight<=window.innerHeight){tickerTop=itemOffset.top+iItemJQ[0].clientHeight}else{var diff=iMouseEvent.clientY+tickerMinHeight-window.innerHeight;if(iMouseEvent.clientY>diff){tickerTop=iMouseEvent.clientY-diff}else{tickerTop=0}}}var tickerwrapJQ=tickerJQ.closest(".edrawings-ticker-wrapper");tickerwrapJQ.offset({left:tickerLeft,top:tickerTop}).css("width",tickerWidth).removeClass("edrawings-ui-hide");if(tickerAnimation){tickerwrapJQ.addClass("edrawings-animation")}}function l_hideTicker(){var tickerwrapJQ=$(".edrawings-ticker-wrapper");if(!tickerwrapJQ.hasClass("edrawings-ui-hide")){var tickerJQ=tickerwrapJQ.find(".edrawings-ticker");tickerJQ.text("");tickerwrapJQ.addClass("edrawings-ui-hide").removeClass("edrawings-animation").css("left","").css("top","").css("width","")}}function l_positionMenuPanelCollapseButton(){var activeButtonsJQ=$(".edrawings-tool-button.active-button");if(activeButtonsJQ.length){if(eDwUIUtils.scrollToTarget(activeButtonsJQ)){l_resizeToolBar()}var collapsedPanelsJQ=$(".edrawings-submenu.active.edrawings-collapsed");if(collapsedPanelsJQ.length){var attrStyle=collapsedPanelsJQ.find(".edrawings-menu-panel-arrow-collapse").attr("style");if(!!attrStyle){eDwUIUtils.positionMenuPanelArrowCollapseButton(collapsedPanelsJQ,activeButtonsJQ)}}}}function l_fixMenuPanelInwardToolbar(){var panelsJQ=$(".edrawings-submenu.active:not(.edrawings-collapsed), .edrawings-hud-menu.active");panelsJQ.each((function(iIndex,iPanel){var panelJQ=$(iPanel);eDwUIUtils.fixMenuPanelInwardToolbar(panelJQ)}))}function l_scrollUIBar(iContentJQ,iDeactivateButtonClass,iDeactivateMenuClass,iScrollDist,iBarJQ){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!(iContentJQ&&iContentJQ.length>0))return[3,2];return[4,eDwUIUtils.deactivateUI(iDeactivateButtonClass,iDeactivateMenuClass)];case 1:_a.sent();eDwUIUtils.executeScrolling(iScrollDist,0,iContentJQ,iBarJQ);_a.label=2;case 2:return[2]}}))}))}return eDwUIBaseEventHandlers}));define("eDwUIBasePlugin",["require","exports","eDwUIHTMLEventMgr","eDwEventMgr","eDwEvents","eDwUIShortcutMenu","eDwUIUtils","utils"],(function(require,exports,eDwUIHTMLEventMgr,eDwEventMgr,eDwEvents_6,eDwUIShortcutMenu_3,eDwUIUtils,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.eDwUIBasePlugin=void 0;var eDwUIBasePlugin=function(){function eDwUIBasePlugin(iPluginGroupName,iViewer,iButtonInfo,iViewerFeatOpts){var _this=this;if(iViewer===void 0){iViewer=null}if(iButtonInfo===void 0){iButtonInfo=null}if(iViewerFeatOpts===void 0){iViewerFeatOpts=null}console.debugLog("UIPlugin","Constructed "+iPluginGroupName+" plugin.");this.mPluginGroupName=iPluginGroupName;this.mViewer=iViewer;this.mViewerFeatOpts=iViewerFeatOpts||iViewer&&iViewer.ViewerFeatureOpts;this.mUIHTMLEventMgr=new eDwUIHTMLEventMgr;this.mPluginDependencies=[];this.mPluginButtonInfo=iButtonInfo;if(iViewer){eDwUIShortcutMenu_3.eDwUIShortcutMenu.get().setPluginCheck(iPluginGroupName,(function(iPluginName){return _this.check(iPluginName)}))}}eDwUIBasePlugin.prototype.init=function(iPanelsToLoad){return __awaiter(this,void 0,void 0,(function(){var promises,_i,iPanelsToLoad_1,panelToLoad;return __generator(this,(function(_a){switch(_a.label){case 0:this.addAppObjEvent(eDwEvents_6.ActivateUIOpEvent,"onActivate",true);this.addAppObjEvent(eDwEvents_6.DeactivateUIOpEvent,"onDeactivate",true);if(!iPanelsToLoad)return[3,2];promises=[];for(_i=0,iPanelsToLoad_1=iPanelsToLoad;_i-1?true:false};eDwUIBasePlugin.prototype.addEventHandlers=function(){};eDwUIBasePlugin.prototype.removeEventHandlers=function(){this.mUIHTMLEventMgr.removeAllEventHandlers()};eDwUIBasePlugin.prototype.onActivate=function(iButtonJQ){return this.isButtonForThisPlugin(iButtonJQ)};eDwUIBasePlugin.prototype.onDeactivate=function(iButtonJQ){return this.isButtonForThisPlugin(iButtonJQ)};eDwUIBasePlugin.prototype.addAppObjEvent=function(iAppEvent,iEventObjMethod,iAdd){var eventMgr=eDwEventMgr.get();var eventMgrMethod=iAdd?"addEventHandlerObj":"removeEventHandlerObj";eventMgr[eventMgrMethod](iAppEvent,this,iEventObjMethod)};eDwUIBasePlugin.prototype.loadPanel=function(iPanelID,iHTMLFileName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwUIUtils.loadPanel(iPanelID,iHTMLFileName)];case 1:return[2,_a.sent()]}}))}))};Object.defineProperty(eDwUIBasePlugin.prototype,"PluginGroupName",{get:function(){return this.mPluginGroupName},enumerable:false,configurable:true});Object.defineProperty(eDwUIBasePlugin.prototype,"PluginButtonID",{get:function(){return this.mPluginButtonInfo?this.mPluginButtonInfo.ID:""},enumerable:false,configurable:true});Object.defineProperty(eDwUIBasePlugin.prototype,"Dependencies",{get:function(){return this.mPluginDependencies},enumerable:false,configurable:true});return eDwUIBasePlugin}();exports.eDwUIBasePlugin=eDwUIBasePlugin}));define("eDwUIDebugHTMLGenerator",["require","exports","eDwUIHTMLGenerator","eDwTypes"],(function(require,exports,eDwUIHTMLGenerator_1,eDwTypes_15){"use strict";var _a;var eDwUIDebugHTMLGenerator=function(_super){__extends(eDwUIDebugHTMLGenerator,_super);function eDwUIDebugHTMLGenerator(iViewer,iPanelUIID){var _this=_super.call(this,iViewer,iPanelUIID)||this;_this.mHCModel=iViewer.getModel().getHCModel();return _this}eDwUIDebugHTMLGenerator.prototype.getNodeFromID=function(iNodeID){return l_getHCNode(iNodeID)};eDwUIDebugHTMLGenerator.prototype.getPostSpanHTML=function(iAdditionalClasses){return""};eDwUIDebugHTMLGenerator.prototype.forNodeGetName=function(iNode){return this.mHCModel.getNodeName(l_getHCNode(iNode))||"unknown node name"};eDwUIDebugHTMLGenerator.prototype.forNodeGetID=function(iNode){return l_getHCNode(iNode)};eDwUIDebugHTMLGenerator.prototype.forNodeGetParentID=function(iNode){return this.mHCModel.getNodeParent(l_getHCNode(iNode))||NaN};eDwUIDebugHTMLGenerator.prototype.forNodeGetChildren=function(iNode){return this.mHCModel.getNodeChildren(l_getHCNode(iNode))};eDwUIDebugHTMLGenerator.prototype.forNodeHasChildren=function(iNode){return this.forNodeGetChildren(iNode).length>0};eDwUIDebugHTMLGenerator.prototype.forNodeGetDataAttributes=function(iNode){return _super.prototype.forNodeGetDataAttributes.call(this,iNode)};eDwUIDebugHTMLGenerator.prototype.forNodeGetElementContent=function(iNode){var _this=this;var nodeIDHC=this.forNodeGetID(iNode);(function(){return __awaiter(_this,void 0,void 0,(function(){var meshIDs,numMeshIDs;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mHCModel.getMeshIds([nodeIDHC])];case 1:meshIDs=_a.sent();numMeshIDs=meshIDs.length;console.log("Node ID: "+nodeIDHC+" Num mesh IDs: "+numMeshIDs);return[2]}}))}))})();return this.forNodeGetName(iNode)+" ID: "+nodeIDHC+" TYPE: "+c_nodeTypes[this.mHCModel.getNodeType(nodeIDHC)]+" VISIBLE: "+this.mHCModel.getNodeVisibility(nodeIDHC)};eDwUIDebugHTMLGenerator.prototype.forNodeGetDisplayStateCSSClass=function(iNode){return"edrawings-body-visible"};return eDwUIDebugHTMLGenerator}(eDwUIHTMLGenerator_1.eDwUIHTMLGenerator);var c_nodeTypes=(_a={},_a[eDwTypes_15.HC.NodeType.AssemblyNode]="Assembly",_a[eDwTypes_15.HC.NodeType.Body]="Body",_a[eDwTypes_15.HC.NodeType.BodyInstance]="Body Instance",_a[eDwTypes_15.HC.NodeType.BrepBody]="BRep Body",_a[eDwTypes_15.HC.NodeType.CadView]="CAD View",_a[eDwTypes_15.HC.NodeType.DrawingSheet]="Drawing Sheet",_a[eDwTypes_15.HC.NodeType.Part]="Part",_a[eDwTypes_15.HC.NodeType.PartInstance]="Part Instance",_a[eDwTypes_15.HC.NodeType.Pmi]="PMI",_a[eDwTypes_15.HC.NodeType.PmiBody]="PMI Body",_a[eDwTypes_15.HC.NodeType.PointsBody]="Points Body",_a[eDwTypes_15.HC.NodeType.TessBody]="Tessellation Body",_a[eDwTypes_15.HC.NodeType.Unknown]="Unknown",_a[eDwTypes_15.HC.NodeType.ViewFrame]="View Frame",_a[eDwTypes_15.HC.NodeType.WireBody]="Wire Body",_a);function l_isHCNode(iNode){return!isNaN(iNode)}function l_getHCNode(iNode){if(!l_isHCNode(iNode)){throw new Error("Not an HC node:\n"+JSON.stringify(iNode))}return iNode}return eDwUIDebugHTMLGenerator}));define("eDwUIHTMLEventMgr",["require","exports","eDwUIUtils"],(function(require,exports,eDwUIUtils){"use strict";var eDwUIHTMLEventMgr=function(){function eDwUIHTMLEventMgr(){this.mEventHandlerData={}}eDwUIHTMLEventMgr.prototype.addDelegatedEventHandler=function(iElemSelector,iEventName,iEventHandler){if(!iElemSelector||!iEventName||!iEventHandler)return false;var selectors=iElemSelector.split(" ");if(selectors.length<2)return false;var ancestorElementID=selectors.shift();return this.commonAddEventHandler(ancestorElementID,iEventName,iEventHandler,selectors.join().replace(".",""))};eDwUIHTMLEventMgr.prototype.addEventHandler=function(iElemID,iEventName,iEventHandler){if(!iElemID||!iEventName||!iEventHandler)return false;return this.commonAddEventHandler(iElemID,iEventName,iEventHandler)};eDwUIHTMLEventMgr.prototype.removeAllEventHandlers=function(){for(var eventName in this.mEventHandlerData){if(this.mEventHandlerData.hasOwnProperty(eventName)){var handlersOfEvent=this.mEventHandlerData[eventName];for(var elemID in handlersOfEvent){if(handlersOfEvent.hasOwnProperty(elemID)){this.removeEventHandlersByID(elemID,eventName,handlersOfEvent)}}delete this.mEventHandlerData[eventName]}}this.mEventHandlerData={}};eDwUIHTMLEventMgr.prototype.removeEventHandlers=function(iElemID,iEventName){var handlersRemoved=false;if(this.mEventHandlerData.hasOwnProperty(iEventName)){var handlersOfEvent=this.mEventHandlerData[iEventName];if(handlersOfEvent.hasOwnProperty(iElemID)){handlersRemoved=this.removeEventHandlersByID(iElemID,iEventName,handlersOfEvent)}}return handlersRemoved};eDwUIHTMLEventMgr.prototype.commonAddEventHandler=function(iElemID,iEventName,iEventHandler,iElemClasses){if(iElemClasses===void 0){iElemClasses=""}if(!iElemID)return false;var elements=[];if(iElemID==="window")elements.push(window);else if(iElemID==="document")elements.push(document);else elements=$(iElemID).toArray();if(!elements.length)return false;var handlersOfEvent=this.mEventHandlerData[iEventName];if(!handlersOfEvent){handlersOfEvent=this.mEventHandlerData[iEventName]={}}var elemHandlers=handlersOfEvent[iElemID];if(!elemHandlers){elemHandlers=handlersOfEvent[iElemID]={MainDispatcher:null,Handlers:[]}}if(elemHandlers.MainDispatcher){for(var _i=0,elements_1=elements;_i-1||highlight===""?"":" edrawings-list-option";var currOffset=utils.isNaN(iLeftPaddingInPX)?this.mInitialLeftPaddingInPX+"px":iLeftPaddingInPX+"px";var generatedHTML="
";generatedHTML+=this.getPreSpanHTML(iNode,additionalClasses,expanded,iIgnoreChildren);generatedHTML+=""+this.forNodeGetElementContent(iNode)+"";generatedHTML+=this.getPostSpanHTML(nonRootClass+" "+additionalClasses);generatedHTML+="
";return generatedHTML};eDwUIHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,""]}))}))};eDwUIHTMLGenerator.prototype.getNodeFromID=function(iNodeID){var modelViews=this.mViewer.getModel().getModelViews();for(var _i=0,modelViews_5=modelViews;_i
";return generatedHTML};eDwUIHTMLGenerator.prototype.getPostSpanHTML=function(iAdditionalClasses){return"
"};eDwUIHTMLGenerator.prototype.computeOffset=function(iLeftPaddingInPX){if(iLeftPaddingInPX===void 0){iLeftPaddingInPX=NaN}return utils.isNaN(iLeftPaddingInPX)?this.mInitialLeftPaddingInPX:iLeftPaddingInPX+this.mLeftPaddingInPX};eDwUIHTMLGenerator.prototype.forNodeGetName=function(iNode){return l_getHierarchyNode(iNode).Name};eDwUIHTMLGenerator.prototype.forNodeGetID=function(iNode){return l_getHierarchyNode(iNode).HOOPSID};eDwUIHTMLGenerator.prototype.forNodeGetParentID=function(iNode){var parentHierNode=l_getHierarchyNode(iNode).Parent;return parentHierNode?parentHierNode.HOOPSID:NaN};eDwUIHTMLGenerator.prototype.forNodeGetChildren=function(iNode){var childrenObj=l_getHierarchyNode(iNode).getChildrenAndKeys();return Object.keys(childrenObj).map((function(key){return childrenObj[key]}))};eDwUIHTMLGenerator.prototype.forNodeHasChildren=function(iNode){return this.forNodeGetChildren(iNode).length>0};eDwUIHTMLGenerator.prototype.forNodeGetDataAttributes=function(iNode){var parentNodeID=this.forNodeGetParentID(iNode);return" data-hoopsid='"+this.forNodeGetID(iNode)+"' "+(parentNodeID!==undefined?"data-hoopsparentid='"+parentNodeID+"' ":"")};eDwUIHTMLGenerator.prototype.forNodeGetElementContent=function(iNode){return this.forNodeGetName(iNode)};eDwUIHTMLGenerator.prototype.forNodeGetDisplayStateCSSClass=function(iNode){return eDwUIHTMLGenerator.getDisplayStateCSSClass(l_getHierarchyNode(iNode))};return eDwUIHTMLGenerator}();exports.eDwUIHTMLGenerator=eDwUIHTMLGenerator;function l_getHierarchyNode(iNode){if(!eDwHierarchyNode.isHierarchyNode(iNode)){throw new Error("Not a hierarchy node:\n"+JSON.stringify(iNode))}return iNode}}));define("eDwUIHierNodeVisMenuItemsPlugin",["require","exports","eDwCommandMgr","eDwSetHierNodeAttribsCmd","eDwShowOnlyCmd","eDwUIUtils","eDwEventMgr","eDwUIShortcutMenu","eDwKeyMgr","eDwEvents","eDwTypes","eDwUIBasePlugin","utils"],(function(require,exports,eDwCommandMgr,eDwSetHierNodeAttribsCmd,eDwShowOnlyCmd,eDwUIUtils,eDwEventMgr,eDwUIShortcutMenu_4,eDwKeyMgr_4,eDwEvents_7,eDwTypes_16,eDwUIBasePlugin_1,utils){"use strict";var eDwUIHierNodeVisMenuItemPlugin=function(_super){__extends(eDwUIHierNodeVisMenuItemPlugin,_super);function eDwUIHierNodeVisMenuItemPlugin(iViewer,iViewerFeatOpts){return _super.call(this,"HideShow",iViewer)||this}eDwUIHierNodeVisMenuItemPlugin.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){function isNotPartModel(iViewer){return!iViewer.getModel().isPart()}var shortcutMenu,isVisibleForASMAndDRW,isVisibleForASM,isVisibleNonRootForASMAndDRW;var _this=this;return __generator(this,(function(_a){_super.prototype.init.call(this);shortcutMenu=eDwUIShortcutMenu_4.eDwUIShortcutMenu.get();if(!shortcutMenu.isEmpty()){shortcutMenu.addMenuSeparator(this.PluginGroupName)}isVisibleForASMAndDRW=function(iViewer,iIsSelected){return iIsSelected&&isNotPartModel(iViewer)};isVisibleForASM=function(iViewer,iIsSelected){return iIsSelected&&iViewer.getModel().isAssembly()};isVisibleNonRootForASMAndDRW=function(iViewer,iIsSelected){var model=iViewer.getModel();var modelViewHierNode=model.getActiveModelView().Hierarchy;var lastSelHierNode=iViewer.SelectionMgr.getLastSelHierarchyNode();return iIsSelected&&(model.isDrawing()||model.isAssembly()&&modelViewHierNode!==lastSelHierNode.Parent)};shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-hide-show",(function(iEvent,iUIItemJQ,iArg){var selMgr=_this.mViewer.SelectionMgr;var selHierNodes=selMgr.getSelHierarchyNodes();if(selHierNodes&&selHierNodes.length){(function(){return __awaiter(_this,void 0,void 0,(function(){var attrib,selHideShowCmd;return __generator(this,(function(_a){switch(_a.label){case 0:attrib={Visible:!selHierNodes[0].getAttribs().Visible};selHideShowCmd=new eDwSetHierNodeAttribsCmd(this.mViewer,selHierNodes,attrib);return[4,eDwCommandMgr.get().run(selHideShowCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isVisibleForASMAndDRW);shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-transp-solid",(function(iEvent,iUIItemJQ,iArg){(function(){return __awaiter(_this,void 0,void 0,(function(){var selMgr,selHierNodes,attrib,selTransSolidCmd;return __generator(this,(function(_a){switch(_a.label){case 0:selMgr=this.mViewer.SelectionMgr;selHierNodes=selMgr.getSelHierarchyNodes();if(!(selHierNodes&&selHierNodes.length))return[3,2];attrib={Opaque:!selHierNodes[0].getAttribs().Opaque};selTransSolidCmd=new eDwSetHierNodeAttribsCmd(this.mViewer,selHierNodes,attrib);return[4,eDwCommandMgr.get().run(selTransSolidCmd,"commit")];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))})();eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isVisibleForASM);shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-isolate",(function(iEvent,iUIItemJQ,iArg){(function(){return __awaiter(_this,void 0,void 0,(function(){var selMgr,showOnlyCmd;return __generator(this,(function(_a){switch(_a.label){case 0:selMgr=this.mViewer.SelectionMgr;showOnlyCmd=new eDwShowOnlyCmd(this.mViewer,selMgr.getSelHierarchyNodes());return[4,eDwCommandMgr.get().run(showOnlyCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isVisibleNonRootForASMAndDRW);shortcutMenu.addMenuItem(this.PluginGroupName,"edrawings-shortcut-show-all",(function(iEvent,iUIItemJQ,iArg){(function(){return __awaiter(_this,void 0,void 0,(function(){var showAllCmd;return __generator(this,(function(_a){switch(_a.label){case 0:showAllCmd=new eDwShowOnlyCmd(this.mViewer);return[4,eDwCommandMgr.get().run(showAllCmd,"commit")];case 1:_a.sent();return[2]}}))}))})();eDwUIShortcutMenu_4.eDwUIShortcutMenu.hide()}),isNotPartModel);this.mUIHTMLEventMgr.addDelegatedEventHandler("document .edrawings-submenu-list-item-button","click",(function(iEvent){console.debugLog("UIPlugin","HideShow menu button click");var selected=false;var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);var parentJQ=targetJQ.parent();eDwUIUtils.scrollToTarget(parentJQ);var selIDHC=eDwUIUtils.getIDHC(parentJQ);if(!isNaN(selIDHC)){var existingIdx=_this.mViewer.SelectionMgr.getSelectedNodeIDIndex(selIDHC);selected=existingIdx>-1?true:_this.mViewer.SelectionMgr.selectByID(selIDHC)}if(selected){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.fireEvent(iEvent,eDwEvents_7.RightClickEvent)];case 1:_a.sent();return[2]}}))}))})()}}));console.debugLog("UIPlugin","Added HideShow click event handler");this.mUIHTMLEventMgr.addDelegatedEventHandler("document .edrawings-submenu-list-item","mouseup",(function(iEvent){console.debugLog("UIPlugin","HideShow menu mouseup");var eventJQ=$(iEvent);var targetJQ=eDwUIUtils.getAsJQueryObj(iEvent.target);eDwUIUtils.scrollToTarget(targetJQ);if(!targetJQ||!targetJQ.length||!eventJQ||!eventJQ.length||targetJQ.hasClass("edrawings-root")||targetJQ.hasClass("edrawings-tree-arrow")||targetJQ.hasClass("edrawings-tree-expanded")||targetJQ.hasClass("edrawings-tree-icon")){return}if(!targetJQ.hasClass("edrawings-submenu-list-item"))return;var mouseEvent=iEvent;var pressedRMB=eDwKeyMgr_4.eDwKeyMgr.isRMBPressed(mouseEvent);var selected=false;var selIDHC=eDwUIUtils.getIDHC(targetJQ);if(utils.isNumber(selIDHC)){if(!eDwKeyMgr_4.eDwKeyMgr.get().isDown("Shift")){selected=_this.mViewer.SelectionMgr.selectByID(selIDHC)}else{var selector=".edrawings-submenu-list-item"+".edrawings-list-selected:has([data-hoopsid])";var filter=".edrawings-submenu-list-item:has([data-hoopsid])";var collectionPrevJQ=targetJQ.prevUntil(selector,filter);if(collectionPrevJQ.length===0||collectionPrevJQ.last().prev(selector).length===0){collectionPrevJQ=$([])}var collectionNextJQ=targetJQ.nextUntil(selector,filter);if(collectionNextJQ.length===0||collectionNextJQ.last().next(selector).length===0){collectionNextJQ=$([])}var collectionJQ=$([]).add(collectionPrevJQ).add(targetJQ).add(collectionNextJQ);collectionJQ.each((function(iIdx,iElement){var elementJQ=$(iElement);var selIDHC=eDwUIUtils.getIDHC(elementJQ);_this.mViewer.SelectionMgr.selectByID(selIDHC)}));selected=true;iEvent.preventDefault()}}else{selected=!targetJQ.hasClass("edrawings-list-selected");targetJQ[selected?"addClass":"removeClass"]("edrawings-list-selected")}(function(){return __awaiter(_this,void 0,void 0,(function(){var eventMgr,onSelectDoRMB;var _this=this;return __generator(this,(function(_a){eventMgr=eDwEventMgr.get();onSelectDoRMB=function(iViewer){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:eventMgr.removeEventHandlerFunc(eDwEvents_7.SelectEvent,"onSelectDoRMB");return[4,this.fireEvent(iEvent,eDwEvents_7.RightClickEvent)];case 1:_a.sent();return[2]}}))}))};if(selected&&pressedRMB){eventMgr.addEventHandlerFunc(eDwEvents_7.SelectEvent,onSelectDoRMB)}return[2]}))}))})()}));console.debugLog("UIPlugin","Added HideShow mouseup event handler");return[2]}))}))};eDwUIHierNodeVisMenuItemPlugin.prototype.check=function(iPluginName){return _super.prototype.check.call(this,iPluginName)||iPluginName===undefined};eDwUIHierNodeVisMenuItemPlugin.prototype.fireEvent=function(iEvent,iAppEvent){return __awaiter(this,void 0,void 0,(function(){var screenPos;return __generator(this,(function(_a){switch(_a.label){case 0:if(!iEvent||!iAppEvent||!this.mViewer)return[2];if(!(iAppEvent===eDwEvents_7.RightClickEvent))return[3,3];if(!utils.isOfType(iEvent,"clientX"))return[3,2];screenPos=new eDwTypes_16.HC.Point2(iEvent.clientX,iEvent.clientY);return[4,eDwEventMgr.get().fireEvent(iAppEvent,this.mViewer,screenPos,$(iEvent.target),this.PluginGroupName)];case 1:_a.sent();_a.label=2;case 2:return[3,5];case 3:if(!(iAppEvent===eDwEvents_7.UnselectEvent))return[3,5];return[4,eDwEventMgr.get().fireEvent(iAppEvent,this.mViewer,[])];case 4:_a.sent();_a.label=5;case 5:return[2]}}))}))};return eDwUIHierNodeVisMenuItemPlugin}(eDwUIBasePlugin_1.eDwUIBasePlugin);return eDwUIHierNodeVisMenuItemPlugin}));define("eDwUILayerHTMLGenerator",["require","exports","eDwUIHTMLGenerator","eDwLayer","utils"],(function(require,exports,eDwUIHTMLGenerator_2,eDwLayer,utils){"use strict";var eDwUILayerHTMLGenerator=function(_super){__extends(eDwUILayerHTMLGenerator,_super);function eDwUILayerHTMLGenerator(iViewer,iPanelUIID){return _super.call(this,iViewer,iPanelUIID)||this}eDwUILayerHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){var generatedHTML,layers,_i,layers_2,layer;return __generator(this,(function(_a){generatedHTML="";layers=this.mViewer.getModel().getLayers();if(layers.length){generatedHTML+="
"+" "+""+"Name
"+"
"}for(_i=0,layers_2=layers;_i"};eDwUILayerHTMLGenerator.prototype.getPostSpanHTML=function(iAdditionalClasses){return""};eDwUILayerHTMLGenerator.prototype.shouldIncludeNode=function(iLayer){return true};eDwUILayerHTMLGenerator.prototype.forNodeGetName=function(iNode){return l_getLayer(iNode).getName()};eDwUILayerHTMLGenerator.prototype.forNodeGetID=function(iNode){return l_getLayer(iNode).getIDHC()};eDwUILayerHTMLGenerator.prototype.forNodeGetParentID=function(iNode){return NaN};eDwUILayerHTMLGenerator.prototype.forNodeGetChildren=function(iNode){var childNodes=[];if(this.mViewer.ViewerFeatureOpts.Debug){childNodes=l_getLayer(iNode).getNodeIDsHC()}return childNodes};eDwUILayerHTMLGenerator.prototype.forNodeGetDataAttributes=function(iNode){return""};eDwUILayerHTMLGenerator.prototype.forNodeGetDisplayStateCSSClass=function(iNode){return""};return eDwUILayerHTMLGenerator}(eDwUIHTMLGenerator_2.eDwUIHTMLGenerator);function l_getLayer(iNode){if(!utils.isInstanceOf(iNode,eDwLayer)){throw new Error("Not a layer:\n"+JSON.stringify(iNode))}return iNode}return eDwUILayerHTMLGenerator}));define("eDwUIMessageReporter",["require","exports","eDwUIUtils","utils"],(function(require,exports,eDwUIUtils,utils){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.showMessageInDebugPanel=exports.showMessagePanelFromCSScontent=exports.showResultPanel=exports.showServerLoadErrorPanel=void 0;function showServerLoadErrorPanel(iServerID,iModelCacheName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_addParagraphToPanelText({},"edrawings-server-load-failure-1")];case 1:_a.sent();return[4,l_showServerError(iServerID,iModelCacheName)];case 2:_a.sent();return[2]}}))}))}exports.showServerLoadErrorPanel=showServerLoadErrorPanel;function showResultPanel(iResult){return __awaiter(this,void 0,void 0,(function(){var showButtons,_a;return __generator(this,(function(_b){switch(_b.label){case 0:showButtons=false;if(!utils.isOfType(iResult,"ServerID"))return[3,2];return[4,l_showConversionResultPanel(iResult)];case 1:showButtons=_b.sent();return[3,5];case 2:_a=iResult.ErrorCode;return[3,3];case 3:return[4,l_showPanelGeneric(iResult)];case 4:showButtons=_b.sent();return[3,5];case 5:return[2,showButtons]}}))}))}exports.showResultPanel=showResultPanel;function showMessagePanelFromCSScontent(iTextClass,iOptions){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_addParagraphToPanelText(!!iOptions?iOptions:{},iTextClass)];case 1:_a.sent();return[4,l_showMessagePanel()];case 2:_a.sent();return[2]}}))}))}exports.showMessagePanelFromCSScontent=showMessagePanelFromCSScontent;function showMessageInDebugPanel(iMsg){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_showMessagePanel(iMsg,true,true)];case 1:_a.sent();return[2]}}))}))}exports.showMessageInDebugPanel=showMessageInDebugPanel;function l_showConversionResultPanel(iResult){return __awaiter(this,void 0,void 0,(function(){var showButtons,_a;return __generator(this,(function(_b){switch(_b.label){case 0:showButtons=l_shouldShowButtons();_a=iResult.ErrorCode;switch(_a){case"URLNotAccessible":return[3,1];case"UnsupportedFileType":return[3,4];case"UnknownLicenseError":return[3,7];case"LicenseVersionMismatch":return[3,10];case"NoMoreLicenses":return[3,13];case"CannotConnectToLicenseServer":return[3,16];case"LicenseExpired":return[3,19];case"UnknownError":return[3,22]}return[3,25];case 1:return[4,l_addParagraphToPanelText({"data-file-url":iResult.ErrorData[0]},"edrawings-server-url-inaccessible")];case 2:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-error-title edrawings-dialog-no-close")];case 3:_b.sent();return[3,29];case 4:return[4,l_addParagraphToPanelText({"data-file":iResult.FileName},"edrawings-server-unsupported-file-type")];case 5:_b.sent();return[4,l_showMessagePanel("",true,showButtons,"edrawings-error-title edrawings-dialog-no-close")];case 6:_b.sent();return[3,29];case 7:return[4,l_addParagraphToPanelText({},"edrawings-unknown-license-error")];case 8:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 9:_b.sent();return[3,29];case 10:return[4,l_addParagraphToPanelText({},"edrawings-license-version-mismatch-error")];case 11:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 12:_b.sent();return[3,29];case 13:return[4,l_addParagraphToPanelText({},"edrawings-no-licenses-error")];case 14:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 15:_b.sent();return[3,29];case 16:return[4,l_addParagraphToPanelText({},"edrawings-license-server-connection-error")];case 17:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 18:_b.sent();return[3,29];case 19:return[4,l_addParagraphToPanelText({},"edrawings-license-expired-error")];case 20:_b.sent();return[4,l_showMessagePanel("",true,false,"edrawings-warn-title edrawings-dialog-no-close")];case 21:_b.sent();return[3,29];case 22:return[4,l_addParagraphToPanelText({},"edrawings-unknown-error")];case 23:_b.sent();return[4,l_showServerError(iResult.ServerID,iResult.ModelCacheName)];case 24:_b.sent();return[3,29];case 25:if(!l_isDebug())return[3,27];return[4,l_showPanelGeneric(iResult)];case 26:_b.sent();return[3,28];case 27:showServerLoadErrorPanel(iResult.ServerID,iResult.ModelCacheName);_b.label=28;case 28:return[3,29];case 29:return[2,showButtons]}}))}))}function l_showPanelGeneric(iResult){return __awaiter(this,void 0,void 0,(function(){var _a,msg,classes,_i,_b,data;return __generator(this,(function(_c){switch(_c.label){case 0:_a=iResult.ErrorCode;switch(_a){case"AJAXFailure":return[3,1];case"IncompleteFileProcessing":return[3,4];case"ModelLoadInViewerFailed":return[3,7]}return[3,11];case 1:return[4,l_addParagraphToPanelText({},"edrawings-server-ajax-failure")];case 2:_c.sent();return[4,l_showMessagePanel("",true,false,"edrawings-error-title edrawings-dialog-no-close")];case 3:_c.sent();return[3,13];case 4:return[4,l_addParagraphToPanelText({},"edrawings-unable-process-file")];case 5:_c.sent();return[4,l_showMessagePanel("",true,true,"edrawings-error-title edrawings-dialog-no-close")];case 6:_c.sent();return[3,13];case 7:return[4,l_addParagraphToPanelText({"data-error-message":iResult.ErrorData[0]},"edrawings-viewer-load-failure")];case 8:_c.sent();return[4,l_addParagraphToPanelText({"data-model-cache-name":iResult.ErrorData[1]},"edrawings-server-load-failure-3")];case 9:_c.sent();return[4,l_showMessagePanel("",true,true,"edrawings-error-title edrawings-dialog-no-close")];case 10:_c.sent();return[3,13];case 11:msg="";classes="edrawings-dialog-no-close";switch(iResult.ErrorCode){case"Error":classes+=" edrawings-error-title";break;case"Warn":classes+=" edrawings-warn-title";break;default:classes+=" edrawings-info-title";msg+="
"+iResult.ErrorCode+"
";break}for(_i=0,_b=iResult.ErrorData;_i<_b.length;_i++){data=_b[_i];msg+="
"+data+"
"}return[4,l_showMessagePanel(msg,true,false,classes)];case 12:_c.sent();return[3,13];case 13:return[2,l_shouldShowButtons()]}}))}))}function l_addParagraphToPanelText(iOptions,iTextClass){return __awaiter(this,void 0,void 0,(function(){function getValue(iValue){return typeof iValue==="string"?"'"+iValue+"'":iValue.toString()}var msgPanelTextJQ,div,optionKeys,_i,optionKeys_1,optionKey;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_getDialogPanelTextElem()];case 1:msgPanelTextJQ=_a.sent();div="
";msgPanelTextJQ.append(div);return[2]}}))}))}function l_showMessagePanel(iMsg,iModal,iShowButtons,iDlgClasses){if(iMsg===void 0){iMsg=""}if(iModal===void 0){iModal=true}if(iShowButtons===void 0){iShowButtons=false}if(iDlgClasses===void 0){iDlgClasses="edrawings-info-title edrawings-dialog-no-close"}return __awaiter(this,void 0,void 0,(function(){var msgPanelTextJQ,opts,msgPanel,msgPanelTitleJQ,text;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_getDialogPanelTextElem()];case 1:msgPanelTextJQ=_a.sent();if(iMsg)msgPanelTextJQ.html(iMsg);opts={modal:iModal,width:window.innerWidth*.6,minWidth:200,dialogClass:iDlgClasses,closeOnEscape:iShowButtons};msgPanel=$("#edrawings-dialog-panel");if(iShowButtons){$.extend(opts,{buttons:{Ok:function(){msgPanel.dialog("close")}},close:function(iEvent){$(".edrawings-dialog-content").remove()}})}$.extend(opts,{beforeClose:function(iEvent){eDwUIUtils.getAsJQueryObj(iEvent.target).closest(".ui-dialog").siblings(".ui-widget-overlay").addBack().off("drop")},open:function(iEvent){eDwUIUtils.getAsJQueryObj(iEvent.target).closest(".ui-dialog").siblings(".ui-widget-overlay").addBack().on("drop",(function(iEvent2){iEvent2.preventDefault();iEvent2.stopPropagation()}))}});eDwUIUtils.hide("#WaitBanner",true);msgPanel.dialog(opts);if(iDlgClasses.indexOf("edrawings")>-1&&iDlgClasses.indexOf("title")>-1){msgPanelTitleJQ=msgPanel.prev().find(".ui-dialog-title");text="";if(msgPanelTitleJQ){text=msgPanelTitleJQ.css("content").replace(/^['"]+|\\|(;\s?})+|['"]$/g,"")}msgPanelTitleJQ.text(text)}return[2]}}))}))}function l_shouldShowButtons(){var viewerHTMLElem=$(eDwUIUtils.getViewerElementID()).get(0);return $._data(viewerHTMLElem,"events").dragover}function l_isDebug(){var viewerFeatOpts={Debug:false};eDwUIUtils.getRequestedQueryStringParams(location.href,viewerFeatOpts,false);return viewerFeatOpts.Debug||false}function l_getDialogPanelTextElem(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!!lDialogTextJQ.length)return[3,2];return[4,eDwUIUtils.loadPanel("#edrawings-dialog-panel","dialogpanel.html")];case 1:_a.sent();lDialogTextJQ=$("#edrawings-dialog-panel-text");_a.label=2;case 2:return[2,lDialogTextJQ]}}))}))}function l_showServerError(iServerID,iModelCacheName){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_addParagraphToPanelText({"data-server-id":iServerID},"edrawings-server-load-failure-2")];case 1:_a.sent();return[4,l_addParagraphToPanelText({"data-model-cache-name":iModelCacheName},"edrawings-server-load-failure-3")];case 2:_a.sent();return[4,l_showMessagePanel("",true,false,"edrawings-error-title edrawings-dialog-no-close")];case 3:_a.sent();return[2]}}))}))}var lDialogTextJQ=$()}));define("eDwUIModelViewHTMLGenerator",["require","exports","eDwUIHTMLGenerator"],(function(require,exports,eDwUIHTMLGenerator_3){"use strict";var eDwUIModelViewHTMLGenerator=function(_super){__extends(eDwUIModelViewHTMLGenerator,_super);function eDwUIModelViewHTMLGenerator(iViewer,iPanelUIID){return _super.call(this,iViewer,iPanelUIID)||this}eDwUIModelViewHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){var generatedHTML,modelViews,_i,modelViews_6,modelView,modelViewHierNode;return __generator(this,(function(_a){generatedHTML="";modelViews=this.mViewer.getModel().getModelViews();for(_i=0,modelViews_6=modelViews;_iparentRect.Width){posx=parentRect.Width-menuWidth-5}if(posy+menuHeight>parentRect.Height){posy=parentRect.Height-menuHeight-5}menuJQ.css({top:posy+"px",left:posx+"px"});eDwUIUtils.hide(c_menuID,false)};eDwUIShortcutMenu.hide=function(){eDwUIUtils.hide(c_menuID,true);eDwUIUtils.hide(c_menuID+" ul",true);eDwUIUtils.hide(c_menuID+" li",true)};return eDwUIShortcutMenu}();exports.eDwUIShortcutMenu=eDwUIShortcutMenu;var c_menuID="#edrawings-shortcut-menu";var c_divider="-";var c_dummyText="dummy";function l_validatePlugin(iPluginName){if(!iPluginName){console.debugLog("shortcutmenu","Missing menu group name.");throw new eDwGenericError("Missing menu group name.")}}function l_insertInMenu(iElementStyle,iPluginName,iCSSClassName,iParentMenuJQ){l_validatePlugin(iPluginName);var text=iCSSClassName==="edrawings-shortcut-divider"?c_divider:c_dummyText;var menuElemJQ=$("<"+iElementStyle+" class ='"+iCSSClassName+" edrawings-shortcut-menu-text'>"+text+"");menuElemJQ.attr("plugin-name",iPluginName);if(!menuElemJQ.attr("id")){menuElemJQ.attr("id",iCSSClassName+"-id")}iParentMenuJQ.append(menuElemJQ);iParentMenuJQ.menu("refresh");if(text===c_dummyText)menuElemJQ.text("");return menuElemJQ}function l_removeFromMenu(iParentMenuSelector,iPluginName,iMenuItemCSSClassName){return $(iParentMenuSelector).find("[plugin-name='"+iPluginName+"']"+iMenuItemCSSClassName).remove()}function l_getNumVisMenuItems(iPluginName){var menuItems=$(c_menuID+" li");var hiddenMenuItems=$(c_menuID+" li.edrawings-ui-hide");if(iPluginName){menuItems=menuItems.find("[plugin-name='"+iPluginName+"']");hiddenMenuItems=hiddenMenuItems.find("[plugin-name='"+iPluginName+"']")}return menuItems.length-hiddenMenuItems.length}function l_shouldBeVisible(iViewer,iArg){return typeof iArg==="boolean"?false:true}}));define("eDwUITableHTMLGenerator",["require","exports","eDwUIHTMLGenerator"],(function(require,exports,eDwUIHTMLGenerator_5){"use strict";var eDwUITableHTMLGenerator=function(_super){__extends(eDwUITableHTMLGenerator,_super);function eDwUITableHTMLGenerator(iViewer,iPanelUIID){return _super.call(this,iViewer,iPanelUIID)||this}eDwUITableHTMLGenerator.prototype.generateHTML=function(iAdditionalClasses){return __awaiter(this,void 0,void 0,(function(){var generatedHTML,activeModelView,tableNodes,_i,tableNodes_1,tableNode;return __generator(this,(function(_a){generatedHTML="";activeModelView=this.mViewer.getModel().getActiveModelView();if(activeModelView&&activeModelView.Hierarchy){tableNodes=activeModelView.Hierarchy.find("Category","table");for(_i=0,tableNodes_1=tableNodes;_i0))}}exports.searchPanelList=searchPanelList;function updateModelViewTargets(iModelView,iFilter,iTargetClass){var targetSpans=$("span[data-hoopsid='"+iModelView.Hierarchy.HOOPSID+"']");if(targetSpans.length>0){var viewTab=targetSpans.filter(iFilter);if(viewTab.length>0){var parentJQ=viewTab.parent();parentJQ.addClass(iTargetClass);scrollToTarget(parentJQ)}}}exports.updateModelViewTargets=updateModelViewTargets;function switchModelView(iEvent,iViewer,iClassForNodeID){var _this=this;if(!iEvent)return;var targetJQ=getAsJQueryObj(iEvent.target);if(!targetJQ.length)return;var modelViewDivJQ=$(iClassForNodeID,targetJQ);if(!modelViewDivJQ.length)return;var model=iViewer.getModel();var nodeIDHC=parseInt(modelViewDivJQ.data("hoopsid"),10);var modelViewHierNode=model.getHierarchyNode(nodeIDHC);var newModelView=modelViewHierNode.getModelView();var currModelView=model.getActiveModelView();if(newModelView===currModelView)return;(function(){return __awaiter(_this,void 0,void 0,(function(){var changeModelViewCmd;return __generator(this,(function(_a){switch(_a.label){case 0:changeModelViewCmd=new eDwChangeModelViewCmd(iViewer,newModelView);return[4,eDwCommandMgr.get().run(changeModelViewCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}exports.switchModelView=switchModelView;function expandSelected(iViewer,iSelHierNode){var activeModelView=iViewer.getModel().getActiveModelView();function expandNode(iTargetJQ){if(!iTargetJQ.length)return;if(!iTargetJQ.hasClass("edrawings-tree-expanded")){var panelUIID=getUIPanelID(iTargetJQ);if(!$(panelUIID).is(":visible"))return;var gen=getUIGenerator(panelUIID);var offset=parseInt($(iTargetJQ).css("padding-left"),10);var nodeToExpand=parseInt(iTargetJQ.data("hoopsid"),10);var hierarchyNode=activeModelView.Nodes[nodeToExpand];var appendNode=iTargetJQ.closest(".edrawings-submenu-list-item");appendNode.after(gen.generateHTMLForChildNodes(hierarchyNode,false,offset));iTargetJQ.addClass("edrawings-tree-expanded")}}var hierNode=iSelHierNode.Parent;while(hierNode&&hierNode!==activeModelView.Hierarchy){var expandNodes=$('[data-hoopsid="'+hierNode.HOOPSID+'"][class~="edrawings-tree-arrow"]');$.each(expandNodes,(function(iIdx,iTarget){expandNode($(iTarget))}));hierNode=hierNode.Parent}}exports.expandSelected=expandSelected;function scrollToTreeNode(iSelHierNode,iSetSelected){var treeItem={node:$("span[data-hoopsid='"+iSelHierNode.HOOPSID+"']:not(.config-tab-text)"),ownerNode:$("div[data-hoopsid='"+iSelHierNode.HOOPSID+"']")};if(treeItem.ownerNode.length){var classAction_1=iSetSelected?"addClass":"removeClass";$.each(treeItem.node,(function(iIdx,iTarget){$(iTarget)[classAction_1]("edrawings-list-selected")}));$.each(treeItem.ownerNode,(function(iIdx,iTarget){var targetJQ=$(iTarget);targetJQ[classAction_1]("edrawings-list-selected");if(!targetJQ.hasClass("edrawings-submenu-list-item")){return}targetJQ.find(".edrawings-submenu-list-item-button")[classAction_1]("edrawings-list-option");var panel=targetJQ.closest(".edrawings-menu");var panelHiddenState=panel.is(":hidden");hide(panel.attr("id"),false);if(iSetSelected){scrollToTarget(targetJQ,panelHiddenState?"none":"slow")}hide(panel.attr("id"),panelHiddenState)}))}}exports.scrollToTreeNode=scrollToTreeNode;function addCloseEventHandler(iPanelID,iUIHTMLEventMgr){iUIHTMLEventMgr.addDelegatedEventHandler(iPanelID+" .edrawings-menu-close","click",(function(iEvent){hide(iPanelID,true)}))}exports.addCloseEventHandler=addCloseEventHandler;function deactivateMoveInput(iInputEventIDSuffix){$(document).off("mousemove"+iInputEventIDSuffix);$(document).off("mousedown"+iInputEventIDSuffix);$(document).off("mouseup"+iInputEventIDSuffix);$(document).off("click"+iInputEventIDSuffix)}exports.deactivateMoveInput=deactivateMoveInput;function loadComponentHTML(){return __awaiter(this,void 0,void 0,(function(){var loadPromises;return __generator(this,(function(_a){switch(_a.label){case 0:loadPromises=[];utils.appendToArray(loadPanel("#edrawings-sheet-tree-menu","sheetspanel.html"),loadPromises);utils.appendToArray(loadPanel("#edrawings-layer-control-menu","layerspanel.html"),loadPromises);utils.appendToArray(loadPanel("#edrawings-debug-menu","debugpanel.html"),loadPromises);return[4,Promise.all(loadPromises)];case 1:_a.sent();return[2]}}))}))}exports.loadComponentHTML=loadComponentHTML;function inhibitEventBehavior(iEvent){iEvent.preventDefault();iEvent.stopPropagation()}exports.inhibitEventBehavior=inhibitEventBehavior;function populateModelViewPanel(iViewer,iPanelUIID,iTextClass){return __awaiter(this,void 0,void 0,(function(){var listModelViewMenu,gen,_a,_b;return __generator(this,(function(_c){switch(_c.label){case 0:listModelViewMenu=$(iPanelUIID+" .edrawings-submenu-list");listModelViewMenu.empty();gen=getUIGenerator(iPanelUIID);_b=(_a=listModelViewMenu).append;return[4,gen.generateHTML(iTextClass)];case 1:_b.apply(_a,[_c.sent()]);return[2]}}))}))}exports.populateModelViewPanel=populateModelViewPanel;function addPanelModeEvents(iPanelID,iInputEventIDSuffix,iButtonID){var click="click"+iInputEventIDSuffix;$(document).on(click,iPanelID+" .edrawings-menu-panel-arrow-collapse",(function(iJQEvent){var msg="Panel resize: "+click;console.debugLog("UIPanelResize",msg);iJQEvent.preventDefault();var panelJQ=$(iPanelID);panelJQ.toggleClass("edrawings-collapsed");var activeButtonJQ=iButtonID?$(iButtonID):undefined;positionMenuPanelArrowCollapseButton(panelJQ,activeButtonJQ);iJQEvent.stopImmediatePropagation()}));var panelJQ=$(iPanelID);panelJQ.removeClass("edrawings-collapsed");l_setMenuPanelArrowCollapseButtonPosition(panelJQ);fixMenuPanelInwardToolbar(panelJQ)}exports.addPanelModeEvents=addPanelModeEvents;function getText(iElement){return $(iElement).text().trim()}exports.getText=getText;function getTarget(iTargetJQ){return iTargetJQ.hasClass("config-tab-text")?iTargetJQ.parent():iTargetJQ}exports.getTarget=getTarget;function getSpanText(iTargetJQ){var target=getTarget(iTargetJQ);if(!target.is("span")){target=target.find("span")}if(!target||!target.length)return"";return target[0].innerText}exports.getSpanText=getSpanText;function loadPanel(iElemOrClassID,iPanelHTML){return __awaiter(this,void 0,void 0,(function(){var loaded,iExcp_16;return __generator(this,(function(_a){switch(_a.label){case 0:if(!eDwServiceMgr.usesWebServices())return[2,false];loaded=false;_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,eDwServiceMgr.get().load(iElemOrClassID,iPanelHTML)];case 2:_a.sent();loaded=true;console.debugLog("PanelLoad","Loaded panel id = "+iElemOrClassID+" HTML file = "+iPanelHTML);return[3,4];case 3:iExcp_16=_a.sent();console.debugLog("PanelLoad","Failed to load "+iPanelHTML+": "+iExcp_16.message);return[3,4];case 4:return[2,loaded]}}))}))}exports.loadPanel=loadPanel;function hide(iSelector,iOff){var selJQ=$(iSelector);selJQ[iOff?"addClass":"removeClass"]("edrawings-ui-hide");return selJQ}exports.hide=hide;function getRequestedQueryStringParams(iURL,ioViewerFeatOpts,iWarnOfOtherParams){if(iWarnOfOtherParams===void 0){iWarnOfOtherParams=true}var hashes=iURL.slice(iURL.indexOf("?")+1).split("&");for(var i=0;i1){var strVal=hash[1];var val=strVal==="true"?true:strVal==="false"?false:strVal;if(ioViewerFeatOpts.hasOwnProperty(hash[0])){ioViewerFeatOpts[hash[0]]=val}else if(iWarnOfOtherParams){console.warn(hash[0]+" is not a valid query parameter.")}}}}exports.getRequestedQueryStringParams=getRequestedQueryStringParams;function getPosition(iTargetJQ){var ret={top:0,left:0};if(iTargetJQ)ret=iTargetJQ.position();return ret}exports.getPosition=getPosition;function scrollToTarget(iTargetJQ,iAnimationSpeed){if(iAnimationSpeed===void 0){iAnimationSpeed="slow"}var animationSpeed=iAnimationSpeed;var targetOffset=iTargetJQ.offset();var targetParentJQ=iTargetJQ.parent();if(targetParentJQ.length&&targetParentJQ[0]===$(document)[0]){return false}var targetParentOffset=targetParentJQ.offset();var updated=false;if(targetParentJQ[0].scrollWidth>targetParentJQ.width()){var targetParentPaddingLeft=parseInt(targetParentJQ.css("paddingLeft"));var diff=l_computeTargetMinimalAdjustment(targetOffset.left,parseInt(iTargetJQ.css("marginLeft"))+parseInt(iTargetJQ.css("borderLeftWidth"))+iTargetJQ[0].scrollWidth+parseInt(iTargetJQ.css("borderRightWidth"))+parseInt(iTargetJQ.css("marginRight")),targetParentOffset.left+parseInt(targetParentJQ.css("marginLeft"))+parseInt(targetParentJQ.css("borderLeftWidth"))+targetParentPaddingLeft,targetParentJQ[0].clientWidth-targetParentPaddingLeft-parseInt(targetParentJQ.css("paddingRight")));if(diff!==0){var pos=targetParentJQ.scrollLeft()+diff;if(Math.abs(diff)>targetParentJQ.width()){var targetJQpostionLeft=iTargetJQ.position().left;pos=targetParentJQ.scrollLeft()+targetJQpostionLeft}else{animationSpeed="none"}l_scrollToTarget(targetParentJQ,pos,animationSpeed,"scrollLeft");updated=true}}if(targetParentJQ[0].scrollHeight>targetParentJQ.height()){var targetParentPaddingTop=parseInt(targetParentJQ.css("paddingTop"));var diff=l_computeTargetMinimalAdjustment(targetOffset.top,parseInt(iTargetJQ.css("marginTop"))+parseInt(iTargetJQ.css("borderTopWidth"))+iTargetJQ[0].scrollHeight+parseInt(iTargetJQ.css("borderBottomWidth"))+parseInt(iTargetJQ.css("marginBottom")),targetParentOffset.top+parseInt(targetParentJQ.css("marginTop"))+parseInt(targetParentJQ.css("borderTopWidth"))+targetParentPaddingTop,targetParentJQ[0].clientHeight-targetParentPaddingTop-parseInt(targetParentJQ.css("paddingBottom")));if(diff!==0){var pos=targetParentJQ.scrollTop()+diff;if(Math.abs(diff)>targetParentJQ.height()){var targetJQpostionTop=iTargetJQ.position().top;pos=targetParentJQ.scrollTop()+targetJQpostionTop}else{animationSpeed="none"}l_scrollToTarget(targetParentJQ,pos,animationSpeed,"scrollTop");updated=true}}return updated}exports.scrollToTarget=scrollToTarget;function getIDHC(iTargetJQ){if(!iTargetJQ)return Number.NaN;return parseInt(iTargetJQ.data("hoopsid"),10)}exports.getIDHC=getIDHC;function activateUI(iButtonID,iPanelID){return __awaiter(this,void 0,void 0,(function(){var panelJQ,buttonJQ;return __generator(this,(function(_a){switch(_a.label){case 0:if(iPanelID){panelJQ=hide(iPanelID,false).addClass("active");fixMenuPanelInwardToolbar(panelJQ)}if(!iButtonID)return[3,2];buttonJQ=$(iButtonID);buttonJQ.addClass("active-button");scrollToTarget(buttonJQ,"none");return[4,eDwEventMgr.get().fireEvent(eDwEvents_9.ActivateUIOpEvent,buttonJQ)];case 1:_a.sent();_a.label=2;case 2:return[2]}}))}))}exports.activateUI=activateUI;function deactivateUI(iButtonCSSClassName,iPanelCSSClassName){if(iButtonCSSClassName===void 0){iButtonCSSClassName=""}if(iPanelCSSClassName===void 0){iPanelCSSClassName=""}return __awaiter(this,void 0,void 0,(function(){var activeButtonsJQ,panelsJQ;return __generator(this,(function(_a){switch(_a.label){case 0:activeButtonsJQ=$(iButtonCSSClassName+".active-button");if(!activeButtonsJQ.length)return[3,2];return[4,eDwEventMgr.get().fireEvent(eDwEvents_9.DeactivateUIOpEvent,activeButtonsJQ)];case 1:_a.sent();activeButtonsJQ.removeClass("active-button");_a.label=2;case 2:panelsJQ=hide(iPanelCSSClassName+".active",true).removeClass("active");panelsJQ.each((function(iIdx,iPanel){fixMenuPanelInwardToolbar($(iPanel),true)}));return[2,activeButtonsJQ]}}))}))}exports.deactivateUI=deactivateUI;function isIDInJQuery(iListJQ,iID){var inJQList=false;for(var key in iListJQ){if(iListJQ[key].id===iID){inJQList=true;break}}return inJQList}exports.isIDInJQuery=isIDInJQuery;function isStateOn(iID){return $(iID).hasClass("state-on-button")}exports.isStateOn=isStateOn;function resetToHomeView(iViewer){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){var resetCmd;return __generator(this,(function(_a){switch(_a.label){case 0:resetCmd=new eDwResetCmd(iViewer);return[4,eDwCommandMgr.get().run(resetCmd,"commit")];case 1:_a.sent();return[2]}}))}))})()}exports.resetToHomeView=resetToHomeView;function getViewerElementName(){return"edrawings-viewer"}exports.getViewerElementName=getViewerElementName;function getViewerElementID(){return"#"+getViewerElementName()}exports.getViewerElementID=getViewerElementID;function makeResult(iExcp){var result={ErrorCode:"UnknownError",ErrorData:[]};if(iExcp instanceof eDwResultError){result=iExcp.Result}else if(iExcp instanceof eDwAJAXError){result.ErrorCode=iExcp.ErrorCode;result.ErrorData=[iExcp.message]}else{result.ErrorCode=iExcp.name;result.ErrorData=[iExcp.message]}return result}exports.makeResult=makeResult;function viewFile(iModelName,iModelKey,iParams,iContainerName,iModelData){return __awaiter(this,void 0,void 0,(function(){function createViewer(iWebSocketEndpoint){if(iWebSocketEndpoint===""){return null}var streamAlways=iParams.StreamAlwaysConnected;var streamModes=eDwTypes_17.HC.StreamingMode;var webViewerInfo={};webViewerInfo.containerId=iContainerName;webViewerInfo.model=iModelKey;webViewerInfo.endpointUri=iWebSocketEndpoint;webViewerInfo.streamingMode=streamAlways?streamModes.Interactive:streamModes.All;webViewerInfo.streamingMode=iModelData?null:webViewerInfo.streamingMode;webViewerInfo.buffer=iModelData;webViewerInfo.boundingPreviewMode=eDwTypes_17.HC.BoundingPreviewMode.None;eDwEventMgr.get().addEventHandlerFunc(eDwEvents_9.GLContextLostEvent,c_onContextLost);var viewer=new eDwView(webViewerInfo,iParams);hide("#"+iContainerName,false);if(iModelName){$("#edrawings-filename-text").html(decodeURIComponent(iModelName))}var modelName=!iModelName&&iModelKey?iModelKey:iModelName;if(!modelName)return null;if(modelName.search(".zip")>-1){modelName=modelName.substring(0,modelName.length-4)}console.debugLog("ModelLoad","Created new edw viewer");return viewer}var wsEndPt,_a;return __generator(this,(function(_b){switch(_b.label){case 0:if(!iModelData)return[3,1];_a=null;return[3,3];case 1:return[4,eDwServiceMgr.get().getWebSocketEndpoint(iModelKey,iParams.WebSocketEndpoint)];case 2:_a=_b.sent();_b.label=3;case 3:wsEndPt=_a;return[2,createViewer(wsEndPt)]}}))}))}exports.viewFile=viewFile;function fixMenuPanelInwardToolbar(iPanelJQ,iToClear){if(iToClear===void 0){iToClear=false}if(iToClear){iPanelJQ.removeClass("edrawings-collided");return}if(iPanelJQ.hasClass("edrawings-hud-menu")){var panel=iPanelJQ[0];if(panel.scrollHeight>panel.clientHeight){iPanelJQ.addClass("edrawings-collided")}else{iPanelJQ.removeClass("edrawings-collided")}}else if(iPanelJQ.hasClass("edrawings-submenu")){var wrapperJQ=iPanelJQ.find(".edrawings-menu-panel-wrapper");var wasCollided=iPanelJQ.hasClass("edrawings-collided");if(iPanelJQ[0].scrollHeight>iPanelJQ[0].clientHeight&&iPanelJQ[0].scrollHeight-iPanelJQ[0].clientHeight>1||wrapperJQ[0].scrollHeight>wrapperJQ[0].clientHeight&&wrapperJQ[0].scrollHeight-wrapperJQ[0].clientHeight>1){if(!wasCollided){iPanelJQ.addClass("edrawings-collided")}iPanelJQ.addClass("edrawings-wiggle");setTimeout((function(){iPanelJQ.removeClass("edrawings-wiggle")}),0)}else{iPanelJQ.removeClass("edrawings-collided");if(wasCollided){fixMenuPanelInwardToolbar(iPanelJQ)}}}}exports.fixMenuPanelInwardToolbar=fixMenuPanelInwardToolbar;function positionMenuPanelArrowCollapseButton(iPanelJQ,iButtonJQ){if(!iPanelJQ.hasClass("edrawings-collapsed")){l_setMenuPanelArrowCollapseButtonPosition(iPanelJQ);fixMenuPanelInwardToolbar(iPanelJQ)}else{if(iButtonJQ){var arrowCollapseButtonJQ=iPanelJQ.find(".edrawings-menu-panel-arrow-collapse");var activeButtonRect=iButtonJQ[0].getBoundingClientRect();var arrowCollapseButtonRect=arrowCollapseButtonJQ[0].getBoundingClientRect();var diffTop=activeButtonRect.top-arrowCollapseButtonRect.top;l_setMenuPanelArrowCollapseButtonPosition(arrowCollapseButtonJQ,arrowCollapseButtonJQ.position().top+diffTop)}fixMenuPanelInwardToolbar(iPanelJQ,true)}}exports.positionMenuPanelArrowCollapseButton=positionMenuPanelArrowCollapseButton;function executeScrolling(iDiffX,iDiffY,iContentJQ,iBarJQ){var contentParentJQ=iContentJQ.parent();var leftButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-left)");var rightButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-right)");var upButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-up)");var downButtonWrapperJQ=contentParentJQ.find(".edrawings-arrow-wrapper:has(> .edrawings-arrow-down)");if(iContentJQ[0].scrollWidth>iContentJQ.width()){var scrollLeft=iContentJQ.scrollLeft();var newScrollLeft=scrollLeft+iDiffX;iContentJQ.scrollLeft(newScrollLeft);adjustScrollArrows(iContentJQ.scrollLeft(),iContentJQ[0].scrollWidth,iContentJQ.width(),true,leftButtonWrapperJQ,rightButtonWrapperJQ,iBarJQ)}if(iContentJQ[0].scrollHeight>iContentJQ.height()){var scrollTop=iContentJQ.scrollTop();var newScrollTop=scrollTop+iDiffY;iContentJQ.scrollTop(newScrollTop);adjustScrollArrows(iContentJQ.scrollTop(),iContentJQ[0].scrollHeight,iContentJQ.height(),false,upButtonWrapperJQ,downButtonWrapperJQ,iBarJQ)}return iDiffX!==0||iDiffY!==0}exports.executeScrolling=executeScrolling;function enableScrollOnTouch(ioUIHTMLEventMgr,iContentJqSel,iBarJqSel,iHandlerOnScroll){var _this=this;var contentJQ=$(iContentJqSel);var barJQ=iBarJqSel?$(iBarJqSel):undefined;var hasScrolled=false;var stopClickTarget;var stopClickPropagation=false;ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchstart",(function(iEventStart){hasScrolled=false;stopClickPropagation=false;stopClickTarget=undefined;var touchEventStart=iEventStart;var lastScreenX=touchEventStart.changedTouches[0].screenX;var lastScreenY=touchEventStart.changedTouches[0].screenY;ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchmove",(function(iEventMove){var touchEventMove=iEventMove;var xDiff=touchEventMove.changedTouches[0].screenX-lastScreenX;lastScreenX=touchEventMove.changedTouches[0].screenX;var yDiff=touchEventMove.changedTouches[0].screenY-lastScreenY;lastScreenY=touchEventMove.changedTouches[0].screenY;var updated=executeScrolling(-xDiff,-yDiff,contentJQ,barJQ);if(updated&&iHandlerOnScroll){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,iHandlerOnScroll()];case 1:_a.sent();return[2]}}))}))})()}hasScrolled=hasScrolled||updated}))}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchend",(function(iEvent){var touchEvent=iEvent;ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");if(hasScrolled){touchEvent.preventDefault();touchEvent.stopPropagation();stopClickPropagation=true;stopClickTarget=touchEvent.target}else{stopClickPropagation=false;stopClickTarget=undefined}hasScrolled=false}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"touchcancel",(function(iEvent){ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");hasScrolled=false;stopClickPropagation=false}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"mousedown",(function(iEvent){hasScrolled=false;stopClickPropagation=false;if(!eDwKeyMgr_5.eDwKeyMgr.isLMBPressed(iEvent)){return}var eventDown=iEvent;var lastScreenX=eventDown.screenX;var lastScreenY=eventDown.screenY;ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousemove");ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"mousemove",(function(iEventMove){var eventMove=iEventMove;var xDiff=eventMove.screenX-lastScreenX;var yDiff=eventMove.screenY-lastScreenY;lastScreenX=eventMove.screenX;lastScreenY=eventMove.screenY;var updated=executeScrolling(-xDiff,-yDiff,contentJQ,barJQ);if(updated&&iHandlerOnScroll){iHandlerOnScroll()}hasScrolled=hasScrolled||updated}))}));ioUIHTMLEventMgr.addEventHandler(iContentJqSel,"mouseup",(function(iEvent){ioUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousemove");if(hasScrolled){iEvent.stopImmediatePropagation();iEvent.preventDefault();stopClickPropagation=true;stopClickTarget=iEvent.target}else{stopClickPropagation=false;stopClickTarget=undefined}hasScrolled=false}));var propagationHandler=function(iEvent2){if(stopClickPropagation&&iEvent2.target===stopClickTarget){iEvent2.stopImmediatePropagation();iEvent2.preventDefault()}stopClickPropagation=false;stopClickTarget=undefined};var nameSpace=iContentJqSel.replace(/[\.\s]/g,"");var dataKey="click.edw."+nameSpace;contentJQ.off(dataKey,"*");contentJQ.on(dataKey,"*",propagationHandler)}exports.enableScrollOnTouch=enableScrollOnTouch;function disableScrollOnTouch(iUIHTMLEventMgr,iContentJqSel){iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchstart");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchmove");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchend");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"touchcancel");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousedown");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mousemove");iUIHTMLEventMgr.removeEventHandlers(iContentJqSel,"mouseup");var contentJQ=$(iContentJqSel);var nameSpace=iContentJqSel.replace(/[\.\s]/g,"");var dataKey="click.edw."+nameSpace;contentJQ.off(dataKey,"*")}exports.disableScrollOnTouch=disableScrollOnTouch;function adjustScrollArrows(iOffset,iRange,iVisibleRange,isHorizonatalScrolling,iDecreaseWrapperJQ,iIncreaseWrapperJQ,iBarJQ){if(iOffset<=0){iDecreaseWrapperJQ.addClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.addClass(isHorizonatalScrolling?"edrawings-removed-arrow-left":"edrawings-removed-arrow-up")}}else{iDecreaseWrapperJQ.removeClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.removeClass(isHorizonatalScrolling?"edrawings-removed-arrow-left":"edrawings-removed-arrow-up")}}if(iOffset+iVisibleRange>=iRange){iIncreaseWrapperJQ.addClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.addClass(isHorizonatalScrolling?"edrawings-removed-arrow-right":"edrawings-removed-arrow-down")}}else{iIncreaseWrapperJQ.removeClass("edrawings-disabled-button");if(iBarJQ){iBarJQ.removeClass(isHorizonatalScrolling?"edrawings-removed-arrow-right":"edrawings-removed-arrow-down")}}}exports.adjustScrollArrows=adjustScrollArrows;function getAsJQueryObj(iObj){return iObj?$(iObj):$()}exports.getAsJQueryObj=getAsJQueryObj;var l_generators={};function l_getAllDisplayStateCSSClasses(iHierNode){var classes="";for(var displayState in eDwNodeAttributes_4.NodeDisplayState){classes+="edrawings-"+iHierNode.Category+"-"+displayState.toLowerCase()+" "}return classes}function l_populatePanel(iViewer,iCategoryName,iListID,iPanelUIID,iAdditionalClasses){if(iAdditionalClasses===void 0){iAdditionalClasses=""}return __awaiter(this,void 0,void 0,(function(){var activeModelView,list,gen,_a,_b;return __generator(this,(function(_c){switch(_c.label){case 0:activeModelView=iViewer.getModel().getActiveModelView();if(!activeModelView||!activeModelView.Hierarchy)return[2];list=$(iListID);list.empty();gen=getUIGenerator(iPanelUIID);_b=(_a=list).append;return[4,gen.generateHTML(iAdditionalClasses)];case 1:_b.apply(_a,[_c.sent()]);return[2]}}))}))}function l_populateLayerPanel(iViewer){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,l_populatePanel(iViewer,"layer","#edrawings-layer-control-list","#edrawings-layer-control-menu")];case 1:_a.sent();return[2]}}))}))}function l_populateDebugPanel(iViewer){var list=$("#edrawings-debug-menu .edrawings-submenu-list");list.empty();var gen=getUIGenerator("#edrawings-debug-menu");var model=iViewer.getModel();var modelView=model.getActiveModelView();if(modelView&&modelView.Hierarchy){var layers=model.getLayers();for(var _i=0,layers_3=layers;_iiReferenceSide+iReferenceOffset){diff=iTargetSide+iTargetOffset-(iReferenceSide+iReferenceOffset)}return diff}function l_scrollToTarget(iTargetJQ,iPos,iAnimationSpeed,iStartPos){var _a;if(iAnimationSpeed===void 0){iAnimationSpeed="slow"}if(iStartPos===void 0){iStartPos="scrollTop"}if(!iTargetJQ)return;if(iAnimationSpeed==="none"){iTargetJQ[iStartPos](iPos)}else{iTargetJQ.animate((_a={},_a[iStartPos]=iPos,_a),iAnimationSpeed)}}}));define("eDwUnits",["require","exports"],(function(require,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.cDefaultAngleUnit=exports.cDefaultLengthUnit=exports.LengthTypeValues=exports.AngleTypeValues=void 0;exports.AngleTypeValues=["degree","radian"];exports.LengthTypeValues=["millimeter","centimeter","meter","inch","foot","footAndInch"];exports.cDefaultLengthUnit="millimeter";exports.cDefaultAngleUnit="degree"}));define("eDwView",["require","exports","eDwSelMgr","eDwXSectionMgr","eDwViewMgr","eDwTimer","eDwOperatorBaseDeps","eDwEventMgr","eDwHistoryMgr","eDwModel","eDwTypes","eDwEvents","eDwTouchOpsMgr","eDwTableMgr"],(function(require,exports,eDwSelMgr,eDwXSectionMgr,eDwViewMgr,eDwTimer,eDwOperatorBaseDeps_2,eDwEventMgr,eDwHistoryMgr,eDwModel,eDwTypes_18,eDwEvents_10,eDwTouchOpsMgr,eDwTableMgr){"use strict";var eDwView=function(){function eDwView(iViewerInfo,iFeatureOptions){this.mElemID=iViewerInfo.containerId||"";this.HCViewer=new eDwTypes_18.HC.WebViewer(iViewerInfo);this.mTimer=new eDwTimer;this.ViewerFeatureOpts=iFeatureOptions;this.mDrawMode=iFeatureOptions.RenderType||"ShadedWithEdges";this.OperatorMgr=new eDwOperatorBaseDeps_2.eDwOperatorMgr(this);this.TableMgr=new eDwTableMgr(this);var streamAll=this.HCViewer.getStreamingMode()===eDwTypes_18.HC.StreamingMode.All;var timeBeforeTimeout=streamAll?14400:120;var timeBeforeWarnTimeout=timeBeforeTimeout-10;this.HCViewer.setClientTimeout(timeBeforeTimeout,timeBeforeWarnTimeout);this.mInitCamera=null;this.mModelKey=iViewerInfo.model||"";this.setupWebViewer()}eDwView.prototype.getHCView=function(){return this.HCViewer.view};eDwView.prototype.getHCMarkupManager=function(){return this.HCViewer.markupManager};eDwView.prototype.getModel=function(){if(!this.mModel){this.mModel=new eDwModel(this)}return this.mModel};eDwView.prototype.processProductStructure=function(){return __awaiter(this,void 0,void 0,(function(){var model,activeModelView,modelViewDefCamera;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:this.mInitCamera=this.getHCView().getCamera();model=this.getModel();activeModelView=model.getActiveModelView();modelViewDefCamera=activeModelView.getDefaultCamera();if(modelViewDefCamera)this.mInitCamera=modelViewDefCamera;this.ViewMgr.setCamera(this.mInitCamera);$("#"+this.mElemID).trigger("edw:ModelDataLoadComplete",this);return[4,this.finishInit()];case 1:_a.sent();if(this.HCViewer.getStreamingMode()===eDwTypes_18.HC.StreamingMode.All){this.HCViewer.waitForIdle().then((function(){l_closeHCConnection(_this)}))}return[2]}}))}))};eDwView.prototype.setupWebViewer=function(){var _this=this;var processingSelection=false;var eventMgr=eDwEventMgr.get();function deprecatedCallback(iDeprecatedFuncName){var argArray=[];for(var key in arguments){argArray.push(arguments[key])}console.debugLog("Deprecated","Deprecated call: "+argArray.join("."))}this.mHCCallbacksObj={sceneReady:function(){console.debugLog("ViewerLoad","Scene ready");_this.HCViewer.resizeCanvas()},streamingActivated:function(){console.debugLog("Viewer","Streaming activated")},streamingDeactivated:function(){console.debugLog("Viewer","Streaming deactivated")},selection:function(iSelEvent){if(!processingSelection){processingSelection=true;try{(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){this.SelectionMgr.onSelection(iSelEvent);return[2]}))}))})()}catch(iException){}processingSelection=false}},timeoutWarning:function(iRemainingMinutes){console.debugLog("Viewer","Inactivity timeout pending in "+iRemainingMinutes+" minutes.");_this.mTimer.ellapsed();_this.mTimer.dumpToConsole()},timeout:function(){console.debugLog("Viewer","Inactivity timeout");_this.mTimer.ellapsed();_this.mTimer.dumpToConsole();(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.TimeoutEvent,this)];case 1:_a.sent();return[2]}}))}))})();l_closeHCConnection(_this)},modelLoadFailure:function(iModelName,iReason){console.warn("Model "+iModelName+" load failed: "+iReason);$("#"+_this.mElemID).trigger("edw:ModelLoadFailed",[_this,iModelName,iReason]);l_closeHCConnection(_this)},deprecated:deprecatedCallback,info:function(iInfoType,iMsg){console.debugLog("Debug",iInfoType.toString()+" "+iMsg)},missingModel:function(iModelPath){console.debugLog("Debug","Missing model: "+iModelPath);l_closeHCConnection(_this)},webGlContextLost:function(){console.debugLog("Debug","Browser lost GL context! Render incomplete!!");(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.GLContextLostEvent,this)];case 1:_a.sent();return[2]}}))}))})();l_closeHCConnection(_this)},assemblyTreeReady:function(){console.debugLog("ViewerLoad","Assembly tree ready.")},modelStructureReady:function(){console.debugLog("ViewerLoad","Model structure ready.");$("#"+_this.mElemID).trigger("edw:ModelLoaded",_this)},modelSwitched:function(){console.debugLog("ViewerLoad","Model switch done.");$("#"+_this.mElemID).trigger("edw:ModelLoaded",_this)},viewCreated:function(iHCView){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.ViewCreatedEvent,iHCView)];case 1:_a.sent();return[2]}}))}))})()},viewLoaded:function(iHCView){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.ViewLoadedEvent,iHCView)];case 1:_a.sent();return[2]}}))}))})()},viewDeleted:function(iHCView){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.ViewDeletedEvent,iHCView)];case 1:_a.sent();return[2]}}))}))})()},camera:function(iCamera){(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eventMgr.fireEvent(eDwEvents_10.CameraChangeEvent,iCamera)];case 1:_a.sent();return[2]}}))}))})()}};this.HCViewer.setCallbacks(this.mHCCallbacksObj);this.HCViewer.start()};eDwView.prototype.getInitCamera=function(){return this.mInitCamera};eDwView.prototype.getCurrModelKey=function(){return this.mModelKey};eDwView.prototype.unregister=function(){var _this=this;if(this.HCViewer)this.HCViewer.unsetCallbacks(this.mHCCallbacksObj);this.OperatorMgr.unregisterAll();(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.DoneEvent,this)];case 1:_a.sent();return[2]}}))}))})()};eDwView.prototype.destroy=function(){this.HCViewer.shutdown()};eDwView.prototype.setExplosionLevel=function(iLevel){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.HCViewer.explodeManager.setMagnitude(iLevel)];case 1:_a.sent();return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.ExplodeLevelChangeEvent,this,iLevel)];case 2:_a.sent();return[2]}}))}))})()};eDwView.prototype.getExplosionLevel=function(){return this.HCViewer.explodeManager.getMagnitude()};eDwView.prototype.getDrawMode=function(){return this.mDrawMode};eDwView.prototype.setDrawMode=function(iValue){var _this=this;var viewHC=this.getHCView();var settingsHC=viewHC.getHiddenLineSettings();switch(iValue){case"ShadedWithEdges":viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.WireframeOnShaded);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.WireframeOnShaded);break;case"Shaded":viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.Shaded);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.Shaded);break;case"HiddenLinesRemoved":settingsHC.setObscuredLineOpacity(0);viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.HiddenLine);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.HiddenLine);break;case"HiddenLinesVisible":settingsHC.setObscuredLineOpacity(.5);viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.HiddenLine);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.HiddenLine);break;case"Wireframe":settingsHC.setObscuredLineOpacity(1);viewHC.setDrawMode(eDwTypes_18.HC.DrawMode.HiddenLine);this.SelectionMgr.setColorForViewMode(eDwTypes_18.HC.DrawMode.HiddenLine);break;default:throw new Error("Unknown draw mode: "+iValue)}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.mDrawMode=iValue;return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.DrawModeChangeEvent,this,iValue)];case 1:_a.sent();return[2]}}))}))})()};eDwView.prototype.getPerspectiveMode=function(){return this.getHCView().getProjectionMode()===eDwTypes_18.HC.Projection.Perspective};eDwView.prototype.setPerspectiveMode=function(iValue){var _this=this;if(!iValue){this.getHCView().setProjectionMode(eDwTypes_18.HC.Projection.Orthographic)}else{this.getHCView().setProjectionMode(eDwTypes_18.HC.Projection.Perspective)}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.ProjModeChangeEvent,this,iValue)];case 1:_a.sent();return[2]}}))}))})();return iValue};eDwView.prototype.resetDrawMode=function(){this.setDrawMode(this.ViewerFeatureOpts.RenderType||"ShadedWithEdges")};eDwView.prototype.initializeManagers=function(){new eDwSelMgr(this);new eDwXSectionMgr(this);new eDwViewMgr(this);new eDwTouchOpsMgr(this)};eDwView.prototype.drawDebugBoundingBox=function(iBBox){return __awaiter(this,void 0,void 0,(function(){var modelHC,beautifulGreen,vmin,vmax,p0,p1,p2,p3,p4,p5,p6,p7,polylineData0,polylineData1,polylineData2,polylineData3,rgba,i,tmp,boxMesh,key,meshInstance;return __generator(this,(function(_a){switch(_a.label){case 0:modelHC=this.getModel().getHCModel();beautifulGreen=new eDwTypes_18.HC.Color(0,255,0);vmin=iBBox.min;vmax=iBBox.max;p0=new eDwTypes_18.HC.Point3(vmin.x,vmin.y,vmax.z);p1=new eDwTypes_18.HC.Point3(vmin.x,vmax.y,vmax.z);p2=new eDwTypes_18.HC.Point3(vmax.x,vmax.y,vmax.z);p3=new eDwTypes_18.HC.Point3(vmax.x,vmin.y,vmax.z);p4=new eDwTypes_18.HC.Point3(vmin.x,vmin.y,vmin.z);p5=new eDwTypes_18.HC.Point3(vmin.x,vmax.y,vmin.z);p6=new eDwTypes_18.HC.Point3(vmax.x,vmax.y,vmin.z);p7=new eDwTypes_18.HC.Point3(vmax.x,vmin.y,vmin.z);polylineData0=[p0.x,p0.y,p0.z,p1.x,p1.y,p1.z,p2.x,p2.y,p2.z,p3.x,p3.y,p3.z,p0.x,p0.y,p0.z];polylineData1=[p4.x,p4.y,p4.z,p5.x,p5.y,p5.z,p6.x,p6.y,p6.z,p7.x,p7.y,p7.z,p4.x,p4.y,p4.z];polylineData2=[p4.x,p4.y,p4.z,p0.x,p0.y,p0.z,p1.x,p1.y,p1.z,p5.x,p5.y,p5.z,p4.x,p4.y,p4.z];polylineData3=[p7.x,p7.y,p7.z,p3.x,p3.y,p3.z,p2.x,p2.y,p2.z,p6.x,p6.y,p6.z,p7.x,p7.y,p7.z];rgba=[];for(i=0;i<5;i++){tmp=[beautifulGreen.r,beautifulGreen.g,beautifulGreen.b,255];rgba=rgba.concat(tmp)}boxMesh=new eDwTypes_18.HC.MeshData;boxMesh.addPolyline(polylineData0,rgba);boxMesh.addPolyline(polylineData1,rgba);boxMesh.addPolyline(polylineData2,rgba);boxMesh.addPolyline(polylineData3,rgba);return[4,modelHC.createMesh(boxMesh)];case 1:key=_a.sent();meshInstance=new eDwTypes_18.HC.MeshInstanceData(key);return[2,modelHC.createMeshInstance(meshInstance)]}}))}))};eDwView.prototype.finishInit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_10.InitEvent,this)];case 1:_a.sent();this.HCViewer.sheetManager.setBackgroundSheetEnabled(false);eDwHistoryMgr.get().clear();return[2]}}))}))};return eDwView}();function l_closeHCConnection(iViewer){if(!iViewer)return;var viewHC=iViewer.getHCView();viewHC.setCamera(viewHC.getCamera());console.debugLog("Viewer","Closing viewer connection...");iViewer.HCViewer.closeConnection()}return eDwView}));define("eDwViewMgr",["require","exports","eDwEventMgr","eDwSelObj","eDwEvents","eDwTypes"],(function(require,exports,eDwEventMgr,eDwSelObj,eDwEvents_11,eDwTypes_19){"use strict";var eDwViewMgr=function(){function eDwViewMgr(iViewer){if(!iViewer)throw new Error("Must have viewer object");iViewer.ViewMgr=this;this.mViewAnimationIndex=0;this.mViewAnimationActive=false;this.mAnimationTimeOutID=-1;this.mViewer=iViewer}eDwViewMgr.prototype.start=function(){var _this=this;if(this.mViewer.getModel().isDrawing())return;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_11.StartAnimationEvent,this.mViewer)];case 1:_a.sent();return[2]}}))}))})();this.mViewAnimationActive=true;this.animateNextView()};eDwViewMgr.prototype.stop=function(){var _this=this;this.mViewAnimationActive=false;if(this.mAnimationTimeOutID>-1){window.clearTimeout(this.mAnimationTimeOutID);this.mAnimationTimeOutID=-1}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_11.StopAnimationEvent,this.mViewer)];case 1:_a.sent();return[2]}}))}))})()};eDwViewMgr.prototype.reset=function(){this.stop();this.mViewAnimationIndex=0};eDwViewMgr.prototype.isActive=function(){return this.mViewAnimationActive};eDwViewMgr.prototype.setViewOrientation=function(iEyeDirHC,iDuration){var _this=this;if(iDuration===void 0){iDuration=400}var centerHC=this.mViewer.getModel().getBoundingBox().center();var viewHC=this.mViewer.getHCView();var cameraHC=viewHC.getCamera().copy();var upVecHC=cameraHC.getUp();var eyeVecHC=cameraHC.getTarget().subtract(cameraHC.getPosition());var dist=eyeVecHC.length();switch(iEyeDirHC){case eDwTypes_19.HC.ViewOrientation.Front:eyeVecHC.set(0,0,1).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Back:eyeVecHC.set(0,0,-1).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Left:eyeVecHC.set(-1,0,0).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Right:eyeVecHC.set(1,0,0).scale(dist);upVecHC.set(0,1,0);break;case eDwTypes_19.HC.ViewOrientation.Top:eyeVecHC.set(0,1,0).scale(dist);upVecHC.set(0,0,-1);break;case eDwTypes_19.HC.ViewOrientation.Bottom:eyeVecHC.set(0,-1,0).scale(dist);upVecHC.set(0,0,1);break;case eDwTypes_19.HC.ViewOrientation.Iso:eyeVecHC.set(1,1,1).normalize().scale(dist);upVecHC.set(-.408204,.816541,-.408204);break;default:throw new Error("Unsupported orientation: "+iEyeDirHC)}this.adjustOrientation(eyeVecHC,upVecHC);cameraHC.setPosition(eyeVecHC.add(centerHC));cameraHC.setUp(upVecHC);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,viewHC.fitWorld(iDuration,cameraHC)];case 1:_a.sent();return[2]}}))}))})();return cameraHC};eDwViewMgr.prototype.setViewOrientationToDirection=function(normal){var camera=this.mViewer.getHCView().getCamera();var position=camera.getPosition();var target=camera.getTarget();var up=camera.getUp();var delta=target.subtract(position);var distance=delta.length();var bbox=this.mViewer.getModel().getBoundingBox();var bbox_min=bbox.min;var bbox_max=bbox.max;target=eDwTypes_19.HC.Point3.add(bbox_max,bbox_min).scale(.5);var eyeVec=eDwTypes_19.HC.Point3.scale(normal,distance);position=eDwTypes_19.HC.Point3.add(target,eyeVec);var vTest=new eDwTypes_19.HC.Point3(1,0,0);var isParallel=eDwTypes_19.HC.Point3.dot(vTest,normal);if(Math.abs(Math.abs(isParallel)-1)<.001){vTest.set(0,1,0);var vec=eDwTypes_19.HC.Point3.cross(normal,vTest);vec=vec.normalize();up=eDwTypes_19.HC.Point3.cross(vec,normal);up=up.normalize()}else{up=eDwTypes_19.HC.Point3.cross(normal,vTest);up=up.normalize()}var dotProd=eDwTypes_19.HC.Point3.dot(up,new eDwTypes_19.HC.Point3(1,0,0));if(Math.abs(Math.abs(dotProd)-1)<.001&&dotProd<0){up=up.negate()}dotProd=eDwTypes_19.HC.Point3.dot(up,new eDwTypes_19.HC.Point3(0,1,0));if(Math.abs(Math.abs(dotProd)-1)<.001&&dotProd<0){up=up.negate()}dotProd=eDwTypes_19.HC.Point3.dot(up,new eDwTypes_19.HC.Point3(0,0,1));if(Math.abs(Math.abs(dotProd)-1)<.001&&dotProd<0){up=up.negate()}camera.setPosition(position);camera.setTarget(target);camera.setUp(up);this.setCamera(camera,500);return camera};eDwViewMgr.prototype.setCamera=function(iCameraHC,iTimeInMS){if(iTimeInMS===void 0){iTimeInMS=400}if(!iCameraHC)return false;var cameraHC=iCameraHC.copy();cameraHC.setProjection(this.mViewer.getHCView().getCamera().getProjection());return this.mViewer.getHCView().setCamera(cameraHC,iTimeInMS)};eDwViewMgr.prototype.enableAmbientOcclusion=function(iEnable){var _this=this;this.mViewer.getHCView().setAmbientOcclusionEnabled(iEnable);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,eDwEventMgr.get().fireEvent(eDwEvents_11.AmbientOcclChangeEvent,this,iEnable)];case 1:_a.sent();return[2]}}))}))})()};eDwViewMgr.prototype.fitScreenToNodes=function(iNodeIDsHC,ioCamera){return __awaiter(this,void 0,void 0,(function(){var model,bboxHC,subtract,viewVec,centerHC,add,ratio,boxMaxLen;return __generator(this,(function(_a){switch(_a.label){case 0:if(!ioCamera)return[2];model=this.mViewer.getModel();return[4,model.getBoundingBoxOfIDsHC(iNodeIDsHC)];case 1:bboxHC=_a.sent();if(bboxHC.isDegenerate())return[2];subtract=eDwTypes_19.HC.Point3.subtract;viewVec=subtract(ioCamera.getPosition(),ioCamera.getTarget());centerHC=bboxHC.center().copy();ioCamera.setTarget(centerHC);add=eDwTypes_19.HC.Point3.add;ioCamera.setPosition(add(centerHC,viewVec));ratio=ioCamera.getWidth()/ioCamera.getHeight();if(this.mViewer.getModel().isDrawing()){bboxHC.min.z=bboxHC.max.z=0}boxMaxLen=bboxHC.extents().length();ioCamera.setHeight(boxMaxLen);ioCamera.setWidth(boxMaxLen*ratio);this.setCamera(ioCamera,400);return[2]}}))}))};eDwViewMgr.prototype.pickFromPoint=function(iPnt2DHC,iPickConfig){return __awaiter(this,void 0,void 0,(function(){var selObjHC,toLocalTransformHC,viewHC,iExcp_17;return __generator(this,(function(_a){switch(_a.label){case 0:selObjHC=eDwTypes_19.HC.Selection.SelectionItem.create();toLocalTransformHC=new eDwTypes_19.HC.Matrix;_a.label=1;case 1:_a.trys.push([1,3,,4]);viewHC=this.mViewer.getHCView();return[4,viewHC.pickFromPoint(iPnt2DHC,iPickConfig)];case 2:selObjHC=_a.sent();console.debugLog("eDwViewMgr","eDwViewMgr.pickFromPoint() - "+selObjHC.getNodeId()+" - "+JSON.stringify(iPnt2DHC));console.assert(!isNaN(toLocalTransformHC.m[0]),"Not number before");toLocalTransformHC=eDwSelObj.getLocalTransform(selObjHC,this.mViewer.getModel());console.assert(!isNaN(toLocalTransformHC.m[0]),"Not number after");return[3,4];case 3:iExcp_17=_a.sent();console.debugLog("eDwViewMgr","eDwViewMgr.pickFromPoint() failed - "+iExcp_17.message);return[3,4];case 4:console.assert(!isNaN(toLocalTransformHC.m[0]),"Not number after 2");return[2,new eDwSelObj(selObjHC,toLocalTransformHC)]}}))}))};eDwViewMgr.prototype.onCameraUpdate=function(){this.mViewAnimationIndex+=1;if(this.mViewAnimationIndex>=eDwViewMgr.viewAnimations.length){this.mViewAnimationIndex=0;this.mViewAnimationActive=false;this.stop()}if(this.mViewAnimationActive){this.animateNextView()}};eDwViewMgr.prototype.animateNextView=function(){var _this=this;if(this.mViewAnimationActive){this.setViewOrientation(eDwViewMgr.viewAnimations[this.mViewAnimationIndex],2e3);this.mAnimationTimeOutID=window.setTimeout((function(){_this.onCameraUpdate()}),2e3)}};eDwViewMgr.prototype.adjustOrientation=function(ioEveVecHC,ioUpVecHC){if(this.mViewer.getModel().getProperty("zUp")==="true"){cCamZUpMat.transform(ioEveVecHC,ioEveVecHC);cCamZUpMat.transform(ioUpVecHC,ioUpVecHC)}};eDwViewMgr.viewAnimations=[eDwTypes_19.HC.ViewOrientation.Front,eDwTypes_19.HC.ViewOrientation.Back,eDwTypes_19.HC.ViewOrientation.Left,eDwTypes_19.HC.ViewOrientation.Right,eDwTypes_19.HC.ViewOrientation.Bottom,eDwTypes_19.HC.ViewOrientation.Top,eDwTypes_19.HC.ViewOrientation.Iso];return eDwViewMgr}();var cCamZUpMat=eDwTypes_19.HC.Matrix.createFromArray([0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,1]);return eDwViewMgr}));define("eDwXSectionMgr",["require","exports","eDwXSectionOperator","eDwGeomUtils","eDwTypes","eDwTypes"],(function(require,exports,eDwXSectionOperator,eDwGeomUtils,eDwTypes_20,eDwTypes_21){"use strict";var eDwXSectionMgr=function(){function eDwXSectionMgr(iViewer){iViewer.XSectionMgr=this;this.mViewer=iViewer;var xSectionOp=new eDwXSectionOperator(iViewer);this.mXSectionOpID=iViewer.OperatorMgr.registerCustomOperator(xSectionOp);this.HCXSectionMgr=iViewer.HCViewer.cuttingManager;this.SectionCapVisibility=false;this.mXSectionIndex=eDwTypes_20.SectionPlaneOrientation.XY.Index;this.mSectionVisibility=true;this.mSectionsVisibilityState=[false,false,false]}eDwXSectionMgr.prototype.unregister=function(){this.mViewer.OperatorMgr.unregisterCustomOperatorByID(this.mXSectionOpID);this.mViewer.XSectionMgr=null};eDwXSectionMgr.prototype.turnOnSectionPlane=function(iOn){var _this=this;if(this.getXSectionHC()){if(iOn){(function(){return __awaiter(_this,void 0,void 0,(function(){var ret;return __generator(this,(function(_a){switch(_a.label){case 0:ret=this.mViewer.OperatorMgr.push(this.mXSectionOpID);console.debugLog("Section","Section plane operator push ret = "+ret);return[4,this.HCXSectionMgr.setCappingGeometryVisibility(true)];case 1:_a.sent();return[2]}}))}))})()}else{var opID=this.mViewer.OperatorMgr.pop();console.debugLog("Section","Popped op ID = "+opID+" xSection op ID = "+this.mXSectionOpID)}}};eDwXSectionMgr.prototype.activateCurrent=function(){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.getXSectionHC().activate()];case 1:_a.sent();return[4,this.setToCurrentSectionPlane()];case 2:_a.sent();if(!!this.mSectionVisibility)return[3,4];return[4,this.updateSectionVisibility(false)];case 3:_a.sent();_a.label=4;case 4:return[2]}}))}))})()};eDwXSectionMgr.prototype.deactivateCurrent=function(){var _this=this;this.mSectionsVisibilityState=[false,false,false];(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.getXSectionHC().deactivate()];case 1:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.isCurrentActive=function(){return this.getXSectionHC().isActive()};Object.defineProperty(eDwXSectionMgr.prototype,"SectionIndex",{get:function(){return this.mXSectionIndex},enumerable:false,configurable:true});eDwXSectionMgr.prototype.setSectionPlane=function(ioSection,iAllowActivation){if(iAllowActivation===void 0){iAllowActivation=true}return __awaiter(this,void 0,void 0,(function(){var bbox,bboxExtents,sectionHC,boxCenter,sectionPlane,minPlanePt,maxPlanePt,vec,centerPt,dir,mirrorPlaneNormal,mirrorPlane,maxOnPlnPt,minOnPlnPt,mirrorPlaneDist,distDir,revDistDir,pts;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.mViewer.getModel().calculateBoundingBox()];case 1:bbox=_a.sent();bboxExtents=bbox.extents();if(!ioSection||bboxExtents.equals(eDwTypes_21.HC.Point3.zero()))return[2];sectionHC=this.getXSectionHC();if(!(ioSection.Index!==this.mXSectionIndex))return[3,6];if(!sectionHC)return[3,5];if(!sectionHC.isActive())return[3,3];return[4,sectionHC.deactivate()];case 2:_a.sent();_a.label=3;case 3:return[4,this.HCXSectionMgr.refreshPlaneGeometry()];case 4:_a.sent();_a.label=5;case 5:this.mXSectionIndex=ioSection.Index;sectionHC=this.getXSectionHC();_a.label=6;case 6:boxCenter=bbox.center();if(!(sectionHC.getCount()<1))return[3,9];sectionPlane=ioSection.Plane.copy();sectionPlane.d=-sectionPlane.distanceToPoint(boxCenter);minPlanePt=eDwGeomUtils.dropPointOnPlane(bbox.min,sectionPlane);maxPlanePt=eDwGeomUtils.dropPointOnPlane(bbox.max,sectionPlane);vec=maxPlanePt.copy().subtract(minPlanePt);vec=vec.scale(.55);centerPt=eDwGeomUtils.dropPointOnPlane(boxCenter,sectionPlane);dir=sectionPlane.normal.copy();centerPt=centerPt.add(dir.scale(sectionPlane.d));mirrorPlaneNormal=eDwTypes_21.HC.Point3.zero();eDwTypes_21.HC.Util.oneVectorCross(sectionPlane.normal.copy(),mirrorPlaneNormal);mirrorPlane=eDwTypes_21.HC.Plane.createFromPointAndNormal(centerPt,mirrorPlaneNormal);maxOnPlnPt=eDwTypes_21.HC.Point3.add(centerPt,vec);minOnPlnPt=eDwTypes_21.HC.Point3.add(centerPt,vec.scale(-1));mirrorPlaneDist=mirrorPlane.distanceToPoint(maxOnPlnPt);distDir=mirrorPlaneNormal.copy().scale(2*mirrorPlaneDist);revDistDir=distDir.copy().scale(-1);pts=[];pts.push(minOnPlnPt);pts.push(eDwTypes_21.HC.Point3.add(maxOnPlnPt,revDistDir));pts.push(maxOnPlnPt);pts.push(eDwTypes_21.HC.Point3.add(minOnPlnPt,distDir));sectionHC=this.getXSectionHC();return[4,sectionHC.addPlane(sectionPlane,pts)];case 7:_a.sent();return[4,sectionHC.setColor(eDwTypes_21.HC.Color.createFromFloat(0,1,0))];case 8:_a.sent();_a.label=9;case 9:return[4,this.updateSectionVisibility(this.mSectionVisibility)];case 10:_a.sent();return[4,this.HCXSectionMgr.setStandinGeometryPickable(true)];case 11:_a.sent();return[2]}}))}))};eDwXSectionMgr.prototype.flipSectionPlane=function(){var _this=this;var sectionHC=this.getXSectionHC();if(!sectionHC)return;var sectionPlane=sectionHC.getPlane(0);if(!sectionPlane)return;sectionPlane.normal.negate();sectionPlane.d=-sectionPlane.d;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,sectionHC.updatePlane(0,sectionPlane)];case 1:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.setViewToSectionPlane=function(){var sectionHC=this.getXSectionHC();if(!sectionHC)return null;var sectionPlane=sectionHC.getPlane(0);if(!sectionPlane)return null;return this.mViewer.ViewMgr.setViewOrientationToDirection(sectionPlane.normal.copy())};eDwXSectionMgr.prototype.moveCurrentAlongNormal=function(iDistVec){var _this=this;var camera=this.mViewer.getHCView().getCamera();var camPosition=camera.getPosition();var camTarget=camera.getTarget();var camUp=camera.getUp();var camZ=camTarget.subtract(camPosition);camZ=camZ.normalize();var camY=camUp.normalize();var camX=eDwTypes_21.HC.Point3.cross(camZ,camY);var realVec=camX.scale(iDistVec.x).add(camY.scale(iDistVec.y));realVec.add(camZ.scale(iDistVec.z));var sectionHC=this.getXSectionHC();var sectionPlaneHC=sectionHC.getPlane(0);var normal=sectionPlaneHC.normal.copy();normal=normal.normalize();var distance=eDwTypes_21.HC.Point3.dot(realVec,normal);if(Math.abs(distance)<1e-6)return;sectionPlaneHC.d-=distance;var lenVec=normal.scale(distance);var newPosMat=new eDwTypes_21.HC.Matrix;newPosMat=newPosMat.setTranslationComponent(lenVec.x,lenVec.y,lenVec.z);(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,sectionHC.updatePlane(0,sectionPlaneHC,newPosMat,true,false)];case 1:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.disableSectionCapVisibility=function(iDisable){this.setSectionCapVisibility(iDisable?false:this.mEnableSectionCaps)};eDwXSectionMgr.prototype.projectPoint=function(iPnt){var sectionHC=this.getXSectionHC();var sectionPlaneHC=sectionHC.getPlane(0);return eDwGeomUtils.dropPointOnPlane(iPnt,sectionPlaneHC)};eDwXSectionMgr.prototype.getXSectionHC=function(){return this.HCXSectionMgr.getCuttingSection(this.mXSectionIndex)};eDwXSectionMgr.prototype.setSectionCapVisibility=function(iEnable){var _this=this;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.HCXSectionMgr.setCappingFaceColor(iEnable?cSectionCapFaceColor:null)];case 1:_a.sent();return[4,this.HCXSectionMgr.setCappingLineColor(iEnable?null:cSectionCapOutlineColor)];case 2:_a.sent();return[2]}}))}))})()};eDwXSectionMgr.prototype.updateSectionVisibility=function(iVisible){return __awaiter(this,void 0,void 0,(function(){var activePlaneX,isSectionVisible,iExcp_18;return __generator(this,(function(_a){switch(_a.label){case 0:activePlaneX=this.getXSectionHC();activePlaneX.setOpacity(iVisible?cSectionPlaneOpacity:0);isSectionVisible=this.mSectionsVisibilityState[this.mXSectionIndex];this.mSectionsVisibilityState[this.mXSectionIndex]=iVisible;if(!iVisible)return[3,7];if(!(activePlaneX.isActive()&&isSectionVisible))return[3,4];_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,activePlaneX.deactivate()];case 2:_a.sent();return[3,4];case 3:iExcp_18=_a.sent();return[3,4];case 4:return[4,this.HCXSectionMgr.refreshPlaneGeometry()];case 5:_a.sent();return[4,activePlaneX.activate()];case 6:_a.sent();_a.label=7;case 7:return[2]}}))}))};eDwXSectionMgr.prototype.setToCurrentSectionPlane=function(){return __awaiter(this,void 0,void 0,(function(){var orientation,orientations,_a,_b,_i,orientationName;return __generator(this,(function(_c){switch(_c.label){case 0:orientations=eDwTypes_20.SectionPlaneOrientation;_a=[];for(_b in orientations)_a.push(_b);_i=0;_c.label=1;case 1:if(!(_i<_a.length))return[3,4];orientationName=_a[_i];orientation=orientations[orientationName];if(!(orientation.Index===this.mXSectionIndex))return[3,3];return[4,this.setSectionPlane(orientation)];case 2:_c.sent();return[2];case 3:_i++;return[3,1];case 4:return[2]}}))}))};Object.defineProperty(eDwXSectionMgr.prototype,"SectionCapVisibility",{get:function(){return this.mEnableSectionCaps},set:function(iEnable){this.mEnableSectionCaps=iEnable;this.setSectionCapVisibility(iEnable)},enumerable:false,configurable:true});Object.defineProperty(eDwXSectionMgr.prototype,"SectionVisibility",{set:function(iVisible){var _this=this;this.mSectionVisibility=iVisible;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,this.updateSectionVisibility(this.mSectionVisibility)];case 1:_a.sent();return[2]}}))}))})()},enumerable:false,configurable:true});return eDwXSectionMgr}();var cSectionPlaneOpacity=.3;var cSectionCapFaceColor=new eDwTypes_21.HC.Color(128,128,128);var cSectionCapOutlineColor=new eDwTypes_21.HC.Color(255,0,0);return eDwXSectionMgr}));define("eDwXSectionOperator",["require","exports","eDwTypes","eDwOperatorBaseDeps","eDwCommandMgr","eDwMoveSectionPlaneCmd","utils"],(function(require,exports,eDwTypes_22,eDwOperatorBaseDeps_3,eDwCommandMgr,eDwMoveSectionPlaneCmd,utils){"use strict";var eDwXSectionOperator=function(_super){__extends(eDwXSectionOperator,_super);function eDwXSectionOperator(iViewer){return _super.call(this,iViewer)||this}eDwXSectionOperator.prototype.onActivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.onActivate.call(this)];case 1:_a.sent();this.Viewer.XSectionMgr.activateCurrent();return[2]}}))}))};eDwXSectionOperator.prototype.onDeactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:this.Viewer.XSectionMgr.deactivateCurrent();return[4,_super.prototype.onDeactivate.call(this)];case 1:_a.sent();return[2]}}))}))};eDwXSectionOperator.prototype.onMouseDown=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var selObj,selObjNodeIDHC,sectionMgr,typeOfSel,objHC,sectionMgrHC;var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:if(!ioMouseEvent||!this.Viewer.XSectionMgr.isCurrentActive()){ioMouseEvent.setHandled(true);return[2]}return[4,eDwOperatorBaseDeps_3.eDwBaseOperator.getPickResult(ioMouseEvent,this.Viewer.ViewMgr)];case 1:selObj=_a.sent();selObjNodeIDHC=selObj.getIDHC();if(utils.isNaN(selObjNodeIDHC)||selObjNodeIDHC>=0){ioMouseEvent.setHandled(false);return[2]}return[4,_super.prototype.onMouseDown.call(this,ioMouseEvent)];case 2:_a.sent();sectionMgr=this.Viewer.XSectionMgr;sectionMgr.disableSectionCapVisibility(true);ioMouseEvent.setHandled(true);if(selObjNodeIDHC){typeOfSel=selObj.getSelectionType();objHC=typeOfSel===eDwTypes_22.HC.SelectionType.None?null:selObj;console.debugLog("Section","sel obj = "+JSON.stringify(objHC));sectionMgrHC=this.Viewer.XSectionMgr.HCXSectionMgr;if(sectionMgrHC.getCuttingSectionFromNodeId(selObjNodeIDHC)){this.mSectionDragPtHC=this.screenToWorld(ioMouseEvent.getPosition())||this.mSectionDragPtHC}}(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!this.mMoveSectionCmd)return[3,2];return[4,this.mMoveSectionCmd.cancel()];case 1:_a.sent();_a.label=2;case 2:this.mMoveSectionCmd=new eDwMoveSectionPlaneCmd(this.Viewer);return[2]}}))}))})();return[2]}}))}))};eDwXSectionOperator.prototype.onMouseMove=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var crossSectionMgr,pos2DHC,pnt3DHC,delta;return __generator(this,(function(_a){ioMouseEvent.setHandled(false);crossSectionMgr=this.Viewer.XSectionMgr;if(!crossSectionMgr.isCurrentActive()){return[2]}if(this.CurrInputInfo&&this.mSectionDragPtHC){pos2DHC=ioMouseEvent.getPosition();pnt3DHC=this.screenToWorld(pos2DHC);if(!pnt3DHC)return[2];delta=eDwTypes_22.HC.Point3.subtract(pnt3DHC,this.mSectionDragPtHC);this.Viewer.XSectionMgr.moveCurrentAlongNormal(delta);this.mSectionDragPtHC=pnt3DHC;ioMouseEvent.setHandled(true)}return[2]}))}))};eDwXSectionOperator.prototype.onMouseUp=function(ioMouseEvent){return __awaiter(this,void 0,void 0,(function(){var _this=this;return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.onMouseUp.call(this,ioMouseEvent)];case 1:_a.sent();this.Viewer.XSectionMgr.disableSectionCapVisibility(false);ioMouseEvent.setHandled(false);delete this.mSectionDragPtHC;(function(){return __awaiter(_this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:if(!this.mMoveSectionCmd)return[3,2];return[4,eDwCommandMgr.get().run(this.mMoveSectionCmd,"commit")];case 1:_a.sent();_a.label=2;case 2:delete this.mMoveSectionCmd;return[2]}}))}))})();return[2]}}))}))};eDwXSectionOperator.prototype.needsSelection=function(iEventType){return iEventType===eDwTypes_22.HC.EventType.MouseDown||iEventType===eDwTypes_22.HC.EventType.TouchStart};eDwXSectionOperator.prototype.screenToWorld=function(iPos2DHC){var viewHC=this.Viewer.getHCView();var normScrPos2DHC=viewHC.pointToWindowPosition(iPos2DHC);var inPnt3DHC=new eDwTypes_22.HC.Point3(normScrPos2DHC.x,normScrPos2DHC.y,0);var projMatHC=viewHC.getProjectionMatrix();projMatHC.m[15]=1;var invMatHC=eDwTypes_22.HC.Matrix.inverse(projMatHC);if(!invMatHC)return null;var tMatHC=invMatHC.transpose();var worldPnt3D=eDwTypes_22.HC.Point3.zero();var div=inPnt3DHC.x*tMatHC.m[3]+inPnt3DHC.y*tMatHC.m[7]+inPnt3DHC.z*tMatHC.m[11]+tMatHC.m[15];worldPnt3D.x=(inPnt3DHC.x*tMatHC.m[0]+inPnt3DHC.y*tMatHC.m[1]+inPnt3DHC.z*tMatHC.m[2]+tMatHC.m[3])/div;worldPnt3D.y=(inPnt3DHC.x*tMatHC.m[4]+inPnt3DHC.y*tMatHC.m[5]+inPnt3DHC.z*tMatHC.m[6]+tMatHC.m[7])/div;worldPnt3D.z=(inPnt3DHC.x*tMatHC.m[8]+inPnt3DHC.y*tMatHC.m[9]+inPnt3DHC.z*tMatHC.m[10]+tMatHC.m[11])/div;return worldPnt3D};return eDwXSectionOperator}(eDwOperatorBaseDeps_3.eDwBaseOperator);return eDwXSectionOperator}));define("eDwZoomToFitCmd",["require","exports","eDwSupportsHistoryCmd"],(function(require,exports,eDwSupportsHistoryCmd){"use strict";var eDwZoomToFitCmd=function(_super){__extends(eDwZoomToFitCmd,_super);function eDwZoomToFitCmd(iViewer,iNodeID,iCamera){var _this=_super.call(this,iViewer)||this;_this.mInitialCamera=iCamera.copy();_this.mFinalCamera=iCamera.copy();_this.mNodeIDHC=iNodeID;return _this}eDwZoomToFitCmd.prototype.undo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.undo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.ViewMgr.setCamera(this.mInitialCamera);return[2,true]}}))}))};eDwZoomToFitCmd.prototype.redo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.redo.call(this)];case 1:if(!_a.sent())return[2,false];this.mViewer.ViewMgr.setCamera(this.mFinalCamera);return[2,true]}}))}))};eDwZoomToFitCmd.prototype.commit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){switch(_a.label){case 0:return[4,_super.prototype.commit.call(this)];case 1:_a.sent();return[4,this.mViewer.ViewMgr.fitScreenToNodes([this.mNodeIDHC],this.mFinalCamera)];case 2:_a.sent();return[2]}}))}))};Object.defineProperty(eDwZoomToFitCmd.prototype,"Aggregable",{get:function(){return true},enumerable:false,configurable:true});return eDwZoomToFitCmd}(eDwSupportsHistoryCmd);return eDwZoomToFitCmd}));requirejs.config({baseUrl:"./js/3rdParty",paths:{jquery:"jquery.min","jquery-ui":"jquery-ui.min","jquery.fullscreen":"jquery.fullscreen.min","jquery.iframe-transport":"jquery.iframe-transport","jquery.fileupload":"jquery.fileupload","solidworks.web":"solidworks.web"},map:{"jquery.fileupload":{"jquery-ui/ui/widget":"jquery-ui"}},shim:{eDrawingsBase:{deps:["jquery"]},"jquery-ui":{deps:["jquery"]},"jquery.fullscreen":{deps:["jquery"]},"jquery.iframe-transport":{deps:["jquery"]},"jquery-ajax-native":{deps:["jquery"]}}});requirejs(["eDrawingsWebViewer"],(function(eDwWebViewer){console.excludeDebugLogCategories=["UIEvents","BaseSelOp","Operator"];eDwWebViewer.start()}));define("utils",["require","exports"],(function(require,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.makeArray=exports.getFirstMatchedMethodObj=exports.formatString=exports.ReversibleStringEnum=exports.deepCopyArray=exports.getExtension=exports.isEqual=exports.isNumber=exports.isNaN=exports.appendToArray=exports.isOfType=exports.getObjectTypeName=exports.isInstanceOf=exports.populateMixinObjectFromClasses=exports.populateMixinObject=exports.MixinBase=exports.getUint8Array=exports.forAll=void 0;function forAll(iFunc,iDictionary){if(!iDictionary)return;Object.keys(iDictionary).forEach((function(iKeyString){var key=parseInt(iKeyString,10);iFunc(key,iDictionary[key])}))}exports.forAll=forAll;function getUint8Array(iBase64EncodedString){var binString=window.atob(iBase64EncodedString);var len=binString.length;var bytes=new Uint8Array(len);for(var i=0;i-1?true:false}return iInstance instanceof iConstructor?true:isMixinInstance()}exports.isInstanceOf=isInstanceOf;function getObjectTypeName(iObj){if(!iObj)return"";return iObj.constructor.toString().split(" ")[1].split("(")[0]}exports.getObjectTypeName=getObjectTypeName;function isOfType(iArg,iDiscriminator){var argType=typeof iArg;return iArg&&(argType==="object"||argType==="function")?iDiscriminator in iArg:false}exports.isOfType=isOfType;function appendToArray(iElemForArray,ioArray){if(!iElemForArray||!ioArray)return;if(iElemForArray instanceof Promise){ioArray.push(iElemForArray.catch((function(iExcp){return iExcp})))}else{ioArray.push(iElemForArray)}}exports.appendToArray=appendToArray;function isNaN(iInput){return!isNumber(iInput)}exports.isNaN=isNaN;var cOrigNaN=window.isNaN;window.isNaN=isNaN;function isNumber(iInput){return typeof iInput==="number"&&(iInput===0||!cOrigNaN(iInput))?true:false}exports.isNumber=isNumber;function isEqual(iFirstObj,iSecondObj,iStrict){if(iStrict===void 0){iStrict=false}if(iFirstObj===iSecondObj)return true;if(!iFirstObj||!iSecondObj)return false;if(typeof iFirstObj!==typeof iSecondObj)return false;var numKeys=Object.keys(iFirstObj).length;if(iStrict&&numKeys!==Object.keys(iSecondObj).length)return false;var matchKeys=0;for(var key in iFirstObj){if(iFirstObj[key]===iSecondObj[key])++matchKeys}return numKeys===matchKeys?true:false}exports.isEqual=isEqual;function getExtension(iString){if(!iString)return"";var pos=iString.lastIndexOf(".");return pos===-1?"":iString.substr(pos+1).toLowerCase()}exports.getExtension=getExtension;function deepCopyArray(iArray){return JSON.parse(JSON.stringify(iArray))}exports.deepCopyArray=deepCopyArray;var ReversibleStringEnum=function(){function ReversibleStringEnum(iReversibleMapData){this.mMapping=iReversibleMapData;this.mReverseMapping={};for(var key in iReversibleMapData){this.mReverseMapping[iReversibleMapData[key]]=key}}ReversibleStringEnum.prototype.getValue=function(iKey){var value=this.mMapping[iKey];return value?value:this.mReverseMapping[iKey]};return ReversibleStringEnum}();exports.ReversibleStringEnum=ReversibleStringEnum;function formatString(iFormat){var iArgs=[];for(var _i=1;_i-1?iKey:null}));return props.length?iObj[props[0]]:null}exports.getFirstMatchedMethodObj=getFirstMatchedMethodObj;function makeArray(iObj){return iObj?Object.keys(iObj).map((function(iKey){return iObj[iKey]})):[]}exports.makeArray=makeArray})); // Copyright 2018-2021 Dassault Systemes SolidWorks Corporation. All rights reserved. diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.jpg b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.jpg index ad01d3c39..9352bbde7 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.jpg +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.jpg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aa5b898f34f3a06adedf80a3d996eaa8ecaae395488a1251684b7221baa2fa30 -size 282591 +oid sha256:4bd8d1ed60ed8dbcb164e451727548efec982de0d32bca877d3c4deff8d047b0 +size 82867 diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.json b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.json index 084821f65..17540bfda 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.json +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.json @@ -8,24 +8,24 @@ "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheet_x2_2mm_INOX.SLDPRT" }, { - "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldInsert_x1_2mm_INOX.SLDPRT" - }, - { - "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldBase_x1_10mm_AL.SLDPRT" - }, - { - "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT" - }, - { - "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldPostDie_x1_5mm_Ferro.SLDPRT" + "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT" }, { "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT" }, { - "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT" + "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM" }, { - "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM" + "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheetTop_x1_2mm_INOX.SLDPRT" + }, + { + "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldPostDie_x1_5mm_Ferro.SLDPRT" + }, + { + "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldInsert_x1_2mm_INOX.SLDPRT" + }, + { + "File Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldBase_x1_10mm_AL.SLDPRT" } ] \ No newline at end of file diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.step b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.step index d11622131..df5707b01 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.step +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.step @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f8bf52480796ace0471f60ce578b22cbabce5bb8908b019c23974d4aca3e3f7 -size 402426 +oid sha256:d86030f2f660711958b773bd45f443a158ef72308046bef54efaa5ea064a9e1d +size 524141 diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.tree.json b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.tree.json index c898e58a0..84cf2a3ce 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.tree.json +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.tree.json @@ -2,28 +2,23 @@ "assembly": { "Components": [ { - "Name": "900_MouldSheet_x2_2mm_INOX-1", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheet_x2_2mm_INOX.SLDPRT", - "IsSuppressed": false - }, - { - "Name": "920_MouldInsert_x1_2mm_INOX-1", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldInsert_x1_2mm_INOX.SLDPRT", - "IsSuppressed": false - }, - { - "Name": "910_MouldBase_x1_10mm_AL-1", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldBase_x1_10mm_AL.SLDPRT", - "IsSuppressed": false - }, - { - "Name": "910_MouldPositioner_x4_2mm_INOX-1", + "Name": "910_MouldPositioner_x4_2mm_INOX-4", "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", - "IsSuppressed": false + "IsSuppressed": true }, { - "Name": "920_MouldPostDie_x1_5mm_Ferro-1", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldPostDie_x1_5mm_Ferro.SLDPRT", + "Name": "910_MouldPositioner_x4_2mm_INOX-2", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "IsSuppressed": true + }, + { + "Name": "910_MouldPositioner_x4_2mm_INOX-3", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "IsSuppressed": true + }, + { + "Name": "900_MouldSheet_x2_2mm_INOX-2", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheet_x2_2mm_INOX.SLDPRT", "IsSuppressed": false }, { @@ -31,21 +26,6 @@ "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", "IsSuppressed": false }, - { - "Name": "Mould-Seg-15-450-1/Mould-1", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", - "IsSuppressed": false - }, - { - "Name": "Mould-Seg-15-450-1/DowelM8-1", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", - "IsSuppressed": false - }, - { - "Name": "Mould-Seg-15-450-1/Mould-2", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", - "IsSuppressed": false - }, { "Name": "Mould-Seg-15-450-1/DowelM8-2", "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", @@ -59,26 +39,51 @@ { "Name": "Mould-Seg-15-450-1/DowelM8-4", "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", + "IsSuppressed": true + }, + { + "Name": "Mould-Seg-15-450-1/Mould-2", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", "IsSuppressed": false }, { - "Name": "910_MouldPositioner_x4_2mm_INOX-4", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Name": "Mould-Seg-15-450-1/Mould-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", "IsSuppressed": false }, { - "Name": "910_MouldPositioner_x4_2mm_INOX-2", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Name": "Mould-Seg-15-450-1/DowelM8-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", "IsSuppressed": false }, { - "Name": "900_MouldSheet_x2_2mm_INOX-2", + "Name": "900_MouldSheet_x2_2mm_INOX-1", "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheet_x2_2mm_INOX.SLDPRT", + "IsSuppressed": true + }, + { + "Name": "910_MouldPositioner_x4_2mm_INOX-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "IsSuppressed": true + }, + { + "Name": "900_MouldSheetTop_x1_2mm_INOX-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheetTop_x1_2mm_INOX.SLDPRT", "IsSuppressed": false }, { - "Name": "910_MouldPositioner_x4_2mm_INOX-3", - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Name": "920_MouldPostDie_x1_5mm_Ferro-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldPostDie_x1_5mm_Ferro.SLDPRT", + "IsSuppressed": false + }, + { + "Name": "920_MouldInsert_x1_2mm_INOX-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldInsert_x1_2mm_INOX.SLDPRT", + "IsSuppressed": false + }, + { + "Name": "910_MouldBase_x1_10mm_AL-1", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldBase_x1_10mm_AL.SLDPRT", "IsSuppressed": false } ] @@ -87,105 +92,81 @@ "Name": "Mould-450-15", "Children": [ { - "Name": "900_MouldSheet_x2_2mm_INOX-1", + "Name": "910_MouldPositioner_x4_2mm_INOX-4", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Parent": null, + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "910_MouldPositioner_x4_2mm_INOX-2", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Parent": null, + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "910_MouldPositioner_x4_2mm_INOX-3", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Parent": null, + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "900_MouldSheet_x2_2mm_INOX-2", "Children": null, "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheet_x2_2mm_INOX.SLDPRT", "Parent": null, "Properties": { - "Default": {} + "Top": {}, + "Bottom": {} }, "Equations": {}, "Mass": { - "Mass": 2.822345108851317, + "Mass": 2.942461925541079, "Density": 8000.000133, - "Volume": 0.0003527931327412288, - "SurfaceArea": 0.3561462654824574, - "CenterOfMassX": -6.068294354531439E-17, - "CenterOfMassY": 8.54399625116936E-17, - "CenterOfMassZ": 0.001 + "Volume": 0.00036780773457783134, + "SurfaceArea": 0.3725835221436341, + "CenterOfMassX": 0.010830735615608626, + "CenterOfMassY": 8.656546142756995E-17, + "CenterOfMassZ": 0.0010000000000000002 }, "Box": { - "MinX": -0.20999999999999994, - "MinY": 0.020561924839746303, - "MinZ": -0.20999999999999985, + "MinX": -0.30999999999999994, + "MinY": 0.0004999999999993042, + "MinZ": -0.2099999999999997, "MaxX": 0.2100000000000001, - "MaxY": 0.022561924839747845, - "MaxZ": 0.2100000000000003 + "MaxY": 0.002500000000000696, + "MaxZ": 0.21000000000000046 }, "Material": { "Material": "AISI 316 Stainless Steel Sheet (SS)", "Materials": "SOLIDWORKS Materials" }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "920_MouldInsert_x1_2mm_INOX-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldInsert_x1_2mm_INOX.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 2.433545102387517, - "Density": 8000.000133, - "Volume": 0.00030419313274122884, - "SurfaceArea": 0.30730626548245754, - "CenterOfMassX": 1.1487481566818146E-17, - "CenterOfMassY": 8.500705407670716E-17, - "CenterOfMassZ": 0.001 - }, - "Box": { - "MinX": -0.19500000000000006, - "MinY": -0.1393688637405486, - "MinZ": -0.19499999999999998, - "MaxX": 0.19500000000000006, - "MaxY": -0.13736886374054733, - "MaxZ": 0.1950000000000002 - }, - "Material": { - "Material": "AISI 316 Stainless Steel Sheet (SS)", - "Materials": "SOLIDWORKS Materials" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "910_MouldBase_x1_10mm_AL-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldBase_x1_10mm_AL.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 1.0084999999999995, - "Density": 1000.0000000000001, - "Volume": 0.0010084999999999994, - "SurfaceArea": 0.41647999999999996, - "CenterOfMassX": 2.7329358463328603E-17, - "CenterOfMassY": 0.002, - "CenterOfMassZ": -2.0519984694944627E-17 - }, - "Box": { - "MinX": -0.225, - "MinY": -0.1714528170468747, - "MinZ": -0.22500000000000003, - "MaxX": 0.225, - "MaxY": -0.16645281704687426, - "MaxZ": 0.22500000000000003 - }, - "Material": { - "Material": "", - "Materials": "" - }, "States": { "wrong": "1", "errors": "1", @@ -196,186 +177,9 @@ "IsSuppressed": false, "activeConfiguration": null }, - { - "Name": "910_MouldPositioner_x4_2mm_INOX-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.025865062359836394, - "Density": 8000.000133, - "Volume": 3.2331327412287176E-06, - "SurfaceArea": 0.003930265482457436, - "CenterOfMassX": -4.53431148756713E-17, - "CenterOfMassY": -4.797092395122323E-19, - "CenterOfMassZ": 0.001 - }, - "Box": { - "MinX": -0.04499999999999996, - "MinY": -0.1695294949190594, - "MinZ": -0.21200000000000074, - "MaxX": 0.04500000000000004, - "MaxY": -0.14952949491905937, - "MaxZ": -0.21000000000000074 - }, - "Material": { - "Material": "AISI 316 Stainless Steel Sheet (SS)", - "Materials": "SOLIDWORKS Materials" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "920_MouldPostDie_x1_5mm_Ferro-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldPostDie_x1_5mm_Ferro.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 6.083862755968792, - "Density": 8000.000133, - "Volume": 0.000760482831853072, - "SurfaceArea": 0.3119759645943007, - "CenterOfMassX": 1.0521599954267816E-17, - "CenterOfMassY": 8.807003000119111E-17, - "CenterOfMassZ": 0.0025000000000000005 - }, - "Box": { - "MinX": -0.19500000000000006, - "MinY": -0.15014404863722963, - "MinZ": -0.19499999999999998, - "MaxX": 0.19500000000000006, - "MaxY": -0.14514404863722835, - "MaxZ": 0.1950000000000002 - }, - "Material": { - "Material": "AISI 316 Stainless Steel Sheet (SS)", - "Materials": "SOLIDWORKS Materials" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, { "Name": "Mould-Seg-15-450-1", "Children": [ - { - "Name": "Mould-Seg-15-450-1/Mould-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", - "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", - "Properties": { - "Default": {}, - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.3644484955592151, - "Density": 999.9999999999999, - "Volume": 0.00036444849555921515, - "SurfaceArea": 0.09894162830044406, - "CenterOfMassX": 8.628315526903119E-17, - "CenterOfMassY": 9.519718133642022E-18, - "CenterOfMassZ": 0.0075000000000000015 - }, - "Box": { - "MinX": -0.20999999999999996, - "MinY": -0.07887246417339214, - "MinZ": -0.20999999999999988, - "MaxX": 0.20999999999999996, - "MaxY": -0.06387246417339068, - "MaxZ": 0.2100000000000001 - }, - "Material": { - "Material": "", - "Materials": "" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "Mould-Seg-15-450-1/DowelM8-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", - "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.0009861450038860776, - "Density": 999.9999999999999, - "Volume": 9.861450038860776E-07, - "SurfaceArea": 0.0005798323540218004, - "CenterOfMassX": -0.25285738016697223, - "CenterOfMassY": -0.03202845795320286, - "CenterOfMassZ": 0.009814795296011232 - }, - "Box": { - "MinX": -0.003999999999988513, - "MinY": -0.131898874093304, - "MinZ": -0.20649999999999988, - "MaxX": 0.004000000000011494, - "MaxY": -0.11189887409330398, - "MaxZ": -0.19849999999999982 - }, - "Material": { - "Material": "", - "Materials": "" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "Mould-Seg-15-450-1/Mould-2", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", - "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", - "Properties": { - "Default": {}, - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.3644484955592151, - "Density": 999.9999999999999, - "Volume": 0.00036444849555921515, - "SurfaceArea": 0.09894162830044406, - "CenterOfMassX": 8.628315526903119E-17, - "CenterOfMassY": 9.519718133642022E-18, - "CenterOfMassZ": 0.0075000000000000015 - }, - "Box": { - "MinX": -0.20999999999999996, - "MinY": -0.10747570440837648, - "MinZ": -0.20999999999999994, - "MaxX": 0.20999999999999996, - "MaxY": -0.09247570440837502, - "MaxZ": 0.21000000000000005 - }, - "Material": { - "Material": "", - "Materials": "" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, { "Name": "Mould-Seg-15-450-1/DowelM8-2", "Children": null, @@ -396,10 +200,10 @@ }, "Box": { "MinX": 0.19849999999999993, - "MinY": -0.13189887409330472, + "MinY": 0.0044999999999999814, "MinZ": -0.00399999999998784, "MaxX": 0.20649999999999993, - "MaxY": -0.1118988740933047, + "MaxY": 0.024500000000000008, "MaxZ": 0.004000000000012265 }, "Material": { @@ -431,11 +235,11 @@ }, "Box": { "MinX": -0.00400000000001291, - "MinY": -0.13189887409330542, - "MinZ": 0.19849999999999993, + "MinY": 0.004499999999999279, + "MinZ": 0.1984999999999999, "MaxX": 0.003999999999987153, - "MaxY": -0.1118988740933054, - "MaxZ": 0.20650000000000004 + "MaxY": 0.024499999999999307, + "MaxZ": 0.20650000000000002 }, "Material": { "Material": "", @@ -451,6 +255,93 @@ "Children": null, "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "Mould-Seg-15-450-1/Mould-2", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", + "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", + "Properties": { + "Default": {}, + "Default": {} + }, + "Equations": {}, + "Mass": { + "Mass": 0.3644484955592151, + "Density": 999.9999999999999, + "Volume": 0.00036444849555921515, + "SurfaceArea": 0.09894162830044406, + "CenterOfMassX": 8.628315526903119E-17, + "CenterOfMassY": 9.519718133642022E-18, + "CenterOfMassZ": 0.0075000000000000015 + }, + "Box": { + "MinX": -0.20999999999999996, + "MinY": 0.002499999999999266, + "MinZ": -0.20999999999999996, + "MaxX": 0.20999999999999996, + "MaxY": 0.01750000000000073, + "MaxZ": 0.21000000000000002 + }, + "Material": { + "Material": "", + "Materials": "" + }, + "States": {}, + "LaserParts": null, + "IsSuppressed": false, + "activeConfiguration": null + }, + { + "Name": "Mould-Seg-15-450-1/Mould-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", + "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", + "Properties": { + "Default": {}, + "Default": {} + }, + "Equations": {}, + "Mass": { + "Mass": 0.3644484955592151, + "Density": 999.9999999999999, + "Volume": 0.00036444849555921515, + "SurfaceArea": 0.09894162830044406, + "CenterOfMassX": 8.628315526903119E-17, + "CenterOfMassY": 9.519718133642022E-18, + "CenterOfMassZ": 0.0075000000000000015 + }, + "Box": { + "MinX": -0.20999999999999996, + "MinY": 0.01749999999999927, + "MinZ": -0.2099999999999999, + "MaxX": 0.20999999999999996, + "MaxY": 0.03250000000000074, + "MaxZ": 0.21000000000000008 + }, + "Material": { + "Material": "", + "Materials": "" + }, + "States": {}, + "LaserParts": null, + "IsSuppressed": false, + "activeConfiguration": null + }, + { + "Name": "Mould-Seg-15-450-1/DowelM8-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", + "Parent": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-Seg-15-450.SLDASM", "Properties": { "Default": {} }, @@ -465,12 +356,12 @@ "CenterOfMassZ": 0.009814795296011232 }, "Box": { - "MinX": -0.2065, - "MinY": -0.13189887409330472, - "MinZ": -0.00400000000001368, - "MaxX": -0.19849999999999993, - "MaxY": -0.11189887409330469, - "MaxZ": 0.00399999999998648 + "MinX": -0.003999999999988513, + "MinY": 0.0045000000000006875, + "MinZ": -0.2064999999999999, + "MaxX": 0.004000000000011494, + "MaxY": 0.024500000000000716, + "MaxZ": -0.19849999999999984 }, "Material": { "Material": "", @@ -489,136 +380,28 @@ }, "Equations": {}, "Mass": { - "Mass": 0.7268097132390821, - "Density": 1000.0, - "Volume": 0.0007268097132390821, - "SurfaceArea": 0.20241426724510259, - "CenterOfMassX": 4.352115527088376E-17, - "CenterOfMassY": -2.603367528404367E-18, - "CenterOfMassZ": 1.5276605513445093E-05 + "Mass": 0.725823568235196, + "Density": 999.9999999999998, + "Volume": 0.0007258235682351962, + "SurfaceArea": 0.20183443489108077, + "CenterOfMassX": 0.00027512796776840096, + "CenterOfMassY": 2.0464435729425444E-17, + "CenterOfMassZ": 1.147302088111876E-05 }, "Box": { "MinX": -0.20999999999999996, - "MinY": 0.0024999999999992615, - "MinZ": -0.20999999999999994, + "MinY": 0.002499999999999265, + "MinZ": -0.20999999999999996, "MaxX": 0.20999999999999996, "MaxY": 0.03250000000000073, - "MaxZ": 0.2100000000000001 + "MaxZ": 0.21000000000000008 }, "Material": { - "Mould-1": "", - "DowelM8-1": "", - "Mould-2": "", "DowelM8-2": "", "DowelM8-3": "", - "DowelM8-4": "" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "Mould-Seg-15-450-1/Mould-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", - "Parent": null, - "Properties": { - "Default": {}, - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.3644484955592151, - "Density": 999.9999999999999, - "Volume": 0.00036444849555921515, - "SurfaceArea": 0.09894162830044406, - "CenterOfMassX": 8.628315526903119E-17, - "CenterOfMassY": 9.519718133642022E-18, - "CenterOfMassZ": 0.0075000000000000015 - }, - "Box": { - "MinX": -0.20999999999999996, - "MinY": -0.07887246417339214, - "MinZ": -0.20999999999999988, - "MaxX": 0.20999999999999996, - "MaxY": -0.06387246417339068, - "MaxZ": 0.2100000000000001 - }, - "Material": { - "Material": "", - "Materials": "" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "Mould-Seg-15-450-1/DowelM8-1", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.0009861450038860776, - "Density": 999.9999999999999, - "Volume": 9.861450038860776E-07, - "SurfaceArea": 0.0005798323540218004, - "CenterOfMassX": -0.25285738016697223, - "CenterOfMassY": -0.03202845795320286, - "CenterOfMassZ": 0.009814795296011232 - }, - "Box": { - "MinX": -0.003999999999988513, - "MinY": -0.131898874093304, - "MinZ": -0.20649999999999988, - "MaxX": 0.004000000000011494, - "MaxY": -0.11189887409330398, - "MaxZ": -0.19849999999999982 - }, - "Material": { - "Material": "", - "Materials": "" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "Mould-Seg-15-450-1/Mould-2", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", - "Parent": null, - "Properties": { - "Default": {}, - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.3644484955592151, - "Density": 999.9999999999999, - "Volume": 0.00036444849555921515, - "SurfaceArea": 0.09894162830044406, - "CenterOfMassX": 8.628315526903119E-17, - "CenterOfMassY": 9.519718133642022E-18, - "CenterOfMassZ": 0.0075000000000000015 - }, - "Box": { - "MinX": -0.20999999999999996, - "MinY": -0.10747570440837648, - "MinZ": -0.20999999999999994, - "MaxX": 0.20999999999999996, - "MaxY": -0.09247570440837502, - "MaxZ": 0.21000000000000005 - }, - "Material": { - "Material": "", - "Materials": "" + "Mould-2": "", + "Mould-1": "", + "DowelM8-1": "" }, "States": {}, "LaserParts": null, @@ -645,10 +428,10 @@ }, "Box": { "MinX": 0.19849999999999993, - "MinY": -0.13189887409330472, + "MinY": 0.0044999999999999814, "MinZ": -0.00399999999998784, "MaxX": 0.20649999999999993, - "MaxY": -0.1118988740933047, + "MaxY": 0.024500000000000008, "MaxZ": 0.004000000000012265 }, "Material": { @@ -680,11 +463,11 @@ }, "Box": { "MinX": -0.00400000000001291, - "MinY": -0.13189887409330542, - "MinZ": 0.19849999999999993, + "MinY": 0.004499999999999279, + "MinZ": 0.1984999999999999, "MaxX": 0.003999999999987153, - "MaxY": -0.1118988740933054, - "MaxZ": 0.20650000000000004 + "MaxY": 0.024499999999999307, + "MaxZ": 0.20650000000000002 }, "Material": { "Material": "", @@ -700,6 +483,93 @@ "Children": null, "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", "Parent": null, + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "Mould-Seg-15-450-1/Mould-2", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", + "Parent": null, + "Properties": { + "Default": {}, + "Default": {} + }, + "Equations": {}, + "Mass": { + "Mass": 0.3644484955592151, + "Density": 999.9999999999999, + "Volume": 0.00036444849555921515, + "SurfaceArea": 0.09894162830044406, + "CenterOfMassX": 8.628315526903119E-17, + "CenterOfMassY": 9.519718133642022E-18, + "CenterOfMassZ": 0.0075000000000000015 + }, + "Box": { + "MinX": -0.20999999999999996, + "MinY": 0.002499999999999266, + "MinZ": -0.20999999999999996, + "MaxX": 0.20999999999999996, + "MaxY": 0.01750000000000073, + "MaxZ": 0.21000000000000002 + }, + "Material": { + "Material": "", + "Materials": "" + }, + "States": {}, + "LaserParts": null, + "IsSuppressed": false, + "activeConfiguration": null + }, + { + "Name": "Mould-Seg-15-450-1/Mould-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould.SLDPRT", + "Parent": null, + "Properties": { + "Default": {}, + "Default": {} + }, + "Equations": {}, + "Mass": { + "Mass": 0.3644484955592151, + "Density": 999.9999999999999, + "Volume": 0.00036444849555921515, + "SurfaceArea": 0.09894162830044406, + "CenterOfMassX": 8.628315526903119E-17, + "CenterOfMassY": 9.519718133642022E-18, + "CenterOfMassZ": 0.0075000000000000015 + }, + "Box": { + "MinX": -0.20999999999999996, + "MinY": 0.01749999999999927, + "MinZ": -0.2099999999999999, + "MaxX": 0.20999999999999996, + "MaxY": 0.03250000000000074, + "MaxZ": 0.21000000000000008 + }, + "Material": { + "Material": "", + "Materials": "" + }, + "States": {}, + "LaserParts": null, + "IsSuppressed": false, + "activeConfiguration": null + }, + { + "Name": "Mould-Seg-15-450-1/DowelM8-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\components\\hardware\\dowel\\DowelM8.SLDPRT", + "Parent": null, "Properties": { "Default": {} }, @@ -714,12 +584,12 @@ "CenterOfMassZ": 0.009814795296011232 }, "Box": { - "MinX": -0.2065, - "MinY": -0.13189887409330472, - "MinZ": -0.00400000000001368, - "MaxX": -0.19849999999999993, - "MaxY": -0.11189887409330469, - "MaxZ": 0.00399999999998648 + "MinX": -0.003999999999988513, + "MinY": 0.0045000000000006875, + "MinZ": -0.2064999999999999, + "MaxX": 0.004000000000011494, + "MaxY": 0.024500000000000716, + "MaxZ": -0.19849999999999984 }, "Material": { "Material": "", @@ -731,100 +601,101 @@ "activeConfiguration": null }, { - "Name": "910_MouldPositioner_x4_2mm_INOX-4", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.025865062359836394, - "Density": 8000.000133, - "Volume": 3.2331327412287176E-06, - "SurfaceArea": 0.003930265482457436, - "CenterOfMassX": -4.53431148756713E-17, - "CenterOfMassY": -4.797092395122323E-19, - "CenterOfMassZ": 0.001 - }, - "Box": { - "MinX": 0.21000000000000027, - "MinY": -0.1695294949190594, - "MinZ": -0.045000000000002184, - "MaxX": 0.21200000000000122, - "MaxY": -0.14952949491905937, - "MaxZ": 0.04499999999999784 - }, - "Material": { - "Material": "AISI 316 Stainless Steel Sheet (SS)", - "Materials": "SOLIDWORKS Materials" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "910_MouldPositioner_x4_2mm_INOX-2", - "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", - "Parent": null, - "Properties": { - "Default": {} - }, - "Equations": {}, - "Mass": { - "Mass": 0.025865062359836394, - "Density": 8000.000133, - "Volume": 3.2331327412287176E-06, - "SurfaceArea": 0.003930265482457436, - "CenterOfMassX": -4.53431148756713E-17, - "CenterOfMassY": -4.797092395122323E-19, - "CenterOfMassZ": 0.001 - }, - "Box": { - "MinX": -0.2120000000000009, - "MinY": -0.1695294949190594, - "MinZ": -0.04499999999999931, - "MaxX": -0.21000000000000058, - "MaxY": -0.14952949491905937, - "MaxZ": 0.0450000000000007 - }, - "Material": { - "Material": "AISI 316 Stainless Steel Sheet (SS)", - "Materials": "SOLIDWORKS Materials" - }, - "States": {}, - "LaserParts": null, - "IsSuppressed": false, - "activeConfiguration": null - }, - { - "Name": "900_MouldSheet_x2_2mm_INOX-2", + "Name": "900_MouldSheet_x2_2mm_INOX-1", "Children": null, "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheet_x2_2mm_INOX.SLDPRT", "Parent": null, + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "910_MouldPositioner_x4_2mm_INOX-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Parent": null, + "Properties": null, + "Equations": null, + "Mass": null, + "Box": null, + "Material": null, + "States": null, + "LaserParts": null, + "IsSuppressed": true, + "activeConfiguration": null + }, + { + "Name": "900_MouldSheetTop_x1_2mm_INOX-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\900_MouldSheetTop_x1_2mm_INOX.SLDPRT", + "Parent": null, + "Properties": { + "Top": {}, + "Bottom": {} + }, + "Equations": {}, + "Mass": { + "Mass": 4.413692888311618, + "Density": 8000.000133, + "Volume": 0.000551711601866747, + "SurfaceArea": 0.742779150504367, + "CenterOfMassX": 0.010830735615608615, + "CenterOfMassY": 8.554668780684494E-17, + "CenterOfMassZ": 0.001166666666666667 + }, + "Box": { + "MinX": -0.2139799389764474, + "MinY": 0.0226519224698771, + "MinZ": -0.2139799389764475, + "MaxX": 0.2139799389764474, + "MaxY": 0.033500000000000786, + "MaxZ": 0.2139799389764476 + }, + "Material": { + "Material": "AISI 316 Stainless Steel Sheet (SS)", + "Materials": "SOLIDWORKS Materials" + }, + "States": { + "wrong": "1", + "errors": "1", + "warnings": "True", + "features": "ProfileFeature" + }, + "LaserParts": null, + "IsSuppressed": false, + "activeConfiguration": null + }, + { + "Name": "920_MouldPostDie_x1_5mm_Ferro-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldPostDie_x1_5mm_Ferro.SLDPRT", + "Parent": null, "Properties": { "Default": {} }, "Equations": {}, "Mass": { - "Mass": 2.822345108851317, + "Mass": 6.083862755968792, "Density": 8000.000133, - "Volume": 0.0003527931327412288, - "SurfaceArea": 0.3561462654824574, - "CenterOfMassX": -6.068294354531439E-17, - "CenterOfMassY": 8.54399625116936E-17, - "CenterOfMassZ": 0.001 + "Volume": 0.000760482831853072, + "SurfaceArea": 0.3119759645943007, + "CenterOfMassX": 9.512210160971974E-18, + "CenterOfMassY": 8.706064020789526E-17, + "CenterOfMassZ": 0.0025000000000000005 }, "Box": { - "MinX": -0.20999999999999994, - "MinY": -0.15320698292577742, - "MinZ": -0.2099999999999999, - "MaxX": 0.2100000000000001, - "MaxY": -0.15120698292577603, - "MaxZ": 0.21000000000000024 + "MinX": -0.19500000000000006, + "MinY": 0.01749999999999935, + "MinZ": -0.19499999999999995, + "MaxX": 0.19500000000000006, + "MaxY": 0.022500000000000644, + "MaxZ": 0.19500000000000023 }, "Material": { "Material": "AISI 316 Stainless Steel Sheet (SS)", @@ -836,30 +707,30 @@ "activeConfiguration": null }, { - "Name": "910_MouldPositioner_x4_2mm_INOX-3", + "Name": "920_MouldInsert_x1_2mm_INOX-1", "Children": null, - "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldPositioner_x4_2mm_INOX.SLDPRT", + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\920_MouldInsert_x1_2mm_INOX.SLDPRT", "Parent": null, "Properties": { "Default": {} }, "Equations": {}, "Mass": { - "Mass": 0.025865062359836394, + "Mass": 2.4335451023875168, "Density": 8000.000133, - "Volume": 3.2331327412287176E-06, - "SurfaceArea": 0.003930265482457436, - "CenterOfMassX": -4.53431148756713E-17, - "CenterOfMassY": -4.797092395122323E-19, + "Volume": 0.0003041931327412288, + "SurfaceArea": 0.30730626548245754, + "CenterOfMassX": 1.2749218808437954E-17, + "CenterOfMassY": 8.63993158605635E-17, "CenterOfMassZ": 0.001 }, "Box": { - "MinX": -0.044999999999998576, - "MinY": -0.1695294949190594, - "MinZ": 0.2100000000000004, - "MaxX": 0.045000000000001435, - "MaxY": -0.14952949491905937, - "MaxZ": 0.21200000000000108 + "MinX": -0.19500000000000006, + "MinY": 0.022499999999999354, + "MinZ": -0.19499999999999992, + "MaxX": 0.19500000000000006, + "MaxY": 0.024500000000000646, + "MaxZ": 0.19500000000000026 }, "Material": { "Material": "AISI 316 Stainless Steel Sheet (SS)", @@ -869,6 +740,41 @@ "LaserParts": null, "IsSuppressed": false, "activeConfiguration": null + }, + { + "Name": "910_MouldBase_x1_10mm_AL-1", + "Children": null, + "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\910_MouldBase_x1_10mm_AL.SLDPRT", + "Parent": null, + "Properties": { + "Default": {} + }, + "Equations": {}, + "Mass": { + "Mass": 0.949092699081699, + "Density": 1000.0, + "Volume": 0.000949092699081699, + "SurfaceArea": 0.38831415926535895, + "CenterOfMassX": 0.0, + "CenterOfMassY": 0.002, + "CenterOfMassZ": 0.0 + }, + "Box": { + "MinX": -0.22600000000000006, + "MinY": -0.004500000000000218, + "MinZ": -0.21, + "MaxX": 0.22600000000000006, + "MaxY": 0.0005000000000002182, + "MaxZ": 0.21 + }, + "Material": { + "Material": "", + "Materials": "" + }, + "States": {}, + "LaserParts": null, + "IsSuppressed": false, + "activeConfiguration": null } ], "Path": "C:\\Users\\mc007\\Desktop\\osr\\products\\products\\sheetpress\\components\\900_Moulds\\450-15mm\\Mould-450-15.SLDASM", @@ -887,37 +793,32 @@ }, "Equations": {}, "Mass": { - "Mass": 16.00086803873737, - "Density": 4547.6332787691645, - "Volume": 0.0035185044742807557, - "SurfaceArea": 1.966190090216605, - "CenterOfMassX": 1.8213608365405945E-17, - "CenterOfMassY": 0.012716922623723372, - "CenterOfMassZ": 1.2133952718868122E-16 + "Mass": 17.382847325468614, + "Density": 4777.597552435482, + "Volume": 0.0036384076169428165, + "SurfaceArea": 2.2963447501563268, + "CenterOfMassX": -0.0018218725746294566, + "CenterOfMassY": 0.01914432708255756, + "CenterOfMassZ": 1.0599830035614508E-16 }, "Box": null, "Material": { - "900_MouldSheet_x2_2mm_INOX-1": "AISI 316 Stainless Steel Sheet (SS)", - "920_MouldInsert_x1_2mm_INOX-1": "AISI 316 Stainless Steel Sheet (SS)", - "910_MouldBase_x1_10mm_AL-1": "", - "910_MouldPositioner_x4_2mm_INOX-1": "AISI 316 Stainless Steel Sheet (SS)", - "920_MouldPostDie_x1_5mm_Ferro-1": "AISI 316 Stainless Steel Sheet (SS)", - "Mould-Seg-15-450-1/Mould-1": "", - "Mould-Seg-15-450-1/DowelM8-1": "", - "Mould-Seg-15-450-1/Mould-2": "", + "900_MouldSheet_x2_2mm_INOX-2": "AISI 316 Stainless Steel Sheet (SS)", "Mould-Seg-15-450-1/DowelM8-2": "", "Mould-Seg-15-450-1/DowelM8-3": "", - "Mould-Seg-15-450-1/DowelM8-4": "", - "910_MouldPositioner_x4_2mm_INOX-4": "AISI 316 Stainless Steel Sheet (SS)", - "910_MouldPositioner_x4_2mm_INOX-2": "AISI 316 Stainless Steel Sheet (SS)", - "900_MouldSheet_x2_2mm_INOX-2": "AISI 316 Stainless Steel Sheet (SS)", - "910_MouldPositioner_x4_2mm_INOX-3": "AISI 316 Stainless Steel Sheet (SS)" + "Mould-Seg-15-450-1/Mould-2": "", + "Mould-Seg-15-450-1/Mould-1": "", + "Mould-Seg-15-450-1/DowelM8-1": "", + "900_MouldSheetTop_x1_2mm_INOX-1": "AISI 316 Stainless Steel Sheet (SS)", + "920_MouldPostDie_x1_5mm_Ferro-1": "AISI 316 Stainless Steel Sheet (SS)", + "920_MouldInsert_x1_2mm_INOX-1": "AISI 316 Stainless Steel Sheet (SS)", + "910_MouldBase_x1_10mm_AL-1": "" }, "States": { - "wrong": "1", - "errors": "51", - "warnings": "True", - "features": "Reference" + "wrong": "2", + "errors": "51 51", + "warnings": "True True", + "features": "ReferencePattern | Reference" }, "LaserParts": null, "IsSuppressed": false, diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.x_t b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.x_t index d315625e1..200d75f63 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.x_t +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-450-15.x_t @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d1fa7daa57cba68d99eb8204513b34d99dd896efe924ae8c90c9e0237ea7e877 -size 129634 +oid sha256:1ee610b4bfd98e61593f0a27404092faf6ddeb66cd59c25084799a67ab5fa2d7 +size 191358 diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould-Seg-15-450.SLDASM b/sheetpress/components/900_Moulds/450-15mm/Mould-Seg-15-450.SLDASM index 073b9bdf7..e220d6940 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould-Seg-15-450.SLDASM +++ b/sheetpress/components/900_Moulds/450-15mm/Mould-Seg-15-450.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5c9b4e68e8e02c53862f53afe94efd4476315ad693c341de20a8de528aeacdc8 -size 125878 +oid sha256:df5c54fdf254b2d644e1e59dd87cae1e9bdc2f05f00115636d4d1e443958defa +size 175108 diff --git a/sheetpress/components/900_Moulds/450-15mm/Mould.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/Mould.SLDPRT index 5419c5d49..03fe3592d 100644 --- a/sheetpress/components/900_Moulds/450-15mm/Mould.SLDPRT +++ b/sheetpress/components/900_Moulds/450-15mm/Mould.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd2906e325f71764497668f8282ca96e3b26f96a591b318cb00fe191fc2aabdf -size 87843 +oid sha256:8a7e3f34b0bb95bd68dd06fda5cd20907bd6a0f4701c74133e7732f41e9c3247 +size 129316 diff --git a/sheetpress/components/900_Moulds/450-15mm/Outer.SLDPRT b/sheetpress/components/900_Moulds/450-15mm/Outer.SLDPRT new file mode 100644 index 000000000..2ccb5d76d --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/Outer.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8a39e23ff79089169c81ccab9b61f2f0fc1a824905f7aa25ed6a516b3e80744 +size 30663 diff --git a/sheetpress/components/900_Moulds/450-15mm/renderings/breakout.jpg b/sheetpress/components/900_Moulds/450-15mm/renderings/breakout.jpg new file mode 100644 index 000000000..941600ea7 --- /dev/null +++ b/sheetpress/components/900_Moulds/450-15mm/renderings/breakout.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:529581032f1c6613e299ebc02a5c4364f319db6b4855fe65165c4120cbca5e5d +size 748053 diff --git a/sheetpress/components/sprcb-450-rc2/cad/200_PressPlate-Global-450.SLDASM b/sheetpress/components/sprcb-450-rc2/cad/200_PressPlate-Global-450.SLDASM index 2458f8e26..ada9f7cb4 100644 --- a/sheetpress/components/sprcb-450-rc2/cad/200_PressPlate-Global-450.SLDASM +++ b/sheetpress/components/sprcb-450-rc2/cad/200_PressPlate-Global-450.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:769f81213f5635a0b8f9c834a77359e42f755d560ddcfc54c2279575614468cb -size 582653 +oid sha256:fdb43d23144fc8d1e0287d9bf2e54df5fb8f37239266dea101b5e3c45823f962 +size 726486 diff --git a/sheetpress/components/sprcb-450-rc2/cad/210_PlateAssemblyRibs.SLDASM b/sheetpress/components/sprcb-450-rc2/cad/210_PlateAssemblyRibs.SLDASM index f8a1b15f1..70be1d6e9 100644 --- a/sheetpress/components/sprcb-450-rc2/cad/210_PlateAssemblyRibs.SLDASM +++ b/sheetpress/components/sprcb-450-rc2/cad/210_PlateAssemblyRibs.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:676973a9f979103c4560a5a5da1c34f8827d5ae8d57a8511d4ca77251947f672 -size 221877 +oid sha256:d927acee101703dc326289fe51232d908cae65775fe9192dbeeb875d3bfe633b +size 225231 diff --git a/sheetpress/components/sprcb-450-rc2/cad/303_TriMount_x8_4mm_FERRO.SLDPRT b/sheetpress/components/sprcb-450-rc2/cad/303_TriMount_x8_4mm_FERRO.SLDPRT index a4d388f3d..21faa7708 100644 --- a/sheetpress/components/sprcb-450-rc2/cad/303_TriMount_x8_4mm_FERRO.SLDPRT +++ b/sheetpress/components/sprcb-450-rc2/cad/303_TriMount_x8_4mm_FERRO.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ac0bd5541c024e14efd6f94f81ea95c3c94b601421ba1c3b5aee9518559abf30 -size 90824 +oid sha256:90e7824a90f561a9c6913804a59a49f5d215bac8b0207170bb0c48386cdc615f +size 92232 diff --git a/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate-50830Old.SLDPRT b/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate-50830Old.SLDPRT new file mode 100644 index 000000000..e08147e10 --- /dev/null +++ b/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate-50830Old.SLDPRT @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b50006b3fd0e192a1ed0a0101dcdf879417dc2b1438f4cebd637ff1309245379 +size 264291 diff --git a/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate5083.SLDPRT b/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate5083.SLDPRT index 3a7279084..bde0e0805 100644 --- a/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate5083.SLDPRT +++ b/sheetpress/components/sprcb-450-rc2/cad/450-15-SP-HeatPlate5083.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:862ca48f786bac7e1dba6fb9a9e6069a44079c1781817027b1b28c5984f8317c -size 138464 +oid sha256:91c8c17739a0d0a290ad8391957814e0a0677ee09bed218c4ad75926a078abb9 +size 399828 diff --git a/sheetpress/components/sprcb-450-rc2/cad/6_Side_x2_4mm_FERRO.SLDPRT b/sheetpress/components/sprcb-450-rc2/cad/6_Side_x2_4mm_FERRO.SLDPRT index c418978e2..f4e3ad3a6 100644 --- a/sheetpress/components/sprcb-450-rc2/cad/6_Side_x2_4mm_FERRO.SLDPRT +++ b/sheetpress/components/sprcb-450-rc2/cad/6_Side_x2_4mm_FERRO.SLDPRT @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:82df85dbf29fdc3b590d7f0bc62ba442e8117a0e21a03f62f382d8774ff03d5c -size 195891 +oid sha256:c51c98aed1741f1a5e759a8b415319a8bed95a1b375c4df7a948a1b85def9043 +size 190853 diff --git a/sheetpress/components/sprcb-450-rc2/cad/cooling/CoolingAssembly.SLDASM b/sheetpress/components/sprcb-450-rc2/cad/cooling/CoolingAssembly.SLDASM index 9f402f6ea..b636fa341 100644 --- a/sheetpress/components/sprcb-450-rc2/cad/cooling/CoolingAssembly.SLDASM +++ b/sheetpress/components/sprcb-450-rc2/cad/cooling/CoolingAssembly.SLDASM @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3265107dafb8c1897f144b841eebbaba27784b3a6cd2fbe6f3b2544dd6ad11b9 -size 70224 +oid sha256:b6929f8e7a1237be6b76a6ea47631d6914fd91578c37ae4d3fd3ba84a0dbceac +size 70506