@inweb/viewer-visualize 25.8.21 → 25.9.0

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.
@@ -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
- let ext = modelPtr.getExtents();
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.13',
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
- context.fill();
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
- class Image$1 extends Shape_1$a.Shape {
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$1({
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 = opt.polarRotation || 0;
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) {
@@ -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);
@@ -14119,6 +14613,28 @@
14119
14613
  }
14120
14614
 
14121
14615
  ///////////////////////////////////////////////////////////////////////////////
14616
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
14617
+ // All rights reserved.
14618
+ //
14619
+ // This software and its documentation and related materials are owned by
14620
+ // the Alliance. The software may only be incorporated into application
14621
+ // programs owned by members of the Alliance, subject to a signed
14622
+ // Membership Agreement and Supplemental Software License Agreement with the
14623
+ // Alliance. The structure and organization of this software are the valuable
14624
+ // trade secrets of the Alliance and its suppliers. The software is also
14625
+ // protected by copyright law and international treaty provisions. Application
14626
+ // programs incorporating this software must include the following statement
14627
+ // with their copyright notices:
14628
+ //
14629
+ // This application incorporates Open Design Alliance software pursuant to a
14630
+ // license agreement with Open Design Alliance.
14631
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
14632
+ // All rights reserved.
14633
+ //
14634
+ // By use of this software, its documentation or related materials, you
14635
+ // acknowledge and accept the above terms.
14636
+ ///////////////////////////////////////////////////////////////////////////////
14637
+ /* eslint-disable no-unused-vars */
14122
14638
  const CLICK_DELTA = 5;
14123
14639
  const INTERACTIVITY_FPS = 24;
14124
14640
  class OdBaseDragger extends OdaGeAction {
@@ -14397,6 +14913,27 @@
14397
14913
  element.style.pointerEvents = enable ? "auto" : "none";
14398
14914
  }
14399
14915
 
14916
+ ///////////////////////////////////////////////////////////////////////////////
14917
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
14918
+ // All rights reserved.
14919
+ //
14920
+ // This software and its documentation and related materials are owned by
14921
+ // the Alliance. The software may only be incorporated into application
14922
+ // programs owned by members of the Alliance, subject to a signed
14923
+ // Membership Agreement and Supplemental Software License Agreement with the
14924
+ // Alliance. The structure and organization of this software are the valuable
14925
+ // trade secrets of the Alliance and its suppliers. The software is also
14926
+ // protected by copyright law and international treaty provisions. Application
14927
+ // programs incorporating this software must include the following statement
14928
+ // with their copyright notices:
14929
+ //
14930
+ // This application incorporates Open Design Alliance software pursuant to a
14931
+ // license agreement with Open Design Alliance.
14932
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
14933
+ // All rights reserved.
14934
+ //
14935
+ // By use of this software, its documentation or related materials, you
14936
+ // acknowledge and accept the above terms.
14400
14937
  ///////////////////////////////////////////////////////////////////////////////
14401
14938
  class MeasureLineItem {
14402
14939
  constructor(targetElement, viewer, moduleInstance) {
@@ -15453,6 +15990,27 @@
15453
15990
  }
15454
15991
  }
15455
15992
 
15993
+ ///////////////////////////////////////////////////////////////////////////////
15994
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
15995
+ // All rights reserved.
15996
+ //
15997
+ // This software and its documentation and related materials are owned by
15998
+ // the Alliance. The software may only be incorporated into application
15999
+ // programs owned by members of the Alliance, subject to a signed
16000
+ // Membership Agreement and Supplemental Software License Agreement with the
16001
+ // Alliance. The structure and organization of this software are the valuable
16002
+ // trade secrets of the Alliance and its suppliers. The software is also
16003
+ // protected by copyright law and international treaty provisions. Application
16004
+ // programs incorporating this software must include the following statement
16005
+ // with their copyright notices:
16006
+ //
16007
+ // This application incorporates Open Design Alliance software pursuant to a
16008
+ // license agreement with Open Design Alliance.
16009
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16010
+ // All rights reserved.
16011
+ //
16012
+ // By use of this software, its documentation or related materials, you
16013
+ // acknowledge and accept the above terms.
15456
16014
  ///////////////////////////////////////////////////////////////////////////////
15457
16015
  const INTERACTIVITY_TIME_OUT = 100;
15458
16016
  class OdZoomWheelDragger extends OdBaseDragger {
@@ -15584,6 +16142,28 @@
15584
16142
  }
15585
16143
 
15586
16144
  ///////////////////////////////////////////////////////////////////////////////
16145
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
16146
+ // All rights reserved.
16147
+ //
16148
+ // This software and its documentation and related materials are owned by
16149
+ // the Alliance. The software may only be incorporated into application
16150
+ // programs owned by members of the Alliance, subject to a signed
16151
+ // Membership Agreement and Supplemental Software License Agreement with the
16152
+ // Alliance. The structure and organization of this software are the valuable
16153
+ // trade secrets of the Alliance and its suppliers. The software is also
16154
+ // protected by copyright law and international treaty provisions. Application
16155
+ // programs incorporating this software must include the following statement
16156
+ // with their copyright notices:
16157
+ //
16158
+ // This application incorporates Open Design Alliance software pursuant to a
16159
+ // license agreement with Open Design Alliance.
16160
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16161
+ // All rights reserved.
16162
+ //
16163
+ // By use of this software, its documentation or related materials, you
16164
+ // acknowledge and accept the above terms.
16165
+ ///////////////////////////////////////////////////////////////////////////////
16166
+ /* eslint-disable no-unused-vars */
15587
16167
  class OdZoomWindowDragger extends OdBaseDragger {
15588
16168
  constructor(subject) {
15589
16169
  super(subject);
@@ -15731,6 +16311,27 @@
15731
16311
  }
15732
16312
  }
15733
16313
 
16314
+ ///////////////////////////////////////////////////////////////////////////////
16315
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
16316
+ // All rights reserved.
16317
+ //
16318
+ // This software and its documentation and related materials are owned by
16319
+ // the Alliance. The software may only be incorporated into application
16320
+ // programs owned by members of the Alliance, subject to a signed
16321
+ // Membership Agreement and Supplemental Software License Agreement with the
16322
+ // Alliance. The structure and organization of this software are the valuable
16323
+ // trade secrets of the Alliance and its suppliers. The software is also
16324
+ // protected by copyright law and international treaty provisions. Application
16325
+ // programs incorporating this software must include the following statement
16326
+ // with their copyright notices:
16327
+ //
16328
+ // This application incorporates Open Design Alliance software pursuant to a
16329
+ // license agreement with Open Design Alliance.
16330
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16331
+ // All rights reserved.
16332
+ //
16333
+ // By use of this software, its documentation or related materials, you
16334
+ // acknowledge and accept the above terms.
15734
16335
  ///////////////////////////////////////////////////////////////////////////////
15735
16336
  var GestureAction;
15736
16337
  (function (GestureAction) {
@@ -16005,6 +16606,27 @@
16005
16606
  async load() { }
16006
16607
  }
16007
16608
 
16609
+ ///////////////////////////////////////////////////////////////////////////////
16610
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
16611
+ // All rights reserved.
16612
+ //
16613
+ // This software and its documentation and related materials are owned by
16614
+ // the Alliance. The software may only be incorporated into application
16615
+ // programs owned by members of the Alliance, subject to a signed
16616
+ // Membership Agreement and Supplemental Software License Agreement with the
16617
+ // Alliance. The structure and organization of this software are the valuable
16618
+ // trade secrets of the Alliance and its suppliers. The software is also
16619
+ // protected by copyright law and international treaty provisions. Application
16620
+ // programs incorporating this software must include the following statement
16621
+ // with their copyright notices:
16622
+ //
16623
+ // This application incorporates Open Design Alliance software pursuant to a
16624
+ // license agreement with Open Design Alliance.
16625
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16626
+ // All rights reserved.
16627
+ //
16628
+ // By use of this software, its documentation or related materials, you
16629
+ // acknowledge and accept the above terms.
16008
16630
  ///////////////////////////////////////////////////////////////////////////////
16009
16631
  class TCSLoader extends BaseLoader {
16010
16632
  async load() {
@@ -16052,6 +16674,27 @@
16052
16674
  }
16053
16675
  }
16054
16676
 
16677
+ ///////////////////////////////////////////////////////////////////////////////
16678
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
16679
+ // All rights reserved.
16680
+ //
16681
+ // This software and its documentation and related materials are owned by
16682
+ // the Alliance. The software may only be incorporated into application
16683
+ // programs owned by members of the Alliance, subject to a signed
16684
+ // Membership Agreement and Supplemental Software License Agreement with the
16685
+ // Alliance. The structure and organization of this software are the valuable
16686
+ // trade secrets of the Alliance and its suppliers. The software is also
16687
+ // protected by copyright law and international treaty provisions. Application
16688
+ // programs incorporating this software must include the following statement
16689
+ // with their copyright notices:
16690
+ //
16691
+ // This application incorporates Open Design Alliance software pursuant to a
16692
+ // license agreement with Open Design Alliance.
16693
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16694
+ // All rights reserved.
16695
+ //
16696
+ // By use of this software, its documentation or related materials, you
16697
+ // acknowledge and accept the above terms.
16055
16698
  ///////////////////////////////////////////////////////////////////////////////
16056
16699
  class VsfXLoader extends BaseLoader {
16057
16700
  async load() {
@@ -16117,6 +16760,27 @@
16117
16760
  }
16118
16761
  }
16119
16762
 
16763
+ ///////////////////////////////////////////////////////////////////////////////
16764
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
16765
+ // All rights reserved.
16766
+ //
16767
+ // This software and its documentation and related materials are owned by
16768
+ // the Alliance. The software may only be incorporated into application
16769
+ // programs owned by members of the Alliance, subject to a signed
16770
+ // Membership Agreement and Supplemental Software License Agreement with the
16771
+ // Alliance. The structure and organization of this software are the valuable
16772
+ // trade secrets of the Alliance and its suppliers. The software is also
16773
+ // protected by copyright law and international treaty provisions. Application
16774
+ // programs incorporating this software must include the following statement
16775
+ // with their copyright notices:
16776
+ //
16777
+ // This application incorporates Open Design Alliance software pursuant to a
16778
+ // license agreement with Open Design Alliance.
16779
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16780
+ // All rights reserved.
16781
+ //
16782
+ // By use of this software, its documentation or related materials, you
16783
+ // acknowledge and accept the above terms.
16120
16784
  ///////////////////////////////////////////////////////////////////////////////
16121
16785
  class VsfXStreamingLoader extends BaseLoader {
16122
16786
  async load() {
@@ -16167,6 +16831,27 @@
16167
16831
  }
16168
16832
  }
16169
16833
 
16834
+ ///////////////////////////////////////////////////////////////////////////////
16835
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
16836
+ // All rights reserved.
16837
+ //
16838
+ // This software and its documentation and related materials are owned by
16839
+ // the Alliance. The software may only be incorporated into application
16840
+ // programs owned by members of the Alliance, subject to a signed
16841
+ // Membership Agreement and Supplemental Software License Agreement with the
16842
+ // Alliance. The structure and organization of this software are the valuable
16843
+ // trade secrets of the Alliance and its suppliers. The software is also
16844
+ // protected by copyright law and international treaty provisions. Application
16845
+ // programs incorporating this software must include the following statement
16846
+ // with their copyright notices:
16847
+ //
16848
+ // This application incorporates Open Design Alliance software pursuant to a
16849
+ // license agreement with Open Design Alliance.
16850
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
16851
+ // All rights reserved.
16852
+ //
16853
+ // By use of this software, its documentation or related materials, you
16854
+ // acknowledge and accept the above terms.
16170
16855
  ///////////////////////////////////////////////////////////////////////////////
16171
16856
  const PENDING_REQUESTS_SIZE = 50;
16172
16857
  const PENDING_REQUESTS_TIMEOUT = 250;
@@ -16321,6 +17006,27 @@
16321
17006
  }
16322
17007
  }
