@inweb/viewer-visualize 25.8.22 → 25.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/viewer-visualize.js +874 -63
- package/dist/viewer-visualize.js.map +1 -1
- package/dist/viewer-visualize.min.js +1 -1
- package/dist/viewer-visualize.module.js +120 -55
- package/dist/viewer-visualize.module.js.map +1 -1
- package/package.json +5 -5
- package/src/Viewer/Commands/AutoTransformAllModelsToCentralPoint.ts +2 -2
- package/src/Viewer/Draggers/OdZoomDragger.ts +1 -1
package/dist/viewer-visualize.js
CHANGED
|
@@ -378,6 +378,27 @@
|
|
|
378
378
|
updatePreview() {}
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
382
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
383
|
+
// All rights reserved.
|
|
384
|
+
//
|
|
385
|
+
// This software and its documentation and related materials are owned by
|
|
386
|
+
// the Alliance. The software may only be incorporated into application
|
|
387
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
388
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
389
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
390
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
391
|
+
// protected by copyright law and international treaty provisions. Application
|
|
392
|
+
// programs incorporating this software must include the following statement
|
|
393
|
+
// with their copyright notices:
|
|
394
|
+
//
|
|
395
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
396
|
+
// license agreement with Open Design Alliance.
|
|
397
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
398
|
+
// All rights reserved.
|
|
399
|
+
//
|
|
400
|
+
// By use of this software, its documentation or related materials, you
|
|
401
|
+
// acknowledge and accept the above terms.
|
|
381
402
|
///////////////////////////////////////////////////////////////////////////////
|
|
382
403
|
const composeMatrixFromTransform = (transform, modelCenter, visLib) => {
|
|
383
404
|
const { translate, scale, rotation } = transform;
|
|
@@ -414,13 +435,76 @@
|
|
|
414
435
|
}
|
|
415
436
|
commands("VisualizeJS").registerCommand("applyModelTransform", applyModelTransform);
|
|
416
437
|
|
|
438
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
439
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
440
|
+
// All rights reserved.
|
|
441
|
+
//
|
|
442
|
+
// This software and its documentation and related materials are owned by
|
|
443
|
+
// the Alliance. The software may only be incorporated into application
|
|
444
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
445
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
446
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
447
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
448
|
+
// protected by copyright law and international treaty provisions. Application
|
|
449
|
+
// programs incorporating this software must include the following statement
|
|
450
|
+
// with their copyright notices:
|
|
451
|
+
//
|
|
452
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
453
|
+
// license agreement with Open Design Alliance.
|
|
454
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
455
|
+
// All rights reserved.
|
|
456
|
+
//
|
|
457
|
+
// By use of this software, its documentation or related materials, you
|
|
458
|
+
// acknowledge and accept the above terms.
|
|
417
459
|
///////////////////////////////////////////////////////////////////////////////
|
|
418
460
|
commands("VisualizeJS").registerCommand("clearMarkup", (viewer) => viewer.clearOverlay());
|
|
419
461
|
commands("VisualizeJS").registerCommandAlias("clearMarkup", "clearOverlay");
|
|
420
462
|
|
|
463
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
464
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
465
|
+
// All rights reserved.
|
|
466
|
+
//
|
|
467
|
+
// This software and its documentation and related materials are owned by
|
|
468
|
+
// the Alliance. The software may only be incorporated into application
|
|
469
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
470
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
471
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
472
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
473
|
+
// protected by copyright law and international treaty provisions. Application
|
|
474
|
+
// programs incorporating this software must include the following statement
|
|
475
|
+
// with their copyright notices:
|
|
476
|
+
//
|
|
477
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
478
|
+
// license agreement with Open Design Alliance.
|
|
479
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
480
|
+
// All rights reserved.
|
|
481
|
+
//
|
|
482
|
+
// By use of this software, its documentation or related materials, you
|
|
483
|
+
// acknowledge and accept the above terms.
|
|
421
484
|
///////////////////////////////////////////////////////////////////////////////
|
|
422
485
|
commands("VisualizeJS").registerCommand("clearSlices", (viewer) => viewer.clearSlices());
|
|
423
486
|
|
|
487
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
488
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
489
|
+
// All rights reserved.
|
|
490
|
+
//
|
|
491
|
+
// This software and its documentation and related materials are owned by
|
|
492
|
+
// the Alliance. The software may only be incorporated into application
|
|
493
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
494
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
495
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
496
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
497
|
+
// protected by copyright law and international treaty provisions. Application
|
|
498
|
+
// programs incorporating this software must include the following statement
|
|
499
|
+
// with their copyright notices:
|
|
500
|
+
//
|
|
501
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
502
|
+
// license agreement with Open Design Alliance.
|
|
503
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
504
|
+
// All rights reserved.
|
|
505
|
+
//
|
|
506
|
+
// By use of this software, its documentation or related materials, you
|
|
507
|
+
// acknowledge and accept the above terms.
|
|
424
508
|
///////////////////////////////////////////////////////////////////////////////
|
|
425
509
|
function createPreview(viewer, type = "image/jpeg", encoderOptions = 0.25) {
|
|
426
510
|
var _a;
|
|
@@ -430,6 +514,27 @@
|
|
|
430
514
|
}
|
|
431
515
|
commands("VisualizeJS").registerCommand("createPreview", createPreview);
|
|
432
516
|
|
|
517
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
518
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
519
|
+
// All rights reserved.
|
|
520
|
+
//
|
|
521
|
+
// This software and its documentation and related materials are owned by
|
|
522
|
+
// the Alliance. The software may only be incorporated into application
|
|
523
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
524
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
525
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
526
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
527
|
+
// protected by copyright law and international treaty provisions. Application
|
|
528
|
+
// programs incorporating this software must include the following statement
|
|
529
|
+
// with their copyright notices:
|
|
530
|
+
//
|
|
531
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
532
|
+
// license agreement with Open Design Alliance.
|
|
533
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
534
|
+
// All rights reserved.
|
|
535
|
+
//
|
|
536
|
+
// By use of this software, its documentation or related materials, you
|
|
537
|
+
// acknowledge and accept the above terms.
|
|
433
538
|
///////////////////////////////////////////////////////////////////////////////
|
|
434
539
|
function explode(viewer, index = 0) {
|
|
435
540
|
if (!viewer.visualizeJs)
|
|
@@ -442,6 +547,27 @@
|
|
|
442
547
|
commands("VisualizeJS").registerCommand("explode", explode);
|
|
443
548
|
commands("VisualizeJS").registerCommand("collect", (viewer) => explode(viewer, 0));
|
|
444
549
|
|
|
550
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
551
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
552
|
+
// All rights reserved.
|
|
553
|
+
//
|
|
554
|
+
// This software and its documentation and related materials are owned by
|
|
555
|
+
// the Alliance. The software may only be incorporated into application
|
|
556
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
557
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
558
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
559
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
560
|
+
// protected by copyright law and international treaty provisions. Application
|
|
561
|
+
// programs incorporating this software must include the following statement
|
|
562
|
+
// with their copyright notices:
|
|
563
|
+
//
|
|
564
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
565
|
+
// license agreement with Open Design Alliance.
|
|
566
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
567
|
+
// All rights reserved.
|
|
568
|
+
//
|
|
569
|
+
// By use of this software, its documentation or related materials, you
|
|
570
|
+
// acknowledge and accept the above terms.
|
|
445
571
|
///////////////////////////////////////////////////////////////////////////////
|
|
446
572
|
function getDefaultViewPositions(viewer) {
|
|
447
573
|
if (!viewer.visualizeJs)
|
|
@@ -452,6 +578,27 @@
|
|
|
452
578
|
}
|
|
453
579
|
commands("VisualizeJS").registerCommand("getDefaultViewPositions", getDefaultViewPositions);
|
|
454
580
|
|
|
581
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
582
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
583
|
+
// All rights reserved.
|
|
584
|
+
//
|
|
585
|
+
// This software and its documentation and related materials are owned by
|
|
586
|
+
// the Alliance. The software may only be incorporated into application
|
|
587
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
588
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
589
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
590
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
591
|
+
// protected by copyright law and international treaty provisions. Application
|
|
592
|
+
// programs incorporating this software must include the following statement
|
|
593
|
+
// with their copyright notices:
|
|
594
|
+
//
|
|
595
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
596
|
+
// license agreement with Open Design Alliance.
|
|
597
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
598
|
+
// All rights reserved.
|
|
599
|
+
//
|
|
600
|
+
// By use of this software, its documentation or related materials, you
|
|
601
|
+
// acknowledge and accept the above terms.
|
|
455
602
|
///////////////////////////////////////////////////////////////////////////////
|
|
456
603
|
function getModels(viewer) {
|
|
457
604
|
if (!viewer.visualizeJs)
|
|
@@ -469,6 +616,27 @@
|
|
|
469
616
|
}
|
|
470
617
|
commands("VisualizeJS").registerCommand("getModels", getModels);
|
|
471
618
|
|
|
619
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
620
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
621
|
+
// All rights reserved.
|
|
622
|
+
//
|
|
623
|
+
// This software and its documentation and related materials are owned by
|
|
624
|
+
// the Alliance. The software may only be incorporated into application
|
|
625
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
626
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
627
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
628
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
629
|
+
// protected by copyright law and international treaty provisions. Application
|
|
630
|
+
// programs incorporating this software must include the following statement
|
|
631
|
+
// with their copyright notices:
|
|
632
|
+
//
|
|
633
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
634
|
+
// license agreement with Open Design Alliance.
|
|
635
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
636
|
+
// All rights reserved.
|
|
637
|
+
//
|
|
638
|
+
// By use of this software, its documentation or related materials, you
|
|
639
|
+
// acknowledge and accept the above terms.
|
|
472
640
|
///////////////////////////////////////////////////////////////////////////////
|
|
473
641
|
function getSelected(viewer) {
|
|
474
642
|
if (!viewer.visualizeJs)
|
|
@@ -498,6 +666,27 @@
|
|
|
498
666
|
}
|
|
499
667
|
commands("VisualizeJS").registerCommand("getSelected", getSelected);
|
|
500
668
|
|
|
669
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
670
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
671
|
+
// All rights reserved.
|
|
672
|
+
//
|
|
673
|
+
// This software and its documentation and related materials are owned by
|
|
674
|
+
// the Alliance. The software may only be incorporated into application
|
|
675
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
676
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
677
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
678
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
679
|
+
// protected by copyright law and international treaty provisions. Application
|
|
680
|
+
// programs incorporating this software must include the following statement
|
|
681
|
+
// with their copyright notices:
|
|
682
|
+
//
|
|
683
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
684
|
+
// license agreement with Open Design Alliance.
|
|
685
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
686
|
+
// All rights reserved.
|
|
687
|
+
//
|
|
688
|
+
// By use of this software, its documentation or related materials, you
|
|
689
|
+
// acknowledge and accept the above terms.
|
|
501
690
|
///////////////////////////////////////////////////////////////////////////////
|
|
502
691
|
function hideSelected(viewer) {
|
|
503
692
|
if (!viewer.visualizeJs)
|
|
@@ -509,6 +698,27 @@
|
|
|
509
698
|
}
|
|
510
699
|
commands("VisualizeJS").registerCommand("hideSelected", hideSelected);
|
|
511
700
|
|
|
701
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
702
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
703
|
+
// All rights reserved.
|
|
704
|
+
//
|
|
705
|
+
// This software and its documentation and related materials are owned by
|
|
706
|
+
// the Alliance. The software may only be incorporated into application
|
|
707
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
708
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
709
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
710
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
711
|
+
// protected by copyright law and international treaty provisions. Application
|
|
712
|
+
// programs incorporating this software must include the following statement
|
|
713
|
+
// with their copyright notices:
|
|
714
|
+
//
|
|
715
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
716
|
+
// license agreement with Open Design Alliance.
|
|
717
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
718
|
+
// All rights reserved.
|
|
719
|
+
//
|
|
720
|
+
// By use of this software, its documentation or related materials, you
|
|
721
|
+
// acknowledge and accept the above terms.
|
|
512
722
|
///////////////////////////////////////////////////////////////////////////////
|
|
513
723
|
function isolateSelected(viewer) {
|
|
514
724
|
if (!viewer.visualizeJs)
|
|
@@ -520,6 +730,27 @@
|
|
|
520
730
|
}
|
|
521
731
|
commands("VisualizeJS").registerCommand("isolateSelected", isolateSelected);
|
|
522
732
|
|
|
733
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
734
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
735
|
+
// All rights reserved.
|
|
736
|
+
//
|
|
737
|
+
// This software and its documentation and related materials are owned by
|
|
738
|
+
// the Alliance. The software may only be incorporated into application
|
|
739
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
740
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
741
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
742
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
743
|
+
// protected by copyright law and international treaty provisions. Application
|
|
744
|
+
// programs incorporating this software must include the following statement
|
|
745
|
+
// with their copyright notices:
|
|
746
|
+
//
|
|
747
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
748
|
+
// license agreement with Open Design Alliance.
|
|
749
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
750
|
+
// All rights reserved.
|
|
751
|
+
//
|
|
752
|
+
// By use of this software, its documentation or related materials, you
|
|
753
|
+
// acknowledge and accept the above terms.
|
|
523
754
|
///////////////////////////////////////////////////////////////////////////////
|
|
524
755
|
function regenerateAll(viewer) {
|
|
525
756
|
if (!viewer.visualizeJs)
|
|
@@ -531,6 +762,27 @@
|
|
|
531
762
|
}
|
|
532
763
|
commands("VisualizeJS").registerCommand("regenerateAll", regenerateAll);
|
|
533
764
|
|
|
765
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
766
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
767
|
+
// All rights reserved.
|
|
768
|
+
//
|
|
769
|
+
// This software and its documentation and related materials are owned by
|
|
770
|
+
// the Alliance. The software may only be incorporated into application
|
|
771
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
772
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
773
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
774
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
775
|
+
// protected by copyright law and international treaty provisions. Application
|
|
776
|
+
// programs incorporating this software must include the following statement
|
|
777
|
+
// with their copyright notices:
|
|
778
|
+
//
|
|
779
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
780
|
+
// license agreement with Open Design Alliance.
|
|
781
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
782
|
+
// All rights reserved.
|
|
783
|
+
//
|
|
784
|
+
// By use of this software, its documentation or related materials, you
|
|
785
|
+
// acknowledge and accept the above terms.
|
|
534
786
|
///////////////////////////////////////////////////////////////////////////////
|
|
535
787
|
function resetView(viewer) {
|
|
536
788
|
if (!viewer.visualizeJs)
|
|
@@ -548,6 +800,27 @@
|
|
|
548
800
|
}
|
|
549
801
|
commands("VisualizeJS").registerCommand("resetView", resetView);
|
|
550
802
|
|
|
803
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
804
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
805
|
+
// All rights reserved.
|
|
806
|
+
//
|
|
807
|
+
// This software and its documentation and related materials are owned by
|
|
808
|
+
// the Alliance. The software may only be incorporated into application
|
|
809
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
810
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
811
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
812
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
813
|
+
// protected by copyright law and international treaty provisions. Application
|
|
814
|
+
// programs incorporating this software must include the following statement
|
|
815
|
+
// with their copyright notices:
|
|
816
|
+
//
|
|
817
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
818
|
+
// license agreement with Open Design Alliance.
|
|
819
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
820
|
+
// All rights reserved.
|
|
821
|
+
//
|
|
822
|
+
// By use of this software, its documentation or related materials, you
|
|
823
|
+
// acknowledge and accept the above terms.
|
|
551
824
|
///////////////////////////////////////////////////////////////////////////////
|
|
552
825
|
function selectModel(viewer, handle) {
|
|
553
826
|
if (!viewer.visualizeJs)
|
|
@@ -571,11 +844,53 @@
|
|
|
571
844
|
}
|
|
572
845
|
commands("VisualizeJS").registerCommand("selectModel", selectModel);
|
|
573
846
|
|
|
847
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
848
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
849
|
+
// All rights reserved.
|
|
850
|
+
//
|
|
851
|
+
// This software and its documentation and related materials are owned by
|
|
852
|
+
// the Alliance. The software may only be incorporated into application
|
|
853
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
854
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
855
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
856
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
857
|
+
// protected by copyright law and international treaty provisions. Application
|
|
858
|
+
// programs incorporating this software must include the following statement
|
|
859
|
+
// with their copyright notices:
|
|
860
|
+
//
|
|
861
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
862
|
+
// license agreement with Open Design Alliance.
|
|
863
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
864
|
+
// All rights reserved.
|
|
865
|
+
//
|
|
866
|
+
// By use of this software, its documentation or related materials, you
|
|
867
|
+
// acknowledge and accept the above terms.
|
|
574
868
|
///////////////////////////////////////////////////////////////////////////////
|
|
575
869
|
commands("VisualizeJS").registerCommand("setActiveDragger", (viewer, dragger = "") => {
|
|
576
870
|
viewer.setActiveDragger(dragger);
|
|
577
871
|
});
|
|
578
872
|
|
|
873
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
874
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
875
|
+
// All rights reserved.
|
|
876
|
+
//
|
|
877
|
+
// This software and its documentation and related materials are owned by
|
|
878
|
+
// the Alliance. The software may only be incorporated into application
|
|
879
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
880
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
881
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
882
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
883
|
+
// protected by copyright law and international treaty provisions. Application
|
|
884
|
+
// programs incorporating this software must include the following statement
|
|
885
|
+
// with their copyright notices:
|
|
886
|
+
//
|
|
887
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
888
|
+
// license agreement with Open Design Alliance.
|
|
889
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
890
|
+
// All rights reserved.
|
|
891
|
+
//
|
|
892
|
+
// By use of this software, its documentation or related materials, you
|
|
893
|
+
// acknowledge and accept the above terms.
|
|
579
894
|
///////////////////////////////////////////////////////////////////////////////
|
|
580
895
|
function setDefaultViewPosition(viewer, position = "") {
|
|
581
896
|
if (!viewer.visualizeJs)
|
|
@@ -599,11 +914,53 @@
|
|
|
599
914
|
commands("VisualizeJS").registerCommand("k3DViewNE", (viewer) => setDefaultViewPosition(viewer, "k3DViewNE"));
|
|
600
915
|
commands("VisualizeJS").registerCommand("k3DViewNW", (viewer) => setDefaultViewPosition(viewer, "k3DViewNW"));
|
|
601
916
|
|
|
917
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
918
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
919
|
+
// All rights reserved.
|
|
920
|
+
//
|
|
921
|
+
// This software and its documentation and related materials are owned by
|
|
922
|
+
// the Alliance. The software may only be incorporated into application
|
|
923
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
924
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
925
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
926
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
927
|
+
// protected by copyright law and international treaty provisions. Application
|
|
928
|
+
// programs incorporating this software must include the following statement
|
|
929
|
+
// with their copyright notices:
|
|
930
|
+
//
|
|
931
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
932
|
+
// license agreement with Open Design Alliance.
|
|
933
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
934
|
+
// All rights reserved.
|
|
935
|
+
//
|
|
936
|
+
// By use of this software, its documentation or related materials, you
|
|
937
|
+
// acknowledge and accept the above terms.
|
|
602
938
|
///////////////////////////////////////////////////////////////////////////////
|
|
603
939
|
commands("VisualizeJS").registerCommand("setMarkupColor", (viewer, r = 255, g = 0, b = 0) => {
|
|
604
940
|
viewer.setMarkupColor(r, g, b);
|
|
605
941
|
});
|
|
606
942
|
|
|
943
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
944
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
945
|
+
// All rights reserved.
|
|
946
|
+
//
|
|
947
|
+
// This software and its documentation and related materials are owned by
|
|
948
|
+
// the Alliance. The software may only be incorporated into application
|
|
949
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
950
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
951
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
952
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
953
|
+
// protected by copyright law and international treaty provisions. Application
|
|
954
|
+
// programs incorporating this software must include the following statement
|
|
955
|
+
// with their copyright notices:
|
|
956
|
+
//
|
|
957
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
958
|
+
// license agreement with Open Design Alliance.
|
|
959
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
960
|
+
// All rights reserved.
|
|
961
|
+
//
|
|
962
|
+
// By use of this software, its documentation or related materials, you
|
|
963
|
+
// acknowledge and accept the above terms.
|
|
607
964
|
///////////////////////////////////////////////////////////////////////////////
|
|
608
965
|
function setSelected(viewer, handles = []) {
|
|
609
966
|
if (!viewer.visualizeJs)
|
|
@@ -623,6 +980,27 @@
|
|
|
623
980
|
}
|
|
624
981
|
commands("VisualizeJS").registerCommand("setSelected", setSelected);
|
|
625
982
|
|
|
983
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
984
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
985
|
+
// All rights reserved.
|
|
986
|
+
//
|
|
987
|
+
// This software and its documentation and related materials are owned by
|
|
988
|
+
// the Alliance. The software may only be incorporated into application
|
|
989
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
990
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
991
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
992
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
993
|
+
// protected by copyright law and international treaty provisions. Application
|
|
994
|
+
// programs incorporating this software must include the following statement
|
|
995
|
+
// with their copyright notices:
|
|
996
|
+
//
|
|
997
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
998
|
+
// license agreement with Open Design Alliance.
|
|
999
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
1000
|
+
// All rights reserved.
|
|
1001
|
+
//
|
|
1002
|
+
// By use of this software, its documentation or related materials, you
|
|
1003
|
+
// acknowledge and accept the above terms.
|
|
626
1004
|
///////////////////////////////////////////////////////////////////////////////
|
|
627
1005
|
function showAll(viewer) {
|
|
628
1006
|
if (!viewer.visualizeJs)
|
|
@@ -634,6 +1012,27 @@
|
|
|
634
1012
|
}
|
|
635
1013
|
commands("VisualizeJS").registerCommand("showAll", showAll);
|
|
636
1014
|
|
|
1015
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
1016
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
1017
|
+
// All rights reserved.
|
|
1018
|
+
//
|
|
1019
|
+
// This software and its documentation and related materials are owned by
|
|
1020
|
+
// the Alliance. The software may only be incorporated into application
|
|
1021
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
1022
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
1023
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
1024
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
1025
|
+
// protected by copyright law and international treaty provisions. Application
|
|
1026
|
+
// programs incorporating this software must include the following statement
|
|
1027
|
+
// with their copyright notices:
|
|
1028
|
+
//
|
|
1029
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
1030
|
+
// license agreement with Open Design Alliance.
|
|
1031
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
1032
|
+
// All rights reserved.
|
|
1033
|
+
//
|
|
1034
|
+
// By use of this software, its documentation or related materials, you
|
|
1035
|
+
// acknowledge and accept the above terms.
|
|
637
1036
|
///////////////////////////////////////////////////////////////////////////////
|
|
638
1037
|
function unselect(viewer) {
|
|
639
1038
|
if (!viewer.visualizeJs)
|
|
@@ -645,6 +1044,27 @@
|
|
|
645
1044
|
}
|
|
646
1045
|
commands("VisualizeJS").registerCommand("unselect", unselect);
|
|
647
1046
|
|
|
1047
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
1048
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
1049
|
+
// All rights reserved.
|
|
1050
|
+
//
|
|
1051
|
+
// This software and its documentation and related materials are owned by
|
|
1052
|
+
// the Alliance. The software may only be incorporated into application
|
|
1053
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
1054
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
1055
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
1056
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
1057
|
+
// protected by copyright law and international treaty provisions. Application
|
|
1058
|
+
// programs incorporating this software must include the following statement
|
|
1059
|
+
// with their copyright notices:
|
|
1060
|
+
//
|
|
1061
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
1062
|
+
// license agreement with Open Design Alliance.
|
|
1063
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
1064
|
+
// All rights reserved.
|
|
1065
|
+
//
|
|
1066
|
+
// By use of this software, its documentation or related materials, you
|
|
1067
|
+
// acknowledge and accept the above terms.
|
|
648
1068
|
///////////////////////////////////////////////////////////////////////////////
|
|
649
1069
|
function zoomToExtents(viewer, force = false, animate = viewer.options.cameraAnimation) {
|
|
650
1070
|
if (!viewer.visualizeJs)
|
|
@@ -662,6 +1082,27 @@
|
|
|
662
1082
|
commands("VisualizeJS").registerCommand("zoomToExtents", zoomToExtents);
|
|
663
1083
|
commands("VisualizeJS").registerCommandAlias("zoomToExtents", "zoomExtents");
|
|
664
1084
|
|
|
1085
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
1086
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
1087
|
+
// All rights reserved.
|
|
1088
|
+
//
|
|
1089
|
+
// This software and its documentation and related materials are owned by
|
|
1090
|
+
// the Alliance. The software may only be incorporated into application
|
|
1091
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
1092
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
1093
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
1094
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
1095
|
+
// protected by copyright law and international treaty provisions. Application
|
|
1096
|
+
// programs incorporating this software must include the following statement
|
|
1097
|
+
// with their copyright notices:
|
|
1098
|
+
//
|
|
1099
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
1100
|
+
// license agreement with Open Design Alliance.
|
|
1101
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
1102
|
+
// All rights reserved.
|
|
1103
|
+
//
|
|
1104
|
+
// By use of this software, its documentation or related materials, you
|
|
1105
|
+
// acknowledge and accept the above terms.
|
|
665
1106
|
///////////////////////////////////////////////////////////////////////////////
|
|
666
1107
|
function zoomToObjects(viewer, handles = []) {
|
|
667
1108
|
var _a;
|
|
@@ -683,6 +1124,27 @@
|
|
|
683
1124
|
}
|
|
684
1125
|
commands("VisualizeJS").registerCommand("zoomToObjects", zoomToObjects);
|
|
685
1126
|
|
|
1127
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
1128
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
1129
|
+
// All rights reserved.
|
|
1130
|
+
//
|
|
1131
|
+
// This software and its documentation and related materials are owned by
|
|
1132
|
+
// the Alliance. The software may only be incorporated into application
|
|
1133
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
1134
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
1135
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
1136
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
1137
|
+
// protected by copyright law and international treaty provisions. Application
|
|
1138
|
+
// programs incorporating this software must include the following statement
|
|
1139
|
+
// with their copyright notices:
|
|
1140
|
+
//
|
|
1141
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
1142
|
+
// license agreement with Open Design Alliance.
|
|
1143
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
1144
|
+
// All rights reserved.
|
|
1145
|
+
//
|
|
1146
|
+
// By use of this software, its documentation or related materials, you
|
|
1147
|
+
// acknowledge and accept the above terms.
|
|
686
1148
|
///////////////////////////////////////////////////////////////////////////////
|
|
687
1149
|
function zoomToSelected(viewer) {
|
|
688
1150
|
var _a;
|
|
@@ -697,6 +1159,27 @@
|
|
|
697
1159
|
}
|
|
698
1160
|
commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
|
|
699
1161
|
|
|
1162
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
1163
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
1164
|
+
// All rights reserved.
|
|
1165
|
+
//
|
|
1166
|
+
// This software and its documentation and related materials are owned by
|
|
1167
|
+
// the Alliance. The software may only be incorporated into application
|
|
1168
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
1169
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
1170
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
1171
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
1172
|
+
// protected by copyright law and international treaty provisions. Application
|
|
1173
|
+
// programs incorporating this software must include the following statement
|
|
1174
|
+
// with their copyright notices:
|
|
1175
|
+
//
|
|
1176
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
1177
|
+
// license agreement with Open Design Alliance.
|
|
1178
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
1179
|
+
// All rights reserved.
|
|
1180
|
+
//
|
|
1181
|
+
// By use of this software, its documentation or related materials, you
|
|
1182
|
+
// acknowledge and accept the above terms.
|
|
700
1183
|
///////////////////////////////////////////////////////////////////////////////
|
|
701
1184
|
function isTemplateModel(modelPtr) {
|
|
702
1185
|
return modelPtr.getName()[0] === "$";
|
|
@@ -715,7 +1198,7 @@
|
|
|
715
1198
|
for (; !modelItr.done(); modelItr.step()) {
|
|
716
1199
|
const modelPtr = modelItr.getModel();
|
|
717
1200
|
if (!isTemplateModel(modelPtr)) {
|
|
718
|
-
|
|
1201
|
+
const ext = modelPtr.getExtents();
|
|
719
1202
|
const unitsMatrix = modelPtr.getUnitsMatrix();
|
|
720
1203
|
ext.transformBy(modelPtr.getUnitsMatrix()); // ext in wcs
|
|
721
1204
|
const unitsMatrixInvert = modelPtr.getUnitsMatrix().invert();
|
|
@@ -788,7 +1271,7 @@
|
|
|
788
1271
|
: {};
|
|
789
1272
|
exports.Konva = {
|
|
790
1273
|
_global: exports.glob,
|
|
791
|
-
version: '9.3.
|
|
1274
|
+
version: '9.3.14',
|
|
792
1275
|
isBrowser: detectBrowser(),
|
|
793
1276
|
isUnminified: /param/.test(function (param) { }.toString()),
|
|
794
1277
|
dblClickWindow: 400,
|
|
@@ -5300,7 +5783,13 @@
|
|
|
5300
5783
|
context.stroke();
|
|
5301
5784
|
}
|
|
5302
5785
|
function _fillFuncHit(context) {
|
|
5303
|
-
|
|
5786
|
+
const fillRule = this.attrs.fillRule;
|
|
5787
|
+
if (fillRule) {
|
|
5788
|
+
context.fill(fillRule);
|
|
5789
|
+
}
|
|
5790
|
+
else {
|
|
5791
|
+
context.fill();
|
|
5792
|
+
}
|
|
5304
5793
|
}
|
|
5305
5794
|
function _strokeFuncHit(context) {
|
|
5306
5795
|
context.stroke();
|
|
@@ -8682,7 +9171,7 @@
|
|
|
8682
9171
|
const Shape_1$a = Shape;
|
|
8683
9172
|
const Global_1$a = Global;
|
|
8684
9173
|
const Validators_1$p = Validators;
|
|
8685
|
-
|
|
9174
|
+
let Image$1 = class Image extends Shape_1$a.Shape {
|
|
8686
9175
|
constructor(attrs) {
|
|
8687
9176
|
super(attrs);
|
|
8688
9177
|
this.on('imageChange.konva', () => {
|
|
@@ -8705,6 +9194,11 @@
|
|
|
8705
9194
|
}
|
|
8706
9195
|
}
|
|
8707
9196
|
_useBufferCanvas() {
|
|
9197
|
+
const hasCornerRadius = !!this.cornerRadius();
|
|
9198
|
+
const hasShadow = this.hasShadow();
|
|
9199
|
+
if (hasCornerRadius && hasShadow) {
|
|
9200
|
+
return true;
|
|
9201
|
+
}
|
|
8708
9202
|
return super._useBufferCanvas(true);
|
|
8709
9203
|
}
|
|
8710
9204
|
_sceneFunc(context) {
|
|
@@ -8771,7 +9265,7 @@
|
|
|
8771
9265
|
static fromURL(url, callback, onError = null) {
|
|
8772
9266
|
var img = Util_1$7.Util.createImageElement();
|
|
8773
9267
|
img.onload = function () {
|
|
8774
|
-
var image = new Image
|
|
9268
|
+
var image = new Image({
|
|
8775
9269
|
image: img,
|
|
8776
9270
|
});
|
|
8777
9271
|
callback(image);
|
|
@@ -8780,7 +9274,7 @@
|
|
|
8780
9274
|
img.crossOrigin = 'Anonymous';
|
|
8781
9275
|
img.src = url;
|
|
8782
9276
|
}
|
|
8783
|
-
}
|
|
9277
|
+
};
|
|
8784
9278
|
Image$2.Image = Image$1;
|
|
8785
9279
|
Image$1.prototype.className = 'Image';
|
|
8786
9280
|
(0, Global_1$a._registerNode)(Image$1);
|
|
@@ -11612,7 +12106,7 @@
|
|
|
11612
12106
|
y = ySize - yMid;
|
|
11613
12107
|
rad = Math.sqrt(x * x + y * y);
|
|
11614
12108
|
rMax = rad > rMax ? rad : rMax;
|
|
11615
|
-
var rSize = ySize, tSize = xSize, radius, theta, phaseShift =
|
|
12109
|
+
var rSize = ySize, tSize = xSize, radius, theta, phaseShift = 0;
|
|
11616
12110
|
var x1, y1;
|
|
11617
12111
|
for (x = 0; x < xSize; x += 1) {
|
|
11618
12112
|
for (y = 0; y < ySize; y += 1) {
|
|
@@ -12207,6 +12701,29 @@
|
|
|
12207
12701
|
var libExports = lib$1.exports;
|
|
12208
12702
|
var Konva = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
12209
12703
|
|
|
12704
|
+
class WorldTransform {
|
|
12705
|
+
screenToWorld(position) {
|
|
12706
|
+
return {
|
|
12707
|
+
x: position.x,
|
|
12708
|
+
y: position.y,
|
|
12709
|
+
z: 0
|
|
12710
|
+
};
|
|
12711
|
+
}
|
|
12712
|
+
worldToScreen(position) {
|
|
12713
|
+
return {
|
|
12714
|
+
x: position.x,
|
|
12715
|
+
y: position.y
|
|
12716
|
+
};
|
|
12717
|
+
}
|
|
12718
|
+
getScale() {
|
|
12719
|
+
return {
|
|
12720
|
+
x: 1,
|
|
12721
|
+
y: 1,
|
|
12722
|
+
z: 1
|
|
12723
|
+
};
|
|
12724
|
+
}
|
|
12725
|
+
}
|
|
12726
|
+
|
|
12210
12727
|
class MarkupColor {
|
|
12211
12728
|
constructor(r, g, b) {
|
|
12212
12729
|
this.setColor(r, g, b);
|
|
@@ -12236,29 +12753,6 @@
|
|
|
12236
12753
|
}
|
|
12237
12754
|
}
|
|
12238
12755
|
|
|
12239
|
-
class WorldTransform {
|
|
12240
|
-
screenToWorld(position) {
|
|
12241
|
-
return {
|
|
12242
|
-
x: position.x,
|
|
12243
|
-
y: position.y,
|
|
12244
|
-
z: 0
|
|
12245
|
-
};
|
|
12246
|
-
}
|
|
12247
|
-
worldToScreen(position) {
|
|
12248
|
-
return {
|
|
12249
|
-
x: position.x,
|
|
12250
|
-
y: position.y
|
|
12251
|
-
};
|
|
12252
|
-
}
|
|
12253
|
-
getScale() {
|
|
12254
|
-
return {
|
|
12255
|
-
x: 1,
|
|
12256
|
-
y: 1,
|
|
12257
|
-
z: 1
|
|
12258
|
-
};
|
|
12259
|
-
}
|
|
12260
|
-
}
|
|
12261
|
-
|
|
12262
12756
|
const LineTypeSpecs = new Map([ [ "solid", [] ], [ "dot", [ 30, 30, .001, 30 ] ], [ "dash", [ 30, 30 ] ] ]);
|
|
12263
12757
|
|
|
12264
12758
|
class KonvaLine {
|
|
@@ -12833,8 +13327,8 @@
|
|
|
12833
13327
|
var _a, _b;
|
|
12834
13328
|
this._ratio = 1;
|
|
12835
13329
|
this.EPSILON = 1e-5;
|
|
12836
|
-
this.BASE64_NOT_FOUND = "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAADsAAAA7AF5KHG9AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAmhJREFUWIXtlr9rVEEQxz+H8RQUJIdeIopYm0vkCg0GBBtbG1NF7Kxt7dR/IGIw/uhTaBNLERURg2kCEUyCYCPi70b0InjGS57FzOZN3r19d+9HJIVfWO52dma/s7Mz8xa2KAaBCWAR+AkECWOmSOIdwC1gtQOpHc+NfQ8wClQ8+1d0vcdH/lQ3bSIRGAZ2pTjAqNovANXIWlXlAXA2zvi2Ln4AjqYgtagYEutENSLvjRoOImFv5iB32Ae8UrLXwFBk3h9ndF0VJnKSO9gTu3yKu5Z1LKnS8YIcABgw5Ks692JZFXcXRJ46Aq6kikCnHNi/mQ50WwVtfaIoBzL3gRk2drSscJ2wrc4VvUoe2wn/41/iBfoVLRnBGnDSY3AAKacy8AmYR+o7K1zCl6wgrgpOAc/MuhvfgMuk+1JGHQgSBcAloKXy78AjYBppJk5/noTulseBMZ23iD/piHFkEdgTQzKk+5wHjmHC3cmBg0BD5xcSTrFXyQPgIWFtDwMvab+2N8DpbhyY1v/3E8gdDgNfVX9SCVZ0/gW4B0wB71S2BpxLcuCM/jaQSHSDEeAX4VMuAG4gTzyHbcAVXXO6GxxwIX+vvxe7JHcYQ07nHqklj96UIW/YhSWzMKcep8VVtf8B1Dw6h4DfhB+sdbgn2R+gnoEc5NR3dZ+3QJ9H74HqXLPCGlJyTfI9y3YCs0owq3OLOpKkLeBI1HhSDT/mdKIPiUCARMTlQx34TMLjtww8IczmO8AJ/N/2JNSQXAiQ671JePePge0+wzJSQq4FFzlaenIvucUAkiQLhC/mLGNZ9xgn5s63BP4CCk0QDtm4BhoAAAAASUVORK5CYII=";
|
|
12837
13330
|
this.BASE64_HEADER_START = "data:image/";
|
|
13331
|
+
this.BASE64_NOT_FOUND = "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAADsAAAA7AF5KHG9AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAmhJREFUWIXtlr9rVEEQxz+H8RQUJIdeIopYm0vkCg0GBBtbG1NF7Kxt7dR/IGIw/uhTaBNLERURg2kCEUyCYCPi70b0InjGS57FzOZN3r19d+9HJIVfWO52dma/s7Mz8xa2KAaBCWAR+AkECWOmSOIdwC1gtQOpHc+NfQ8wClQ8+1d0vcdH/lQ3bSIRGAZ2pTjAqNovANXIWlXlAXA2zvi2Ln4AjqYgtagYEutENSLvjRoOImFv5iB32Ae8UrLXwFBk3h9ndF0VJnKSO9gTu3yKu5Z1LKnS8YIcABgw5Ks692JZFXcXRJ46Aq6kikCnHNi/mQ50WwVtfaIoBzL3gRk2drSscJ2wrc4VvUoe2wn/41/iBfoVLRnBGnDSY3AAKacy8AmYR+o7K1zCl6wgrgpOAc/MuhvfgMuk+1JGHQgSBcAloKXy78AjYBppJk5/noTulseBMZ23iD/piHFkEdgTQzKk+5wHjmHC3cmBg0BD5xcSTrFXyQPgIWFtDwMvab+2N8DpbhyY1v/3E8gdDgNfVX9SCVZ0/gW4B0wB71S2BpxLcuCM/jaQSHSDEeAX4VMuAG4gTzyHbcAVXXO6GxxwIX+vvxe7JHcYQ07nHqklj96UIW/YhSWzMKcep8VVtf8B1Dw6h4DfhB+sdbgn2R+gnoEc5NR3dZ+3QJ9H74HqXLPCGlJyTfI9y3YCs0owq3OLOpKkLeBI1HhSDT/mdKIPiUCARMTlQx34TMLjtww8IczmO8AJ/N/2JNSQXAiQ671JePePge0+wzJSQq4FFzlaenIvucUAkiQLhC/mLGNZ9xgn5s63BP4CCk0QDtm4BhoAAAAASUVORK5CYII=";
|
|
12838
13332
|
if (ref) {
|
|
12839
13333
|
if (!ref.src || !ref.src.startsWith(this.BASE64_HEADER_START)) ref.src = this.BASE64_NOT_FOUND;
|
|
12840
13334
|
if (ref.height() <= this.EPSILON) ref.height(32);
|
|
@@ -13211,16 +13705,45 @@
|
|
|
13211
13705
|
this._konvaStage.height(height);
|
|
13212
13706
|
};
|
|
13213
13707
|
this.pan = event => {
|
|
13214
|
-
const
|
|
13215
|
-
const
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13708
|
+
const pointer = this._konvaStage.getPointerPosition();
|
|
13709
|
+
const pointTo = {
|
|
13710
|
+
x: (pointer.x - this._konvaStage.x()) / this._konvaStage.scaleX(),
|
|
13711
|
+
y: (pointer.y - this._konvaStage.y()) / this._konvaStage.scaleX()
|
|
13712
|
+
};
|
|
13713
|
+
const newPos = {
|
|
13714
|
+
x: pointer.x - pointTo.x * this._konvaStage.scale().x + event.dX,
|
|
13715
|
+
y: pointer.y - pointTo.y * this._konvaStage.scale().x + event.dY
|
|
13716
|
+
};
|
|
13717
|
+
this._konvaStage.position(newPos);
|
|
13718
|
+
};
|
|
13719
|
+
this.zoomAt = event => {
|
|
13720
|
+
const oldScale = this._konvaStage.scaleX();
|
|
13721
|
+
const pointer = this._konvaStage.getPointerPosition();
|
|
13722
|
+
const mousePointTo = {
|
|
13723
|
+
x: (pointer.x - this._konvaStage.x()) / oldScale,
|
|
13724
|
+
y: (pointer.y - this._konvaStage.y()) / oldScale
|
|
13725
|
+
};
|
|
13726
|
+
let direction = event.data > 0 ? 1 : -1;
|
|
13727
|
+
const newScale = direction > 0 ? oldScale * event.data : oldScale / event.data;
|
|
13728
|
+
this._konvaStage.scale({
|
|
13729
|
+
x: newScale,
|
|
13730
|
+
y: newScale
|
|
13731
|
+
});
|
|
13732
|
+
const newPos = {
|
|
13733
|
+
x: pointer.x - mousePointTo.x * newScale,
|
|
13734
|
+
y: pointer.y - mousePointTo.y * newScale
|
|
13735
|
+
};
|
|
13736
|
+
this._konvaStage.position(newPos);
|
|
13220
13737
|
};
|
|
13221
13738
|
this.redirectToViewer = event => {
|
|
13222
13739
|
if (this._viewer) this._viewer.emit(event);
|
|
13223
13740
|
};
|
|
13741
|
+
this.getRelativePointPosition = (point, node) => {
|
|
13742
|
+
const transform = node.getAbsoluteTransform().copy();
|
|
13743
|
+
transform.invert();
|
|
13744
|
+
return transform.point(point);
|
|
13745
|
+
};
|
|
13746
|
+
this.getRelativePointerPosition = node => this.getRelativePointPosition(node.getStage().getPointerPosition(), node);
|
|
13224
13747
|
}
|
|
13225
13748
|
initialize(container, containerEvents, viewer, worldTransformer) {
|
|
13226
13749
|
if (!Konva) throw new Error('Markup error: Konva is not initialized. Forgot to add <script src="https://unpkg.com/konva@9/konva.min.js"><\/script> to your page?');
|
|
@@ -13244,11 +13767,13 @@
|
|
|
13244
13767
|
this._containerEvents.forEach((x => this._markupContainer.addEventListener(x, this.redirectToViewer)));
|
|
13245
13768
|
this._viewer.addEventListener("changeactivedragger", this.changeActiveDragger);
|
|
13246
13769
|
this._viewer.addEventListener("pan", this.pan);
|
|
13770
|
+
this._viewer.addEventListener("zoomat", this.zoomAt);
|
|
13247
13771
|
}
|
|
13248
13772
|
}
|
|
13249
13773
|
dispose() {
|
|
13250
13774
|
var _a, _b;
|
|
13251
13775
|
if (this._viewer) {
|
|
13776
|
+
this._viewer.removeEventListener("zoomat", this.zoomAt);
|
|
13252
13777
|
this._viewer.removeEventListener("pan", this.pan);
|
|
13253
13778
|
this._viewer.removeEventListener("changeactivedragger", this.changeActiveDragger);
|
|
13254
13779
|
this._containerEvents.forEach((x => this._markupContainer.removeEventListener(x, this.redirectToViewer)));
|
|
@@ -13295,6 +13820,14 @@
|
|
|
13295
13820
|
this.clearSelected();
|
|
13296
13821
|
this.removeTextInput();
|
|
13297
13822
|
this.removeImageInput();
|
|
13823
|
+
this._konvaStage.scale({
|
|
13824
|
+
x: 1,
|
|
13825
|
+
y: 1
|
|
13826
|
+
});
|
|
13827
|
+
this._konvaStage.position({
|
|
13828
|
+
x: 0,
|
|
13829
|
+
y: 0
|
|
13830
|
+
});
|
|
13298
13831
|
const markupColor = ((_a = viewpoint.custom_fields) === null || _a === void 0 ? void 0 : _a.markup_color) || {
|
|
13299
13832
|
r: 255,
|
|
13300
13833
|
g: 0,
|
|
@@ -13441,7 +13974,7 @@
|
|
|
13441
13974
|
transformer.nodes([]);
|
|
13442
13975
|
return;
|
|
13443
13976
|
}
|
|
13444
|
-
const pos =
|
|
13977
|
+
const pos = this.getRelativePointerPosition(stage);
|
|
13445
13978
|
mouseDownPos = pos;
|
|
13446
13979
|
isPaint = [ "Arrow", "Cloud", "Ellipse", "Line", "Rectangle" ].some((m => m === this._markupMode));
|
|
13447
13980
|
if (this._markupMode === "Line") {
|
|
@@ -13451,7 +13984,7 @@
|
|
|
13451
13984
|
stage.on("mouseup touchend", (e => {
|
|
13452
13985
|
if (!this._markupIsActive) return;
|
|
13453
13986
|
if (isPaint) {
|
|
13454
|
-
const pos =
|
|
13987
|
+
const pos = this.getRelativePointerPosition(stage);
|
|
13455
13988
|
const defParams = mouseDownPos && pos.x === mouseDownPos.x && pos.y === mouseDownPos.y;
|
|
13456
13989
|
const startX = defParams ? mouseDownPos.x : Math.min(mouseDownPos.x, pos.x);
|
|
13457
13990
|
const startY = defParams ? mouseDownPos.y : Math.min(mouseDownPos.y, pos.y);
|
|
@@ -13495,7 +14028,7 @@
|
|
|
13495
14028
|
if (!isPaint) {
|
|
13496
14029
|
return;
|
|
13497
14030
|
}
|
|
13498
|
-
const pos =
|
|
14031
|
+
const pos = this.getRelativePointerPosition(stage);
|
|
13499
14032
|
const defParams = mouseDownPos && pos.x === mouseDownPos.x && pos.y === mouseDownPos.y;
|
|
13500
14033
|
const startX = defParams ? mouseDownPos.x : Math.min(mouseDownPos.x, pos.x);
|
|
13501
14034
|
const startY = defParams ? mouseDownPos.y : Math.min(mouseDownPos.y, pos.y);
|
|
@@ -13551,7 +14084,7 @@
|
|
|
13551
14084
|
if (e.target === stage) {
|
|
13552
14085
|
if (this._markupMode === "Text") {
|
|
13553
14086
|
if (this._textInputRef && this._textInputRef.value) this.addText(this._textInputRef.value, this._textInputPos, this._textInputAngle); else if (transformer.nodes().length === 0) {
|
|
13554
|
-
const pos =
|
|
14087
|
+
const pos = this.getRelativePointerPosition(stage);
|
|
13555
14088
|
this.createTextInput(pos, e.evt.pageX, e.evt.pageY, 0, null);
|
|
13556
14089
|
}
|
|
13557
14090
|
} else if (this._markupMode === "Image") {
|
|
@@ -13559,7 +14092,7 @@
|
|
|
13559
14092
|
x: this._imageInputPos.x,
|
|
13560
14093
|
y: this._imageInputPos.y
|
|
13561
14094
|
}, this._imageInputRef.value, 0, 0, this._imageInputRef.value); else if (transformer.nodes().length === 0) {
|
|
13562
|
-
const pos =
|
|
14095
|
+
const pos = this.getRelativePointerPosition(stage);
|
|
13563
14096
|
this.createImageInput(pos);
|
|
13564
14097
|
}
|
|
13565
14098
|
}
|
|
@@ -13664,11 +14197,13 @@
|
|
|
13664
14197
|
this.konvaLayerFind("Text").forEach((ref => {
|
|
13665
14198
|
const textSize = .02;
|
|
13666
14199
|
const textScale = this._worldTransformer.getScale();
|
|
13667
|
-
const position =
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
14200
|
+
const position = ref.position();
|
|
14201
|
+
const stageAbsoluteTransform = this._konvaStage.getAbsoluteTransform();
|
|
14202
|
+
const atPoint = stageAbsoluteTransform.point({
|
|
14203
|
+
x: position.x,
|
|
14204
|
+
y: position.y
|
|
14205
|
+
});
|
|
14206
|
+
const worldPoint = this._worldTransformer.screenToWorld(atPoint);
|
|
13672
14207
|
const shape = new KonvaText(null, ref);
|
|
13673
14208
|
const text = {
|
|
13674
14209
|
id: shape.id(),
|
|
@@ -13677,7 +14212,7 @@
|
|
|
13677
14212
|
text_size: textSize * textScale.y,
|
|
13678
14213
|
angle: shape.getRotation(),
|
|
13679
14214
|
color: shape.getColor(),
|
|
13680
|
-
font_size: shape.getFontSize()
|
|
14215
|
+
font_size: shape.getFontSize() * stageAbsoluteTransform.getMatrix()[0]
|
|
13681
14216
|
};
|
|
13682
14217
|
texts.push(text);
|
|
13683
14218
|
}));
|
|
@@ -13687,13 +14222,19 @@
|
|
|
13687
14222
|
const rectangles = [];
|
|
13688
14223
|
this.konvaLayerFind("Rectangle").forEach((ref => {
|
|
13689
14224
|
const position = ref.position();
|
|
13690
|
-
const
|
|
14225
|
+
const stageAbsoluteTransform = this._konvaStage.getAbsoluteTransform();
|
|
14226
|
+
const atPoint = stageAbsoluteTransform.point({
|
|
14227
|
+
x: position.x,
|
|
14228
|
+
y: position.y
|
|
14229
|
+
});
|
|
14230
|
+
const worldPoint = this._worldTransformer.screenToWorld(atPoint);
|
|
14231
|
+
const scale = stageAbsoluteTransform.getMatrix()[0];
|
|
13691
14232
|
const shape = new KonvaRectangle(null, ref);
|
|
13692
14233
|
const rectangle = {
|
|
13693
14234
|
id: shape.id(),
|
|
13694
14235
|
position: worldPoint,
|
|
13695
|
-
width: shape.getWidth(),
|
|
13696
|
-
height: shape.getHeigth(),
|
|
14236
|
+
width: shape.getWidth() * scale,
|
|
14237
|
+
height: shape.getHeigth() * scale,
|
|
13697
14238
|
line_width: shape.getLineWidth(),
|
|
13698
14239
|
color: shape.getColor()
|
|
13699
14240
|
};
|
|
@@ -13705,14 +14246,20 @@
|
|
|
13705
14246
|
const ellipses = [];
|
|
13706
14247
|
this.konvaLayerFind("Ellipse").forEach((ref => {
|
|
13707
14248
|
const position = ref.position();
|
|
13708
|
-
const
|
|
14249
|
+
const stageAbsoluteTransform = this._konvaStage.getAbsoluteTransform();
|
|
14250
|
+
const atPoint = stageAbsoluteTransform.point({
|
|
14251
|
+
x: position.x,
|
|
14252
|
+
y: position.y
|
|
14253
|
+
});
|
|
14254
|
+
const worldPoint = this._worldTransformer.screenToWorld(atPoint);
|
|
14255
|
+
const scale = stageAbsoluteTransform.getMatrix()[0];
|
|
13709
14256
|
const shape = new KonvaEllipse(null, ref);
|
|
13710
14257
|
const ellipse = {
|
|
13711
14258
|
id: shape.id(),
|
|
13712
14259
|
position: worldPoint,
|
|
13713
14260
|
radius: {
|
|
13714
|
-
x: ref.getRadiusX(),
|
|
13715
|
-
y: ref.getRadiusY()
|
|
14261
|
+
x: ref.getRadiusX() * scale,
|
|
14262
|
+
y: ref.getRadiusY() * scale
|
|
13716
14263
|
},
|
|
13717
14264
|
line_width: shape.getLineWidth(),
|
|
13718
14265
|
color: shape.getColor()
|
|
@@ -13750,14 +14297,20 @@
|
|
|
13750
14297
|
const images = [];
|
|
13751
14298
|
this.konvaLayerFind("Image").forEach((ref => {
|
|
13752
14299
|
const position = ref.position();
|
|
13753
|
-
const
|
|
14300
|
+
const stageAbsoluteTransform = this._konvaStage.getAbsoluteTransform();
|
|
14301
|
+
const atPoint = stageAbsoluteTransform.point({
|
|
14302
|
+
x: position.x,
|
|
14303
|
+
y: position.y
|
|
14304
|
+
});
|
|
14305
|
+
const worldPoint = this._worldTransformer.screenToWorld(atPoint);
|
|
14306
|
+
const scale = stageAbsoluteTransform.getMatrix()[0];
|
|
13754
14307
|
const shape = new KonvaImage(null, ref);
|
|
13755
14308
|
const image = {
|
|
13756
14309
|
id: shape.id(),
|
|
13757
14310
|
position: worldPoint,
|
|
13758
14311
|
src: shape.getSrc(),
|
|
13759
|
-
width: shape.getWidth(),
|
|
13760
|
-
height: shape.getHeight()
|
|
14312
|
+
width: shape.getWidth() * scale,
|
|
14313
|
+
height: shape.getHeight() * scale
|
|
13761
14314
|
};
|
|
13762
14315
|
images.push(image);
|
|
13763
14316
|
}));
|
|
@@ -13767,13 +14320,19 @@
|
|
|
13767
14320
|
const clouds = [];
|
|
13768
14321
|
this.konvaLayerFind("Cloud").forEach((ref => {
|
|
13769
14322
|
const position = ref.position();
|
|
13770
|
-
const
|
|
14323
|
+
const stageAbsoluteTransform = this._konvaStage.getAbsoluteTransform();
|
|
14324
|
+
const atPoint = stageAbsoluteTransform.point({
|
|
14325
|
+
x: position.x,
|
|
14326
|
+
y: position.y
|
|
14327
|
+
});
|
|
14328
|
+
const worldPoint = this._worldTransformer.screenToWorld(atPoint);
|
|
14329
|
+
const scale = stageAbsoluteTransform.getMatrix()[0];
|
|
13771
14330
|
const shape = new KonvaCloud(null, ref);
|
|
13772
14331
|
const cloud = {
|
|
13773
14332
|
id: shape.id(),
|
|
13774
14333
|
position: worldPoint,
|
|
13775
|
-
width: shape.getWidth(),
|
|
13776
|
-
height: shape.getHeigth(),
|
|
14334
|
+
width: shape.getWidth() * scale,
|
|
14335
|
+
height: shape.getHeigth() * scale,
|
|
13777
14336
|
line_width: shape.getLineWidth(),
|
|
13778
14337
|
color: shape.getColor()
|
|
13779
14338
|
};
|
|
@@ -14119,6 +14678,28 @@
|
|
|
14119
14678
|
}
|
|
14120
14679
|
|
|
14121
14680
|
///////////////////////////////////////////////////////////////////////////////
|
|
14681
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
14682
|
+
// All rights reserved.
|
|
14683
|
+
//
|
|
14684
|
+
// This software and its documentation and related materials are owned by
|
|
14685
|
+
// the Alliance. The software may only be incorporated into application
|
|
14686
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
14687
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
14688
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
14689
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
14690
|
+
// protected by copyright law and international treaty provisions. Application
|
|
14691
|
+
// programs incorporating this software must include the following statement
|
|
14692
|
+
// with their copyright notices:
|
|
14693
|
+
//
|
|
14694
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
14695
|
+
// license agreement with Open Design Alliance.
|
|
14696
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
14697
|
+
// All rights reserved.
|
|
14698
|
+
//
|
|
14699
|
+
// By use of this software, its documentation or related materials, you
|
|
14700
|
+
// acknowledge and accept the above terms.
|
|
14701
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
14702
|
+
/* eslint-disable no-unused-vars */
|
|
14122
14703
|
const CLICK_DELTA = 5;
|
|
14123
14704
|
const INTERACTIVITY_FPS = 24;
|
|
14124
14705
|
class OdBaseDragger extends OdaGeAction {
|
|
@@ -14397,6 +14978,27 @@
|
|
|
14397
14978
|
element.style.pointerEvents = enable ? "auto" : "none";
|
|
14398
14979
|
}
|
|
14399
14980
|
|
|
14981
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
14982
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
14983
|
+
// All rights reserved.
|
|
14984
|
+
//
|
|
14985
|
+
// This software and its documentation and related materials are owned by
|
|
14986
|
+
// the Alliance. The software may only be incorporated into application
|
|
14987
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
14988
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
14989
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
14990
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
14991
|
+
// protected by copyright law and international treaty provisions. Application
|
|
14992
|
+
// programs incorporating this software must include the following statement
|
|
14993
|
+
// with their copyright notices:
|
|
14994
|
+
//
|
|
14995
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
14996
|
+
// license agreement with Open Design Alliance.
|
|
14997
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
14998
|
+
// All rights reserved.
|
|
14999
|
+
//
|
|
15000
|
+
// By use of this software, its documentation or related materials, you
|
|
15001
|
+
// acknowledge and accept the above terms.
|
|
14400
15002
|
///////////////////////////////////////////////////////////////////////////////
|
|
14401
15003
|
class MeasureLineItem {
|
|
14402
15004
|
constructor(targetElement, viewer, moduleInstance) {
|
|
@@ -15441,7 +16043,7 @@
|
|
|
15441
16043
|
this.beginInteractivity();
|
|
15442
16044
|
}
|
|
15443
16045
|
drag(x, y, dltX, dltY) {
|
|
15444
|
-
if (this.press && Math.abs(dltY)
|
|
16046
|
+
if (this.press && Math.abs(dltY) >= 10e-6) {
|
|
15445
16047
|
const ZOOM_SPEED = 0.025;
|
|
15446
16048
|
const zoomFactor = dltY > 0 ? 1 + ZOOM_SPEED : 1 - ZOOM_SPEED;
|
|
15447
16049
|
this._zoomAction.action(this.pressX, this.pressY, zoomFactor);
|
|
@@ -15453,6 +16055,27 @@
|
|
|
15453
16055
|
}
|
|
15454
16056
|
}
|
|
15455
16057
|
|
|
16058
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16059
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16060
|
+
// All rights reserved.
|
|
16061
|
+
//
|
|
16062
|
+
// This software and its documentation and related materials are owned by
|
|
16063
|
+
// the Alliance. The software may only be incorporated into application
|
|
16064
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16065
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16066
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16067
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16068
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16069
|
+
// programs incorporating this software must include the following statement
|
|
16070
|
+
// with their copyright notices:
|
|
16071
|
+
//
|
|
16072
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16073
|
+
// license agreement with Open Design Alliance.
|
|
16074
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16075
|
+
// All rights reserved.
|
|
16076
|
+
//
|
|
16077
|
+
// By use of this software, its documentation or related materials, you
|
|
16078
|
+
// acknowledge and accept the above terms.
|
|
15456
16079
|
///////////////////////////////////////////////////////////////////////////////
|
|
15457
16080
|
const INTERACTIVITY_TIME_OUT = 100;
|
|
15458
16081
|
class OdZoomWheelDragger extends OdBaseDragger {
|
|
@@ -15584,6 +16207,28 @@
|
|
|
15584
16207
|
}
|
|
15585
16208
|
|
|
15586
16209
|
///////////////////////////////////////////////////////////////////////////////
|
|
16210
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16211
|
+
// All rights reserved.
|
|
16212
|
+
//
|
|
16213
|
+
// This software and its documentation and related materials are owned by
|
|
16214
|
+
// the Alliance. The software may only be incorporated into application
|
|
16215
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16216
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16217
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16218
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16219
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16220
|
+
// programs incorporating this software must include the following statement
|
|
16221
|
+
// with their copyright notices:
|
|
16222
|
+
//
|
|
16223
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16224
|
+
// license agreement with Open Design Alliance.
|
|
16225
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16226
|
+
// All rights reserved.
|
|
16227
|
+
//
|
|
16228
|
+
// By use of this software, its documentation or related materials, you
|
|
16229
|
+
// acknowledge and accept the above terms.
|
|
16230
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16231
|
+
/* eslint-disable no-unused-vars */
|
|
15587
16232
|
class OdZoomWindowDragger extends OdBaseDragger {
|
|
15588
16233
|
constructor(subject) {
|
|
15589
16234
|
super(subject);
|
|
@@ -15731,6 +16376,27 @@
|
|
|
15731
16376
|
}
|
|
15732
16377
|
}
|
|
15733
16378
|
|
|
16379
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16380
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16381
|
+
// All rights reserved.
|
|
16382
|
+
//
|
|
16383
|
+
// This software and its documentation and related materials are owned by
|
|
16384
|
+
// the Alliance. The software may only be incorporated into application
|
|
16385
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16386
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16387
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16388
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16389
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16390
|
+
// programs incorporating this software must include the following statement
|
|
16391
|
+
// with their copyright notices:
|
|
16392
|
+
//
|
|
16393
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16394
|
+
// license agreement with Open Design Alliance.
|
|
16395
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16396
|
+
// All rights reserved.
|
|
16397
|
+
//
|
|
16398
|
+
// By use of this software, its documentation or related materials, you
|
|
16399
|
+
// acknowledge and accept the above terms.
|
|
15734
16400
|
///////////////////////////////////////////////////////////////////////////////
|
|
15735
16401
|
var GestureAction;
|
|
15736
16402
|
(function (GestureAction) {
|
|
@@ -16005,6 +16671,27 @@
|
|
|
16005
16671
|
async load() { }
|
|
16006
16672
|
}
|
|
16007
16673
|
|
|
16674
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16675
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16676
|
+
// All rights reserved.
|
|
16677
|
+
//
|
|
16678
|
+
// This software and its documentation and related materials are owned by
|
|
16679
|
+
// the Alliance. The software may only be incorporated into application
|
|
16680
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16681
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16682
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16683
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16684
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16685
|
+
// programs incorporating this software must include the following statement
|
|
16686
|
+
// with their copyright notices:
|
|
16687
|
+
//
|
|
16688
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16689
|
+
// license agreement with Open Design Alliance.
|
|
16690
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16691
|
+
// All rights reserved.
|
|
16692
|
+
//
|
|
16693
|
+
// By use of this software, its documentation or related materials, you
|
|
16694
|
+
// acknowledge and accept the above terms.
|
|
16008
16695
|
///////////////////////////////////////////////////////////////////////////////
|
|
16009
16696
|
class TCSLoader extends BaseLoader {
|
|
16010
16697
|
async load() {
|
|
@@ -16052,6 +16739,27 @@
|
|
|
16052
16739
|
}
|
|
16053
16740
|
}
|
|
16054
16741
|
|
|
16742
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16743
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16744
|
+
// All rights reserved.
|
|
16745
|
+
//
|
|
16746
|
+
// This software and its documentation and related materials are owned by
|
|
16747
|
+
// the Alliance. The software may only be incorporated into application
|
|
16748
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16749
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16750
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16751
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16752
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16753
|
+
// programs incorporating this software must include the following statement
|
|
16754
|
+
// with their copyright notices:
|
|
16755
|
+
//
|
|
16756
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16757
|
+
// license agreement with Open Design Alliance.
|
|
16758
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16759
|
+
// All rights reserved.
|
|
16760
|
+
//
|
|
16761
|
+
// By use of this software, its documentation or related materials, you
|
|
16762
|
+
// acknowledge and accept the above terms.
|
|
16055
16763
|
///////////////////////////////////////////////////////////////////////////////
|
|
16056
16764
|
class VsfXLoader extends BaseLoader {
|
|
16057
16765
|
async load() {
|
|
@@ -16117,6 +16825,27 @@
|
|
|
16117
16825
|
}
|
|
16118
16826
|
}
|
|
16119
16827
|
|
|
16828
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16829
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16830
|
+
// All rights reserved.
|
|
16831
|
+
//
|
|
16832
|
+
// This software and its documentation and related materials are owned by
|
|
16833
|
+
// the Alliance. The software may only be incorporated into application
|
|
16834
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16835
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16836
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16837
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16838
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16839
|
+
// programs incorporating this software must include the following statement
|
|
16840
|
+
// with their copyright notices:
|
|
16841
|
+
//
|
|
16842
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16843
|
+
// license agreement with Open Design Alliance.
|
|
16844
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16845
|
+
// All rights reserved.
|
|
16846
|
+
//
|
|
16847
|
+
// By use of this software, its documentation or related materials, you
|
|
16848
|
+
// acknowledge and accept the above terms.
|
|
16120
16849
|
///////////////////////////////////////////////////////////////////////////////
|
|
16121
16850
|
class VsfXStreamingLoader extends BaseLoader {
|
|
16122
16851
|
async load() {
|
|
@@ -16167,6 +16896,27 @@
|
|
|
16167
16896
|
}
|
|
16168
16897
|
}
|
|
16169
16898
|
|
|
16899
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
16900
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
16901
|
+
// All rights reserved.
|
|
16902
|
+
//
|
|
16903
|
+
// This software and its documentation and related materials are owned by
|
|
16904
|
+
// the Alliance. The software may only be incorporated into application
|
|
16905
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
16906
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
16907
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
16908
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
16909
|
+
// protected by copyright law and international treaty provisions. Application
|
|
16910
|
+
// programs incorporating this software must include the following statement
|
|
16911
|
+
// with their copyright notices:
|
|
16912
|
+
//
|
|
16913
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16914
|
+
// license agreement with Open Design Alliance.
|
|
16915
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
16916
|
+
// All rights reserved.
|
|
16917
|
+
//
|
|
16918
|
+
// By use of this software, its documentation or related materials, you
|
|
16919
|
+
// acknowledge and accept the above terms.
|
|
16170
16920
|
///////////////////////////////////////////////////////////////////////////////
|
|
16171
16921
|
const PENDING_REQUESTS_SIZE = 50;
|
|
16172
16922
|
const PENDING_REQUESTS_TIMEOUT = 250;
|
|
@@ -16321,6 +17071,27 @@
|
|
|
16321
17071
|
}
|
|
16322
17072
|
}
|
|
16323
17073
|
|
|
17074
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
17075
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
17076
|
+
// All rights reserved.
|
|
17077
|
+
//
|
|
17078
|
+
// This software and its documentation and related materials are owned by
|
|
17079
|
+
// the Alliance. The software may only be incorporated into application
|
|
17080
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
17081
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
17082
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
17083
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
17084
|
+
// protected by copyright law and international treaty provisions. Application
|
|
17085
|
+
// programs incorporating this software must include the following statement
|
|
17086
|
+
// with their copyright notices:
|
|
17087
|
+
//
|
|
17088
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
17089
|
+
// license agreement with Open Design Alliance.
|
|
17090
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
17091
|
+
// All rights reserved.
|
|
17092
|
+
//
|
|
17093
|
+
// By use of this software, its documentation or related materials, you
|
|
17094
|
+
// acknowledge and accept the above terms.
|
|
16324
17095
|
///////////////////////////////////////////////////////////////////////////////
|
|
16325
17096
|
class LoaderFactory {
|
|
16326
17097
|
create(viewer, model, options) {
|
|
@@ -16633,6 +17404,27 @@
|
|
|
16633
17404
|
clearSelected() { }
|
|
16634
17405
|
}
|
|
16635
17406
|
|
|
17407
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
17408
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
17409
|
+
// All rights reserved.
|
|
17410
|
+
//
|
|
17411
|
+
// This software and its documentation and related materials are owned by
|
|
17412
|
+
// the Alliance. The software may only be incorporated into application
|
|
17413
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
17414
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
17415
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
17416
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
17417
|
+
// protected by copyright law and international treaty provisions. Application
|
|
17418
|
+
// programs incorporating this software must include the following statement
|
|
17419
|
+
// with their copyright notices:
|
|
17420
|
+
//
|
|
17421
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
17422
|
+
// license agreement with Open Design Alliance.
|
|
17423
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
17424
|
+
// All rights reserved.
|
|
17425
|
+
//
|
|
17426
|
+
// By use of this software, its documentation or related materials, you
|
|
17427
|
+
// acknowledge and accept the above terms.
|
|
16636
17428
|
///////////////////////////////////////////////////////////////////////////////
|
|
16637
17429
|
class MarkupFactory {
|
|
16638
17430
|
static createMarkup(markupType = "Konva") {
|
|
@@ -16651,6 +17443,27 @@
|
|
|
16651
17443
|
}
|
|
16652
17444
|
}
|
|
16653
17445
|
|
|
17446
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
17447
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
17448
|
+
// All rights reserved.
|
|
17449
|
+
//
|
|
17450
|
+
// This software and its documentation and related materials are owned by
|
|
17451
|
+
// the Alliance. The software may only be incorporated into application
|
|
17452
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
17453
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
17454
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
17455
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
17456
|
+
// protected by copyright law and international treaty provisions. Application
|
|
17457
|
+
// programs incorporating this software must include the following statement
|
|
17458
|
+
// with their copyright notices:
|
|
17459
|
+
//
|
|
17460
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
17461
|
+
// license agreement with Open Design Alliance.
|
|
17462
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
17463
|
+
// All rights reserved.
|
|
17464
|
+
//
|
|
17465
|
+
// By use of this software, its documentation or related materials, you
|
|
17466
|
+
// acknowledge and accept the above terms.
|
|
16654
17467
|
///////////////////////////////////////////////////////////////////////////////
|
|
16655
17468
|
const OVERLAY_VIEW_NAME = "$OVERLAY_VIEW_NAME";
|
|
16656
17469
|
const isExist = (value) => value !== undefined && value !== null;
|
|
@@ -17663,7 +18476,5 @@
|
|
|
17663
18476
|
exports.commands = commands;
|
|
17664
18477
|
exports.defaultOptions = defaultOptions;
|
|
17665
18478
|
|
|
17666
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17667
|
-
|
|
17668
18479
|
}));
|
|
17669
18480
|
//# sourceMappingURL=viewer-visualize.js.map
|