Comments (4)
Yeah, that should work with doing obj3d.parent.children. You may have to call a refresh method though. I don't remember. You could also just fully take the object out of the tree structure, but then you gotta make sure that doesn't introduce weird behavior. You could look at the code in the 3D viewer to renders the toolhead or extents text to see if there's any refresh code you could borrow.
from widget-3dviewer.
Did you do a wakeAnimate afterwards to see the refresh?
from widget-3dviewer.
If you need some new pubsub exposed out of the 3D viewer, I could get a pull request processed quickly for you. Maybe just expose 2 new pubsubs for toolhead and extents text that let you toggle hide/show.
from widget-3dviewer.
I don't believe this.obj3d.parent.children is a good approach, because; if I'm not wrong; toolhead and extents text are added to the scene after the other widget creates its 3d objects.
A better approach is to create new pubsub for that, it might take some time before I make a PR for that, at the moment I just disable those object from my fork of 3dviewer widget.
from widget-3dviewer.
Related Issues (8)
- simple 2d gcode visualize HOT 4
- Misinterpreted G2/G3 direction for arcs in ZX plane
- Development thread: S parameter as variable opacity HOT 7
- [Bug] Ctrl-click to jog doesn't seem to work (Mac) HOT 2
- Missing .js extension on three library breaks 3d viewer with black background HOT 3
- Fix deprecation notices
- Clear 3D viewer without changing view angle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from widget-3dviewer.