From 14fabb3e022ce071633531132a464e1ed32a21b2 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Fri, 9 Feb 2018 12:41:14 +0800 Subject: [PATCH] add missing `public` modifiers --- types/animation.d.ts | 14 +++++++------- types/model.d.ts | 20 ++++++++++---------- types/viewer.d.ts | 36 ++++++++++++++++++------------------ 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/types/animation.d.ts b/types/animation.d.ts index b173d58..8308807 100644 --- a/types/animation.d.ts +++ b/types/animation.d.ts @@ -13,15 +13,15 @@ declare function invokeAnimation( ): void; declare class AnimationHandle implements IAnimation { - readonly animation: Animation; - paused: boolean; - speed: number; + public readonly animation: Animation; + public paused: boolean; + public speed: number; constructor(animation: Animation); - play(player: PlayerObject, time: number): void; + public play(player: PlayerObject, time: number): void; - reset(): void; + public reset(): void; } export class CompositeAnimation implements IAnimation { @@ -29,9 +29,9 @@ export class CompositeAnimation implements IAnimation { constructor(); - add(animation: Animation): AnimationHandle; + public add(animation: Animation): AnimationHandle; - play(player: PlayerObject, time: number): void; + public play(player: PlayerObject, time: number): void; } export const WalkAnimation: AnimationFn; diff --git a/types/model.d.ts b/types/model.d.ts index 0119498..122170e 100644 --- a/types/model.d.ts +++ b/types/model.d.ts @@ -1,13 +1,13 @@ import * as THREE from "three"; export class SkinObject extends THREE.Group { - readonly slim: boolean; - readonly head: THREE.Group; - readonly body: THREE.Group; - readonly rightArm: THREE.Group; - readonly leftArm: THREE.Group; - readonly rightLeg: THREE.Group; - readonly leftLeg: THREE.Group; + public readonly slim: boolean; + public readonly head: THREE.Group; + public readonly body: THREE.Group; + public readonly rightArm: THREE.Group; + public readonly leftArm: THREE.Group; + public readonly rightLeg: THREE.Group; + public readonly leftLeg: THREE.Group; constructor( slim: boolean, @@ -17,14 +17,14 @@ export class SkinObject extends THREE.Group { } export class CapeObject extends THREE.Group { - readonly cape: THREE.Mesh; + public readonly cape: THREE.Mesh; constructor(capeMaterial: THREE.Material); } export class PlayerObject extends THREE.Group { - readonly skin: SkinObject; - readonly cape: CapeObject; + public readonly skin: SkinObject; + public readonly cape: CapeObject; constructor( slim: boolean, diff --git a/types/viewer.d.ts b/types/viewer.d.ts index 2294624..af06710 100644 --- a/types/viewer.d.ts +++ b/types/viewer.d.ts @@ -14,32 +14,32 @@ interface SkinViewerOptions { } export class SkinViewer { - skinUrl: string; - capeUrl: string; - width: number; - height: number; - readonly domElement: Element; - animation: Animation; - animationPaused: boolean; - animationTime: number; - readonly playerObject: PlayerObject; - readonly disposed: boolean; - readonly camera: THREE.Camera; - readonly renderer: THREE.Renderer; - readonly scene: THREE.Scene; + public skinUrl: string; + public capeUrl: string; + public width: number; + public height: number; + public readonly domElement: Element; + public animation: Animation; + public animationPaused: boolean; + public animationTime: number; + public readonly playerObject: PlayerObject; + public readonly disposed: boolean; + public readonly camera: THREE.Camera; + public readonly renderer: THREE.Renderer; + public readonly scene: THREE.Scene; constructor(options: SkinViewerOptions); - setSize(width: number, height: number): void; + public setSize(width: number, height: number): void; - dispose(): void; + public dispose(): void; } export class SkinControl { - enableAnimationControl: boolean; - readonly skinViewer: SkinViewer; + public enableAnimationControl: boolean; + public readonly skinViewer: SkinViewer; constructor(skinViewer: SkinViewer); - dispose(): void; + public dispose(): void; }