未验证 提交 83897265 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #16071 from zprodev/fix/sprite-declaration-file

Fixed Sprite declaration
import { Material } from './../materials/Material';
import { Vector2 } from './../math/Vector2';
import { Raycaster } from './../core/Raycaster';
import { Object3D } from './../core/Object3D';
import { Intersection } from '../core/Raycaster';
import { SpriteMaterial } from '../materials/Materials';
import { BufferGeometry } from '../core/BufferGeometry';
export class Sprite extends Object3D {
constructor(material?: Material);
constructor(material?: SpriteMaterial);
type: 'Sprite';
isSprite: true;
material: Material;
geometry: BufferGeometry;
material: SpriteMaterial;
center: Vector2;
raycast(raycaster: Raycaster, intersects: Intersection[]): void;
copy(source: this, recursive?: boolean): this;
copy(source: this): this;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册