16323
17008
 
17009
+ ///////////////////////////////////////////////////////////////////////////////
17010
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
17011
+ // All rights reserved.
17012
+ //
17013
+ // This software and its documentation and related materials are owned by
17014
+ // the Alliance. The software may only be incorporated into application
17015
+ // programs owned by members of the Alliance, subject to a signed
17016
+ // Membership Agreement and Supplemental Software License Agreement with the
17017
+ // Alliance. The structure and organization of this software are the valuable
17018
+ // trade secrets of the Alliance and its suppliers. The software is also
17019
+ // protected by copyright law and international treaty provisions. Application
17020
+ // programs incorporating this software must include the following statement
17021
+ // with their copyright notices:
17022
+ //
17023
+ // This application incorporates Open Design Alliance software pursuant to a
17024
+ // license agreement with Open Design Alliance.
17025
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
17026
+ // All rights reserved.
17027
+ //
17028
+ // By use of this software, its documentation or related materials, you
17029
+ // acknowledge and accept the above terms.
16324
17030
  ///////////////////////////////////////////////////////////////////////////////
16325
17031
  class LoaderFactory {
16326
17032
  create(viewer, model, options) {
@@ -16633,6 +17339,27 @@
16633
17339
  clearSelected() { }
16634
17340
  }
16635
17341
 
17342
+ ///////////////////////////////////////////////////////////////////////////////
17343
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
17344
+ // All rights reserved.
17345
+ //
17346
+ // This software and its documentation and related materials are owned by
17347
+ // the Alliance. The software may only be incorporated into application
17348
+ // programs owned by members of the Alliance, subject to a signed
17349
+ // Membership Agreement and Supplemental Software License Agreement with the
17350
+ // Alliance. The structure and organization of this software are the valuable
17351
+ // trade secrets of the Alliance and its suppliers. The software is also
17352
+ // protected by copyright law and international treaty provisions. Application
17353
+ // programs incorporating this software must include the following statement
17354
+ // with their copyright notices:
17355
+ //
17356
+ // This application incorporates Open Design Alliance software pursuant to a
17357
+ // license agreement with Open Design Alliance.
17358
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
17359
+ // All rights reserved.
17360
+ //
17361
+ // By use of this software, its documentation or related materials, you
17362
+ // acknowledge and accept the above terms.
16636
17363
  ///////////////////////////////////////////////////////////////////////////////
16637
17364
  class MarkupFactory {
16638
17365
  static createMarkup(markupType = "Konva") {
@@ -16651,6 +17378,27 @@
16651
17378
  }
16652
17379
  }
16653
17380
 
17381
+ ///////////////////////////////////////////////////////////////////////////////
17382
+ // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
17383
+ // All rights reserved.
17384
+ //
17385
+ // This software and its documentation and related materials are owned by
17386
+ // the Alliance. The software may only be incorporated into application
17387
+ // programs owned by members of the Alliance, subject to a signed
17388
+ // Membership Agreement and Supplemental Software License Agreement with the
17389
+ // Alliance. The structure and organization of this software are the valuable
17390
+ // trade secrets of the Alliance and its suppliers. The software is also
17391
+ // protected by copyright law and international treaty provisions. Application
17392
+ // programs incorporating this software must include the following statement
17393
+ // with their copyright notices:
17394
+ //
17395
+ // This application incorporates Open Design Alliance software pursuant to a
17396
+ // license agreement with Open Design Alliance.
17397
+ // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
17398
+ // All rights reserved.
17399
+ //
17400
+ // By use of this software, its documentation or related materials, you
17401
+ // acknowledge and accept the above terms.
16654
17402
  ///////////////////////////////////////////////////////////////////////////////
16655
17403
  const OVERLAY_VIEW_NAME = "$OVERLAY_VIEW_NAME";
16656
17404
  const isExist = (value) => value !== undefined && value !== null;
@@ -16854,6 +17602,8 @@
16854
17602
  if (!this.visualizeJs)
16855
17603
  return this;
16856
17604
  const { clientWidth, clientHeight } = this.canvas;
17605
+ if (!clientWidth || !clientHeight)
17606
+ return this; // <- invisible viewer, or viewer with parent removed
16857
17607
  this.canvas.width = clientWidth * window.devicePixelRatio;
16858
17608
  this.canvas.height = clientHeight * window.devicePixelRatio;
16859
17609
  const visViewer = this.visualizeJs.getViewer();
@@ -17661,7 +18411,5 @@
17661
18411
  exports.commands = commands;
17662
18412
  exports.defaultOptions = defaultOptions;
17663
18413
 
17664
- Object.defineProperty(exports, '__esModule', { value: true });
17665
-
17666
18414
  }));
17667
18415
  //# sourceMappingURL=viewer-visualize.js.map