We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6322fa1 commit f2e68b8Copy full SHA for f2e68b8
examples/webgl_loader_svg.html
@@ -76,7 +76,9 @@
76
loader.load( 'models/svg/tiger.svg', function ( paths ) {
77
78
var group = new THREE.Group();
79
- group.scale.multiplyScalar( 0.1 );
+ group.scale.multiplyScalar( 0.25 );
80
+ group.position.x = - 70;
81
+ group.position.y = 70;
82
group.scale.y *= -1;
83
84
for ( var i = 0; i < paths.length; i ++ ) {
@@ -129,6 +131,17 @@
129
131
130
132
window.addEventListener( 'resize', onWindowResize, false );
133
134
+ document.body.addEventListener( 'dblclick', function ( event ) {
135
+
136
+ var group = scene.children[ 1 ];
137
+ group.traverse( function ( child ) {
138
139
+ if ( child.material ) child.material.wireframe = !child.material.wireframe;
140
141
+ } );
142
143
144
145
}
146
147
function onWindowResize() {
0 commit comments