Skip to content

Commit 8389726

Browse files
authored
Merge pull request #16071 from zprodev/fix/sprite-declaration-file
Fixed Sprite declaration
2 parents 871a528 + 3a396e2 commit 8389726

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/objects/Sprite.d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
import { Material } from './../materials/Material';
21
import { Vector2 } from './../math/Vector2';
32
import { Raycaster } from './../core/Raycaster';
43
import { Object3D } from './../core/Object3D';
54
import { Intersection } from '../core/Raycaster';
5+
import { SpriteMaterial } from '../materials/Materials';
6+
import { BufferGeometry } from '../core/BufferGeometry';
67

78
export class Sprite extends Object3D {
8-
constructor(material?: Material);
9+
constructor(material?: SpriteMaterial);
910

1011
type: 'Sprite';
1112
isSprite: true;
1213

13-
material: Material;
14+
geometry: BufferGeometry;
15+
material: SpriteMaterial;
1416
center: Vector2;
1517

1618
raycast(raycaster: Raycaster, intersects: Intersection[]): void;
17-
copy(source: this, recursive?: boolean): this;
19+
copy(source: this): this;
1820
}

0 commit comments

Comments
 (0)