@xviewer.js/core 1.0.0-alpha.8 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,6 @@
1
1
  {
2
2
  "name": "@xviewer.js/core",
3
- "version": "1.0.0-alpha.8",
4
- "publishConfig": {
5
- "access": "public",
6
- "registry": "https://registry.npmjs.org"
7
- },
3
+ "version": "1.0.0-beta.1",
8
4
  "license": "MIT",
9
5
  "type": "module",
10
6
  "sideEffects": false,
@@ -1,8 +1,18 @@
1
+ declare class ClassProperties {
2
+ clsName: string;
3
+ private _properties;
4
+ constructor(clsName: string);
5
+ property(propertyKey: string, options?: Object): this;
6
+ applyProperties(target: object): object;
7
+ }
1
8
  export declare class PropertyManager {
2
- static _propertiesMap: Map<Object, Object>;
3
- static _getProperties(target: object): Object;
4
- static _hasProperties(target: object): boolean;
5
- static _getMergedProperties(target: Object): any;
9
+ static _classMap: Map<String, ClassProperties>;
10
+ static _propertyMap: Map<Object, Object>;
11
+ static _hasProperties(constructor: Function): boolean;
12
+ static _getProperties(constructor: Function, autoAdd?: boolean): Object;
13
+ static _getMergedProperties(constructor: Function): any;
14
+ static _getClassProperties(clsName: string, autoAdd?: boolean): ClassProperties;
15
+ static _applyClassProperties(clsName: string, constructor: Function): object;
6
16
  }
7
17
  export interface IPropertyOptions {
8
18
  dir?: string;
package/types/Viewer.d.ts CHANGED
@@ -9,7 +9,6 @@ import { Plugin } from "./Plugin";
9
9
  export declare class Viewer extends EventEmitter {
10
10
  static __target: Vector3;
11
11
  static __worldPos: Vector3;
12
- static _getClassInstance(constructor: any, args?: any[]): any;
13
12
  static _shadowCameraKeys: string[];
14
13
  static _setDirectLightShadow(shadow: DirectionalLightShadow, props: number[]): DirectionalLightShadow;
15
14
  static CompileMaterial(renderer: WebGLRenderer, scene: Scene, camera: Camera, target: Material | Material[]): void;
@@ -0,0 +1 @@
1
+ export declare function getClassInstance(constructor: any, args?: any[]): any;
@@ -1,3 +1,4 @@
1
1
  export { EventEmitter } from "./EventEmitter";
2
2
  export { Logger } from "./Logger";
3
3
  export { mixin } from "./mixin";
4
+ export { getClassInstance } from "./getClassInstance";