|
@@ -15,22 +15,22 @@
|
|
|
<div class="desc">A class for generating plane geometries</div>
|
|
|
|
|
|
<iframe id="scene" src="scenes/geometry-browser.html#PlaneGeometry"></iframe>
|
|
|
-
|
|
|
- <script>
|
|
|
-
|
|
|
- // iOS iframe auto-resize workaround
|
|
|
-
|
|
|
- if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
|
|
|
-
|
|
|
- var scene = document.getElementById( 'scene' );
|
|
|
-
|
|
|
- scene.style.width = getComputedStyle( scene ).width;
|
|
|
- scene.style.height = getComputedStyle( scene ).height;
|
|
|
- scene.setAttribute( 'scrolling', 'no' );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- </script>
|
|
|
+
|
|
|
+ <script>
|
|
|
+
|
|
|
+ // iOS iframe auto-resize workaround
|
|
|
+
|
|
|
+ if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
|
|
|
+
|
|
|
+ var scene = document.getElementById( 'scene' );
|
|
|
+
|
|
|
+ scene.style.width = getComputedStyle( scene ).width;
|
|
|
+ scene.style.height = getComputedStyle( scene ).height;
|
|
|
+ scene.setAttribute( 'scrolling', 'no' );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ </script>
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
|
@@ -44,8 +44,8 @@
|
|
|
|
|
|
<h3>[name]([page:Float width], [page:Float height], [page:Integer widthSegments], [page:Integer heightSegments])</h3>
|
|
|
<div>
|
|
|
- width — Width along the X axis.<br />
|
|
|
- height — Height along the Y axis.<br />
|
|
|
+ width — Width along the X axis. Default is 1.<br />
|
|
|
+ height — Height along the Y axis. Default is 1.<br />
|
|
|
widthSegments — Optional. Default is 1. <br />
|
|
|
heightSegments — Optional. Default is 1.
|
|
|
</div>
|