three-cad-viewer 1.8.1 → 1.8.3
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/Changes.md +147 -0
- package/Readme.md +8 -43
- package/dist/{assets/three-cad-viewer-5f9c86f1.css → three-cad-viewer.css} +6 -0
- package/dist/three-cad-viewer.esm.js +1755 -1301
- package/dist/three-cad-viewer.esm.min.js +1 -1
- package/dist/three-cad-viewer.js +1755 -1303
- package/dist/three-cad-viewer.min.js +1 -1
- package/package.json +10 -9
- package/src/_version.js +1 -1
- package/src/display.js +47 -8
- package/src/font.js +34 -0
- package/src/orientation.js +21 -23
- package/src/viewer.js +17 -10
- package/dist/assets/three-cad-viewer.esm-a7fcdc64.css +0 -660
- package/dist/assets/three-cad-viewer.esm.min-4cfce96e.css +0 -660
- package/dist/assets/three-cad-viewer.min-49d7e12d.css +0 -660
- package/src/fontloader/helvetiker_regular.typeface.json +0 -1
package/Changes.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
## v1.8.3
|
|
2
|
+
|
|
3
|
+
**Fixes:**
|
|
4
|
+
|
|
5
|
+
- Ensure notifications for material properties are sent
|
|
6
|
+
- Add setters for material properties
|
|
7
|
+
|
|
8
|
+
## v1.8.2
|
|
9
|
+
|
|
10
|
+
**Fixes:**
|
|
11
|
+
|
|
12
|
+
- Integrate helvetiker font into code
|
|
13
|
+
|
|
14
|
+
## v1.8.1
|
|
15
|
+
|
|
16
|
+
**Fixes:**
|
|
17
|
+
|
|
18
|
+
- Removal of environment maps and new defaults
|
|
19
|
+
|
|
20
|
+
## v1.8.0
|
|
21
|
+
|
|
22
|
+
**Features:**
|
|
23
|
+
|
|
24
|
+
- XYZ labels for orientation marker
|
|
25
|
+
- Support for metalness and roughness
|
|
26
|
+
- Material configurator tab
|
|
27
|
+
|
|
28
|
+
## v1.7.12
|
|
29
|
+
|
|
30
|
+
**Fixes**
|
|
31
|
+
|
|
32
|
+
- Ensure no exceptions are thrown when the view is cleared and resized
|
|
33
|
+
|
|
34
|
+
## v1.7.11
|
|
35
|
+
|
|
36
|
+
**Fixes**
|
|
37
|
+
|
|
38
|
+
- Check properly whether animation is active
|
|
39
|
+
|
|
40
|
+
## v1.7.10
|
|
41
|
+
|
|
42
|
+
**Features**
|
|
43
|
+
|
|
44
|
+
- Add expand root only for treeview
|
|
45
|
+
- Add recenterCamera method
|
|
46
|
+
|
|
47
|
+
**Fixes**
|
|
48
|
+
|
|
49
|
+
- Ensure center is shown for object far away from center
|
|
50
|
+
|
|
51
|
+
## v1.7.9
|
|
52
|
+
|
|
53
|
+
**Features**
|
|
54
|
+
|
|
55
|
+
- Add example for single edges and vertices
|
|
56
|
+
- Enable explode for edges and vertices
|
|
57
|
+
|
|
58
|
+
## v1.7.8
|
|
59
|
+
|
|
60
|
+
**Features**
|
|
61
|
+
|
|
62
|
+
- Add build123d examples
|
|
63
|
+
|
|
64
|
+
## v1.7.7
|
|
65
|
+
|
|
66
|
+
**Features**
|
|
67
|
+
|
|
68
|
+
- Add build123d assembly
|
|
69
|
+
|
|
70
|
+
**Fixes**
|
|
71
|
+
|
|
72
|
+
- Fix explode
|
|
73
|
+
|
|
74
|
+
## v1.7.4
|
|
75
|
+
|
|
76
|
+
**Fixes**
|
|
77
|
+
|
|
78
|
+
- Fixed resize cad view problem
|
|
79
|
+
|
|
80
|
+
## v1.7.3
|
|
81
|
+
|
|
82
|
+
**Fixes**
|
|
83
|
+
|
|
84
|
+
- Bump version of three and dev depenedencies
|
|
85
|
+
|
|
86
|
+
## v1.7.2
|
|
87
|
+
|
|
88
|
+
- Ensure one element trees are not collapsed
|
|
89
|
+
|
|
90
|
+
## v1.7.0
|
|
91
|
+
|
|
92
|
+
**Features**
|
|
93
|
+
|
|
94
|
+
- Change trihedron orientation in the orientation marker to CAD standard
|
|
95
|
+
|
|
96
|
+
## v1.6.4
|
|
97
|
+
|
|
98
|
+
**Features:**
|
|
99
|
+
|
|
100
|
+
- Add support for color alpha channel
|
|
101
|
+
|
|
102
|
+
## v1.6.3
|
|
103
|
+
|
|
104
|
+
**Features:**
|
|
105
|
+
|
|
106
|
+
- Introduce mode where Y is camera up
|
|
107
|
+
|
|
108
|
+
**Fixes:**
|
|
109
|
+
|
|
110
|
+
- Fixed grid menu selection issue
|
|
111
|
+
|
|
112
|
+
## v1.6.2
|
|
113
|
+
|
|
114
|
+
**Fixes:**
|
|
115
|
+
|
|
116
|
+
- Fixed bbox.max_dist_from_center
|
|
117
|
+
|
|
118
|
+
## v1.6.1
|
|
119
|
+
|
|
120
|
+
**Features:**
|
|
121
|
+
|
|
122
|
+
- Allow resizing after view is created
|
|
123
|
+
|
|
124
|
+
**Fixes:**
|
|
125
|
+
|
|
126
|
+
- Increase minimum width to 970
|
|
127
|
+
- Handle more button in glassMode function
|
|
128
|
+
- Check bbox exist before updating it
|
|
129
|
+
|
|
130
|
+
## v1.6.0
|
|
131
|
+
|
|
132
|
+
**Features:**
|
|
133
|
+
|
|
134
|
+
- Added treview highlighting
|
|
135
|
+
- A new bounding box (AABB) algorithm
|
|
136
|
+
|
|
137
|
+
**Fixes:**
|
|
138
|
+
|
|
139
|
+
- Ensure bbox update will be triggered when animation starts
|
|
140
|
+
- Fix remove bbox on second click in tree
|
|
141
|
+
- Disable jupyter cell select on shift mousedown in cad tree
|
|
142
|
+
- Flexible "More" menu handling
|
|
143
|
+
- No bounding box for isolate mode
|
|
144
|
+
- Center isolated objects around bbox center and look at bbox center
|
|
145
|
+
- Clearer help text around AABB
|
|
146
|
+
- Extend help for picking/hiding/isolating
|
|
147
|
+
- Improve center info output
|
package/Readme.md
CHANGED
|
@@ -40,6 +40,13 @@ The value 2 is reserved for nodes and shows a mixed state, i.d. some of the chil
|
|
|
40
40
|
|
|
41
41
|
For the `States` object, see [Class States](https://bernhard-42.github.io/three-cad-viewer/global.html#States)
|
|
42
42
|
|
|
43
|
+
### Getting started
|
|
44
|
+
|
|
45
|
+
1. [Install yarn](https://classic.yarnpkg.com/en/docs/install) on your system (ie. `npm i -g yarn`) if not already done;
|
|
46
|
+
2. Clone the repository: `git clone https://github.com/bernhard-42/three-cad-viewer.git && cd three-cad-viewer`;
|
|
47
|
+
3. Start web server: `yarn run start` and go to the page displayed in the logs (ie. `127.0.0.1:8080`)
|
|
48
|
+
4. Build project: `yarn run clean; yarn run build; yarn run docs`;
|
|
49
|
+
|
|
43
50
|
## Skeleton:
|
|
44
51
|
|
|
45
52
|
```html
|
|
@@ -120,46 +127,4 @@ For the deployment, see [Release.md](./Release.md)
|
|
|
120
127
|
|
|
121
128
|
# Changes
|
|
122
129
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- Changed Z orientation to follow standard CAD programs. The old behaviour can be still used by using uo="L" (legacy)
|
|
126
|
-
|
|
127
|
-
v1.6.4
|
|
128
|
-
|
|
129
|
-
- add support for color alpha channel
|
|
130
|
-
|
|
131
|
-
v1.6.3
|
|
132
|
-
|
|
133
|
-
- Introduce a new parameter "up" that determines whther camera up is Y (up="Y") or Z (up="Z")
|
|
134
|
-
|
|
135
|
-
v1.6.2
|
|
136
|
-
|
|
137
|
-
- Fixed bounding box max_dist_from_center algorithm
|
|
138
|
-
|
|
139
|
-
v1.6.1
|
|
140
|
-
|
|
141
|
-
- Increase minimum width to 970
|
|
142
|
-
- Handle more button in glassMode function
|
|
143
|
-
- Allow resizing after view is created
|
|
144
|
-
|
|
145
|
-
v1.6.0
|
|
146
|
-
|
|
147
|
-
- Disable jupyter cell select on shift mousedown in cad tree
|
|
148
|
-
- Remove bounding box for isolate mode and improve click states
|
|
149
|
-
- Center isolated objects around bounding box center
|
|
150
|
-
- Extend help for picking/hiding/isolating
|
|
151
|
-
- highlight tree node when element picked
|
|
152
|
-
- A new bounding box algorithm (AABB)
|
|
153
|
-
|
|
154
|
-
v1.5.9
|
|
155
|
-
|
|
156
|
-
- fixed a regression from v1.5.8 around initial zoom value handling)
|
|
157
|
-
|
|
158
|
-
v1.5.8
|
|
159
|
-
|
|
160
|
-
- fixed glass and tools paramewter handling
|
|
161
|
-
- fixed initial zoom for wide cad views with low height
|
|
162
|
-
|
|
163
|
-
v1.5.7
|
|
164
|
-
|
|
165
|
-
- fixed ids of checkboxes to be unique across the document
|
|
130
|
+
see [Changes.md](./Changes.md)
|
|
@@ -370,6 +370,7 @@ input[type="button"] {
|
|
|
370
370
|
font-size: 14px;
|
|
371
371
|
margin-left: 4px;
|
|
372
372
|
margin-right: 4px;
|
|
373
|
+
padding-bottom: 4px;
|
|
373
374
|
vertical-align: middle;
|
|
374
375
|
user-select: none;
|
|
375
376
|
}
|
|
@@ -454,6 +455,7 @@ input[type="button"] {
|
|
|
454
455
|
|
|
455
456
|
.tcv_clip_slider {
|
|
456
457
|
-webkit-appearance: none;
|
|
458
|
+
appearance: none;
|
|
457
459
|
width: 60%;
|
|
458
460
|
height: 5px;
|
|
459
461
|
border-radius: 2px;
|
|
@@ -575,6 +577,10 @@ input[type="button"] {
|
|
|
575
577
|
opacity: 1;
|
|
576
578
|
}
|
|
577
579
|
|
|
580
|
+
|
|
581
|
+
.tcv_material_info {
|
|
582
|
+
font-size: 12px;
|
|
583
|
+
}
|
|
578
584
|
.tcv_node_entry_wrap {
|
|
579
585
|
white-space: pre;
|
|
580
586
|
}
|