0.7.0 • Published 9 months ago

@vis-three/module-css3d v0.7.0

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
9 months ago

@vis-three/module-css3D

最新版本

license

模块信息

module.type

  • : css3D

module.object

  • : true

module.lifeOrder

  • : SUPPORT_LIFE_CYCLE.THREE - 300

提供配置

CSS3D 物体-CSS3DObject

  • 类型CSS3DObject
  • 配置类型:
export interface CSS3DObjectConfig extends ObjectConfig {
  element: string; // 外部资源resourceManagerPlugin解析
  width: number;
  height: number;
}
  • 默认配置:
{
   element: "",
   width: 50,
   height: 50,
}

:::tip 该配置供模块内部使用 :::

CSS3D 平面-CSS3DPlane

  • 类型CSS3DPlane
  • 配置类型:
export interface CSS3DPlaneConfig extends CSS3DObjectConfig {}
  • 默认配置:
{
   element: "",
   width: 50,
   height: 50,
}

CSS3D 精灵-CSS3DSprite

  • 类型CSS3DSprite
  • 配置类型:
export interface CSS3DSpriteConfig extends CSS3DObjectConfig {
  /**旋转角度 */
  rotation2D: number;
}
  • 默认配置:
{
    rotation2D: 0,
  }
0.7.0

9 months ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago