three-cad-viewer 2.1.2 → 2.2.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.
- package/Readme.md +3 -2
- package/dist/three-cad-viewer.css +12 -1
- package/dist/three-cad-viewer.esm.js +4653 -2179
- package/dist/three-cad-viewer.esm.min.js +1 -1
- package/dist/three-cad-viewer.js +4653 -2179
- package/dist/three-cad-viewer.min.js +1 -1
- package/package.json +3 -3
- package/src/_version.js +1 -1
- package/src/axes.js +1 -0
- package/src/bbox.js +6 -1
- package/src/cad_tools/measure.js +610 -526
- package/src/cad_tools/tools.js +127 -128
- package/src/cad_tools/ui.js +280 -284
- package/src/camera.js +21 -15
- package/src/clipping.js +274 -89
- package/src/display.js +206 -56
- package/src/font.js +72 -0
- package/src/fontloader/FontLoader.js +107 -140
- package/src/grid.js +90 -14
- package/src/icons.js +0 -2
- package/src/index.html +19 -8
- package/src/nestedgroup.js +115 -53
- package/src/objectgroup.js +20 -12
- package/src/slider.js +1 -1
- package/src/toolbar.js +13 -5
- package/src/treeview.js +11 -1
- package/src/viewer.js +212 -56
package/Readme.md
CHANGED
|
@@ -44,8 +44,9 @@ For the `States` object, see [Class States](https://bernhard-42.github.io/three-
|
|
|
44
44
|
|
|
45
45
|
1. [Install yarn](https://classic.yarnpkg.com/en/docs/install) on your system (ie. `npm i -g yarn`) if not already done;
|
|
46
46
|
2. Clone the repository: `git clone https://github.com/bernhard-42/three-cad-viewer.git && cd three-cad-viewer`;
|
|
47
|
-
3.
|
|
48
|
-
4.
|
|
47
|
+
3. Run `yarn install` to install dependencies
|
|
48
|
+
4. Start web server: `yarn run start` and go to the page displayed in the logs (ie. `127.0.0.1:8080`)
|
|
49
|
+
5. Build project: `yarn run clean; yarn run build; yarn run docs`;
|
|
49
50
|
|
|
50
51
|
## Skeleton:
|
|
51
52
|
|
|
@@ -469,6 +469,7 @@ input[type="button"] {
|
|
|
469
469
|
background-color: var(--tcv-bg-color);
|
|
470
470
|
padding-top: 2px;
|
|
471
471
|
padding-bottom: 2px;
|
|
472
|
+
margin-top: 0px;
|
|
472
473
|
}
|
|
473
474
|
|
|
474
475
|
.tcv_dropdown-entry {
|
|
@@ -506,8 +507,17 @@ input[type="button"] {
|
|
|
506
507
|
margin-bottom: 10px;
|
|
507
508
|
}
|
|
508
509
|
|
|
510
|
+
.tcv_material_ambientlight {
|
|
511
|
+
margin-top: 4px;
|
|
512
|
+
}
|
|
513
|
+
|
|
509
514
|
.tcv_cad_clip_container {
|
|
510
|
-
margin-top:
|
|
515
|
+
margin-top: 0px;
|
|
516
|
+
overflow: hidden;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.tcv_cad_material_container {
|
|
520
|
+
overflow: hidden;
|
|
511
521
|
}
|
|
512
522
|
|
|
513
523
|
.tcv_clip_checks {
|
|
@@ -704,6 +714,7 @@ input[type="button"] {
|
|
|
704
714
|
.tcv_filter_content {
|
|
705
715
|
background-color: var(--tcv-bg-overlay-color);
|
|
706
716
|
}
|
|
717
|
+
|
|
707
718
|
.tcv_node_entry_wrap {
|
|
708
719
|
white-space: pre;
|
|
709
720
|
}
|