[{"data":1,"prerenderedAt":1833},["ShallowReactive",2],{"navigation":3,"/api/controls/camera-controls":498,"/api/controls/camera-controls-surround":1828},[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":103,"body":500,"description":1822,"extension":1823,"links":1824,"meta":1825,"navigation":1371,"path":104,"seo":1826,"stem":105,"__hash__":1827},"docs/2.api/2.controls/camera-controls.md",{"type":501,"value":502,"toc":1813},"minimark",[503,509,524,533,537,792,798,802,805,1274,1277,1306,1438,1443,1572,1582,1585,1709,1713,1769,1809],[504,505,506],"scene-controls-wrapper",{},[507,508],"controls-camera-controls",{},[510,511,512,519,520,523],"p",{},[513,514,518],"a",{"href":515,"rel":516},"https://github.com/yomotsu/camera-controls",[517],"nofollow","CameraControls"," is a camera controller similar to ",[513,521,522],{"href":116},"OrbitControls"," yet supports smooth transitions and more features.",[510,525,526,527,532],{},"However, it is thirty party library for ThreeJS. So to use it you would need to install and import using ",[513,528,531],{"href":529,"rel":530},"https://www.npmjs.com/package/camera-controls",[517],"npm",".",[534,535,15],"h2",{"id":536},"usage",[538,539,546],"pre",{"className":540,"code":541,"highlights":542,"language":544,"meta":545,"style":545},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nimport { CameraControls } from \"@tresjs/cientos\"\n\u003C/script>\n\u003Ctemplate>\n  \u003CTresCanvas clear-color=\"#82DBC5\">\n    \u003CTresPerspectiveCamera :position=\"[3, 3, 3]\" />\n    \u003CCameraControls />\n    \u003CBox :scale=\"2\">\n      \u003CTresMeshToonMaterial color=\"orange\" />\n    \u003C/Box>\n    \u003CTresAmbientLight />\n    \u003CTresDirectionalLight :position=\"[0, 2, 4]\" />\n    \u003CTresGridHelper />\n  \u003C/TresCanvas>\n\u003C/template>\n",[543],7,"vue","",[547,548,549,569,599,609,619,644,668,678,699,722,732,742,763,773,783],"code",{"__ignoreMap":545},[550,551,554,558,562,566],"span",{"class":552,"line":553},"line",1,[550,555,557],{"class":556},"sMK4o","\u003C",[550,559,561],{"class":560},"swJcz","script",[550,563,565],{"class":564},"spNyl"," setup",[550,567,568],{"class":556},">\n",[550,570,572,576,579,583,586,589,592,596],{"class":552,"line":571},2,[550,573,575],{"class":574},"s7zQu","import",[550,577,578],{"class":556}," {",[550,580,582],{"class":581},"sTEyZ"," CameraControls",[550,584,585],{"class":556}," }",[550,587,588],{"class":574}," from",[550,590,591],{"class":556}," \"",[550,593,595],{"class":594},"sfazB","@tresjs/cientos",[550,597,598],{"class":556},"\"\n",[550,600,602,605,607],{"class":552,"line":601},3,[550,603,604],{"class":556},"\u003C/",[550,606,561],{"class":560},[550,608,568],{"class":556},[550,610,612,614,617],{"class":552,"line":611},4,[550,613,557],{"class":556},[550,615,616],{"class":560},"template",[550,618,568],{"class":556},[550,620,622,625,628,631,634,637,640,642],{"class":552,"line":621},5,[550,623,624],{"class":556},"  \u003C",[550,626,627],{"class":560},"TresCanvas",[550,629,630],{"class":564}," clear-color",[550,632,633],{"class":556},"=",[550,635,636],{"class":556},"\"",[550,638,639],{"class":594},"#82DBC5",[550,641,636],{"class":556},[550,643,568],{"class":556},[550,645,647,650,653,656,658,660,663,665],{"class":552,"line":646},6,[550,648,649],{"class":556},"    \u003C",[550,651,652],{"class":560},"TresPerspectiveCamera",[550,654,655],{"class":564}," :position",[550,657,633],{"class":556},[550,659,636],{"class":556},[550,661,662],{"class":594},"[3, 3, 3]",[550,664,636],{"class":556},[550,666,667],{"class":556}," />\n",[550,669,672,674,676],{"class":670,"line":543},[552,671],"highlight",[550,673,649],{"class":556},[550,675,518],{"class":560},[550,677,667],{"class":556},[550,679,681,683,685,688,690,692,695,697],{"class":552,"line":680},8,[550,682,649],{"class":556},[550,684,217],{"class":560},[550,686,687],{"class":564}," :scale",[550,689,633],{"class":556},[550,691,636],{"class":556},[550,693,694],{"class":594},"2",[550,696,636],{"class":556},[550,698,568],{"class":556},[550,700,702,705,708,711,713,715,718,720],{"class":552,"line":701},9,[550,703,704],{"class":556},"      \u003C",[550,706,707],{"class":560},"TresMeshToonMaterial",[550,709,710],{"class":564}," color",[550,712,633],{"class":556},[550,714,636],{"class":556},[550,716,717],{"class":594},"orange",[550,719,636],{"class":556},[550,721,667],{"class":556},[550,723,725,728,730],{"class":552,"line":724},10,[550,726,727],{"class":556},"    \u003C/",[550,729,217],{"class":560},[550,731,568],{"class":556},[550,733,735,737,740],{"class":552,"line":734},11,[550,736,649],{"class":556},[550,738,739],{"class":560},"TresAmbientLight",[550,741,667],{"class":556},[550,743,745,747,750,752,754,756,759,761],{"class":552,"line":744},12,[550,746,649],{"class":556},[550,748,749],{"class":560},"TresDirectionalLight",[550,751,655],{"class":564},[550,753,633],{"class":556},[550,755,636],{"class":556},[550,757,758],{"class":594},"[0, 2, 4]",[550,760,636],{"class":556},[550,762,667],{"class":556},[550,764,766,768,771],{"class":552,"line":765},13,[550,767,649],{"class":556},[550,769,770],{"class":560},"TresGridHelper",[550,772,667],{"class":556},[550,774,776,779,781],{"class":552,"line":775},14,[550,777,778],{"class":556},"  \u003C/",[550,780,627],{"class":560},[550,782,568],{"class":556},[550,784,786,788,790],{"class":552,"line":785},15,[550,787,604],{"class":556},[550,789,616],{"class":560},[550,791,568],{"class":556},[793,794,795],"prose-warning",{},[510,796,797],{},"Is really important that the Perspective camera is set first in the canvas. Otherwise might break.",[534,799,801],{"id":800},"props","Props",[510,803,804],{},"Certainly! Here's the properties of the object in raw markdown table format:",[806,807,808,825],"table",{},[809,810,811],"thead",{},[812,813,814,819,822],"tr",{},[815,816,818],"th",{"align":817},"left","Prop",[815,820,821],{"align":817},"Description",[815,823,824],{},"Default",[826,827,828,845,860,874,889,904,919,934,949,964,978,995,1010,1024,1039,1054,1068,1083,1097,1111,1127,1142,1158,1172,1190,1205,1223,1238,1258],"tbody",{},[812,829,830,837,840],{},[831,832,833],"td",{"align":817},[834,835,836],"strong",{},"makeDefault",[831,838,839],{"align":817},"Whether to make this the default controls.",[831,841,842],{},[547,843,844],{},"false",[812,846,847,852,855],{},[831,848,849],{"align":817},[834,850,851],{},"camera",[831,853,854],{"align":817},"The camera to control.",[831,856,857],{},[547,858,859],{},"undefined",[812,861,862,867,870],{},[831,863,864],{"align":817},[834,865,866],{},"domElement",[831,868,869],{"align":817},"The DOM element to listen to.",[831,871,872],{},[547,873,859],{},[812,875,876,881,884],{},[831,877,878],{"align":817},[834,879,880],{},"minPolarAngle",[831,882,883],{"align":817},"Minimum vertical angle in radians.",[831,885,886],{},[547,887,888],{},"0",[812,890,891,896,899],{},[831,892,893],{"align":817},[834,894,895],{},"maxPolarAngle",[831,897,898],{"align":817},"Maximum vertical angle in radians.",[831,900,901],{},[547,902,903],{},"Math.PI",[812,905,906,911,914],{},[831,907,908],{"align":817},[834,909,910],{},"minAzimuthAngle",[831,912,913],{"align":817},"Minimum horizontal angle in radians.",[831,915,916],{},[547,917,918],{},"-Infinity",[812,920,921,926,929],{},[831,922,923],{"align":817},[834,924,925],{},"maxAzimuthAngle",[831,927,928],{"align":817},"Maximum horizontal angle in radians.",[831,930,931],{},[547,932,933],{},"Infinity",[812,935,936,941,944],{},[831,937,938],{"align":817},[834,939,940],{},"distance",[831,942,943],{"align":817},"Current distance.",[831,945,946],{},[547,947,948],{},"camera.position.z",[812,950,951,956,959],{},[831,952,953],{"align":817},[834,954,955],{},"minDistance",[831,957,958],{"align":817},"Minimum distance for dolly. PerspectiveCamera only.",[831,960,961],{},[547,962,963],{},"Number.EPSILON",[812,965,966,971,974],{},[831,967,968],{"align":817},[834,969,970],{},"maxDistance",[831,972,973],{"align":817},"Maximum distance for dolly. PerspectiveCamera only.",[831,975,976],{},[547,977,933],{},[812,979,980,985,991],{},[831,981,982],{"align":817},[834,983,984],{},"infinityDolly",[831,986,987,990],{"align":817},[547,988,989],{},"true"," to enable Infinity Dolly for wheel and pinch.",[831,992,993],{},[547,994,844],{},[812,996,997,1002,1005],{},[831,998,999],{"align":817},[834,1000,1001],{},"minZoom",[831,1003,1004],{"align":817},"Minimum camera zoom.",[831,1006,1007],{},[547,1008,1009],{},"0.01",[812,1011,1012,1017,1020],{},[831,1013,1014],{"align":817},[834,1015,1016],{},"maxZoom",[831,1018,1019],{"align":817},"Maximum camera zoom.",[831,1021,1022],{},[547,1023,933],{},[812,1025,1026,1031,1034],{},[831,1027,1028],{"align":817},[834,1029,1030],{},"smoothTime",[831,1032,1033],{"align":817},"Approximate time in seconds to reach the target. A smaller value will reach the target faster.",[831,1035,1036],{},[547,1037,1038],{},"0.25",[812,1040,1041,1046,1049],{},[831,1042,1043],{"align":817},[834,1044,1045],{},"draggingSmoothTime",[831,1047,1048],{"align":817},"The smoothTime while dragging.",[831,1050,1051],{},[547,1052,1053],{},"0.125",[812,1055,1056,1061,1064],{},[831,1057,1058],{"align":817},[834,1059,1060],{},"maxSpeed",[831,1062,1063],{"align":817},"Max transition speed in units per second.",[831,1065,1066],{},[547,1067,933],{},[812,1069,1070,1075,1078],{},[831,1071,1072],{"align":817},[834,1073,1074],{},"azimuthRotateSpeed",[831,1076,1077],{"align":817},"Speed of azimuth (horizontal) rotation.",[831,1079,1080],{},[547,1081,1082],{},"1.0",[812,1084,1085,1090,1093],{},[831,1086,1087],{"align":817},[834,1088,1089],{},"polarRotateSpeed",[831,1091,1092],{"align":817},"Speed of polar (vertical) rotation.",[831,1094,1095],{},[547,1096,1082],{},[812,1098,1099,1104,1107],{},[831,1100,1101],{"align":817},[834,1102,1103],{},"dollySpeed",[831,1105,1106],{"align":817},"Speed of mouse-wheel dollying.",[831,1108,1109],{},[547,1110,1082],{},[812,1112,1113,1118,1123],{},[831,1114,1115],{"align":817},[834,1116,1117],{},"dollyDragInverted",[831,1119,1120,1122],{"align":817},[547,1121,989],{}," to invert direction when dollying or zooming via drag.",[831,1124,1125],{},[547,1126,844],{},[812,1128,1129,1134,1137],{},[831,1130,1131],{"align":817},[834,1132,1133],{},"truckSpeed",[831,1135,1136],{"align":817},"Speed of drag for truck and pedestal.",[831,1138,1139],{},[547,1140,1141],{},"2.0",[812,1143,1144,1149,1154],{},[831,1145,1146],{"align":817},[834,1147,1148],{},"dollyToCursor",[831,1150,1151,1153],{"align":817},[547,1152,989],{}," to enable Dolly-in to the mouse cursor coords.",[831,1155,1156],{},[547,1157,844],{},[812,1159,1160,1165,1168],{},[831,1161,1162],{"align":817},[834,1163,1164],{},"dragToOffset",[831,1166,1167],{"align":817},"Whether to drag to offset.",[831,1169,1170],{},[547,1171,844],{},[812,1173,1174,1179,1186],{},[831,1175,1176],{"align":817},[834,1177,1178],{},"verticalDragToForward",[831,1180,1181,1182,1185],{"align":817},"The same as ",[547,1183,1184],{},".screenSpacePanning"," in Three.js's OrbitControls.",[831,1187,1188],{},[547,1189,844],{},[812,1191,1192,1197,1200],{},[831,1193,1194],{"align":817},[834,1195,1196],{},"boundaryFriction",[831,1198,1199],{"align":817},"Friction ratio of the boundary.",[831,1201,1202],{},[547,1203,1204],{},"0.0",[812,1206,1207,1212,1219],{},[831,1208,1209],{"align":817},[834,1210,1211],{},"restThreshold",[831,1213,1214,1215,1218],{"align":817},"Controls how soon the ",[547,1216,1217],{},"rest"," event fires as the camera slows.",[831,1220,1221],{},[547,1222,1009],{},[812,1224,1225,1230,1233],{},[831,1226,1227],{"align":817},[834,1228,1229],{},"colliderMeshes",[831,1231,1232],{"align":817},"An array of Meshes to collide with the camera. Be aware colliderMeshes may decrease performance. The collision test uses 4 raycasters from the camera since the near plane has 4 corners.",[831,1234,1235],{},[547,1236,1237],{},"[]",[812,1239,1240,1245,1248],{},[831,1241,1242],{"align":817},[834,1243,1244],{},"mouseButtons",[831,1246,1247],{"align":817},"Configuration of actions on mouse input.",[831,1249,1250,1251,1257],{},"See ",[513,1252,1254],{"href":1253},"#user-input-config",[547,1255,1256],{},"User input config"," for details",[812,1259,1260,1265,1268],{},[831,1261,1262],{"align":817},[834,1263,1264],{},"touches",[831,1266,1267],{"align":817},"Configuration of actions on touch.",[831,1269,1250,1270,1257],{},[513,1271,1272],{"href":1253},[547,1273,1256],{},[534,1275,1256],{"id":1276},"user-input-config",[510,1278,1279,1280,1282,1283,1285,1286,1294,1295,1297,1298,1301,1302,1305],{},"You can easily override the default user input config by defining ",[547,1281,1244],{}," and/or ",[547,1284,1264],{}," props that correspond to ",[513,1287,1290,1293],{"href":1288,"rel":1289},"https://github.com/yomotsu/camera-controls?#user-input-config",[517],[547,1291,1292],{},"camera-controls"," settings",". For ease of use, we're re-exporting the ",[547,1296,518],{}," class as ",[547,1299,1300],{},"BaseCameraControls"," which gives you access to the ",[547,1303,1304],{},"ACTION"," enum.",[538,1307,1309],{"className":540,"code":1308,"language":544,"meta":545,"style":545},"\u003Cscript lang=\"ts\" setup>\nimport { BaseCameraControls, CameraControls } from '@tresjs/cientos'\n\u003C/script>\n\n\u003Ctemplate>\n  ...\n  \u003CCameraControls\n    :mouse-buttons=\"{ left: BaseCameraControls.ACTION.DOLLY }\"\n    :touches=\"{ one: BaseCameraControls.ACTION.TOUCH_TRUCK }\"\n  />\n  ...\n\u003C/template>\n",[547,1310,1311,1333,1359,1367,1373,1381,1386,1393,1407,1421,1426,1430],{"__ignoreMap":545},[550,1312,1313,1315,1317,1320,1322,1324,1327,1329,1331],{"class":552,"line":553},[550,1314,557],{"class":556},[550,1316,561],{"class":560},[550,1318,1319],{"class":564}," lang",[550,1321,633],{"class":556},[550,1323,636],{"class":556},[550,1325,1326],{"class":594},"ts",[550,1328,636],{"class":556},[550,1330,565],{"class":564},[550,1332,568],{"class":556},[550,1334,1335,1337,1339,1342,1345,1347,1349,1351,1354,1356],{"class":552,"line":571},[550,1336,575],{"class":574},[550,1338,578],{"class":556},[550,1340,1341],{"class":581}," BaseCameraControls",[550,1343,1344],{"class":556},",",[550,1346,582],{"class":581},[550,1348,585],{"class":556},[550,1350,588],{"class":574},[550,1352,1353],{"class":556}," '",[550,1355,595],{"class":594},[550,1357,1358],{"class":556},"'\n",[550,1360,1361,1363,1365],{"class":552,"line":601},[550,1362,604],{"class":556},[550,1364,561],{"class":560},[550,1366,568],{"class":556},[550,1368,1369],{"class":552,"line":611},[550,1370,1372],{"emptyLinePlaceholder":1371},true,"\n",[550,1374,1375,1377,1379],{"class":552,"line":621},[550,1376,557],{"class":556},[550,1378,616],{"class":560},[550,1380,568],{"class":556},[550,1382,1383],{"class":552,"line":646},[550,1384,1385],{"class":581},"  ...\n",[550,1387,1388,1390],{"class":552,"line":543},[550,1389,624],{"class":556},[550,1391,1392],{"class":560},"CameraControls\n",[550,1394,1395,1398,1400,1402,1405],{"class":552,"line":680},[550,1396,1397],{"class":564},"    :mouse-buttons",[550,1399,633],{"class":556},[550,1401,636],{"class":556},[550,1403,1404],{"class":594},"{ left: BaseCameraControls.ACTION.DOLLY }",[550,1406,598],{"class":556},[550,1408,1409,1412,1414,1416,1419],{"class":552,"line":701},[550,1410,1411],{"class":564},"    :touches",[550,1413,633],{"class":556},[550,1415,636],{"class":556},[550,1417,1418],{"class":594},"{ one: BaseCameraControls.ACTION.TOUCH_TRUCK }",[550,1420,598],{"class":556},[550,1422,1423],{"class":552,"line":724},[550,1424,1425],{"class":556},"  />\n",[550,1427,1428],{"class":552,"line":734},[550,1429,1385],{"class":581},[550,1431,1432,1434,1436],{"class":552,"line":744},[550,1433,604],{"class":556},[550,1435,616],{"class":560},[550,1437,568],{"class":556},[1439,1440,1442],"h3",{"id":1441},"mouse-buttons","Mouse buttons",[806,1444,1445,1457],{},[809,1446,1447],{},[812,1448,1449,1452,1455],{},[815,1450,1451],{},"Button to assign",[815,1453,1454],{},"Options",[815,1456,824],{},[826,1458,1459,1491,1516,1546],{},[812,1460,1461,1466,1487],{},[831,1462,1463],{},[547,1464,1465],{},"mouseButtons.left",[831,1467,1468,1471,1472,1471,1475,1471,1478,1471,1481,1471,1484],{},[547,1469,1470],{},"ROTATE"," | ",[547,1473,1474],{},"TRUCK",[547,1476,1477],{},"OFFSET",[547,1479,1480],{},"DOLLY",[547,1482,1483],{},"ZOOM",[547,1485,1486],{},"NONE",[831,1488,1489],{},[547,1490,1470],{},[812,1492,1493,1498,1512],{},[831,1494,1495],{},[547,1496,1497],{},"mouseButtons.right",[831,1499,1500,1471,1502,1471,1504,1471,1506,1471,1508,1471,1510],{},[547,1501,1470],{},[547,1503,1474],{},[547,1505,1477],{},[547,1507,1480],{},[547,1509,1483],{},[547,1511,1486],{},[831,1513,1514],{},[547,1515,1474],{},[812,1517,1518,1524,1538],{},[831,1519,1520,1523],{},[547,1521,1522],{},"mouseButtons.wheel"," ¹",[831,1525,1526,1471,1528,1471,1530,1471,1532,1471,1534,1471,1536],{},[547,1527,1470],{},[547,1529,1474],{},[547,1531,1477],{},[547,1533,1480],{},[547,1535,1483],{},[547,1537,1486],{},[831,1539,1540,1542,1543,1545],{},[547,1541,1480],{}," for Perspective camera, ",[547,1544,1483],{}," for Orthographic camera.",[812,1547,1548,1554,1568],{},[831,1549,1550,1553],{},[547,1551,1552],{},"mouseButtons.middle"," ²",[831,1555,1556,1471,1558,1471,1560,1471,1562,1471,1564,1471,1566],{},[547,1557,1470],{},[547,1559,1474],{},[547,1561,1477],{},[547,1563,1480],{},[547,1565,1483],{},[547,1567,1486],{},[831,1569,1570],{},[547,1571,1480],{},[1573,1574,1575,1579],"ol",{},[1576,1577,1578],"li",{},"Mouse wheel event for scroll \"up/down\", on mac \"up/down/left/right\".",[1576,1580,1581],{},"Mouse wheel \"button\" click event.",[1439,1583,1584],{"id":1264},"Touches",[806,1586,1587,1598],{},[809,1588,1589],{},[812,1590,1591,1594,1596],{},[815,1592,1593],{},"Fingers to assign",[815,1595,1454],{},[815,1597,824],{},[826,1599,1600,1628,1676],{},[812,1601,1602,1607,1624],{},[831,1603,1604],{},[547,1605,1606],{},"touches.one",[831,1608,1609,1471,1612,1471,1615,1471,1618,1471,1620,1471,1622],{},[547,1610,1611],{},"TOUCH_ROTATE",[547,1613,1614],{},"TOUCH_TRUCK",[547,1616,1617],{},"TOUCH_OFFSET",[547,1619,1480],{},[547,1621,1483],{},[547,1623,1486],{},[831,1625,1626],{},[547,1627,1611],{},[812,1629,1630,1635,1669],{},[831,1631,1632],{},[547,1633,1634],{},"touches.two",[831,1636,1637,1471,1640,1471,1643,1471,1646,1471,1649,1471,1652,1471,1655,1471,1658,1471,1661,1471,1663,1471,1665,1471,1667],{},[547,1638,1639],{},"TOUCH_DOLLY_TRUCK",[547,1641,1642],{},"TOUCH_DOLLY_OFFSET",[547,1644,1645],{},"TOUCH_DOLLY_ROTATE",[547,1647,1648],{},"TOUCH_ZOOM_TRUCK",[547,1650,1651],{},"TOUCH_ZOOM_OFFSET",[547,1653,1654],{},"TOUCH_ZOOM_ROTATE",[547,1656,1657],{},"TOUCH_DOLLY",[547,1659,1660],{},"TOUCH_ZOOM",[547,1662,1611],{},[547,1664,1614],{},[547,1666,1617],{},[547,1668,1486],{},[831,1670,1671,1542,1673,1675],{},[547,1672,1639],{},[547,1674,1648],{}," for Othographic camera.",[812,1677,1678,1683,1705],{},[831,1679,1680],{},[547,1681,1682],{},"touches.three",[831,1684,1685,1471,1687,1471,1689,1471,1691,1471,1693,1471,1695,1471,1697,1471,1699,1471,1701,1471,1703],{},[547,1686,1639],{},[547,1688,1642],{},[547,1690,1645],{},[547,1692,1648],{},[547,1694,1651],{},[547,1696,1654],{},[547,1698,1611],{},[547,1700,1614],{},[547,1702,1617],{},[547,1704,1486],{},[831,1706,1707],{},[547,1708,1614],{},[534,1710,1712],{"id":1711},"events","Events",[538,1714,1716],{"className":540,"code":1715,"language":544,"meta":545,"style":545},"\u003CCameraControls @change=\"onChange\" @start=\"onStart\" @end=\"onEnd\" />\n",[547,1717,1718],{"__ignoreMap":545},[550,1719,1720,1722,1724,1727,1730,1732,1734,1737,1739,1741,1744,1746,1748,1751,1753,1755,1758,1760,1762,1765,1767],{"class":552,"line":553},[550,1721,557],{"class":556},[550,1723,518],{"class":560},[550,1725,1726],{"class":556}," @",[550,1728,1729],{"class":564},"change",[550,1731,633],{"class":556},[550,1733,636],{"class":556},[550,1735,1736],{"class":581},"onChange",[550,1738,636],{"class":556},[550,1740,1726],{"class":556},[550,1742,1743],{"class":564},"start",[550,1745,633],{"class":556},[550,1747,636],{"class":556},[550,1749,1750],{"class":581},"onStart",[550,1752,636],{"class":556},[550,1754,1726],{"class":556},[550,1756,1757],{"class":564},"end",[550,1759,633],{"class":556},[550,1761,636],{"class":556},[550,1763,1764],{"class":581},"onEnd",[550,1766,636],{"class":556},[550,1768,667],{"class":556},[806,1770,1771,1780],{},[809,1772,1773],{},[812,1774,1775,1778],{},[815,1776,1777],{"align":817},"Event",[815,1779,821],{"align":817},[826,1781,1782,1791,1800],{},[812,1783,1784,1788],{},[831,1785,1786],{"align":817},[834,1787,1743],{},[831,1789,1790],{"align":817},"Dispatched when the control starts to change.",[812,1792,1793,1797],{},[831,1794,1795],{"align":817},[834,1796,1729],{},[831,1798,1799],{"align":817},"Dispatched when the control changes.",[812,1801,1802,1806],{},[831,1803,1804],{"align":817},[834,1805,1757],{},[831,1807,1808],{"align":817},"Dispatched when the control ends to change.",[1810,1811,1812],"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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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":545,"searchDepth":553,"depth":571,"links":1814},[1815,1816,1817,1821],{"id":536,"depth":571,"text":15},{"id":800,"depth":571,"text":801},{"id":1276,"depth":571,"text":1256,"children":1818},[1819,1820],{"id":1441,"depth":601,"text":1442},{"id":1264,"depth":601,"text":1584},{"id":1711,"depth":571,"text":1712},"Is similar to OrbitControls yet supports smooth transitions and more features.","md",null,{},{"title":103,"description":1822},"2hfwAcOw9kCB60pKAgItRmaKk8A71rNBCTtreEGn7EI",[1829,1831],{"title":97,"path":98,"stem":99,"description":1830,"children":-1},"All currently supported controls",{"title":107,"path":108,"stem":109,"description":1832,"children":-1},"WASD on QWERTY keyboards or equivalent keys on non-QWERTY keyboards",1789116508862]