[{"data":1,"prerenderedAt":1813},["ShallowReactive",2],{"navigation":3,"/api/controls/camera-controls":478,"/api/controls/camera-controls-surround":1808},[4,22],{"title":5,"path":6,"stem":7,"children":8},"Getting Started","/getting-started","1.getting-started/1.index",[9,10,14,18],{"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},"Upgrade Guide","/getting-started/upgrade-guide","1.getting-started/4.upgrade-guide",{"title":23,"path":24,"stem":25,"children":26},"Api","/api","2.api",[27,30,84,114,156,194,288,314,348,398,444],{"title":28,"path":24,"stem":29},"All","2.api/index",{"title":31,"path":32,"stem":33,"children":34},"Abstractions","/api/abstractions","2.api/1.abstractions/index",[35,36,40,44,48,52,56,60,64,68,72,76,80],{"title":31,"path":32,"stem":33},{"title":37,"path":38,"stem":39},"Align","/api/abstractions/align","2.api/1.abstractions/align",{"title":41,"path":42,"stem":43},"Billboard","/api/abstractions/billboard","2.api/1.abstractions/billboard",{"title":45,"path":46,"stem":47},"Camera Shake","/api/abstractions/camera-shake","2.api/1.abstractions/camera-shake",{"title":49,"path":50,"stem":51},"Decal","/api/abstractions/decal","2.api/1.abstractions/decal",{"title":53,"path":54,"stem":55},"Edges","/api/abstractions/edges","2.api/1.abstractions/edges",{"title":57,"path":58,"stem":59},"Fit","/api/abstractions/fit","2.api/1.abstractions/fit",{"title":61,"path":62,"stem":63},"Levioso (Float)","/api/abstractions/levioso","2.api/1.abstractions/levioso",{"title":65,"path":66,"stem":67},"Mask","/api/abstractions/mask","2.api/1.abstractions/mask",{"title":69,"path":70,"stem":71},"Outline","/api/abstractions/outline","2.api/1.abstractions/outline",{"title":73,"path":74,"stem":75},"Sampler","/api/abstractions/sampler","2.api/1.abstractions/sampler",{"title":77,"path":78,"stem":79},"ScreenSizer","/api/abstractions/screen-sizer","2.api/1.abstractions/screen-sizer",{"title":81,"path":82,"stem":83},"ScreenSpace","/api/abstractions/screen-space","2.api/1.abstractions/screen-space",{"title":85,"path":86,"stem":87,"children":88},"Controls","/api/controls","2.api/2.controls/index",[89,90,94,98,102,106,110],{"title":85,"path":86,"stem":87},{"title":91,"path":92,"stem":93},"Camera Controls","/api/controls/camera-controls","2.api/2.controls/camera-controls",{"title":95,"path":96,"stem":97},"Keyboard Controls","/api/controls/keyboard-controls","2.api/2.controls/keyboard-controls",{"title":99,"path":100,"stem":101},"Map Controls","/api/controls/map-controls","2.api/2.controls/map-controls",{"title":103,"path":104,"stem":105},"Orbit Controls","/api/controls/orbit-controls","2.api/2.controls/orbit-controls",{"title":107,"path":108,"stem":109},"PointerLock Controls","/api/controls/pointer-lock-controls","2.api/2.controls/pointer-lock-controls",{"title":111,"path":112,"stem":113},"Transform Controls","/api/controls/transform-controls","2.api/2.controls/transform-controls",{"title":115,"path":116,"stem":117,"children":118},"Loaders","/api/loaders","2.api/3.loaders/index",[119,120,124,128,132,136,140,144,148,152],{"title":115,"path":116,"stem":117},{"title":121,"path":122,"stem":123},"useGLTF","/api/loaders/use-gltf","2.api/3.loaders/1.use-gltf",{"title":125,"path":126,"stem":127},"GLTFModel","/api/loaders/gltf-model","2.api/3.loaders/2.gltf-model",{"title":129,"path":130,"stem":131},"useFBX","/api/loaders/use-fbx","2.api/3.loaders/3.use-fbx",{"title":133,"path":134,"stem":135},"FBXModel","/api/loaders/fbx-model","2.api/3.loaders/4.fbx-model",{"title":137,"path":138,"stem":139},"useTexture","/api/loaders/use-texture","2.api/3.loaders/5.use-texture",{"title":141,"path":142,"stem":143},"useTextures","/api/loaders/use-textures","2.api/3.loaders/6.use-textures",{"title":145,"path":146,"stem":147},"useSVG","/api/loaders/use-svg","2.api/3.loaders/7.use-svg",{"title":149,"path":150,"stem":151},"useProgress","/api/loaders/use-progress","2.api/3.loaders/use-progress",{"title":153,"path":154,"stem":155},"useVideoTexture","/api/loaders/use-video-texture","2.api/3.loaders/use-video-texture",{"title":157,"path":158,"stem":159,"children":160},"Materials","/api/materials","2.api/4.materials/index",[161,162,166,170,174,178,182,186,190],{"title":157,"path":158,"stem":159},{"title":163,"path":164,"stem":165},"Custom Shader Material","/api/materials/custom-shader-material","2.api/4.materials/custom-shader-material",{"title":167,"path":168,"stem":169},"Mesh Glass Material","/api/materials/glass-material","2.api/4.materials/glass-material",{"title":171,"path":172,"stem":173},"Holographic Material","/api/materials/holographic-material","2.api/4.materials/holographic-material",{"title":175,"path":176,"stem":177},"Mesh Discard Material","/api/materials/mesh-discard-material","2.api/4.materials/mesh-discard-material",{"title":179,"path":180,"stem":181},"Mesh Reflection Material","/api/materials/mesh-reflection-material","2.api/4.materials/mesh-reflection-material",{"title":183,"path":184,"stem":185},"Mesh Transmission Material","/api/materials/mesh-transmission-material","2.api/4.materials/mesh-transmission-material",{"title":187,"path":188,"stem":189},"Point Material","/api/materials/point-material","2.api/4.materials/point-material",{"title":191,"path":192,"stem":193},"Wobble Material","/api/materials/wobble-material","2.api/4.materials/wobble-material",{"title":195,"path":196,"stem":197,"children":198},"Shapes","/api/shapes","2.api/5.shapes/index",[199,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284],{"title":195,"path":196,"stem":197},{"title":201,"path":202,"stem":203},"Box","/api/shapes/box","2.api/5.shapes/box",{"title":205,"path":206,"stem":207},"CatmullRomCurve3","/api/shapes/catmullromcurve3","2.api/5.shapes/catmullromcurve3",{"title":209,"path":210,"stem":211},"Circle","/api/shapes/circle","2.api/5.shapes/circle",{"title":213,"path":214,"stem":215},"Cone","/api/shapes/cone","2.api/5.shapes/cone",{"title":217,"path":218,"stem":219},"Cubic Bezier Line","/api/shapes/cubic-bezier-line","2.api/5.shapes/cubic-bezier-line",{"title":221,"path":222,"stem":223},"Cylinder","/api/shapes/cylinder","2.api/5.shapes/cylinder",{"title":225,"path":226,"stem":227},"Dodecahedron","/api/shapes/dodecahedron","2.api/5.shapes/dodecahedron",{"title":229,"path":230,"stem":231},"Grid","/api/shapes/grid","2.api/5.shapes/grid",{"title":233,"path":234,"stem":235},"Icosahedron","/api/shapes/icosahedron","2.api/5.shapes/icosahedron",{"title":237,"path":238,"stem":239},"Line2","/api/shapes/line2","2.api/5.shapes/line2",{"title":241,"path":242,"stem":243},"Octahedron","/api/shapes/octahedron","2.api/5.shapes/octahedron",{"title":245,"path":246,"stem":247},"Plane","/api/shapes/plane","2.api/5.shapes/plane",{"title":249,"path":250,"stem":251},"Quadratic Bezier Line","/api/shapes/quadratic-bezier-line","2.api/5.shapes/quadratic-bezier-line",{"title":253,"path":254,"stem":255},"Ring","/api/shapes/ring","2.api/5.shapes/ring",{"title":257,"path":258,"stem":259},"Rounded Box","/api/shapes/rounded-box","2.api/5.shapes/rounded-box",{"title":261,"path":262,"stem":263},"Screen Quad","/api/shapes/screen-quad","2.api/5.shapes/screen-quad",{"title":265,"path":266,"stem":267},"Sphere","/api/shapes/sphere","2.api/5.shapes/sphere",{"title":269,"path":270,"stem":271},"Superformula","/api/shapes/superformula","2.api/5.shapes/superformula",{"title":273,"path":274,"stem":275},"Tetrahedron","/api/shapes/tetrahedron","2.api/5.shapes/tetrahedron",{"title":277,"path":278,"stem":279},"Torus","/api/shapes/torus","2.api/5.shapes/torus",{"title":281,"path":282,"stem":283},"Torus Knot","/api/shapes/torus-knot","2.api/5.shapes/torus-knot",{"title":285,"path":286,"stem":287},"Tube","/api/shapes/tube","2.api/5.shapes/tube",{"title":289,"path":290,"stem":291,"children":292},"Debug/Performance","/api/debug-performance","2.api/6.debug-performance/index",[293,294,298,302,306,310],{"title":289,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Helper","/api/debug-performance/helper","2.api/6.debug-performance/helper",{"title":299,"path":300,"stem":301},"LOD","/api/debug-performance/lod","2.api/6.debug-performance/lod",{"title":303,"path":304,"stem":305},"Stats","/api/debug-performance/stats","2.api/6.debug-performance/stats",{"title":307,"path":308,"stem":309},"StatsGl","/api/debug-performance/stats-gl","2.api/6.debug-performance/stats-gl",{"title":311,"path":312,"stem":313},"useBVH","/api/debug-performance/use-bvh","2.api/6.debug-performance/use-bvh",{"title":315,"path":316,"stem":317,"children":318},"Light/Shadow","/api/light-shadow","2.api/7.light-shadow/index",[319,320,324,328,332,336,340,344],{"title":315,"path":316,"stem":317},{"title":321,"path":322,"stem":323},"Accumulative Shadows","/api/light-shadow/accumulative-shadows","2.api/7.light-shadow/accumulative-shadows",{"title":325,"path":326,"stem":327},"Bake Shadows","/api/light-shadow/bake-shadows","2.api/7.light-shadow/bake-shadows",{"title":329,"path":330,"stem":331},"Circle Shadow","/api/light-shadow/circle-shadow","2.api/7.light-shadow/circle-shadow",{"title":333,"path":334,"stem":335},"Contact Shadows","/api/light-shadow/contact-shadows","2.api/7.light-shadow/contact-shadows",{"title":337,"path":338,"stem":339},"Lensflare","/api/light-shadow/lensflare","2.api/7.light-shadow/lensflare",{"title":341,"path":342,"stem":343},"Randomized Lights","/api/light-shadow/randomized-lights","2.api/7.light-shadow/randomized-lights",{"title":345,"path":346,"stem":347},"Soft Shadows","/api/light-shadow/soft-shadows","2.api/7.light-shadow/soft-shadows",{"title":349,"path":350,"stem":351,"children":352},"Staging","/api/staging","2.api/8.staging/index",[353,354,358,362,366,370,374,378,382,386,390,394],{"title":349,"path":350,"stem":351},{"title":355,"path":356,"stem":357},"Environment","/api/staging/environment","2.api/8.staging/1.environment",{"title":359,"path":360,"stem":361},"useEnvironment","/api/staging/use-environment","2.api/8.staging/2.use-environment",{"title":363,"path":364,"stem":365},"Lightformer","/api/staging/lightformer","2.api/8.staging/3.lightformer",{"title":367,"path":368,"stem":369},"Backdrop","/api/staging/backdrop","2.api/8.staging/backdrop",{"title":371,"path":372,"stem":373},"Ocean","/api/staging/ocean","2.api/8.staging/ocean",{"title":375,"path":376,"stem":377},"Precipitation","/api/staging/precipitation","2.api/8.staging/precipitation",{"title":379,"path":380,"stem":381},"Sky","/api/staging/sky","2.api/8.staging/sky",{"title":383,"path":384,"stem":385},"Smoke","/api/staging/smoke","2.api/8.staging/smoke",{"title":387,"path":388,"stem":389},"Sparkles","/api/staging/sparkles","2.api/8.staging/sparkles",{"title":391,"path":392,"stem":393},"Stage","/api/staging/stage","2.api/8.staging/stage",{"title":395,"path":396,"stem":397},"Stars","/api/staging/stars","2.api/8.staging/stars",{"title":399,"path":400,"stem":401,"children":402},"Objects","/api/objects","2.api/9.objects/index",[403,404,408,412,416,420,424,428,432,436,440],{"title":399,"path":400,"stem":401},{"title":405,"path":406,"stem":407},"AnimatedSprite","/api/objects/animated-sprite","2.api/9.objects/animated-sprite",{"title":409,"path":410,"stem":411},"CubeCamera","/api/objects/cube-camera","2.api/9.objects/cube-camera",{"title":413,"path":414,"stem":415},"Fbo","/api/objects/fbo","2.api/9.objects/fbo",{"title":417,"path":418,"stem":419},"GradientTexture","/api/objects/gradient-texture","2.api/9.objects/gradient-texture",{"title":421,"path":422,"stem":423},"HTML","/api/objects/html","2.api/9.objects/html",{"title":425,"path":426,"stem":427},"Image","/api/objects/image","2.api/9.objects/image",{"title":429,"path":430,"stem":431},"MarchingCubes","/api/objects/marching-cubes","2.api/9.objects/marching-cubes",{"title":433,"path":434,"stem":435},"Reflector","/api/objects/reflector","2.api/9.objects/reflector",{"title":437,"path":438,"stem":439},"Text","/api/objects/text","2.api/9.objects/text",{"title":441,"path":442,"stem":443},"Text3D","/api/objects/text-3d","2.api/9.objects/text-3d",{"title":445,"path":446,"stem":447,"children":448},"Miscellaneous","/api/miscellaneous","2.api/miscellaneous/index",[449,450,454,458,462,466,470,474],{"title":445,"path":446,"stem":447},{"title":451,"path":452,"stem":453},"Bounds","/api/miscellaneous/bounds","2.api/miscellaneous/bounds",{"title":455,"path":456,"stem":457},"GlobalAudio","/api/miscellaneous/global-audio","2.api/miscellaneous/global-audio",{"title":459,"path":460,"stem":461},"MouseParallax","/api/miscellaneous/mouse-parallax","2.api/miscellaneous/mouse-parallax",{"title":463,"path":464,"stem":465},"PositionalAudio","/api/miscellaneous/positional-audio","2.api/miscellaneous/positional-audio",{"title":467,"path":468,"stem":469},"useAnimations","/api/miscellaneous/use-animations","2.api/miscellaneous/use-animations",{"title":471,"path":472,"stem":473},"useGLTFExporter","/api/miscellaneous/use-gltf-exporter","2.api/miscellaneous/use-gltf-exporter",{"title":475,"path":476,"stem":477},"useIntersect","/api/miscellaneous/use-intersect","2.api/miscellaneous/use-intersect",{"id":479,"title":91,"body":480,"description":1802,"extension":1803,"links":1804,"meta":1805,"navigation":1351,"path":92,"seo":1806,"stem":93,"__hash__":1807},"docs/2.api/2.controls/camera-controls.md",{"type":481,"value":482,"toc":1793},"minimark",[483,489,504,513,517,772,778,782,785,1254,1257,1286,1418,1423,1552,1562,1565,1689,1693,1749,1789],[484,485,486],"scene-controls-wrapper",{},[487,488],"controls-camera-controls",{},[490,491,492,499,500,503],"p",{},[493,494,498],"a",{"href":495,"rel":496},"https://github.com/yomotsu/camera-controls",[497],"nofollow","CameraControls"," is a camera controller similar to ",[493,501,502],{"href":104},"OrbitControls"," yet supports smooth transitions and more features.",[490,505,506,507,512],{},"However, it is thirty party library for ThreeJS. So to use it you would need to install and import using ",[493,508,511],{"href":509,"rel":510},"https://www.npmjs.com/package/camera-controls",[497],"npm",".",[514,515,15],"h2",{"id":516},"usage",[518,519,526],"pre",{"className":520,"code":521,"highlights":522,"language":524,"meta":525,"style":525},"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",[523],7,"vue","",[527,528,529,549,579,589,599,624,648,658,679,702,712,722,743,753,763],"code",{"__ignoreMap":525},[530,531,534,538,542,546],"span",{"class":532,"line":533},"line",1,[530,535,537],{"class":536},"sMK4o","\u003C",[530,539,541],{"class":540},"swJcz","script",[530,543,545],{"class":544},"spNyl"," setup",[530,547,548],{"class":536},">\n",[530,550,552,556,559,563,566,569,572,576],{"class":532,"line":551},2,[530,553,555],{"class":554},"s7zQu","import",[530,557,558],{"class":536}," {",[530,560,562],{"class":561},"sTEyZ"," CameraControls",[530,564,565],{"class":536}," }",[530,567,568],{"class":554}," from",[530,570,571],{"class":536}," \"",[530,573,575],{"class":574},"sfazB","@tresjs/cientos",[530,577,578],{"class":536},"\"\n",[530,580,582,585,587],{"class":532,"line":581},3,[530,583,584],{"class":536},"\u003C/",[530,586,541],{"class":540},[530,588,548],{"class":536},[530,590,592,594,597],{"class":532,"line":591},4,[530,593,537],{"class":536},[530,595,596],{"class":540},"template",[530,598,548],{"class":536},[530,600,602,605,608,611,614,617,620,622],{"class":532,"line":601},5,[530,603,604],{"class":536},"  \u003C",[530,606,607],{"class":540},"TresCanvas",[530,609,610],{"class":544}," clear-color",[530,612,613],{"class":536},"=",[530,615,616],{"class":536},"\"",[530,618,619],{"class":574},"#82DBC5",[530,621,616],{"class":536},[530,623,548],{"class":536},[530,625,627,630,633,636,638,640,643,645],{"class":532,"line":626},6,[530,628,629],{"class":536},"    \u003C",[530,631,632],{"class":540},"TresPerspectiveCamera",[530,634,635],{"class":544}," :position",[530,637,613],{"class":536},[530,639,616],{"class":536},[530,641,642],{"class":574},"[3, 3, 3]",[530,644,616],{"class":536},[530,646,647],{"class":536}," />\n",[530,649,652,654,656],{"class":650,"line":523},[532,651],"highlight",[530,653,629],{"class":536},[530,655,498],{"class":540},[530,657,647],{"class":536},[530,659,661,663,665,668,670,672,675,677],{"class":532,"line":660},8,[530,662,629],{"class":536},[530,664,201],{"class":540},[530,666,667],{"class":544}," :scale",[530,669,613],{"class":536},[530,671,616],{"class":536},[530,673,674],{"class":574},"2",[530,676,616],{"class":536},[530,678,548],{"class":536},[530,680,682,685,688,691,693,695,698,700],{"class":532,"line":681},9,[530,683,684],{"class":536},"      \u003C",[530,686,687],{"class":540},"TresMeshToonMaterial",[530,689,690],{"class":544}," color",[530,692,613],{"class":536},[530,694,616],{"class":536},[530,696,697],{"class":574},"orange",[530,699,616],{"class":536},[530,701,647],{"class":536},[530,703,705,708,710],{"class":532,"line":704},10,[530,706,707],{"class":536},"    \u003C/",[530,709,201],{"class":540},[530,711,548],{"class":536},[530,713,715,717,720],{"class":532,"line":714},11,[530,716,629],{"class":536},[530,718,719],{"class":540},"TresAmbientLight",[530,721,647],{"class":536},[530,723,725,727,730,732,734,736,739,741],{"class":532,"line":724},12,[530,726,629],{"class":536},[530,728,729],{"class":540},"TresDirectionalLight",[530,731,635],{"class":544},[530,733,613],{"class":536},[530,735,616],{"class":536},[530,737,738],{"class":574},"[0, 2, 4]",[530,740,616],{"class":536},[530,742,647],{"class":536},[530,744,746,748,751],{"class":532,"line":745},13,[530,747,629],{"class":536},[530,749,750],{"class":540},"TresGridHelper",[530,752,647],{"class":536},[530,754,756,759,761],{"class":532,"line":755},14,[530,757,758],{"class":536},"  \u003C/",[530,760,607],{"class":540},[530,762,548],{"class":536},[530,764,766,768,770],{"class":532,"line":765},15,[530,767,584],{"class":536},[530,769,596],{"class":540},[530,771,548],{"class":536},[773,774,775],"prose-warning",{},[490,776,777],{},"Is really important that the Perspective camera is set first in the canvas. Otherwise might break.",[514,779,781],{"id":780},"props","Props",[490,783,784],{},"Certainly! Here's the properties of the object in raw markdown table format:",[786,787,788,805],"table",{},[789,790,791],"thead",{},[792,793,794,799,802],"tr",{},[795,796,798],"th",{"align":797},"left","Prop",[795,800,801],{"align":797},"Description",[795,803,804],{},"Default",[806,807,808,825,840,854,869,884,899,914,929,944,958,975,990,1004,1019,1034,1048,1063,1077,1091,1107,1122,1138,1152,1170,1185,1203,1218,1238],"tbody",{},[792,809,810,817,820],{},[811,812,813],"td",{"align":797},[814,815,816],"strong",{},"makeDefault",[811,818,819],{"align":797},"Whether to make this the default controls.",[811,821,822],{},[527,823,824],{},"false",[792,826,827,832,835],{},[811,828,829],{"align":797},[814,830,831],{},"camera",[811,833,834],{"align":797},"The camera to control.",[811,836,837],{},[527,838,839],{},"undefined",[792,841,842,847,850],{},[811,843,844],{"align":797},[814,845,846],{},"domElement",[811,848,849],{"align":797},"The DOM element to listen to.",[811,851,852],{},[527,853,839],{},[792,855,856,861,864],{},[811,857,858],{"align":797},[814,859,860],{},"minPolarAngle",[811,862,863],{"align":797},"Minimum vertical angle in radians.",[811,865,866],{},[527,867,868],{},"0",[792,870,871,876,879],{},[811,872,873],{"align":797},[814,874,875],{},"maxPolarAngle",[811,877,878],{"align":797},"Maximum vertical angle in radians.",[811,880,881],{},[527,882,883],{},"Math.PI",[792,885,886,891,894],{},[811,887,888],{"align":797},[814,889,890],{},"minAzimuthAngle",[811,892,893],{"align":797},"Minimum horizontal angle in radians.",[811,895,896],{},[527,897,898],{},"-Infinity",[792,900,901,906,909],{},[811,902,903],{"align":797},[814,904,905],{},"maxAzimuthAngle",[811,907,908],{"align":797},"Maximum horizontal angle in radians.",[811,910,911],{},[527,912,913],{},"Infinity",[792,915,916,921,924],{},[811,917,918],{"align":797},[814,919,920],{},"distance",[811,922,923],{"align":797},"Current distance.",[811,925,926],{},[527,927,928],{},"camera.position.z",[792,930,931,936,939],{},[811,932,933],{"align":797},[814,934,935],{},"minDistance",[811,937,938],{"align":797},"Minimum distance for dolly. PerspectiveCamera only.",[811,940,941],{},[527,942,943],{},"Number.EPSILON",[792,945,946,951,954],{},[811,947,948],{"align":797},[814,949,950],{},"maxDistance",[811,952,953],{"align":797},"Maximum distance for dolly. PerspectiveCamera only.",[811,955,956],{},[527,957,913],{},[792,959,960,965,971],{},[811,961,962],{"align":797},[814,963,964],{},"infinityDolly",[811,966,967,970],{"align":797},[527,968,969],{},"true"," to enable Infinity Dolly for wheel and pinch.",[811,972,973],{},[527,974,824],{},[792,976,977,982,985],{},[811,978,979],{"align":797},[814,980,981],{},"minZoom",[811,983,984],{"align":797},"Minimum camera zoom.",[811,986,987],{},[527,988,989],{},"0.01",[792,991,992,997,1000],{},[811,993,994],{"align":797},[814,995,996],{},"maxZoom",[811,998,999],{"align":797},"Maximum camera zoom.",[811,1001,1002],{},[527,1003,913],{},[792,1005,1006,1011,1014],{},[811,1007,1008],{"align":797},[814,1009,1010],{},"smoothTime",[811,1012,1013],{"align":797},"Approximate time in seconds to reach the target. A smaller value will reach the target faster.",[811,1015,1016],{},[527,1017,1018],{},"0.25",[792,1020,1021,1026,1029],{},[811,1022,1023],{"align":797},[814,1024,1025],{},"draggingSmoothTime",[811,1027,1028],{"align":797},"The smoothTime while dragging.",[811,1030,1031],{},[527,1032,1033],{},"0.125",[792,1035,1036,1041,1044],{},[811,1037,1038],{"align":797},[814,1039,1040],{},"maxSpeed",[811,1042,1043],{"align":797},"Max transition speed in units per second.",[811,1045,1046],{},[527,1047,913],{},[792,1049,1050,1055,1058],{},[811,1051,1052],{"align":797},[814,1053,1054],{},"azimuthRotateSpeed",[811,1056,1057],{"align":797},"Speed of azimuth (horizontal) rotation.",[811,1059,1060],{},[527,1061,1062],{},"1.0",[792,1064,1065,1070,1073],{},[811,1066,1067],{"align":797},[814,1068,1069],{},"polarRotateSpeed",[811,1071,1072],{"align":797},"Speed of polar (vertical) rotation.",[811,1074,1075],{},[527,1076,1062],{},[792,1078,1079,1084,1087],{},[811,1080,1081],{"align":797},[814,1082,1083],{},"dollySpeed",[811,1085,1086],{"align":797},"Speed of mouse-wheel dollying.",[811,1088,1089],{},[527,1090,1062],{},[792,1092,1093,1098,1103],{},[811,1094,1095],{"align":797},[814,1096,1097],{},"dollyDragInverted",[811,1099,1100,1102],{"align":797},[527,1101,969],{}," to invert direction when dollying or zooming via drag.",[811,1104,1105],{},[527,1106,824],{},[792,1108,1109,1114,1117],{},[811,1110,1111],{"align":797},[814,1112,1113],{},"truckSpeed",[811,1115,1116],{"align":797},"Speed of drag for truck and pedestal.",[811,1118,1119],{},[527,1120,1121],{},"2.0",[792,1123,1124,1129,1134],{},[811,1125,1126],{"align":797},[814,1127,1128],{},"dollyToCursor",[811,1130,1131,1133],{"align":797},[527,1132,969],{}," to enable Dolly-in to the mouse cursor coords.",[811,1135,1136],{},[527,1137,824],{},[792,1139,1140,1145,1148],{},[811,1141,1142],{"align":797},[814,1143,1144],{},"dragToOffset",[811,1146,1147],{"align":797},"Whether to drag to offset.",[811,1149,1150],{},[527,1151,824],{},[792,1153,1154,1159,1166],{},[811,1155,1156],{"align":797},[814,1157,1158],{},"verticalDragToForward",[811,1160,1161,1162,1165],{"align":797},"The same as ",[527,1163,1164],{},".screenSpacePanning"," in Three.js's OrbitControls.",[811,1167,1168],{},[527,1169,824],{},[792,1171,1172,1177,1180],{},[811,1173,1174],{"align":797},[814,1175,1176],{},"boundaryFriction",[811,1178,1179],{"align":797},"Friction ratio of the boundary.",[811,1181,1182],{},[527,1183,1184],{},"0.0",[792,1186,1187,1192,1199],{},[811,1188,1189],{"align":797},[814,1190,1191],{},"restThreshold",[811,1193,1194,1195,1198],{"align":797},"Controls how soon the ",[527,1196,1197],{},"rest"," event fires as the camera slows.",[811,1200,1201],{},[527,1202,989],{},[792,1204,1205,1210,1213],{},[811,1206,1207],{"align":797},[814,1208,1209],{},"colliderMeshes",[811,1211,1212],{"align":797},"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.",[811,1214,1215],{},[527,1216,1217],{},"[]",[792,1219,1220,1225,1228],{},[811,1221,1222],{"align":797},[814,1223,1224],{},"mouseButtons",[811,1226,1227],{"align":797},"Configuration of actions on mouse input.",[811,1229,1230,1231,1237],{},"See ",[493,1232,1234],{"href":1233},"#user-input-config",[527,1235,1236],{},"User input config"," for details",[792,1239,1240,1245,1248],{},[811,1241,1242],{"align":797},[814,1243,1244],{},"touches",[811,1246,1247],{"align":797},"Configuration of actions on touch.",[811,1249,1230,1250,1237],{},[493,1251,1252],{"href":1233},[527,1253,1236],{},[514,1255,1236],{"id":1256},"user-input-config",[490,1258,1259,1260,1262,1263,1265,1266,1274,1275,1277,1278,1281,1282,1285],{},"You can easily override the default user input config by defining ",[527,1261,1224],{}," and/or ",[527,1264,1244],{}," props that correspond to ",[493,1267,1270,1273],{"href":1268,"rel":1269},"https://github.com/yomotsu/camera-controls?#user-input-config",[497],[527,1271,1272],{},"camera-controls"," settings",". For ease of use, we're re-exporting the ",[527,1276,498],{}," class as ",[527,1279,1280],{},"BaseCameraControls"," which gives you access to the ",[527,1283,1284],{},"ACTION"," enum.",[518,1287,1289],{"className":520,"code":1288,"language":524,"meta":525,"style":525},"\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",[527,1290,1291,1313,1339,1347,1353,1361,1366,1373,1387,1401,1406,1410],{"__ignoreMap":525},[530,1292,1293,1295,1297,1300,1302,1304,1307,1309,1311],{"class":532,"line":533},[530,1294,537],{"class":536},[530,1296,541],{"class":540},[530,1298,1299],{"class":544}," lang",[530,1301,613],{"class":536},[530,1303,616],{"class":536},[530,1305,1306],{"class":574},"ts",[530,1308,616],{"class":536},[530,1310,545],{"class":544},[530,1312,548],{"class":536},[530,1314,1315,1317,1319,1322,1325,1327,1329,1331,1334,1336],{"class":532,"line":551},[530,1316,555],{"class":554},[530,1318,558],{"class":536},[530,1320,1321],{"class":561}," BaseCameraControls",[530,1323,1324],{"class":536},",",[530,1326,562],{"class":561},[530,1328,565],{"class":536},[530,1330,568],{"class":554},[530,1332,1333],{"class":536}," '",[530,1335,575],{"class":574},[530,1337,1338],{"class":536},"'\n",[530,1340,1341,1343,1345],{"class":532,"line":581},[530,1342,584],{"class":536},[530,1344,541],{"class":540},[530,1346,548],{"class":536},[530,1348,1349],{"class":532,"line":591},[530,1350,1352],{"emptyLinePlaceholder":1351},true,"\n",[530,1354,1355,1357,1359],{"class":532,"line":601},[530,1356,537],{"class":536},[530,1358,596],{"class":540},[530,1360,548],{"class":536},[530,1362,1363],{"class":532,"line":626},[530,1364,1365],{"class":561},"  ...\n",[530,1367,1368,1370],{"class":532,"line":523},[530,1369,604],{"class":536},[530,1371,1372],{"class":540},"CameraControls\n",[530,1374,1375,1378,1380,1382,1385],{"class":532,"line":660},[530,1376,1377],{"class":544},"    :mouse-buttons",[530,1379,613],{"class":536},[530,1381,616],{"class":536},[530,1383,1384],{"class":574},"{ left: BaseCameraControls.ACTION.DOLLY }",[530,1386,578],{"class":536},[530,1388,1389,1392,1394,1396,1399],{"class":532,"line":681},[530,1390,1391],{"class":544},"    :touches",[530,1393,613],{"class":536},[530,1395,616],{"class":536},[530,1397,1398],{"class":574},"{ one: BaseCameraControls.ACTION.TOUCH_TRUCK }",[530,1400,578],{"class":536},[530,1402,1403],{"class":532,"line":704},[530,1404,1405],{"class":536},"  />\n",[530,1407,1408],{"class":532,"line":714},[530,1409,1365],{"class":561},[530,1411,1412,1414,1416],{"class":532,"line":724},[530,1413,584],{"class":536},[530,1415,596],{"class":540},[530,1417,548],{"class":536},[1419,1420,1422],"h3",{"id":1421},"mouse-buttons","Mouse buttons",[786,1424,1425,1437],{},[789,1426,1427],{},[792,1428,1429,1432,1435],{},[795,1430,1431],{},"Button to assign",[795,1433,1434],{},"Options",[795,1436,804],{},[806,1438,1439,1471,1496,1526],{},[792,1440,1441,1446,1467],{},[811,1442,1443],{},[527,1444,1445],{},"mouseButtons.left",[811,1447,1448,1451,1452,1451,1455,1451,1458,1451,1461,1451,1464],{},[527,1449,1450],{},"ROTATE"," | ",[527,1453,1454],{},"TRUCK",[527,1456,1457],{},"OFFSET",[527,1459,1460],{},"DOLLY",[527,1462,1463],{},"ZOOM",[527,1465,1466],{},"NONE",[811,1468,1469],{},[527,1470,1450],{},[792,1472,1473,1478,1492],{},[811,1474,1475],{},[527,1476,1477],{},"mouseButtons.right",[811,1479,1480,1451,1482,1451,1484,1451,1486,1451,1488,1451,1490],{},[527,1481,1450],{},[527,1483,1454],{},[527,1485,1457],{},[527,1487,1460],{},[527,1489,1463],{},[527,1491,1466],{},[811,1493,1494],{},[527,1495,1454],{},[792,1497,1498,1504,1518],{},[811,1499,1500,1503],{},[527,1501,1502],{},"mouseButtons.wheel"," ¹",[811,1505,1506,1451,1508,1451,1510,1451,1512,1451,1514,1451,1516],{},[527,1507,1450],{},[527,1509,1454],{},[527,1511,1457],{},[527,1513,1460],{},[527,1515,1463],{},[527,1517,1466],{},[811,1519,1520,1522,1523,1525],{},[527,1521,1460],{}," for Perspective camera, ",[527,1524,1463],{}," for Orthographic camera.",[792,1527,1528,1534,1548],{},[811,1529,1530,1533],{},[527,1531,1532],{},"mouseButtons.middle"," ²",[811,1535,1536,1451,1538,1451,1540,1451,1542,1451,1544,1451,1546],{},[527,1537,1450],{},[527,1539,1454],{},[527,1541,1457],{},[527,1543,1460],{},[527,1545,1463],{},[527,1547,1466],{},[811,1549,1550],{},[527,1551,1460],{},[1553,1554,1555,1559],"ol",{},[1556,1557,1558],"li",{},"Mouse wheel event for scroll \"up/down\", on mac \"up/down/left/right\".",[1556,1560,1561],{},"Mouse wheel \"button\" click event.",[1419,1563,1564],{"id":1244},"Touches",[786,1566,1567,1578],{},[789,1568,1569],{},[792,1570,1571,1574,1576],{},[795,1572,1573],{},"Fingers to assign",[795,1575,1434],{},[795,1577,804],{},[806,1579,1580,1608,1656],{},[792,1581,1582,1587,1604],{},[811,1583,1584],{},[527,1585,1586],{},"touches.one",[811,1588,1589,1451,1592,1451,1595,1451,1598,1451,1600,1451,1602],{},[527,1590,1591],{},"TOUCH_ROTATE",[527,1593,1594],{},"TOUCH_TRUCK",[527,1596,1597],{},"TOUCH_OFFSET",[527,1599,1460],{},[527,1601,1463],{},[527,1603,1466],{},[811,1605,1606],{},[527,1607,1591],{},[792,1609,1610,1615,1649],{},[811,1611,1612],{},[527,1613,1614],{},"touches.two",[811,1616,1617,1451,1620,1451,1623,1451,1626,1451,1629,1451,1632,1451,1635,1451,1638,1451,1641,1451,1643,1451,1645,1451,1647],{},[527,1618,1619],{},"TOUCH_DOLLY_TRUCK",[527,1621,1622],{},"TOUCH_DOLLY_OFFSET",[527,1624,1625],{},"TOUCH_DOLLY_ROTATE",[527,1627,1628],{},"TOUCH_ZOOM_TRUCK",[527,1630,1631],{},"TOUCH_ZOOM_OFFSET",[527,1633,1634],{},"TOUCH_ZOOM_ROTATE",[527,1636,1637],{},"TOUCH_DOLLY",[527,1639,1640],{},"TOUCH_ZOOM",[527,1642,1591],{},[527,1644,1594],{},[527,1646,1597],{},[527,1648,1466],{},[811,1650,1651,1522,1653,1655],{},[527,1652,1619],{},[527,1654,1628],{}," for Othographic camera.",[792,1657,1658,1663,1685],{},[811,1659,1660],{},[527,1661,1662],{},"touches.three",[811,1664,1665,1451,1667,1451,1669,1451,1671,1451,1673,1451,1675,1451,1677,1451,1679,1451,1681,1451,1683],{},[527,1666,1619],{},[527,1668,1622],{},[527,1670,1625],{},[527,1672,1628],{},[527,1674,1631],{},[527,1676,1634],{},[527,1678,1591],{},[527,1680,1594],{},[527,1682,1597],{},[527,1684,1466],{},[811,1686,1687],{},[527,1688,1594],{},[514,1690,1692],{"id":1691},"events","Events",[518,1694,1696],{"className":520,"code":1695,"language":524,"meta":525,"style":525},"\u003CCameraControls @change=\"onChange\" @start=\"onStart\" @end=\"onEnd\" />\n",[527,1697,1698],{"__ignoreMap":525},[530,1699,1700,1702,1704,1707,1710,1712,1714,1717,1719,1721,1724,1726,1728,1731,1733,1735,1738,1740,1742,1745,1747],{"class":532,"line":533},[530,1701,537],{"class":536},[530,1703,498],{"class":540},[530,1705,1706],{"class":536}," @",[530,1708,1709],{"class":544},"change",[530,1711,613],{"class":536},[530,1713,616],{"class":536},[530,1715,1716],{"class":561},"onChange",[530,1718,616],{"class":536},[530,1720,1706],{"class":536},[530,1722,1723],{"class":544},"start",[530,1725,613],{"class":536},[530,1727,616],{"class":536},[530,1729,1730],{"class":561},"onStart",[530,1732,616],{"class":536},[530,1734,1706],{"class":536},[530,1736,1737],{"class":544},"end",[530,1739,613],{"class":536},[530,1741,616],{"class":536},[530,1743,1744],{"class":561},"onEnd",[530,1746,616],{"class":536},[530,1748,647],{"class":536},[786,1750,1751,1760],{},[789,1752,1753],{},[792,1754,1755,1758],{},[795,1756,1757],{"align":797},"Event",[795,1759,801],{"align":797},[806,1761,1762,1771,1780],{},[792,1763,1764,1768],{},[811,1765,1766],{"align":797},[814,1767,1723],{},[811,1769,1770],{"align":797},"Dispatched when the control starts to change.",[792,1772,1773,1777],{},[811,1774,1775],{"align":797},[814,1776,1709],{},[811,1778,1779],{"align":797},"Dispatched when the control changes.",[792,1781,1782,1786],{},[811,1783,1784],{"align":797},[814,1785,1737],{},[811,1787,1788],{"align":797},"Dispatched when the control ends to change.",[1790,1791,1792],"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":525,"searchDepth":533,"depth":551,"links":1794},[1795,1796,1797,1801],{"id":516,"depth":551,"text":15},{"id":780,"depth":551,"text":781},{"id":1256,"depth":551,"text":1236,"children":1798},[1799,1800],{"id":1421,"depth":581,"text":1422},{"id":1244,"depth":581,"text":1564},{"id":1691,"depth":551,"text":1692},"Is similar to OrbitControls yet supports smooth transitions and more features.","md",null,{},{"title":91,"description":1802},"2hfwAcOw9kCB60pKAgItRmaKk8A71rNBCTtreEGn7EI",[1809,1811],{"title":85,"path":86,"stem":87,"description":1810,"children":-1},"All currently supported controls",{"title":95,"path":96,"stem":97,"description":1812,"children":-1},"WASD on QWERTY keyboards or equivalent keys on non-QWERTY keyboards",1782052430537]