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

Merge pull request #15861 from Methuselah96/update-typings

Update TypeScript definition typings to match @types/three
......@@ -32,7 +32,7 @@ export class LoadingManager {
constructor(
onLoad?: () => void,
onProgress?: (url: string, loaded: number, total: number) => void,
onError?: () => void
onError?: (url: string) => void
);
onStart?: (url: string, loaded: number, total: number) => void;
......
......@@ -15,7 +15,7 @@ export class Line extends Object3D {
geometry: Geometry | BufferGeometry;
material: Material | Material[];
type: 'Line';
type: 'Line' | 'LineLoop' | 'LineSegments';
isLine: true;
computeLineDistances(): this;
......
......@@ -8,4 +8,7 @@ export class LineLoop extends Line {
geometry?: Geometry | BufferGeometry,
material?: Material | Material[]
);
type: 'LineLoop';
isLineLoop: true;
}
......@@ -18,4 +18,7 @@ export class LineSegments extends Line {
material?: Material | Material[],
mode?: number
);
type: 'LineSegments';
isLineSegments: true;
}
......@@ -70,16 +70,14 @@ export interface WebGLRendererParameters {
preserveDrawingBuffer?: boolean;
/**
* default is 0x000000.
* Can be "high-performance", "low-power" or "default"
*/
clearColor?: number;
powerPreference?: string;
/**
* default is 0.
* default is true.
*/
clearAlpha?: number;
devicePixelRatio?: number;
depth?: boolean;
/**
* default is false.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册