-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node ES6 / React example #161
Comments
Only with this I have no idea what is going wrong, if I’m not wrong I have not used any property called Do you have a GitHub repo to check it out? Are you able to debug it in runtime to know where it breaks? Is your style |
It was referring to this piece of code here: https://github.com/jscastro76/threebox/blob/master/src/objects/loadObj.js#L22 When replacing "this" with "self" it solved that error but another issue popped up. But I managed to solve the problem. Instead of I do not understand why since they should be exactly the same. But again, I am by no measure an expert at Svelte or npm so maybe I am doing it wrong. Thanks a lot! |
And to answer your questions: Is your style osm-liberty.json loading properly? Yes, it is actually the same I am using with the vanilla-js implementation. |
That's old code from the original version, not used anymore, indeed the const |
TODO: remove |
You are welcome, I am glad to be of help. |
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs. #### ✨ Enhancements - #111 Show the dimensions of a model - #151 Remove auxiliary test method on `CameraSync` used to debug #145 - #156 Create an Orthographic view mode - #159 Create an example for FOV and Orthographic. - 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 - #161 Remove obsolete code that is avoiding to be used from React #### 🪲 Bug fixes - #152 `obj.raycasted` is ignored when an object is hidden and again visible. - #157 Bug draggging after removing an object. - #160 Bug using `utils.equal` #### 📝 Documentation - #158 MERCATOR_A constant unused, added an code comment to explain why it was deprecated (nor removed) - Updated [documentation](/docs/Threebox.md) (`tb.orthographic`, `tb.fov`) - Updated [README.md](/). - Updated [Examples](/examples) documentation.
@KarimJedda, changed and available to download so you don't have to modify your code. Please check if it works |
I will check later tonight and if it works I'll send you a PR for a Svelte example (should be the same for React/Vue.js) to add in the examples folder :) |
Hi jscastro76 and happy new year,
Is there a way to add an example using node ES6 to the examples folder?
I am currently using Svelte to build the app I am working on and somehow I can't get the same example from here https://github.com/jscastro76/threebox/blob/master/examples/06-object3d.html to work. I copied all the code into my component like this:
And when running it I get:
Uncaught (in promise) TypeError: can't access property "loaded", this is undefined
So I must be doing something wrong I just don't know what it is. Of course the 'models/soldier.glb' file is in the right folder and reachable.
Would be great, I am blocked with this since last night :'D
The text was updated successfully, but these errors were encountered: