Skip to content
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

Write documentation for this.warpSpeed() #53

Closed
xx0618 opened this issue Nov 12, 2020 · 4 comments
Closed

Write documentation for this.warpSpeed() #53

xx0618 opened this issue Nov 12, 2020 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@xx0618
Copy link

xx0618 commented Nov 12, 2020

After canceling 'this.third.warpSpeed()' statement, customize the scene light, background, etc., if use the 'THREE.OrbitControls' statement, you cannot place the cursor in the dynamically added , that is, you cannot enter information in the newly created .

//this.third.warpSpeed('-ground')
new THREE.OrbitControls(this.third.camera, this.scale.parent)

let show_con = document.createElement( 'div' );
show_con.setAttribute( 'onblur', 'showinput()' );
	
let input_con = document.createElement( 'input' );
input_con.setAttribute( 'type', 'text' );
input_con.setAttribute( 'id', 'input' + new_name );
	
let button_con = document.createElement( 'input' );
button_con.setAttribute( 'type', 'button' );
button_con.setAttribute( 'onclick', 'showinput()' );
button_con.setAttribute( 'value', '添加' );

show_con.append( input_con );
show_con.append( button_con );
document.body.appendChild(show_con);
@xx0618
Copy link
Author

xx0618 commented Nov 12, 2020

I used ‘this.third.warpSpeed()’ to load ‘OrbitControls’ and then customize other content, which solved this problem.

@xx0618 xx0618 closed this as completed Nov 12, 2020
@yandeu
Copy link
Member

yandeu commented Nov 12, 2020

Hope you don't mind if I reopen this issue until I wrote a proper documentation for warpSpeed(), since there are some advanced use cases no one knows about yet.

@yandeu yandeu reopened this Nov 12, 2020
@yandeu yandeu added the documentation Improvements or additions to documentation label Nov 12, 2020
@xx0618
Copy link
Author

xx0618 commented Nov 13, 2020

It's ok. I don’t know many functions of ‘enable3D’ yet, so I can just learn it.
Hope to publish an example of ‘this.warpSpeed()’ soon.

@yandeu yandeu changed the title When customizing the scene, if use the ‘new THREE.OrbitControls(this.third.camera, this.scale.parent) ’statement, the cursor cannot be positioned in the added <input>. Write documentation for this.warpSpeed() Dec 10, 2020
@yandeu
Copy link
Member

yandeu commented Nov 11, 2021

Done in enable3d/enable3d-website@2899433

@yandeu yandeu closed this as completed Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants