[{"data":1,"prerenderedAt":1259},["ShallowReactive",2],{"navigation":3,"/api/abstractions/fit":498,"/api/abstractions/fit-surround":1254},[4,26],{"title":5,"path":6,"stem":7,"children":8},"Getting Started","/getting-started","1.getting-started/1.index",[9,10,14,18,22],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Installation Guide","/getting-started/installation","1.getting-started/2.installation",{"title":15,"path":16,"stem":17},"Usage","/getting-started/usage","1.getting-started/3.usage",{"title":19,"path":20,"stem":21},"Loading Models","/getting-started/loading-models","1.getting-started/4.loading-models",{"title":23,"path":24,"stem":25},"Upgrade Guide","/getting-started/upgrade-guide","1.getting-started/5.upgrade-guide",{"title":27,"path":28,"stem":29,"children":30},"Api","/api","2.api",[31,34,96,126,168,210,308,334,368,418,464],{"title":32,"path":28,"stem":33},"All","2.api/index",{"title":35,"path":36,"stem":37,"children":38},"Abstractions","/api/abstractions","2.api/1.abstractions/index",[39,40,44,48,52,56,60,64,68,72,76,80,84,88,92],{"title":35,"path":36,"stem":37},{"title":41,"path":42,"stem":43},"Align","/api/abstractions/align","2.api/1.abstractions/align",{"title":45,"path":46,"stem":47},"Billboard","/api/abstractions/billboard","2.api/1.abstractions/billboard",{"title":49,"path":50,"stem":51},"Camera Shake","/api/abstractions/camera-shake","2.api/1.abstractions/camera-shake",{"title":53,"path":54,"stem":55},"Decal","/api/abstractions/decal","2.api/1.abstractions/decal",{"title":57,"path":58,"stem":59},"Edges","/api/abstractions/edges","2.api/1.abstractions/edges",{"title":61,"path":62,"stem":63},"Fit","/api/abstractions/fit","2.api/1.abstractions/fit",{"title":65,"path":66,"stem":67},"Instances","/api/abstractions/instances","2.api/1.abstractions/instances",{"title":69,"path":70,"stem":71},"Levioso (Float)","/api/abstractions/levioso","2.api/1.abstractions/levioso",{"title":73,"path":74,"stem":75},"Mask","/api/abstractions/mask","2.api/1.abstractions/mask",{"title":77,"path":78,"stem":79},"Merged","/api/abstractions/merged","2.api/1.abstractions/merged",{"title":81,"path":82,"stem":83},"Outline","/api/abstractions/outline","2.api/1.abstractions/outline",{"title":85,"path":86,"stem":87},"Sampler","/api/abstractions/sampler","2.api/1.abstractions/sampler",{"title":89,"path":90,"stem":91},"ScreenSizer","/api/abstractions/screen-sizer","2.api/1.abstractions/screen-sizer",{"title":93,"path":94,"stem":95},"ScreenSpace","/api/abstractions/screen-space","2.api/1.abstractions/screen-space",{"title":97,"path":98,"stem":99,"children":100},"Controls","/api/controls","2.api/2.controls/index",[101,102,106,110,114,118,122],{"title":97,"path":98,"stem":99},{"title":103,"path":104,"stem":105},"Camera Controls","/api/controls/camera-controls","2.api/2.controls/camera-controls",{"title":107,"path":108,"stem":109},"Keyboard Controls","/api/controls/keyboard-controls","2.api/2.controls/keyboard-controls",{"title":111,"path":112,"stem":113},"Map Controls","/api/controls/map-controls","2.api/2.controls/map-controls",{"title":115,"path":116,"stem":117},"Orbit Controls","/api/controls/orbit-controls","2.api/2.controls/orbit-controls",{"title":119,"path":120,"stem":121},"PointerLock Controls","/api/controls/pointer-lock-controls","2.api/2.controls/pointer-lock-controls",{"title":123,"path":124,"stem":125},"Transform Controls","/api/controls/transform-controls","2.api/2.controls/transform-controls",{"title":127,"path":128,"stem":129,"children":130},"Loaders","/api/loaders","2.api/3.loaders/index",[131,132,136,140,144,148,152,156,160,164],{"title":127,"path":128,"stem":129},{"title":133,"path":134,"stem":135},"useGLTF","/api/loaders/use-gltf","2.api/3.loaders/1.use-gltf",{"title":137,"path":138,"stem":139},"GLTFModel","/api/loaders/gltf-model","2.api/3.loaders/2.gltf-model",{"title":141,"path":142,"stem":143},"useFBX","/api/loaders/use-fbx","2.api/3.loaders/3.use-fbx",{"title":145,"path":146,"stem":147},"FBXModel","/api/loaders/fbx-model","2.api/3.loaders/4.fbx-model",{"title":149,"path":150,"stem":151},"useTexture","/api/loaders/use-texture","2.api/3.loaders/5.use-texture",{"title":153,"path":154,"stem":155},"useTextures","/api/loaders/use-textures","2.api/3.loaders/6.use-textures",{"title":157,"path":158,"stem":159},"useSVG","/api/loaders/use-svg","2.api/3.loaders/7.use-svg",{"title":161,"path":162,"stem":163},"useProgress","/api/loaders/use-progress","2.api/3.loaders/use-progress",{"title":165,"path":166,"stem":167},"useVideoTexture","/api/loaders/use-video-texture","2.api/3.loaders/use-video-texture",{"title":169,"path":170,"stem":171,"children":172},"Materials","/api/materials","2.api/4.materials/index",[173,174,178,182,186,190,194,198,202,206],{"title":169,"path":170,"stem":171},{"title":175,"path":176,"stem":177},"Custom Shader Material","/api/materials/custom-shader-material","2.api/4.materials/custom-shader-material",{"title":179,"path":180,"stem":181},"Mesh Glass Material","/api/materials/glass-material","2.api/4.materials/glass-material",{"title":183,"path":184,"stem":185},"Holographic Material","/api/materials/holographic-material","2.api/4.materials/holographic-material",{"title":187,"path":188,"stem":189},"Mesh Discard Material","/api/materials/mesh-discard-material","2.api/4.materials/mesh-discard-material",{"title":191,"path":192,"stem":193},"Mesh Portal Material","/api/materials/mesh-portal-material","2.api/4.materials/mesh-portal-material",{"title":195,"path":196,"stem":197},"Mesh Reflection Material","/api/materials/mesh-reflection-material","2.api/4.materials/mesh-reflection-material",{"title":199,"path":200,"stem":201},"Mesh Transmission Material","/api/materials/mesh-transmission-material","2.api/4.materials/mesh-transmission-material",{"title":203,"path":204,"stem":205},"Point Material","/api/materials/point-material","2.api/4.materials/point-material",{"title":207,"path":208,"stem":209},"Wobble Material","/api/materials/wobble-material","2.api/4.materials/wobble-material",{"title":211,"path":212,"stem":213,"children":214},"Shapes","/api/shapes","2.api/5.shapes/index",[215,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304],{"title":211,"path":212,"stem":213},{"title":217,"path":218,"stem":219},"Box","/api/shapes/box","2.api/5.shapes/box",{"title":221,"path":222,"stem":223},"CatmullRomCurve3","/api/shapes/catmullromcurve3","2.api/5.shapes/catmullromcurve3",{"title":225,"path":226,"stem":227},"Circle","/api/shapes/circle","2.api/5.shapes/circle",{"title":229,"path":230,"stem":231},"Cone","/api/shapes/cone","2.api/5.shapes/cone",{"title":233,"path":234,"stem":235},"Cubic Bezier Line","/api/shapes/cubic-bezier-line","2.api/5.shapes/cubic-bezier-line",{"title":237,"path":238,"stem":239},"Cylinder","/api/shapes/cylinder","2.api/5.shapes/cylinder",{"title":241,"path":242,"stem":243},"Dodecahedron","/api/shapes/dodecahedron","2.api/5.shapes/dodecahedron",{"title":245,"path":246,"stem":247},"Grid","/api/shapes/grid","2.api/5.shapes/grid",{"title":249,"path":250,"stem":251},"Icosahedron","/api/shapes/icosahedron","2.api/5.shapes/icosahedron",{"title":253,"path":254,"stem":255},"Line2","/api/shapes/line2","2.api/5.shapes/line2",{"title":257,"path":258,"stem":259},"Octahedron","/api/shapes/octahedron","2.api/5.shapes/octahedron",{"title":261,"path":262,"stem":263},"Plane","/api/shapes/plane","2.api/5.shapes/plane",{"title":265,"path":266,"stem":267},"Quadratic Bezier Line","/api/shapes/quadratic-bezier-line","2.api/5.shapes/quadratic-bezier-line",{"title":269,"path":270,"stem":271},"Ring","/api/shapes/ring","2.api/5.shapes/ring",{"title":273,"path":274,"stem":275},"Rounded Box","/api/shapes/rounded-box","2.api/5.shapes/rounded-box",{"title":277,"path":278,"stem":279},"Rounded Plane","/api/shapes/rounded-plane","2.api/5.shapes/rounded-plane",{"title":281,"path":282,"stem":283},"Screen Quad","/api/shapes/screen-quad","2.api/5.shapes/screen-quad",{"title":285,"path":286,"stem":287},"Sphere","/api/shapes/sphere","2.api/5.shapes/sphere",{"title":289,"path":290,"stem":291},"Superformula","/api/shapes/superformula","2.api/5.shapes/superformula",{"title":293,"path":294,"stem":295},"Tetrahedron","/api/shapes/tetrahedron","2.api/5.shapes/tetrahedron",{"title":297,"path":298,"stem":299},"Torus","/api/shapes/torus","2.api/5.shapes/torus",{"title":301,"path":302,"stem":303},"Torus Knot","/api/shapes/torus-knot","2.api/5.shapes/torus-knot",{"title":305,"path":306,"stem":307},"Tube","/api/shapes/tube","2.api/5.shapes/tube",{"title":309,"path":310,"stem":311,"children":312},"Debug/Performance","/api/debug-performance","2.api/6.debug-performance/index",[313,314,318,322,326,330],{"title":309,"path":310,"stem":311},{"title":315,"path":316,"stem":317},"Helper","/api/debug-performance/helper","2.api/6.debug-performance/helper",{"title":319,"path":320,"stem":321},"LOD","/api/debug-performance/lod","2.api/6.debug-performance/lod",{"title":323,"path":324,"stem":325},"Stats","/api/debug-performance/stats","2.api/6.debug-performance/stats",{"title":327,"path":328,"stem":329},"StatsGl","/api/debug-performance/stats-gl","2.api/6.debug-performance/stats-gl",{"title":331,"path":332,"stem":333},"useBVH","/api/debug-performance/use-bvh","2.api/6.debug-performance/use-bvh",{"title":335,"path":336,"stem":337,"children":338},"Light/Shadow","/api/light-shadow","2.api/7.light-shadow/index",[339,340,344,348,352,356,360,364],{"title":335,"path":336,"stem":337},{"title":341,"path":342,"stem":343},"Accumulative Shadows","/api/light-shadow/accumulative-shadows","2.api/7.light-shadow/accumulative-shadows",{"title":345,"path":346,"stem":347},"Bake Shadows","/api/light-shadow/bake-shadows","2.api/7.light-shadow/bake-shadows",{"title":349,"path":350,"stem":351},"Circle Shadow","/api/light-shadow/circle-shadow","2.api/7.light-shadow/circle-shadow",{"title":353,"path":354,"stem":355},"Contact Shadows","/api/light-shadow/contact-shadows","2.api/7.light-shadow/contact-shadows",{"title":357,"path":358,"stem":359},"Lensflare","/api/light-shadow/lensflare","2.api/7.light-shadow/lensflare",{"title":361,"path":362,"stem":363},"Randomized Lights","/api/light-shadow/randomized-lights","2.api/7.light-shadow/randomized-lights",{"title":365,"path":366,"stem":367},"Soft Shadows","/api/light-shadow/soft-shadows","2.api/7.light-shadow/soft-shadows",{"title":369,"path":370,"stem":371,"children":372},"Staging","/api/staging","2.api/8.staging/index",[373,374,378,382,386,390,394,398,402,406,410,414],{"title":369,"path":370,"stem":371},{"title":375,"path":376,"stem":377},"Environment","/api/staging/environment","2.api/8.staging/1.environment",{"title":379,"path":380,"stem":381},"useEnvironment","/api/staging/use-environment","2.api/8.staging/2.use-environment",{"title":383,"path":384,"stem":385},"Lightformer","/api/staging/lightformer","2.api/8.staging/3.lightformer",{"title":387,"path":388,"stem":389},"Backdrop","/api/staging/backdrop","2.api/8.staging/backdrop",{"title":391,"path":392,"stem":393},"Ocean","/api/staging/ocean","2.api/8.staging/ocean",{"title":395,"path":396,"stem":397},"Precipitation","/api/staging/precipitation","2.api/8.staging/precipitation",{"title":399,"path":400,"stem":401},"Sky","/api/staging/sky","2.api/8.staging/sky",{"title":403,"path":404,"stem":405},"Smoke","/api/staging/smoke","2.api/8.staging/smoke",{"title":407,"path":408,"stem":409},"Sparkles","/api/staging/sparkles","2.api/8.staging/sparkles",{"title":411,"path":412,"stem":413},"Stage","/api/staging/stage","2.api/8.staging/stage",{"title":415,"path":416,"stem":417},"Stars","/api/staging/stars","2.api/8.staging/stars",{"title":419,"path":420,"stem":421,"children":422},"Objects","/api/objects","2.api/9.objects/index",[423,424,428,432,436,440,444,448,452,456,460],{"title":419,"path":420,"stem":421},{"title":425,"path":426,"stem":427},"AnimatedSprite","/api/objects/animated-sprite","2.api/9.objects/animated-sprite",{"title":429,"path":430,"stem":431},"CubeCamera","/api/objects/cube-camera","2.api/9.objects/cube-camera",{"title":433,"path":434,"stem":435},"Fbo","/api/objects/fbo","2.api/9.objects/fbo",{"title":437,"path":438,"stem":439},"GradientTexture","/api/objects/gradient-texture","2.api/9.objects/gradient-texture",{"title":441,"path":442,"stem":443},"HTML","/api/objects/html","2.api/9.objects/html",{"title":445,"path":446,"stem":447},"Image","/api/objects/image","2.api/9.objects/image",{"title":449,"path":450,"stem":451},"MarchingCubes","/api/objects/marching-cubes","2.api/9.objects/marching-cubes",{"title":453,"path":454,"stem":455},"Reflector","/api/objects/reflector","2.api/9.objects/reflector",{"title":457,"path":458,"stem":459},"Refractor","/api/objects/refractor","2.api/9.objects/refractor",{"title":461,"path":462,"stem":463},"Text3D","/api/objects/text-3d","2.api/9.objects/text-3d",{"title":465,"path":466,"stem":467,"children":468},"Miscellaneous","/api/miscellaneous","2.api/miscellaneous/index",[469,470,474,478,482,486,490,494],{"title":465,"path":466,"stem":467},{"title":471,"path":472,"stem":473},"Bounds","/api/miscellaneous/bounds","2.api/miscellaneous/bounds",{"title":475,"path":476,"stem":477},"GlobalAudio","/api/miscellaneous/global-audio","2.api/miscellaneous/global-audio",{"title":479,"path":480,"stem":481},"MouseParallax","/api/miscellaneous/mouse-parallax","2.api/miscellaneous/mouse-parallax",{"title":483,"path":484,"stem":485},"PositionalAudio","/api/miscellaneous/positional-audio","2.api/miscellaneous/positional-audio",{"title":487,"path":488,"stem":489},"useAnimations","/api/miscellaneous/use-animations","2.api/miscellaneous/use-animations",{"title":491,"path":492,"stem":493},"useGLTFExporter","/api/miscellaneous/use-gltf-exporter","2.api/miscellaneous/use-gltf-exporter",{"title":495,"path":496,"stem":497},"useIntersect","/api/miscellaneous/use-intersect","2.api/miscellaneous/use-intersect",{"id":499,"title":61,"body":500,"description":1248,"extension":1249,"links":1250,"meta":1251,"navigation":674,"path":62,"seo":1252,"stem":63,"__hash__":1253},"docs/2.api/1.abstractions/fit.md",{"type":501,"value":502,"toc":1244},"minimark",[503,509,517,528,534,538,1083,1087,1240],[504,505,506],"scene-wrapper",{},[507,508],"abstractions-fit",{},[510,511,512,516],"p",{},[513,514,515],"code",{},"\u003CFit />"," uniformly scales and positions its children as a group. By default, it fits its children into a 1 × 1 × 1 box at the world origin.",[510,518,519,520,523,524,527],{},"Alternatively, the children can be fit into a ",[513,521,522],{},"Box3"," or an ",[513,525,526],{},"Object3D",".",[510,529,530,531,533],{},"Or the children can simply be resized. With ",[513,532,515],{}," the children are scaled relative to the center of their calculated bounding box.",[535,536,15],"h2",{"id":537},"usage",[539,540,549],"pre",{"className":541,"code":542,"highlights":543,"language":547,"meta":548,"style":548},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { Fit, OrbitControls } from '@tresjs/cientos'\nimport { TresCanvas } from '@tresjs/core'\nimport { BoxGeometry, MeshNormalMaterial } from 'three'\n\nconst positions: number[][] = []\nfor (let y = 100; y \u003C= 120; y += 10) {\n  for (let x = 100; x \u003C= 120; x += 10) {\n    positions.push([x, y, 9999])\n  }\n}\nconst geom = new BoxGeometry()\nconst mat = new MeshNormalMaterial()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas clear-color=\"#4F4F4F\">\n    \u003CTresPerspectiveCamera :position=\"[1, 1, 1]\" />\n    \u003COrbitControls />\n    \u003CFit>\n      \u003CTresMesh\n        v-for=\"(pos, index) in positions\"\n        :key=\"index\"\n        :position=\"pos\"\n        :args=\"[geom, mat]\"\n      />\n    \u003C/Fit>\n    \u003CTresGridHelper :args=\"[1, 1]\" />\n  \u003C/TresCanvas>\n\u003C/template>\n\n",[544,545,546],2,20,27,"vue","",[513,550,551,586,622,643,669,676,700,748,788,819,825,831,849,865,875,880,890,913,937,947,956,965,981,996,1011,1026,1032,1042,1064,1074],{"__ignoreMap":548},[552,553,556,560,564,568,571,574,577,581,583],"span",{"class":554,"line":555},"line",1,[552,557,559],{"class":558},"sMK4o","\u003C",[552,561,563],{"class":562},"swJcz","script",[552,565,567],{"class":566},"spNyl"," setup",[552,569,570],{"class":566}," lang",[552,572,573],{"class":558},"=",[552,575,576],{"class":558},"\"",[552,578,580],{"class":579},"sfazB","ts",[552,582,576],{"class":558},[552,584,585],{"class":558},">\n",[552,587,590,594,597,601,604,607,610,613,616,619],{"class":588,"line":544},[554,589],"highlight",[552,591,593],{"class":592},"s7zQu","import",[552,595,596],{"class":558}," {",[552,598,600],{"class":599},"sTEyZ"," Fit",[552,602,603],{"class":558},",",[552,605,606],{"class":599}," OrbitControls",[552,608,609],{"class":558}," }",[552,611,612],{"class":592}," from",[552,614,615],{"class":558}," '",[552,617,618],{"class":579},"@tresjs/cientos",[552,620,621],{"class":558},"'\n",[552,623,625,627,629,632,634,636,638,641],{"class":554,"line":624},3,[552,626,593],{"class":592},[552,628,596],{"class":558},[552,630,631],{"class":599}," TresCanvas",[552,633,609],{"class":558},[552,635,612],{"class":592},[552,637,615],{"class":558},[552,639,640],{"class":579},"@tresjs/core",[552,642,621],{"class":558},[552,644,646,648,650,653,655,658,660,662,664,667],{"class":554,"line":645},4,[552,647,593],{"class":592},[552,649,596],{"class":558},[552,651,652],{"class":599}," BoxGeometry",[552,654,603],{"class":558},[552,656,657],{"class":599}," MeshNormalMaterial",[552,659,609],{"class":558},[552,661,612],{"class":592},[552,663,615],{"class":558},[552,665,666],{"class":579},"three",[552,668,621],{"class":558},[552,670,672],{"class":554,"line":671},5,[552,673,675],{"emptyLinePlaceholder":674},true,"\n",[552,677,679,682,685,688,692,695,697],{"class":554,"line":678},6,[552,680,681],{"class":566},"const",[552,683,684],{"class":599}," positions",[552,686,687],{"class":558},":",[552,689,691],{"class":690},"sBMFI"," number",[552,693,694],{"class":599},"[][] ",[552,696,573],{"class":558},[552,698,699],{"class":599}," []\n",[552,701,703,706,709,712,715,717,721,724,726,729,732,734,736,739,742,745],{"class":554,"line":702},7,[552,704,705],{"class":592},"for",[552,707,708],{"class":599}," (",[552,710,711],{"class":566},"let",[552,713,714],{"class":599}," y ",[552,716,573],{"class":558},[552,718,720],{"class":719},"sbssI"," 100",[552,722,723],{"class":558},";",[552,725,714],{"class":599},[552,727,728],{"class":558},"\u003C=",[552,730,731],{"class":719}," 120",[552,733,723],{"class":558},[552,735,714],{"class":599},[552,737,738],{"class":558},"+=",[552,740,741],{"class":719}," 10",[552,743,744],{"class":599},") ",[552,746,747],{"class":558},"{\n",[552,749,751,754,756,758,761,764,766,768,770,773,775,777,779,782,784,786],{"class":554,"line":750},8,[552,752,753],{"class":592},"  for",[552,755,708],{"class":562},[552,757,711],{"class":566},[552,759,760],{"class":599}," x",[552,762,763],{"class":558}," =",[552,765,720],{"class":719},[552,767,723],{"class":558},[552,769,760],{"class":599},[552,771,772],{"class":558}," \u003C=",[552,774,731],{"class":719},[552,776,723],{"class":558},[552,778,760],{"class":599},[552,780,781],{"class":558}," +=",[552,783,741],{"class":719},[552,785,744],{"class":562},[552,787,747],{"class":558},[552,789,791,794,796,800,803,806,808,811,813,816],{"class":554,"line":790},9,[552,792,793],{"class":599},"    positions",[552,795,527],{"class":558},[552,797,799],{"class":798},"s2Zo4","push",[552,801,802],{"class":562},"([",[552,804,805],{"class":599},"x",[552,807,603],{"class":558},[552,809,810],{"class":599}," y",[552,812,603],{"class":558},[552,814,815],{"class":719}," 9999",[552,817,818],{"class":562},"])\n",[552,820,822],{"class":554,"line":821},10,[552,823,824],{"class":558},"  }\n",[552,826,828],{"class":554,"line":827},11,[552,829,830],{"class":558},"}\n",[552,832,834,836,839,841,844,846],{"class":554,"line":833},12,[552,835,681],{"class":566},[552,837,838],{"class":599}," geom ",[552,840,573],{"class":558},[552,842,843],{"class":558}," new",[552,845,652],{"class":798},[552,847,848],{"class":599},"()\n",[552,850,852,854,857,859,861,863],{"class":554,"line":851},13,[552,853,681],{"class":566},[552,855,856],{"class":599}," mat ",[552,858,573],{"class":558},[552,860,843],{"class":558},[552,862,657],{"class":798},[552,864,848],{"class":599},[552,866,868,871,873],{"class":554,"line":867},14,[552,869,870],{"class":558},"\u003C/",[552,872,563],{"class":562},[552,874,585],{"class":558},[552,876,878],{"class":554,"line":877},15,[552,879,675],{"emptyLinePlaceholder":674},[552,881,883,885,888],{"class":554,"line":882},16,[552,884,559],{"class":558},[552,886,887],{"class":562},"template",[552,889,585],{"class":558},[552,891,893,896,899,902,904,906,909,911],{"class":554,"line":892},17,[552,894,895],{"class":558},"  \u003C",[552,897,898],{"class":562},"TresCanvas",[552,900,901],{"class":566}," clear-color",[552,903,573],{"class":558},[552,905,576],{"class":558},[552,907,908],{"class":579},"#4F4F4F",[552,910,576],{"class":558},[552,912,585],{"class":558},[552,914,916,919,922,925,927,929,932,934],{"class":554,"line":915},18,[552,917,918],{"class":558},"    \u003C",[552,920,921],{"class":562},"TresPerspectiveCamera",[552,923,924],{"class":566}," :position",[552,926,573],{"class":558},[552,928,576],{"class":558},[552,930,931],{"class":579},"[1, 1, 1]",[552,933,576],{"class":558},[552,935,936],{"class":558}," />\n",[552,938,940,942,945],{"class":554,"line":939},19,[552,941,918],{"class":558},[552,943,944],{"class":562},"OrbitControls",[552,946,936],{"class":558},[552,948,950,952,954],{"class":949,"line":545},[554,589],[552,951,918],{"class":558},[552,953,61],{"class":562},[552,955,585],{"class":558},[552,957,959,962],{"class":554,"line":958},21,[552,960,961],{"class":558},"      \u003C",[552,963,964],{"class":562},"TresMesh\n",[552,966,968,971,973,975,978],{"class":554,"line":967},22,[552,969,970],{"class":566},"        v-for",[552,972,573],{"class":558},[552,974,576],{"class":558},[552,976,977],{"class":579},"(pos, index) in positions",[552,979,980],{"class":558},"\"\n",[552,982,984,987,989,991,994],{"class":554,"line":983},23,[552,985,986],{"class":566},"        :key",[552,988,573],{"class":558},[552,990,576],{"class":558},[552,992,993],{"class":579},"index",[552,995,980],{"class":558},[552,997,999,1002,1004,1006,1009],{"class":554,"line":998},24,[552,1000,1001],{"class":566},"        :position",[552,1003,573],{"class":558},[552,1005,576],{"class":558},[552,1007,1008],{"class":579},"pos",[552,1010,980],{"class":558},[552,1012,1014,1017,1019,1021,1024],{"class":554,"line":1013},25,[552,1015,1016],{"class":566},"        :args",[552,1018,573],{"class":558},[552,1020,576],{"class":558},[552,1022,1023],{"class":579},"[geom, mat]",[552,1025,980],{"class":558},[552,1027,1029],{"class":554,"line":1028},26,[552,1030,1031],{"class":558},"      />\n",[552,1033,1035,1038,1040],{"class":1034,"line":546},[554,589],[552,1036,1037],{"class":558},"    \u003C/",[552,1039,61],{"class":562},[552,1041,585],{"class":558},[552,1043,1045,1047,1050,1053,1055,1057,1060,1062],{"class":554,"line":1044},28,[552,1046,918],{"class":558},[552,1048,1049],{"class":562},"TresGridHelper",[552,1051,1052],{"class":566}," :args",[552,1054,573],{"class":558},[552,1056,576],{"class":558},[552,1058,1059],{"class":579},"[1, 1]",[552,1061,576],{"class":558},[552,1063,936],{"class":558},[552,1065,1067,1070,1072],{"class":554,"line":1066},29,[552,1068,1069],{"class":558},"  \u003C/",[552,1071,898],{"class":562},[552,1073,585],{"class":558},[552,1075,1077,1079,1081],{"class":554,"line":1076},30,[552,1078,870],{"class":558},[552,1080,887],{"class":562},[552,1082,585],{"class":558},[535,1084,1086],{"id":1085},"props","Props",[1088,1089,1090,1104],"table",{},[1091,1092,1093],"thead",{},[1094,1095,1096,1101],"tr",{},[1097,1098,1100],"th",{"align":1099},"left","Name",[1097,1102,1103],{"align":1099},"Description",[1105,1106,1107,1213],"tbody",{},[1094,1108,1109,1116],{},[1110,1111,1112],"td",{"align":1099},[1113,1114,1115],"strong",{},"into",[1110,1117,1118,1119,1121,1122,1204,1207,1208,1210],{"align":1099},"If ",[513,1120,1115],{}," is:",[1123,1124,1125,1136,1145,1154,1162,1173,1180],"ul",{},[1126,1127,1128,1129,1132,1133,1135],"li",{},"omitted or explicitly ",[513,1130,1131],{},"undefined",": position/scale children to fit into a 1 × 1 × 1 ",[513,1134,522],{}," at world origin.",[1126,1137,1138,1141,1142,1144],{},[513,1139,1140],{},"null",": turn off ",[513,1143,515],{},"; reset scale/position of children.",[1126,1146,1147,1150,1151,527],{},[513,1148,1149],{},"number",": convert argument to ",[513,1152,1153],{},"Vector3(number, number, number)",[1126,1155,1156,1150,1159,527],{},[513,1157,1158],{},"[number, number, number]",[513,1160,1161],{},"Vector3",[1126,1163,1164,1166,1167,1169,1170,1172],{},[513,1165,1161],{},": position/scale children to fit inside a ",[513,1168,522],{}," of size ",[513,1171,1161],{}," at target objects' cumulative center.",[1126,1174,1175,1177,1178,527],{},[513,1176,522],{},": position/scale children to fit inside ",[513,1179,522],{},[1126,1181,1182,1184,1185,1187,1188,1187,1198,1200,1201,1203],{},[513,1183,526],{},": position/scale children to fit inside calculated ",[513,1186,522],{},". ",[1189,1190,1194,1195],"a",{"href":1191,"rel":1192},"https://threejs.org/docs/#api/en/math/Box3.setFromObject",[1193],"nofollow","See ",[513,1196,1197],{},"THREE.Box3.setFromObject",[513,1199,515],{}," must not contain the ",[513,1202,526],{}," and vice-versa.",[1205,1206],"br",{},"default:",[1205,1209],{},[513,1211,1212],{},"new Box3(new Vector3(-0.5, -0.5, -0.5), new Vector3(0.5, 0.5, 0.5))",[1094,1214,1215,1220],{},[1110,1216,1217],{"align":1099},[1113,1218,1219],{},"precise",[1110,1221,1222,1231,1233,1207,1235,1237],{"align":1099},[1189,1223,1194,1226,1228,1229],{"href":1224,"rel":1225},"https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject",[1193],[513,1227,1219],{}," argument in ",[513,1230,1197],{},[1205,1232],{},[1205,1234],{},[1205,1236],{},[513,1238,1239],{},"false",[1241,1242,1243],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":548,"searchDepth":555,"depth":544,"links":1245},[1246,1247],{"id":537,"depth":544,"text":15},{"id":1085,"depth":544,"text":1086},"Uniformly scale and position children to fit into a defined space.","md",null,{},{"title":61,"description":1248},"8AurvuiiZvTbSuZQKf_ksydDO09mH9Fnt7AaTb_9ZtA",[1255,1257],{"title":57,"path":58,"stem":59,"description":1256,"children":-1},"Render visible edges of objects with enhanced visual quality.",{"title":65,"path":66,"stem":67,"description":1258,"children":-1},"Draw thousands of copies of one mesh in a single drawcall, declaratively.",1787004677545]