@ohuoy/easymap 1.1.8 → 1.1.10
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/old/CHANGELOG.md +665 -0
- package/old/LICENSE.txt +97 -0
- package/old/README.md +199 -0
- package/old/dist/threebox.min.js +0 -0
- package/old/exports.js +2 -0
- package/old/jz.json +497 -0
- package/old/main.js +10 -0
- package/old/package-lock.json +4638 -0
- package/old/package.json +44 -0
- package/old/server.stop.js +13 -0
- package/old/src/Threebox.js +1216 -0
- package/old/src/animation/AnimationManager.js +483 -0
- package/old/src/camera/CameraSync.js +302 -0
- package/old/src/objects/CSS2DRenderer.js +245 -0
- package/old/src/objects/LabelRenderer.js +71 -0
- package/old/src/objects/Object3D.js +34 -0
- package/old/src/objects/effects/BuildingShadows.js +115 -0
- package/old/src/objects/extrusion.js +61 -0
- package/old/src/objects/fflate.min.js +15 -0
- package/old/src/objects/label.js +29 -0
- package/old/src/objects/line.js +1386 -0
- package/old/src/objects/loadObj.js +142 -0
- package/old/src/objects/loaders/ColladaLoader.js +3751 -0
- package/old/src/objects/loaders/FBXLoader.js +3864 -0
- package/old/src/objects/loaders/GLTFLoader.js +3857 -0
- package/old/src/objects/loaders/MTLLoader.js +498 -0
- package/old/src/objects/loaders/OBJLoader.js +818 -0
- package/old/src/objects/objects.js +1113 -0
- package/old/src/objects/sphere.js +28 -0
- package/old/src/objects/tooltip.js +27 -0
- package/old/src/objects/tube.js +35 -0
- package/old/src/three.js +6 -0
- package/old/src/three.module.js +54572 -0
- package/old/src/utils/ValueGenerator.js +11 -0
- package/old/src/utils/constants.js +21 -0
- package/old/src/utils/material.js +52 -0
- package/old/src/utils/suncalc.js +322 -0
- package/old/src/utils/utils.js +424 -0
- package/old/src/utils/validate.js +115 -0
- package/old/threebox.min.js +367 -0
- package/package.json +1 -1
- package/src/components/control/TilesBar.js +1 -1
- package/src/components/layer/PathLineLayer.js +373 -4
package/old/CHANGELOG.md
ADDED
|
@@ -0,0 +1,665 @@
|
|
|
1
|
+
## 2.2.7
|
|
2
|
+
|
|
3
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
4
|
+
|
|
5
|
+
#### :sparkles: Enhancements
|
|
6
|
+
- #356 Is it possible to disable the tooltip when dragging/rotating objects?
|
|
7
|
+
- added a new default parameter to Threebox called enableHelpTooltips that will show the help tooltips on dragging, rotating and measuring.
|
|
8
|
+
|
|
9
|
+
#### :beetle: Bug fixes
|
|
10
|
+
- #323 Azure Maps sample doesn't work if you change map style
|
|
11
|
+
|
|
12
|
+
#### :pencil: Documentation
|
|
13
|
+
- Updated [Threebox documentation](/docs/Threebox.md) (`enableHelpTooltips`)
|
|
14
|
+
|
|
15
|
+
- - -
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 2.2.6
|
|
19
|
+
|
|
20
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
21
|
+
|
|
22
|
+
#### :sparkles: Enhancements
|
|
23
|
+
- #310 extrusion.materials null by default, but not labelled as 'required' in documentation
|
|
24
|
+
- THREE.MeshPhongMaterial({ color: 0x660000, side: THREE.DoubleSide }) added as default material to extrusions
|
|
25
|
+
|
|
26
|
+
#### :beetle: Bug fixes
|
|
27
|
+
- #255 tb.updateSunGround raises an error if value is higher than 1.
|
|
28
|
+
- Multiplied also the raster-opacity by 4 to make it more realistic with the light hours
|
|
29
|
+
- #319 dat.gui.module has changed in threejs
|
|
30
|
+
- #320 Cannot read properties of undefined (reading 'appendChild')
|
|
31
|
+
|
|
32
|
+
#### :pencil: Documentation
|
|
33
|
+
- Updated [Threebox documentation](/docs/Threebox.md) (`tb.extrusion` param `materials`)
|
|
34
|
+
|
|
35
|
+
- - -
|
|
36
|
+
|
|
37
|
+
## 2.2.5
|
|
38
|
+
|
|
39
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
40
|
+
|
|
41
|
+
#### :sparkles: Enhancements
|
|
42
|
+
- #287 Updating to Three.js r132
|
|
43
|
+
- #289 Remove CustomLines folder and content
|
|
44
|
+
|
|
45
|
+
#### :beetle: Bug fixes
|
|
46
|
+
- #286 Missing THREE in sphere.js
|
|
47
|
+
|
|
48
|
+
#### :pencil: Documentation
|
|
49
|
+
- Updated [Threebox documentation](/docs/Threebox.md) (`tb.loadObj` params `clone`, `tb.defaultCursor`)
|
|
50
|
+
|
|
51
|
+
- - -
|
|
52
|
+
|
|
53
|
+
## 2.2.4
|
|
54
|
+
|
|
55
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
56
|
+
|
|
57
|
+
#### :sparkles: Enhancements
|
|
58
|
+
- #245 Add an option to load a model without cloning
|
|
59
|
+
- #250 We need an explicit hidden property that overrides visibility
|
|
60
|
+
- #252 Set the cursor through a property in threebox
|
|
61
|
+
|
|
62
|
+
#### :beetle: Bug fixes
|
|
63
|
+
- #249 When style is changed, objects with fixedZoom don't rescale until map is moved.
|
|
64
|
+
|
|
65
|
+
#### :pencil: Documentation
|
|
66
|
+
- Updated [Threebox documentation](/docs/Threebox.md) (`tb.loadObj` params `clone`, `tb.defaultCursor`)
|
|
67
|
+
|
|
68
|
+
- - -
|
|
69
|
+
|
|
70
|
+
## 2.2.3
|
|
71
|
+
|
|
72
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
73
|
+
|
|
74
|
+
#### :sparkles: Enhancements
|
|
75
|
+
- #243 Create a new example on terrain layer
|
|
76
|
+
- New example on terrain layer with a 3D model aligned vertically [21-terrain.html](https://github.com/jscastro76/threebox/blob/master/examples/21-terrain.html)
|
|
77
|
+
- #244 Darken the raster layer with realSunlight
|
|
78
|
+
|
|
79
|
+
#### :beetle: Bug fixes
|
|
80
|
+
- #233 map.setLight is not updated when tb.setStyle until the map moves
|
|
81
|
+
- #237 `ObjectMouseOver` doesn't work after triggering `SelectedChange`
|
|
82
|
+
- #241 KNOWN ISSUE: Terrain layer calculates wrongly the object height
|
|
83
|
+
- #242 KNOWN ISSUE: Create a warning for sky layers when used with Mapbox < 2.0
|
|
84
|
+
|
|
85
|
+
#### :pencil: Documentation
|
|
86
|
+
- Updated [documentation](/examples/readme.md)
|
|
87
|
+
- Updated [Threebox documentation](/docs/Threebox.md) (`terrain` attribute and property, `tb.createTerrainLayer`, `tb.updateSunGround`)
|
|
88
|
+
- Updated [Examples](/examples) documentation (new terrain layer in 21).
|
|
89
|
+
|
|
90
|
+
- - -
|
|
91
|
+
|
|
92
|
+
## 2.2.2
|
|
93
|
+
|
|
94
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
95
|
+
|
|
96
|
+
**WARNING**: This version updates to Mapbox **2.2.0**. Despite v1.11.1 still supported, if used, some features from mapbox v.2.0.1 won't be obviously available such as sky layers.
|
|
97
|
+
**Known issue**: `BuildingShadow` wont work as the definition of the layers has changed.
|
|
98
|
+
|
|
99
|
+
#### :sparkles: Enhancements
|
|
100
|
+
|
|
101
|
+
- #118 Add a better light for night on 14-buildingshadow.html example
|
|
102
|
+
- #146 Update to Mapbox 2.2
|
|
103
|
+
- #225 Mapbox 2.2: Update Depth calculation keeping compatibility with previous versions
|
|
104
|
+
- #226 Mapbox 2.2: Update all the examples (14-buildingshadow & 17-azuremaps not updated)
|
|
105
|
+
- #232 Mapbox 2.2: Add sky layer as an option in threebox
|
|
106
|
+
- Updated example [07-alignmentTest.html](https://github.com/jscastro76/threebox/blob/master/examples/07-alignmentTest.html)
|
|
107
|
+
- Updated example [12-add3dmodel.html](https://github.com/jscastro76/threebox/blob/master/examples/12-add3dmodel.html)
|
|
108
|
+
- Updated example [13-eiffel.html](https://github.com/jscastro76/threebox/blob/master/examples/13-eiffel.html)
|
|
109
|
+
- #224 Ignore worker_threads
|
|
110
|
+
- #229 tb.dispose() in dev mode not working. It was removed from three.js but not included in migration guide.
|
|
111
|
+
- #234 Update all the examples to include antialias: true in the webglcontext
|
|
112
|
+
|
|
113
|
+
#### :beetle: Bug fixes
|
|
114
|
+
- #223 Can't resolve worker threads
|
|
115
|
+
- #230 Module not found: Can't resolve 'worker_threads' (duplicated #223)
|
|
116
|
+
|
|
117
|
+
#### :pencil: Documentation
|
|
118
|
+
- Updated [documentation](/examples/readme.md) (Added a note on the examples updated to Mapbox 2.2.0)
|
|
119
|
+
- Updated [Threebox documentation](/docs/Threebox.md) (public cdns data, `sky` attribute and property, `tb.createSkyLayer`, `tb.getSunSky`, `tb.updateSunSky`, `tb.updateLightHelper`, )
|
|
120
|
+
- Updated [Examples](/examples) documentation (new sky layers in 7, 12, 13).
|
|
121
|
+
|
|
122
|
+
- - -
|
|
123
|
+
|
|
124
|
+
## 2.2.1
|
|
125
|
+
|
|
126
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
127
|
+
|
|
128
|
+
**WARNING**: This version updates to Three.js **r127** which is now bundled within Threebox.
|
|
129
|
+
|
|
130
|
+
#### :sparkles: Enhancements
|
|
131
|
+
- #212 Allow to remove an object by name
|
|
132
|
+
- #211 Create an object property that changes all the materials by a color
|
|
133
|
+
- #169 Update to Three.js r127
|
|
134
|
+
- #214 Full refactor of tb.tube
|
|
135
|
+
- #215 Refactor tb.line
|
|
136
|
+
- #216 Refactor tb.update
|
|
137
|
+
- #217 utils.material should allow THREE.DoubleSide
|
|
138
|
+
- #218 Remove CustomEvent from events
|
|
139
|
+
- #219 Remove .getInverse()
|
|
140
|
+
- #220 Update Loaders
|
|
141
|
+
- #221 Add fflate module
|
|
142
|
+
|
|
143
|
+
#### :beetle: Bug fixes
|
|
144
|
+
- #222 fflate depends on a physical file
|
|
145
|
+
|
|
146
|
+
#### :pencil: Documentation
|
|
147
|
+
- Updated [documentation](/docs/Threebox.md) (`obj.color`, `tb.removeByName`)
|
|
148
|
+
|
|
149
|
+
- - -
|
|
150
|
+
|
|
151
|
+
## 2.2.0
|
|
152
|
+
|
|
153
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
154
|
+
|
|
155
|
+
#### :sparkles: Enhancements
|
|
156
|
+
- #197 Remove local path from server.js and use current directory variable
|
|
157
|
+
|
|
158
|
+
#### :beetle: Bug fixes
|
|
159
|
+
- #198 Bounding box is now shown if bbox is null but enableSelectingObjects is true
|
|
160
|
+
- #199 `[.WebGL-00000210783663D0] GL_INVALID_VALUE: Invalid width.`
|
|
161
|
+
- #200 Bug in 11-animation.html example `selectedObject is not defined`
|
|
162
|
+
- #201 Since #124 the objects wireframed and animated lost the animation
|
|
163
|
+
|
|
164
|
+
#### :pencil: Documentation
|
|
165
|
+
- Updated [documentation](/docs/Threebox.md) (`vue.js` sample)
|
|
166
|
+
- Updated [README.md](/).
|
|
167
|
+
- Updated [Examples](/examples) documentation (`vue.js` sample).
|
|
168
|
+
|
|
169
|
+
- - -
|
|
170
|
+
|
|
171
|
+
## 2.1.9
|
|
172
|
+
|
|
173
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
174
|
+
|
|
175
|
+
#### :sparkles: Enhancements
|
|
176
|
+
- #193 Build with tinyify
|
|
177
|
+
- #194 Make the build way lighter (3D models to lowpoly, images, gifs)
|
|
178
|
+
- #195 rename .json to .geosjon
|
|
179
|
+
- #196 Add in code and license.txt all the licenses and attributions for the 3D models
|
|
180
|
+
|
|
181
|
+
#### :beetle: Bug fixes
|
|
182
|
+
- #192 `getFeatureCenter` could change the altitude
|
|
183
|
+
|
|
184
|
+
<br>
|
|
185
|
+
|
|
186
|
+
- - -
|
|
187
|
+
|
|
188
|
+
## 2.1.8
|
|
189
|
+
|
|
190
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
191
|
+
|
|
192
|
+
#### :sparkles: Enhancements
|
|
193
|
+
- #182 Resource interpreted as Stylesheet but transferred with MIME type text/plain
|
|
194
|
+
- #187 Create an option to translate an object based on world coordinates (obj.position)
|
|
195
|
+
- #188 Add threebox.css to the /dist folder. Included now in `npm run build` command
|
|
196
|
+
- #189 Create a driving game-like example with WASD controls
|
|
197
|
+
|
|
198
|
+
#### :beetle: Bug fixes
|
|
199
|
+
- #177 [BUG] FollowPath animation with realSunlight produces an error
|
|
200
|
+
- #190 When using `obj.selected` programatically the bbox is not shown
|
|
201
|
+
|
|
202
|
+
#### :pencil: Documentation
|
|
203
|
+
- Updated [documentation](/docs/Threebox.md) started to link points and improving documentation descriptions in general.
|
|
204
|
+
- Updated [README.md](/).
|
|
205
|
+
|
|
206
|
+
<br>
|
|
207
|
+
|
|
208
|
+
- - -
|
|
209
|
+
|
|
210
|
+
## 2.1.7
|
|
211
|
+
|
|
212
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
213
|
+
|
|
214
|
+
#### :sparkles: Enhancements
|
|
215
|
+
- #155 How to keep fixed scale and size of Airplane 3D model when zoom in or out Mapbox?
|
|
216
|
+
- #167 Create a new event `ObjectChanged` every time the object has modified its position, rotation or scale.
|
|
217
|
+
- Related to #163 request to get coordinates when the model follow path with line?
|
|
218
|
+
- Modified example [05-logistics.html](https://github.com/jscastro76/threebox/blob/master/examples/05-logistics.html) to attach to the event `ObjectChanged`
|
|
219
|
+
- Modified example [11-logistics.html](https://github.com/jscastro76/threebox/blob/master/examples/11-animation.html) to attach to the event `ObjectChanged`
|
|
220
|
+
- Modified example [08-3dbuildings.html](https://github.com/jscastro76/threebox/blob/master/examples/08-3dbuildings.html) to adjust perspective and position to a more relevant zone (empire state building)
|
|
221
|
+
- #170 Refactor internal methods
|
|
222
|
+
- #179 Create a new example for fixed scale model
|
|
223
|
+
- Added to [19-fixedZoom.html](https://github.com/jscastro76/threebox/blob/master/examples/19-fixedZoom.html) that shows shows how to have a fixed scale for an object at a concrete zoom level. In that way the object with preserve the same visual size when the zoom is lower than the fixed zoom value.
|
|
224
|
+
- #181 Move npm modules to devDependencies and remove not used
|
|
225
|
+
|
|
226
|
+
#### :beetle: Bug fixes
|
|
227
|
+
- #168 Bug on init params `bbox` and `tooltip`
|
|
228
|
+
- #175 Shadows are not updated if an object is moved through animations
|
|
229
|
+
- [x] Shadow plane is oriented properly when the object rotates due to a followPath animation
|
|
230
|
+
- [x] Shadow plane grows properly based on object height
|
|
231
|
+
- [x] Shadow plane positions at ground level if scale is `scene`
|
|
232
|
+
- [x] Allows to change `obj.fixedZoom` level in real time
|
|
233
|
+
- [x] Allows to change to non-fixedZoom in real time
|
|
234
|
+
- #176 `units: 'scene'` objects get wrong shadow
|
|
235
|
+
- #180 Fixed scale objects not being rescaled if they are being animated
|
|
236
|
+
|
|
237
|
+
#### :pencil: Documentation
|
|
238
|
+
- Updated [documentation](/docs/Threebox.md) (`ObjectChanged`, `setFixedZoom`, `setObjectScale`, `setScale`, `modelHeight`, `unitsPerMeter` and other events)
|
|
239
|
+
- Updated [README.md](/).
|
|
240
|
+
- Updated [Examples](/examples) documentation (`19-fixedzoom.html`).
|
|
241
|
+
|
|
242
|
+
<br>
|
|
243
|
+
|
|
244
|
+
- - -
|
|
245
|
+
|
|
246
|
+
## 2.1.6
|
|
247
|
+
|
|
248
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
249
|
+
|
|
250
|
+
#### :sparkles: Enhancements
|
|
251
|
+
|
|
252
|
+
- #111 Show the dimensions of a model
|
|
253
|
+
- #151 Remove auxiliary test method on `CameraSync` used to debug #145
|
|
254
|
+
- #156 Create an Orthographic view mode
|
|
255
|
+
- #159 Create an example for FOV and Orthographic.
|
|
256
|
+
- Added to [09-raycaster.html](https://github.com/jscastro76/threebox/blob/master/examples/09-raycaster.html) as it impacts in raycast and shows fill-extrusions and 3D models together
|
|
257
|
+
- #161 Remove obsolete code that is avoiding to be used from React
|
|
258
|
+
|
|
259
|
+
#### :beetle: Bug fixes
|
|
260
|
+
- #152 `obj.raycasted` is ignored when an object is hidden and again visible.
|
|
261
|
+
- #157 Bug draggging after removing an object.
|
|
262
|
+
- #160 Bug using `utils.equal`
|
|
263
|
+
|
|
264
|
+
#### :pencil: Documentation
|
|
265
|
+
- #158 MERCATOR_A constant unused, added an code comment to explain why it was deprecated (nor removed)
|
|
266
|
+
- Updated [documentation](/docs/Threebox.md) (`tb.orthographic`, `tb.fov`)
|
|
267
|
+
- Updated [README.md](/).
|
|
268
|
+
- Updated [Examples](/examples) documentation.
|
|
269
|
+
|
|
270
|
+
<br>
|
|
271
|
+
|
|
272
|
+
- - -
|
|
273
|
+
|
|
274
|
+
## 2.1.5
|
|
275
|
+
|
|
276
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
277
|
+
|
|
278
|
+
#### :sparkles: Enhancements
|
|
279
|
+
- #3 Make Color of the boundingBox and boundingBoxShadow configurable
|
|
280
|
+
- #29 Make one object not selectable or draggable independently of Threebox params
|
|
281
|
+
- #150 Check methods doing traverse to avoid doing unnecessary loops
|
|
282
|
+
|
|
283
|
+
#### :beetle: Bug fixes
|
|
284
|
+
- #145 Worldwide view demos, have precision issues after #143
|
|
285
|
+
- #149 `obj.set` with `options.coords` doesn't change the z axis in obj.coordinates
|
|
286
|
+
|
|
287
|
+
#### :pencil: Documentation
|
|
288
|
+
- Updated [documentation](/docs/Threebox.md) (`tb.raycasted`, `tb.extrusion`, `tb.loadObj` and `tb.Object3D` params, mime types)
|
|
289
|
+
- Updated [README.md](/).
|
|
290
|
+
- Updated [Examples](/examples) documentation.
|
|
291
|
+
<br>
|
|
292
|
+
|
|
293
|
+
- - -
|
|
294
|
+
|
|
295
|
+
## 2.1.4
|
|
296
|
+
|
|
297
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
298
|
+
|
|
299
|
+
#### :sparkles: Enhancements
|
|
300
|
+
- #1 Collisions detection (Depth calculation)
|
|
301
|
+
- #102 Add stats performance to all the demos
|
|
302
|
+
- #139 Add a full dispose button to 15-Performance.html demo
|
|
303
|
+
- #143 CameraSync adjustment to avoid depth issues between 3D objects and Fill-extrusions
|
|
304
|
+
- #144 Improve 07-alignmentTest.html adding 3D objects inside the building
|
|
305
|
+
|
|
306
|
+
#### :beetle: Bug fixes
|
|
307
|
+
- #147 Error in BuildingShadows when used from a script module
|
|
308
|
+
|
|
309
|
+
<br>
|
|
310
|
+
|
|
311
|
+
- - -
|
|
312
|
+
|
|
313
|
+
## 2.1.3
|
|
314
|
+
|
|
315
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), just one hot fix for a critical bug.
|
|
316
|
+
|
|
317
|
+
#### :beetle: Bug fixes
|
|
318
|
+
|
|
319
|
+
#142 CRITICAL BUG: Cannot set property 'toJulian' of undefined
|
|
320
|
+
|
|
321
|
+
<br>
|
|
322
|
+
|
|
323
|
+
- - -
|
|
324
|
+
|
|
325
|
+
## 2.1.2
|
|
326
|
+
|
|
327
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
328
|
+
|
|
329
|
+
#### :sparkles: Enhancements
|
|
330
|
+
|
|
331
|
+
- #125 three.js draw geojson.
|
|
332
|
+
- #126 add options.rotate and options.scale for Objects3D.
|
|
333
|
+
- #127 Create a new example with Three.js extrusions based on standard geoJson. Added a new example [17-extrusions.html](https://github.com/jscastro76/threebox/blob/master/examples/17-extrusions.html)
|
|
334
|
+
- #130 Convert internal variables (`selectedObject`, `draggedObject`, ...) into instance variables .
|
|
335
|
+
- #134 Deprecate `tb.setLayerZoomVisibility`, overlaps with `tb.toggleLayer`.
|
|
336
|
+
- #138 expose `SunCalc.toJulian`
|
|
337
|
+
|
|
338
|
+
#### :beetle: Bug fixes
|
|
339
|
+
|
|
340
|
+
- #124 when an object is wireframed, all its clones are too.
|
|
341
|
+
- #131 Error when wireframing all the objects.
|
|
342
|
+
- #132 While dragging an object if mouse overs a label it stops dragging.
|
|
343
|
+
- #133 A layer shouldn't be shown explicitely if it's not in the right zoom range.
|
|
344
|
+
<br>
|
|
345
|
+
|
|
346
|
+
- - -
|
|
347
|
+
|
|
348
|
+
## 2.1.1
|
|
349
|
+
|
|
350
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
351
|
+
|
|
352
|
+
#### :sparkles: Enhancements
|
|
353
|
+
|
|
354
|
+
- [**#105**](https://github.com/jscastro76/threebox/issues/105) In examples tb is not defined . #105
|
|
355
|
+
- [**#107**](https://github.com/jscastro76/threebox/issues/107) CSS2D labels must be refactored to optimize the render #107
|
|
356
|
+
- [**#108**](https://github.com/jscastro76/threebox/issues/108) Deprecate `tb.setLabelZoomRange` #108
|
|
357
|
+
- [**#109**](https://github.com/jscastro76/threebox/issues/109) add speed param to animations #109
|
|
358
|
+
- [**#114**](https://github.com/jscastro76/threebox/issues/114) `tb.setSunlight` must accept LngLatLike coords #114
|
|
359
|
+
- [**#117**](https://github.com/jscastro76/threebox/issues/117) cache functions must be 100% async #117
|
|
360
|
+
- [**#119**](https://github.com/jscastro76/threebox/issues/119) Create a sample with azure maps #119. Added a new example [17-azuremaps.html](https://github.com/jscastro76/threebox/blob/master/examples/17-azuremaps.html)
|
|
361
|
+
|
|
362
|
+
#### :beetle: Bug fixes
|
|
363
|
+
|
|
364
|
+
- [**#104**](https://github.com/jscastro76/threebox/issues/104) CSS2DLabels doesn't hide properly based on zoom ranges on setLabelZoomRange #104
|
|
365
|
+
- [**#120**](https://github.com/jscastro76/threebox/issues/120) `labelCanvas` z-index overlaps with HTML controls visibility #120
|
|
366
|
+
- [**#122**](https://github.com/jscastro76/threebox/issues/122) when the style changes `tb.zoomLayers` must be reset #122
|
|
367
|
+
- [**#123**](https://github.com/jscastro76/threebox/issues/123) style change doesn't work when `multiLayer = true` #123
|
|
368
|
+
|
|
369
|
+
<br>
|
|
370
|
+
|
|
371
|
+
- - -
|
|
372
|
+
|
|
373
|
+
## 2.1.0
|
|
374
|
+
|
|
375
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
376
|
+
|
|
377
|
+
#### :sparkles: Enhancements
|
|
378
|
+
|
|
379
|
+
- [**#5**](https://github.com/jscastro76/threebox/issues/5) Add a multi layer sample. [16-multilayer.html](https://github.com/jscastro76/threebox/blob/master/examples/16-multilayer.html)
|
|
380
|
+
- [**#95**](https://github.com/jscastro76/threebox/issues/95) `tb.add` should admit layer and source as optional params
|
|
381
|
+
- [**#96**](https://github.com/jscastro76/threebox/issues/96) `tb.setLayerHeigthProperty` depends on an internal feature on `obj.userData.feature`
|
|
382
|
+
- [**#98**](https://github.com/jscastro76/threebox/issues/98) Add an init param for multiLayer scenarios, that allows to create a default empty layer in threebox
|
|
383
|
+
- [**#99**](https://github.com/jscastro76/threebox/issues/99) `setLayoutZoomRange` doesn�t work on multilayer scenarios
|
|
384
|
+
- [**#101**](https://github.com/jscastro76/threebox/issues/101) `options.adjustment` must be on top of `options.anchor` not instead
|
|
385
|
+
|
|
386
|
+
#### :beetle: Bug fixes
|
|
387
|
+
|
|
388
|
+
- [**#94**](https://github.com/jscastro76/threebox/issues/94) tb.setLayoutPropery is not working when geojson features are not being used.
|
|
389
|
+
- [**#97**](https://github.com/jscastro76/threebox/issues/97) When `enableSelectingObjects` is active and not tooltips
|
|
390
|
+
- [**#100**](https://github.com/jscastro76/threebox/issues/100) Object anchors are not well calculated on duplicates when downscaled
|
|
391
|
+
|
|
392
|
+
<br>
|
|
393
|
+
|
|
394
|
+
- - -
|
|
395
|
+
|
|
396
|
+
## 2.0.9
|
|
397
|
+
|
|
398
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
399
|
+
|
|
400
|
+
#### :sparkles: Enhancements
|
|
401
|
+
|
|
402
|
+
- [**#12**](https://github.com/jscastro76/threebox/issues/12) rotationStep, gridStep and altitudeStep must be configurable
|
|
403
|
+
- [**#44**](https://github.com/jscastro76/threebox/issues/44) disable or enable dirLightHelper for realSunlight.
|
|
404
|
+
- [**#89**](https://github.com/jscastro76/threebox/issues/89) Allow drag an Object3D on altitude.
|
|
405
|
+
- [**#90**](https://github.com/jscastro76/threebox/issues/90) When dragging/rotating objects add a label that shows the current values
|
|
406
|
+
- [**#91**](https://github.com/jscastro76/threebox/issues/91) An object rotated twice, starts again from 0 degrees not from its original position
|
|
407
|
+
- [**#92**](https://github.com/jscastro76/threebox/issues/92) Refactor `obj.addLabel`, `obj.addTooltip` and add `obj.addHelp`
|
|
408
|
+
|
|
409
|
+
#### :beetle: Bug fixes
|
|
410
|
+
|
|
411
|
+
- [**#93**](https://github.com/jscastro76/threebox/issues/93) Bug on `utils.equal` is only comparing objects, not when is only values
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
<br>
|
|
415
|
+
|
|
416
|
+
- - -
|
|
417
|
+
|
|
418
|
+
## 2.0.8
|
|
419
|
+
|
|
420
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
421
|
+
|
|
422
|
+
#### :sparkles: Enhancements
|
|
423
|
+
|
|
424
|
+
- [**#73**](https://github.com/jscastro76/threebox/issues/73) `tb.dispose` must clean `tb.objectsCache`
|
|
425
|
+
- [**#74**](https://github.com/jscastro76/threebox/issues/74) Question: Why is this library not available on npm ?
|
|
426
|
+
- [**#75**](https://github.com/jscastro76/threebox/issues/75) Publish in npm
|
|
427
|
+
- [**#76**](https://github.com/jscastro76/threebox/issues/76) Refactor Objects.prototype._makeGroup
|
|
428
|
+
- [**#78**](https://github.com/jscastro76/threebox/issues/78) refactor var to const and let
|
|
429
|
+
- [**#80**](https://github.com/jscastro76/threebox/issues/80) Update example [15-performance.html](https://github.com/jscastro76/threebox/blob/master/examples/15-performance.html) Add built-in animation to example 15-performance.html windmill.
|
|
430
|
+
- [**#82**](https://github.com/jscastro76/threebox/issues/82) Add a method `tb.getSunTimes`
|
|
431
|
+
- [**#85**](https://github.com/jscastro76/threebox/issues/85) We need an object compare method
|
|
432
|
+
- [**#87**](https://github.com/jscastro76/threebox/issues/87) Change `tb.getSunPosition` to accept lnglat coords instead of two params
|
|
433
|
+
- [**#88**](https://github.com/jscastro76/threebox/issues/88) Add night style change in 12-add3dmodel.html and 13-eiffel.html examples during night hours
|
|
434
|
+
|
|
435
|
+
#### :beetle: Bug fixes
|
|
436
|
+
|
|
437
|
+
- [**#42**](https://github.com/jscastro76/threebox/issues/42) #42 Angular and Threebox. Solved an issue using a `mapboxgl.Point`line
|
|
438
|
+
- [**#77**](https://github.com/jscastro76/threebox/issues/77) #77 example 05-logistics raises an error removing the line
|
|
439
|
+
- [**#79**](https://github.com/jscastro76/threebox/issues/79) #79 Some examples are not using `renderingMode: 3d` in the layer creation
|
|
440
|
+
- [**#86**](https://github.com/jscastro76/threebox/issues/86) #86 After #56 the feature that comes in userData is not being updated.
|
|
441
|
+
|
|
442
|
+
<br>
|
|
443
|
+
|
|
444
|
+
- - -
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
## 2.0.7
|
|
448
|
+
|
|
449
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
450
|
+
|
|
451
|
+
#### :sparkles: Enhancements
|
|
452
|
+
|
|
453
|
+
- [**#24**](https://github.com/jscastro76/threebox/issues/24) Refactor `obj.deepCopy`, these members must be properties found by name
|
|
454
|
+
- [**#54**](https://github.com/jscastro76/threebox/issues/54) vue and threebox,map not defined.
|
|
455
|
+
- [**#63**](https://github.com/jscastro76/threebox/issues/63) `CSS2DObject` is not disposing properly.
|
|
456
|
+
- [**#66**](https://github.com/jscastro76/threebox/issues/66) `tb.dispose` must now call `tb.clear` and return the async value
|
|
457
|
+
- [**#68**](https://github.com/jscastro76/threebox/issues/68) add new methods to remove label & tooltip
|
|
458
|
+
- [**#71**](https://github.com/jscastro76/threebox/issues/71) Defer default boundingBox and tooltip creation.
|
|
459
|
+
- Update example [15-performance.html](https://github.com/jscastro76/threebox/blob/master/examples/15-performance.html) to avoid dupplicated calls when dragging the count GUI control.
|
|
460
|
+
|
|
461
|
+
#### :beetle: Bug fixes
|
|
462
|
+
- [**#61**](https://github.com/jscastro76/threebox/issues/61) `.userData` not refreshed properly on `obj.duplicate`.
|
|
463
|
+
- [**#62**](https://github.com/jscastro76/threebox/issues/62) Memory Leak on `tb.remove()`. Tested
|
|
464
|
+
- [**#64**](https://github.com/jscastro76/threebox/issues/64) Cache instance of a loaded model is disposed when the world children is.
|
|
465
|
+
- [**#65**](https://github.com/jscastro76/threebox/issues/65) addTooltip and addLabel don't remove previous objects.
|
|
466
|
+
- [**#67**](https://github.com/jscastro76/threebox/issues/67) clones have `boundingBoxShadow` line in white.
|
|
467
|
+
- [**#69**](https://github.com/jscastro76/threebox/issues/69) After #56 the labels and tooltips are wrongly positioned.
|
|
468
|
+
- [**#70**](https://github.com/jscastro76/threebox/issues/70) After #56 object boundingBox has the original cached size.
|
|
469
|
+
- [**#72**](https://github.com/jscastro76/threebox/issues/72) After #56 animations are not being cloned.
|
|
470
|
+
|
|
471
|
+
<br>
|
|
472
|
+
|
|
473
|
+
- - -
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
## 2.0.6
|
|
477
|
+
|
|
478
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
479
|
+
|
|
480
|
+
#### :sparkles: Enhancements
|
|
481
|
+
|
|
482
|
+
- [**#43**](https://github.com/jscastro76/threebox/issues/43) Threebox new method `tb.removeLayer` that removes the 3D objects of a layer, apart from removing the layer itself with `map.removeLayer`
|
|
483
|
+
- [**#56**](https://github.com/jscastro76/threebox/issues/56) Objects cache at `tb.loadObj`
|
|
484
|
+
- `tb.loadObj` now is 100% async and in the first call to an object load by url, then caches the returned object for the sucessive calls to return a clone of the object through `obj.duplicate()`
|
|
485
|
+
- Closes [**#51**](https://github.com/jscastro76/threebox/issues/51), [**#55**](https://github.com/jscastro76/threebox/issues/55)
|
|
486
|
+
- [**#57**](https://github.com/jscastro76/threebox/issues/57) Add a new sample to measure performance
|
|
487
|
+
- Added new example to demonstrate add thousands of objects and measure performance [Threebox Performance](https://github.com/jscastro76/threebox/blob/master/examples/15-performance.html).
|
|
488
|
+
- [**#58**](https://github.com/jscastro76/threebox/issues/58) Refactor `tb.remove`
|
|
489
|
+
- [**#59**](https://github.com/jscastro76/threebox/issues/59) Refactor `tb.clear` to add `layerId`.
|
|
490
|
+
- [**#60**](https://github.com/jscastro76/threebox/issues/58) Refactor `tb.dispose`
|
|
491
|
+
- All the examples reviewed and updated and added to the [Examples list](https://github.com/jscastro76/threebox/tree/master/examples)
|
|
492
|
+
|
|
493
|
+
<br>
|
|
494
|
+
|
|
495
|
+
- - -
|
|
496
|
+
|
|
497
|
+
## 2.0.5
|
|
498
|
+
|
|
499
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
500
|
+
|
|
501
|
+
#### :sparkles: Enhancements
|
|
502
|
+
|
|
503
|
+
- [**#28**](https://github.com/jscastro76/threebox/issues/28) Create a realistic illumination at any given lnglat, date and time
|
|
504
|
+
- Added [SunCalc](https://github.com/mourner/suncalc) for sun position calculations
|
|
505
|
+
- Threebox can receive now a new param `realSunlight : true` at instantiation
|
|
506
|
+
- Threebox new method `tb.realSunlight` that sets the lights for the scene with default map center position and current datetime.
|
|
507
|
+
- Threebox new method `tb.getSunPosition(date, lng, lat)` that allows to get sun altitude and azimuth from [SunCalc](https://github.com/mourner/suncalc)
|
|
508
|
+
- Threebox new method `tb.setBuildingShadows(options)` that instantiates a new `BuildingShadows` class.
|
|
509
|
+
- Threebox new method `tb.setSunlight (newDate = new Date(), coords)` that calculates real Sun light position at a given datetime and lnglat calling `tb.getSunPosition(date, lng, lat)`.
|
|
510
|
+
- Added `this.lights` to enable access to lights configured for the scene through `defaultLights` or `realSunLight`.
|
|
511
|
+
- Light Helpers (if any) are now updated on `tb.update` calling `this.updateLightHelper()`, useful to see the sun direction on animations.
|
|
512
|
+
- [**#30**](https://github.com/jscastro76/threebox/issues/30) Shadow examples
|
|
513
|
+
- Added new example to demonstrate how to change style [Change map style for Eiffel Tower](https://github.com/jscastro76/threebox/blob/master/examples/stylechange.html).
|
|
514
|
+
- Added new example boosting @andrewharvey original sample but with real sunlight and built-in shadows [Add a 3D model](https://github.com/jscastro76/threebox/blob/master/examples/add-3d-model.html).
|
|
515
|
+
- Added new example to show default fill extrusion buildings shadow [Building Sun light and shadows](https://github.com/jscastro76/threebox/blob/master/examples/buildingshadow.html).
|
|
516
|
+
- Improved Eiffel example with real sun light slider and shadows on 3D models and Buildings extrusions [Statue of Liberty and Eiffel Tower with Shadows](https://github.com/jscastro76/threebox/blob/master/examples/eiffel.html)
|
|
517
|
+
- `tb.Constants` are now accessible through instance (usefull for HTML/js side calculations)
|
|
518
|
+
- [**#31**](https://github.com/jscastro76/threebox/issues/31) Create/Remove the shadow plane automatically on `obj.castShadow`
|
|
519
|
+
- [**#33**](https://github.com/jscastro76/threebox/issues/33) Refactored methods `�bj.add` and `obj.remove` to enable add an object to them (honestly this never worked as it was referring to root which is the function.)
|
|
520
|
+
- [**#34**](https://github.com/jscastro76/threebox/issues/34) Added shadows for fill extrusion layers
|
|
521
|
+
- Synced with Custom Layers `tb.setSunLight` through `tb.setBuildingShadows(options)`
|
|
522
|
+
- Added new example on fill-extrusion shadows.
|
|
523
|
+
- [**#36**](https://github.com/jscastro76/threebox/issues/36) Clean up after use. Implemented a new method `tb.clear(dispose)` that removes all the children from `tb.children`
|
|
524
|
+
- [**#37**](https://github.com/jscastro76/threebox/issues/37) Anchor options. Implement the option `'auto'` that won't do anything to position the anchor, so the 3D Object will use it's default anchor defined in the model itself.
|
|
525
|
+
|
|
526
|
+
#### :beetle: Bug fixes
|
|
527
|
+
- [**#32**](https://github.com/jscastro76/threebox/issues/32) Hide PlaneGeometry used for shadow from raycaster.
|
|
528
|
+
- [**#35**](https://github.com/jscastro76/threebox/issues/35) Refresh of map after map style change creating a new `tb.setStyle` that replicates `map.setStyle` and calls a new method `tb.clear`
|
|
529
|
+
|
|
530
|
+
<br>
|
|
531
|
+
|
|
532
|
+
- - -
|
|
533
|
+
|
|
534
|
+
## 2.0.4
|
|
535
|
+
|
|
536
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
537
|
+
|
|
538
|
+
#### :sparkles: Enhancements
|
|
539
|
+
|
|
540
|
+
- Update to *Mapbox GL* v1.11.1.
|
|
541
|
+
- [**#13**](https://github.com/jscastro76/threebox/issues/13) Refactored `tube` and `Object3D` including now all the events, behaviors, `.tooltip` `.boundingBox` and `.boundingBoxShadow` and behave like 3D models loaded through `tb.loadObj`
|
|
542
|
+
- [**#15**](https://github.com/jscastro76/threebox/issues/15) Removed modules from the solution.
|
|
543
|
+
- [**#17**](https://github.com/jscastro76/threebox/issues/17) 3D models and Objects3D have a new config param `anchor` as string, that will be used to calculate dynamically the position of the object pivotal anchor to the coords it's positioned. This could have the following values `top`, `bottom`, `left`, `right`, `center`, `top-left`, `top-right`, `bottom-left`, `bottom-right`. Default value is `bottom-left` for precison on positioning.
|
|
544
|
+
- [**#17**](https://github.com/jscastro76/threebox/issues/17) 3D models and Objects3D `adjustment` param will override `anchor` automatic calculation to allow fully custom positioning for a pivotal center and altitude.
|
|
545
|
+
- 3DObject has now a new method `obj.setAnchor` to define the positional and pivotal center based on a string value.
|
|
546
|
+
- 3DObject has now a new method `obj.setCenter` to allows to define positional and pivotal center based on an {x,y,z} value in units.
|
|
547
|
+
- [**#18**](https://github.com/jscastro76/threebox/issues/18) `obj.addTooltip` and `obj.addLabel` receive a new param `anchor` that is by default `obj.anchor`, so it'll be calculated dynamically to `bottom-left` position.
|
|
548
|
+
- [**#19**](https://github.com/jscastro76/threebox/issues/19) Removed version logs from `ColladaLoader` and `FBXLoader`
|
|
549
|
+
- [**#20**](https://github.com/jscastro76/threebox/issues/20) 3D model url returned at `loadObj` error if there's an exception
|
|
550
|
+
- [**#21**](https://github.com/jscastro76/threebox/issues/21) Added new example with [Statue of Liberty and Eiffel Tower](https://github.com/jscastro76/threebox/blob/master/examples/eiffel.html) insipred by this [StackOverflow question](https://stackoverflow.com/questions/46701072/how-to-put-threejs-building-on-mapbox-to-its-real-place/46705447#)
|
|
551
|
+
- [**#22**](https://github.com/jscastro76/threebox/issues/22) All the examples updated to *Mapbox GL* v1.11.1.
|
|
552
|
+
- Threebox initialization params are now validated at the beginning.
|
|
553
|
+
- [**#23**](https://github.com/jscastro76/threebox/issues/23) Updated sample [mercator.html](https://github.com/jscastro76/threebox/blob/master/examples/mercator.html) to test the changes in `obj.duplicate()` method comparing duplication with new instances creation.
|
|
554
|
+
- Preparation for including post-effects
|
|
555
|
+
|
|
556
|
+
#### :beetle: Bug fixes
|
|
557
|
+
- [**#16**](https://github.com/jscastro76/threebox/issues/16) Bug in `obj.duplicate()` method. It was a *Three.js* bug [**19900**](https://github.com/mrdoob/three.js/issues/19900) but it was resolved here through the addition of a copy constructor.
|
|
558
|
+
- [**#23**](https://github.com/jscastro76/threebox/issues/23) Bug in `obj.duplicate()` method. It's not cloning properly all the members of a Threebox Object3D such as `obj.animations`, `obj.boundingBox`, `obj.boundingBoxShadow`, `obj.anchor`, etc...
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
<br>
|
|
562
|
+
|
|
563
|
+
- - -
|
|
564
|
+
|
|
565
|
+
## 2.0.3
|
|
566
|
+
|
|
567
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
568
|
+
|
|
569
|
+
#### :sparkles: Enhancements
|
|
570
|
+
|
|
571
|
+
- Update *Three.js* to v117 (WARNING: v118 breaks compatibility)
|
|
572
|
+
- Update *ColladaLoader.js*, *FBXLoader.js*, *GLTFLoader.js*, *MTLLoader.js* and *OBJLoader.js* to v.118
|
|
573
|
+
- Change in `obj.setCoords` method to use `min_height` value from default fill-extrusions coming from composite-building data.
|
|
574
|
+
- Change in `getObjectHeightOnFloor` to change use of `model.modelHeight` cosidering always `height=0` use `min_height` value from default fill-extrusions coming from composite-building data.
|
|
575
|
+
- Added `enableSelectingFeatures` to `Threebox` object default options, this allows to activate built-in raycasting over custom or default composite layer fill-extrusions.
|
|
576
|
+
- Added `enableSelectingObjects` to `Threebox` object default options, this allows to activate built-in raycasting over Threebox 3D objects.
|
|
577
|
+
- Added `enableDraggingObjects` to `Threebox` object default options, this allows to drag&drop Threebox 3D objects when selected to move them.
|
|
578
|
+
- Added `enableRotatingObjects` to `Threebox` object default options, this allows to drag&drop Threebox 3D objects when selected to rotate them.
|
|
579
|
+
- Added `enableTooltips` to `Threebox` object default options, this creates default tooltips on Objects3D and fill-extrusions.
|
|
580
|
+
- Added default tooltips to 3D objects and fill-extrusion features that can be overriden, so far always top centered.
|
|
581
|
+
- Added a new example *3Dbuildings.html* showing the built-in raycast behavior and tooltips on top of the 3D Buildings fill-extrusions composite layer.
|
|
582
|
+
- Updated samples *raycaster.html*, *mercator.html*, *animation.html*, *mercator.html*, *basic.html*, *logistics.html*.
|
|
583
|
+
- Refactored `sphere` and `Object3D` including now all the events, behaviors, `.tooltip` `.boundingBox` and `.boundingBoxShadow` and behave like 3D models loaded through `tb.loadObj`
|
|
584
|
+
- Refactored `t.loadObj` to validate options format.
|
|
585
|
+
- Added `toolbox.css` that supports generic styles for tooltips mapbox-like.
|
|
586
|
+
|
|
587
|
+
#### :beetle: Bug fixes
|
|
588
|
+
|
|
589
|
+
- Bug fixed in `THREE.MTLLoader` with url undefined. (Pending decouple MTLLoader unless it's a `.obj` model)
|
|
590
|
+
- Bug fixed in `addTooltip(f, map)` method when a fill-extrusion has no name or id.
|
|
591
|
+
- Bug fixed in `utils.getFeatureCenter` that was not considering geoJson `MultiPolygon` type.
|
|
592
|
+
|
|
593
|
+
<br>
|
|
594
|
+
|
|
595
|
+
- - -
|
|
596
|
+
|
|
597
|
+
## 2.0.2
|
|
598
|
+
|
|
599
|
+
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
|
|
600
|
+
|
|
601
|
+
#### :sparkles: Enhancements
|
|
602
|
+
|
|
603
|
+
- New example added for alignment test check.
|
|
604
|
+
- Label and Tooltip are now dynamic objects in Threebox.
|
|
605
|
+
- Label and Tooltip objects support extrusions and include Altitude.
|
|
606
|
+
- Label and Tooltip calculate by default the center of the object.
|
|
607
|
+
- Tooltip has now a new param to match Mapbox styles
|
|
608
|
+
- obj.modelHeight is not anymore needed as a param to create a Label at obj.drawLabelHTML
|
|
609
|
+
- obj.addLabel does not need anymore bottomMargin cab be changed by styles through cssClass parameter
|
|
610
|
+
- Refactoring of HTML creation for Label and Tooltip
|
|
611
|
+
- Server.js script added for server execution.
|
|
612
|
+
|
|
613
|
+
#### :beetle: Bug fixes
|
|
614
|
+
- Bug fixed, Camera aspect ratio was not properly updated on map resize.
|
|
615
|
+
- Bug fixed on unselect Object and unselect Feature, now both work the same
|
|
616
|
+
- Bug fixed to support default fill-extrusion layers using composite and building data.
|
|
617
|
+
|
|
618
|
+
<br>
|
|
619
|
+
|
|
620
|
+
- - -
|
|
621
|
+
|
|
622
|
+
## 2.0.1
|
|
623
|
+
|
|
624
|
+
This is the new version created with this [fork]((https://github.com/jscastro76/threebox)) by [@jscastro76](https://github.com/jscastro76) and it's a major update.
|
|
625
|
+
|
|
626
|
+
#### :sparkles: Enhancements
|
|
627
|
+
|
|
628
|
+
- Update to *Three.js* v114.
|
|
629
|
+
- Update to *Mapbox GL* v1.10.0.
|
|
630
|
+
- All the examples updated, and one more example added with new features.
|
|
631
|
+
- Support for multiple format objects (FBX, GLTF/GLB, Collada + OBJ/MTL).
|
|
632
|
+
- Support for CSS2DLabels supporting rich HTML controls through a new LabelManager.
|
|
633
|
+
- Support for tooltips/title browser-like.
|
|
634
|
+
- Support for Objects3D bounding box and floor projection.
|
|
635
|
+
- Support for built-in Raycaster in loaded Objects3D and fill-extrusions together.
|
|
636
|
+
- Support for built-in MouseOver/Mouseout, Selected, Drag&Drop, Drag&Rotate, Wireframe in loadedObjects including events.
|
|
637
|
+
- Support for GeoJson standard features format import and export in different layers.
|
|
638
|
+
- Support for Objects3D embedded animations, and combined animations on AnimationManager (i.e. translate + embedded).
|
|
639
|
+
- Support for multi-floor design of spaces.
|
|
640
|
+
- Support for Non-AABB Non Axes Aligned Bounding Box and real model size.
|
|
641
|
+
- Support for wireframing on Objects3D, removing them from the raycast.
|
|
642
|
+
- Support for setLayerZoomRange and setLayoutProperty on Custom Layers (not available in Mapbox).
|
|
643
|
+
- Support for full dispose of Mapbox, Three and Threebox resources.
|
|
644
|
+
- Optimization of Camera perspective to have Raycast with pixel-precision level.
|
|
645
|
+
- Adjusted positioning for Objects3D to set center and rotation axes by config.
|
|
646
|
+
|
|
647
|
+
<br>
|
|
648
|
+
|
|
649
|
+
- - -
|
|
650
|
+
|
|
651
|
+
## 0.3.0
|
|
652
|
+
|
|
653
|
+
#### Enhancements
|
|
654
|
+
|
|
655
|
+
- Add an Object class: convenience methods to produce lines, spheres, tubes, and imported OBJ/MTL meshes, as well as a method to bring in THREE.Object3D's produced elsewhere with vanilla Three.js. Most of these are moveable, and have methods to move/rotate/rescale
|
|
656
|
+
|
|
657
|
+
- No need to call `tb.update()` after putting it in the custom layer's `render()` function.
|
|
658
|
+
|
|
659
|
+
#### Bug fixes
|
|
660
|
+
|
|
661
|
+
- Automatically adjust for viewport size (https://github.com/peterqliu/threebox/issues/43)
|
|
662
|
+
|
|
663
|
+
#### Deprecated (but still functional)
|
|
664
|
+
- `.setupDefaultLights()` has moved to an optional `defaultLights` parameter, in the third argument for Threebox().
|
|
665
|
+
- `tb.addAtCoordinate()` and `tb.moveToCoordinate()` have been deprecated. `tb.add(Object)` and `Object.setCoords()` replace them
|