开发者参考
x
程序员指南
开发者套件
编程基础
与React.js/Vue.js集成
服务器端渲染
矩阵变换
动画系统
画线
更新内容
如何获取资源
动画
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
KeyframeTrack
PropertyBinding
动画 / 轨道
BooleanKeyframeTrack
ColorKeyframeTrack
NumberKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
VectorKeyframeTrack
应用
App
AppUtils
音频
Audio
AudioAnalyser
AudioContext
AudioListener
PositionalAudio
摄影机
ArrayCamera
Camera
CubeCamera
OrthographicCamera
PerspectiveCamera
常量
Animation
Controls
Core
CustomBlendingEquation
Lights
Materials
Renderer
Textures
约束
CanvasBreakpointsConstraint
CanvasFitConstraint
ChildOfConstraint
Constraint
CopyLocationConstraint
CopyRotationConstraint
CopyScaleConstraint
CopyTransformsConstraint
DampedTrackConstraint
FixOrthoZoomConstraint
FloorConstraint
LimitDistanceConstraint
LimitLocationConstraint
LimitRotationConstraint
LimitScaleConstraint
LockedTrackConstraint
TargetConstraint
TrackToConstraint
控制
KeyListener
OrbitControls
核心
BufferAttribute
BufferGeometry
Clock
Detector
EventDispatcher
Geometry
InstancedBufferAttribute
InstancedBufferGeometry
InstancedInterleavedBuffer
InterleavedBuffer
InterleavedBufferAttribute
Layers
Object3D
Raycaster
Uniform
核心 / BufferAttributes
BufferAttribute Types
附件
Earcut
ImageUtils
PMREMGenerator
Preloader
PuzzlesLoader
SceneUtils
ShapeUtils
SimplePreloader
附件 / 核心
Curve
CurvePath
Font
Interpolations
Path
Shape
ShapePath
附件 / 曲线
ArcCurve
CatmullRomCurve3
CubicBezierCurve
CubicBezierCurve3
EllipseCurve
LineCurve
LineCurve3
QuadraticBezierCurve
QuadraticBezierCurve3
SplineCurve
附件 / 对象
LineHTML
MeshLine
MeshLineIndexed
MeshLineMaterial
几何体
BoxBufferGeometry
BoxGeometry
CircleBufferGeometry
CircleGeometry
ConeBufferGeometry
ConeGeometry
CylinderBufferGeometry
CylinderGeometry
DodecahedronBufferGeometry
DodecahedronGeometry
EdgesGeometry
ExtrudeBufferGeometry
ExtrudeGeometry
IcosahedronBufferGeometry
IcosahedronGeometry
LatheBufferGeometry
LatheGeometry
OctahedronBufferGeometry
OctahedronGeometry
ParametricBufferGeometry
ParametricGeometry
PlaneBufferGeometry
PlaneGeometry
PolyhedronBufferGeometry
PolyhedronGeometry
RingBufferGeometry
RingGeometry
ShapeBufferGeometry
ShapeGeometry
SphereBufferGeometry
SphereGeometry
TetrahedronBufferGeometry
TetrahedronGeometry
TextBufferGeometry
TextGeometry
TorusBufferGeometry
TorusGeometry
TorusKnotBufferGeometry
TorusKnotGeometry
TubeBufferGeometry
TubeGeometry
WireframeGeometry
辅助对象
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
HemisphereLightHelper
PlaneHelper
PointLightHelper
SkeletonHelper
SpotLightHelper
灯光
AmbientLight
CubeReflectionProbe
DirectionalLight
HemisphereLight
Light
PointLight
RectAreaLight
SpotLight
灯光 / 阴影
DirectionalLightShadow
LightShadow
PointLightShadow
SpotLightShadow
加载器
AudioLoader
Cache
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
GLTFLoader
Loader
LoaderUtils
TextureLoader
加载器 / 管理器
DefaultLoadingManager
LoadingManager
材质
LineBasicMaterial
LineDashedMaterial
Material
MaterialUtils
MeshBasicMaterial
MeshDepthMaterial
MeshDistanceMaterial
MeshLambertMaterial
MeshMatcapMaterial
MeshNodeMaterial
MeshNormalMaterial
MeshPhongMaterial
MeshPhysicalMaterial
MeshStandardMaterial
MeshToonMaterial
PointsMaterial
RawShaderMaterial
ShaderMaterial
ShadowMaterial
SpriteMaterial
数学
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
Ray
Sphere
Spherical
Triangle
Vector2
Vector3
Vector4
数学 / 插值
CubicInterpolant
DiscreteInterpolant
LinearInterpolant
QuaternionLinearInterpolant
对象
Annotation
AnnotationControl
Bone
Group
InstancedMesh
Line
LineLoop
LineSegments
LOD
Mesh
Points
Skeleton
SkinnedMesh
Sprite
渲染器
RenderUtils
WebGLCubeRenderTarget
WebGLMultisampleRenderTarget
WebGLRenderer
WebGLRenderTarget
渲染器 / 着色器
ShaderChunk
ShaderLib
UniformsLib
UniformsUtils
场景
Fog
FogExp2
Scene
SceneBackground
纹理贴图
CanvasTexture
CompressedTexture
CubeTexture
DataTexture
DataTexture3D
DepthTexture
Texture
VideoTexture
TargetConstraint
→
CanvasFitConstraint
此约束可将面板或文本附加到您期望的位置,无论屏幕分辨率或设备如何。必须将对象父级设置为摄影机。
此约束通过影响对象的位置、旋转 和缩放来建立对象之间的各种关系, 可与
Object3D.constraints
属性共用。
构造函数
CanvasFitConstraint(
target
)
属性
参阅
TargetConstraint
基类了解其公共属性。
#
.
edgeH
:
Number
需适应的水平画布边界。默认为
0
。
-1 — 左边界。
1 — 右边界。
0 — 无边界。
#
.
edgeV
:
Number
需适应的画布垂直边界。默认为
0
。
-1 — 底边。
1 — 顶边。
0 — 无边界。
#
.
offset
:
Float
画布适应偏移值,必须 >= 0 。 默认为
0.0
。
#
.
isCanvasFitConstraint
:
Boolean
用于检查此类或派生类是否为画布拟合约束。 默认为
true
。
#
.
type
:
String
约束类型。等同于 "CanvasFitConstraint" 。
#
.
useBoundingBox
:
Boolean
画布适合形状。默认为
true
.
false — 球体。
true — 立方体。
方法
请查看
TargetConstraint
基类了解其常用方法。