three-cad-viewer 3.0.4 → 3.1.6
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/three-cad-viewer.css +54 -57
- package/dist/three-cad-viewer.esm.js +2028 -1316
- package/dist/three-cad-viewer.esm.min.js +1 -1
- package/dist/three-cad-viewer.js +2028 -1316
- package/dist/three-cad-viewer.min.js +1 -1
- package/package.json +1 -1
- package/src/_version.js +1 -1
- package/src/bbox.js +0 -1
- package/src/cad_tools/measure.js +29 -22
- package/src/cad_tools/tools.js +18 -5
- package/src/cad_tools/ui.js +1 -0
- package/src/clipping.js +6 -8
- package/src/display.js +18 -9
- package/src/icons.js +13 -1
- package/src/index.html +33 -58
- package/src/info.js +1 -2
- package/src/nestedgroup.js +42 -24
- package/src/objectgroup.js +234 -208
- package/src/orientation.js +10 -9
- package/src/raycast.js +224 -219
- package/src/slider.js +89 -89
- package/src/timer.js +3 -1
- package/src/toolbar.js +163 -157
- package/src/treeview.js +836 -326
- package/src/types.js +51 -69
- package/src/utils.js +13 -5
- package/src/viewer.js +294 -155
|
@@ -127,7 +127,17 @@ canvas {
|
|
|
127
127
|
|
|
128
128
|
.tcv_toggle_info_wrapper {
|
|
129
129
|
display: none;
|
|
130
|
-
margin-left:
|
|
130
|
+
margin-left: 4px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.tcv_info_label {
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
font-family: sans-serif;
|
|
136
|
+
font-weight: bold;
|
|
137
|
+
margin-left: 4px;
|
|
138
|
+
padding-bottom: 4px;
|
|
139
|
+
vertical-align: top;
|
|
140
|
+
user-select: none;
|
|
131
141
|
}
|
|
132
142
|
|
|
133
143
|
.tcv_cad_info_glass {
|
|
@@ -301,6 +311,7 @@ th {
|
|
|
301
311
|
overflow: scroll;
|
|
302
312
|
height: 100%;
|
|
303
313
|
margin: 0px 0px 0px 4px;
|
|
314
|
+
padding-top: 2px;
|
|
304
315
|
}
|
|
305
316
|
|
|
306
317
|
.tcv_btn {
|
|
@@ -719,38 +730,10 @@ input[type="button"] {
|
|
|
719
730
|
background-color: var(--tcv-bg-overlay-color);
|
|
720
731
|
}
|
|
721
732
|
|
|
722
|
-
.tcv_node_entry_wrap {
|
|
723
|
-
white-space: pre;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
.tcv_node_entry {
|
|
727
|
-
white-space: nowrap;
|
|
728
|
-
padding-top: 4px;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.tcv_t-caret {
|
|
732
|
-
cursor: pointer;
|
|
733
|
-
-webkit-user-select: none;
|
|
734
|
-
/* Safari 3.1+ */
|
|
735
|
-
-moz-user-select: none;
|
|
736
|
-
/* Firefox 2+ */
|
|
737
|
-
-ms-user-select: none;
|
|
738
|
-
/* IE 10+ */
|
|
739
|
-
user-select: none;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
.tcv_t-caret::before {
|
|
743
|
-
content: "\25B6\FE0E";
|
|
744
|
-
font-size: 12px;
|
|
745
|
-
/* color: black; */
|
|
746
|
-
display: inline-block;
|
|
747
|
-
margin-right: 2px;
|
|
748
|
-
}
|
|
749
733
|
|
|
750
|
-
.
|
|
751
|
-
|
|
752
|
-
-
|
|
753
|
-
transform: rotate(90deg);
|
|
734
|
+
.tv-tree-node {
|
|
735
|
+
display: flex;
|
|
736
|
+
flex-direction: column;
|
|
754
737
|
}
|
|
755
738
|
|
|
756
739
|
.tcv_toplevel {
|
|
@@ -760,48 +743,62 @@ input[type="button"] {
|
|
|
760
743
|
margin-block-end: 0px !important;
|
|
761
744
|
}
|
|
762
745
|
|
|
763
|
-
.
|
|
764
|
-
display:
|
|
765
|
-
|
|
766
|
-
padding
|
|
746
|
+
.tv-node-content {
|
|
747
|
+
display: flex;
|
|
748
|
+
align-items: center;
|
|
749
|
+
padding: 2px 0px 2px 0px;
|
|
750
|
+
height: 16px;
|
|
751
|
+
min-width: max-content;
|
|
767
752
|
}
|
|
768
753
|
|
|
769
|
-
.
|
|
770
|
-
display: block;
|
|
754
|
+
.tv-nav-marker {
|
|
755
|
+
display: inline-block;
|
|
756
|
+
width: 16px;
|
|
757
|
+
height: 16px;
|
|
758
|
+
margin-right: 1px;
|
|
759
|
+
cursor: pointer;
|
|
760
|
+
vertical-align: middle;
|
|
761
|
+
flex-shrink: 0;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.tv-nav-marker svg {
|
|
765
|
+
width: 100%;
|
|
766
|
+
height: 100%;
|
|
771
767
|
}
|
|
772
768
|
|
|
773
|
-
.
|
|
774
|
-
|
|
775
|
-
|
|
769
|
+
.tv-icon {
|
|
770
|
+
display: inline-block;
|
|
771
|
+
width: 24px;
|
|
772
|
+
height: 24px;
|
|
773
|
+
margin-right: 2px;
|
|
776
774
|
vertical-align: middle;
|
|
777
|
-
|
|
775
|
+
flex-shrink: 0;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.tv-pointer {
|
|
778
779
|
cursor: pointer;
|
|
779
|
-
margin: 2px 1px 2px 0px;
|
|
780
|
-
background: transparent;
|
|
781
|
-
background-position-x: center;
|
|
782
|
-
background-position-y: center;
|
|
783
|
-
background-repeat: no-repeat;
|
|
784
|
-
padding: 0px;
|
|
785
780
|
}
|
|
786
781
|
|
|
787
|
-
.
|
|
788
|
-
|
|
782
|
+
.tv-icon svg {
|
|
783
|
+
width: 100%;
|
|
784
|
+
height: 100%;
|
|
789
785
|
}
|
|
790
786
|
|
|
791
|
-
.
|
|
792
|
-
|
|
787
|
+
.tv-node-label {
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
margin-left: 4px;
|
|
793
790
|
font-size: 14px;
|
|
794
791
|
font-family: sans-serif;
|
|
795
|
-
user-select: none;
|
|
796
792
|
}
|
|
797
793
|
|
|
798
|
-
.
|
|
799
|
-
|
|
794
|
+
.tv-node-label-highlight {
|
|
795
|
+
color: rgb(112, 160, 220);
|
|
800
796
|
}
|
|
801
797
|
|
|
802
|
-
.
|
|
803
|
-
|
|
798
|
+
.tv-children {
|
|
799
|
+
margin-left: 20px;
|
|
804
800
|
}
|
|
801
|
+
|
|
805
802
|
/* MEASURE PANEL */
|
|
806
803
|
|
|
807
804
|
|