@glowjs/core 2022.6.21

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.
Files changed (158) hide show
  1. package/README.md +3 -0
  2. package/dist/glow.core.js +1 -0
  3. package/dist/typings/base/Base.d.ts +24 -0
  4. package/dist/typings/base/IDisposable.d.ts +9 -0
  5. package/dist/typings/camera/CameraCacheData.d.ts +21 -0
  6. package/dist/typings/camera/CameraMgr.d.ts +320 -0
  7. package/dist/typings/camera/CameraMode.d.ts +13 -0
  8. package/dist/typings/camera/CameraPerson.d.ts +13 -0
  9. package/dist/typings/camera/CustomArcRotateCameraKeyboardMoveInput.d.ts +28 -0
  10. package/dist/typings/camera/CustomArcRotateCameraMouseWheelInput.d.ts +17 -0
  11. package/dist/typings/camera/FlyData.d.ts +29 -0
  12. package/dist/typings/camera/OrthographicView.d.ts +17 -0
  13. package/dist/typings/core/App.d.ts +139 -0
  14. package/dist/typings/core/AppOptions.d.ts +29 -0
  15. package/dist/typings/core/Size.d.ts +13 -0
  16. package/dist/typings/core/create.d.ts +9 -0
  17. package/dist/typings/core/version.d.ts +1 -0
  18. package/dist/typings/effect/ColorCorrection.d.ts +129 -0
  19. package/dist/typings/effect/EffectMgr.d.ts +62 -0
  20. package/dist/typings/effect/EnvironmentTexture.d.ts +36 -0
  21. package/dist/typings/effect/EnvironmentTextureSource.d.ts +25 -0
  22. package/dist/typings/effect/Fog.d.ts +43 -0
  23. package/dist/typings/effect/FogMode.d.ts +21 -0
  24. package/dist/typings/effect/Glow.d.ts +43 -0
  25. package/dist/typings/effect/HighLight.d.ts +48 -0
  26. package/dist/typings/effect/ImageProcessing.d.ts +48 -0
  27. package/dist/typings/effect/Light.d.ts +20 -0
  28. package/dist/typings/effect/SkyBox.d.ts +59 -0
  29. package/dist/typings/effect/SkyBoxSource.d.ts +37 -0
  30. package/dist/typings/effect/ToneMappingType.d.ts +13 -0
  31. package/dist/typings/entity/Building.d.ts +104 -0
  32. package/dist/typings/entity/Campus.d.ts +35 -0
  33. package/dist/typings/entity/Corner.d.ts +43 -0
  34. package/dist/typings/entity/DoorWindow.d.ts +77 -0
  35. package/dist/typings/entity/DoorWindowDirection.d.ts +21 -0
  36. package/dist/typings/entity/Entity.d.ts +346 -0
  37. package/dist/typings/entity/EntityType.d.ts +65 -0
  38. package/dist/typings/entity/Floor.d.ts +108 -0
  39. package/dist/typings/entity/Group.d.ts +38 -0
  40. package/dist/typings/entity/LeakLine.d.ts +45 -0
  41. package/dist/typings/entity/LevelMgr.d.ts +89 -0
  42. package/dist/typings/entity/ManualWall.d.ts +81 -0
  43. package/dist/typings/entity/ManualWallBuilder.d.ts +157 -0
  44. package/dist/typings/entity/MeshFaceData.d.ts +25 -0
  45. package/dist/typings/entity/OtherEntity.d.ts +20 -0
  46. package/dist/typings/entity/Path.d.ts +45 -0
  47. package/dist/typings/entity/PrefabWall.d.ts +57 -0
  48. package/dist/typings/entity/Room.d.ts +162 -0
  49. package/dist/typings/entity/Text3D.d.ts +62 -0
  50. package/dist/typings/entity/Thing.d.ts +121 -0
  51. package/dist/typings/entity/ViewInfo.d.ts +13 -0
  52. package/dist/typings/entity/Wall.d.ts +95 -0
  53. package/dist/typings/entity/component/Animator.d.ts +45 -0
  54. package/dist/typings/entity/component/AutoOpenDoor.d.ts +23 -0
  55. package/dist/typings/entity/component/Component.d.ts +17 -0
  56. package/dist/typings/entity/component/PathAnimation.d.ts +47 -0
  57. package/dist/typings/entity/component/Style.d.ts +65 -0
  58. package/dist/typings/entity/component/cabinet/BoardCard.d.ts +62 -0
  59. package/dist/typings/entity/component/cabinet/Cabinet.d.ts +22 -0
  60. package/dist/typings/entity/component/cabinet/NetworkPort.d.ts +46 -0
  61. package/dist/typings/entity/component/cabinet/RackMounted.d.ts +91 -0
  62. package/dist/typings/entity/component/heatmap/Heatmap.d.ts +52 -0
  63. package/dist/typings/entity/component/heatmap/HeatmapType.d.ts +17 -0
  64. package/dist/typings/entity/component/heatmap/buildHorizontal.d.ts +6 -0
  65. package/dist/typings/entity/component/heatmap/buildVertical.d.ts +6 -0
  66. package/dist/typings/entity/component/roaming/Roaming.d.ts +83 -0
  67. package/dist/typings/entity/component/roaming/pencil.d.ts +1 -0
  68. package/dist/typings/entity/placement.d.ts +20 -0
  69. package/dist/typings/entity/util/createManualWallEdgeMaterial.d.ts +8 -0
  70. package/dist/typings/entity/util/createManualWallFaceMaterial.d.ts +8 -0
  71. package/dist/typings/entity/util/createManualWallMesh.d.ts +12 -0
  72. package/dist/typings/entity/util/createMergedMesh.d.ts +13 -0
  73. package/dist/typings/entity/util/createPathArrowIcon.d.ts +4 -0
  74. package/dist/typings/entity/util/createPathCircleIcon.d.ts +4 -0
  75. package/dist/typings/entity/util/createRoomMaterial.d.ts +3 -0
  76. package/dist/typings/entity/util/createRoomMesh.d.ts +14 -0
  77. package/dist/typings/entity/util/getPerWeight.d.ts +6 -0
  78. package/dist/typings/entity/util/setRes.d.ts +5 -0
  79. package/dist/typings/entity/util/technologyBuildingMaterial.d.ts +67 -0
  80. package/dist/typings/event/EventArg.d.ts +14 -0
  81. package/dist/typings/event/EventDispatcher.d.ts +67 -0
  82. package/dist/typings/event/EventMgr.d.ts +102 -0
  83. package/dist/typings/event/EventObject.d.ts +26 -0
  84. package/dist/typings/event/EventType.d.ts +161 -0
  85. package/dist/typings/event/KeyCode.d.ts +54 -0
  86. package/dist/typings/event/PropertyChangedData.d.ts +21 -0
  87. package/dist/typings/gui/Billboard.d.ts +94 -0
  88. package/dist/typings/gui/BillboardOptions.d.ts +62 -0
  89. package/dist/typings/gui/FPSBar.d.ts +25 -0
  90. package/dist/typings/gui/GUIMgr.d.ts +41 -0
  91. package/dist/typings/gui/GradientRectangle.d.ts +57 -0
  92. package/dist/typings/gui/PerformancePanel.d.ts +41 -0
  93. package/dist/typings/gui/RectangleProgress.d.ts +20 -0
  94. package/dist/typings/gui/ToolTip.d.ts +24 -0
  95. package/dist/typings/index.d.ts +63 -0
  96. package/dist/typings/material/MaterialMgr.d.ts +18 -0
  97. package/dist/typings/misc/Point2D.d.ts +4 -0
  98. package/dist/typings/misc/Point3D.d.ts +4 -0
  99. package/dist/typings/misc/Point4D.d.ts +4 -0
  100. package/dist/typings/misc/SystemResId.d.ts +89 -0
  101. package/dist/typings/misc/blobToDataURL.d.ts +5 -0
  102. package/dist/typings/misc/cookie.d.ts +17 -0
  103. package/dist/typings/misc/dataURLtoBlob.d.ts +5 -0
  104. package/dist/typings/misc/getQueryString.d.ts +5 -0
  105. package/dist/typings/misc/guid.d.ts +21 -0
  106. package/dist/typings/misc/http.d.ts +46 -0
  107. package/dist/typings/misc/index.d.ts +15 -0
  108. package/dist/typings/misc/isHexColor.d.ts +5 -0
  109. package/dist/typings/misc/isLAN.d.ts +4 -0
  110. package/dist/typings/misc/math/Line.d.ts +5 -0
  111. package/dist/typings/misc/math/Point.d.ts +7 -0
  112. package/dist/typings/misc/math/compare/EPSILON.d.ts +4 -0
  113. package/dist/typings/misc/math/compare/greateThanOrEqual.d.ts +8 -0
  114. package/dist/typings/misc/math/compare/greaterThan.d.ts +7 -0
  115. package/dist/typings/misc/math/compare/lessThan.d.ts +7 -0
  116. package/dist/typings/misc/math/compare/lessThanOrEqual.d.ts +7 -0
  117. package/dist/typings/misc/math/compare/withinEpsilon.d.ts +9 -0
  118. package/dist/typings/misc/math/index.d.ts +34 -0
  119. package/dist/typings/misc/math/line/distanceToParallelLine.d.ts +7 -0
  120. package/dist/typings/misc/math/line/distanceToProjection.d.ts +8 -0
  121. package/dist/typings/misc/math/line/getLineIntersection.d.ts +9 -0
  122. package/dist/typings/misc/math/line/isLineParallel.d.ts +7 -0
  123. package/dist/typings/misc/math/line/project.d.ts +8 -0
  124. package/dist/typings/misc/math/line/relateToPoint.d.ts +8 -0
  125. package/dist/typings/misc/math/round.d.ts +6 -0
  126. package/dist/typings/misc/math/segment/getSegmentIntersection.d.ts +8 -0
  127. package/dist/typings/misc/math/segment/getSegmentPartIncludePoint.d.ts +8 -0
  128. package/dist/typings/misc/math/segment/onSegment.d.ts +8 -0
  129. package/dist/typings/misc/math/segment/segmentFullInclude.d.ts +8 -0
  130. package/dist/typings/misc/math/vec/addTo.d.ts +7 -0
  131. package/dist/typings/misc/math/vec/angleTo.d.ts +7 -0
  132. package/dist/typings/misc/math/vec/centerTo.d.ts +7 -0
  133. package/dist/typings/misc/math/vec/cross.d.ts +7 -0
  134. package/dist/typings/misc/math/vec/distanceTo.d.ts +7 -0
  135. package/dist/typings/misc/math/vec/dot.d.ts +7 -0
  136. package/dist/typings/misc/math/vec/ignoreYAxis.d.ts +7 -0
  137. package/dist/typings/misc/math/vec/lengthTo.d.ts +6 -0
  138. package/dist/typings/misc/math/vec/multiplyTo.d.ts +7 -0
  139. package/dist/typings/misc/math/vec/normalizeTo.d.ts +6 -0
  140. package/dist/typings/misc/math/vec/scaleTo.d.ts +7 -0
  141. package/dist/typings/misc/math/vec/subtractTo.d.ts +7 -0
  142. package/dist/typings/misc/math/vec/toPoint.d.ts +8 -0
  143. package/dist/typings/misc/math/vec/toVector3.d.ts +7 -0
  144. package/dist/typings/misc/math/vec/verticalVector.d.ts +7 -0
  145. package/dist/typings/misc/object.d.ts +16 -0
  146. package/dist/typings/misc/to.d.ts +5 -0
  147. package/dist/typings/res/ResCacheData.d.ts +14 -0
  148. package/dist/typings/res/ResOptions.d.ts +38 -0
  149. package/dist/typings/res/ResPool.d.ts +57 -0
  150. package/dist/typings/res/replaceInstancedMesh.d.ts +6 -0
  151. package/dist/typings/runtime/RunTime.d.ts +119 -0
  152. package/dist/typings/runtime/babylonjs/babylonjs-core.d.ts +73 -0
  153. package/dist/typings/runtime/babylonjs/babylonjs-gui.d.ts +12 -0
  154. package/dist/typings/runtime/babylonjs/babylonjs-loaders.d.ts +1 -0
  155. package/dist/typings/runtime/babylonjs/babylonjs-materials.d.ts +1 -0
  156. package/dist/typings/runtime/index.d.ts +7 -0
  157. package/dist/typings/runtime/tweenjs/index.d.ts +1 -0
  158. package/package.json +71 -0
@@ -0,0 +1,7 @@
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 缩放,返回一个新对象
4
+ * @param p 点p
5
+ * @param scale 缩放倍数
6
+ */
7
+ export declare function scaleTo(p: Point, scale: number): Point;
@@ -0,0 +1,7 @@
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 减法,返回一个新对象
4
+ * @param a 点a
5
+ * @param b 点b
6
+ */
7
+ export declare function subtractTo(a: Point, b: Point): Point;
@@ -0,0 +1,8 @@
1
+ import { Vector3 } from '../../../runtime';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 将三维向量转换成点
5
+ * @param a 参考点
6
+ * @param p 三维向量
7
+ */
8
+ export declare function toPoint(a: Point, p: Vector3): Point;
@@ -0,0 +1,7 @@
1
+ import { Vector3 } from '../../../runtime';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 将点转换成三维向量
5
+ * @param p 点
6
+ */
7
+ export declare function toVector3(p: Point): Vector3;
@@ -0,0 +1,7 @@
1
+ import { Vector2 } from '../../../runtime';
2
+ /**
3
+ * 求二维向量的垂直向量
4
+ * @param vector2 二维向量
5
+ * @returns 垂直向量
6
+ */
7
+ export declare function verticalVector(vector2: Vector2): Vector2;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * 深度拷贝对象
3
+ * @param obj 对象
4
+ */
5
+ export declare function deepClone(obj: any): any;
6
+ /**
7
+ * 肢解对象(删除属性)
8
+ * @param obj 对象
9
+ */
10
+ export declare function explode(obj: any): void;
11
+ /**
12
+ * 变量对象(改良版递归)
13
+ * @param obj 对象
14
+ * @param callback 回调函数
15
+ */
16
+ export declare function traverse(obj: any, callback: (obj: any) => void): Promise<void>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 执行Promise
3
+ * @param promise
4
+ */
5
+ export declare function to<T>(promise: Promise<T>): Promise<[err: any, data: T]>;
@@ -0,0 +1,14 @@
1
+ import { AssetContainer, NodeMaterial, Texture } from '../runtime';
2
+ /**
3
+ * 资源缓存数据
4
+ */
5
+ export declare type ResCacheData = {
6
+ /**
7
+ * 错误信息
8
+ */
9
+ err?: any;
10
+ /**
11
+ * 原始数据
12
+ */
13
+ data?: Texture | AssetContainer | NodeMaterial;
14
+ };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * 资源参数选项
3
+ */
4
+ export declare type ResOptions = {
5
+ /**
6
+ * 唯一编号
7
+ */
8
+ id: string;
9
+ /**
10
+ * 扩展名
11
+ */
12
+ ext?: string;
13
+ /**
14
+ * 是否默认值
15
+ */
16
+ isDefault?: boolean;
17
+ /**
18
+ * 标题
19
+ */
20
+ title?: string;
21
+ /**
22
+ * 尺寸
23
+ */
24
+ size?: number[];
25
+ /**
26
+ * 版本号
27
+ */
28
+ version?: string;
29
+ name?: string;
30
+ /**
31
+ * 资源类型ID
32
+ */
33
+ res_type_id?: string;
34
+ /**
35
+ * 是否资产图片
36
+ */
37
+ asset?: boolean;
38
+ };
@@ -0,0 +1,57 @@
1
+ import { InstantiatedEntries, NodeMaterial, Texture } from '../runtime';
2
+ import { Base } from '../base/Base';
3
+ import { App } from '../core/App';
4
+ import { ResOptions } from './ResOptions';
5
+ /**
6
+ * 资源池
7
+ */
8
+ export declare class ResPool extends Base {
9
+ /**
10
+ * 资源列表
11
+ */
12
+ readonly resList: ResOptions[];
13
+ /**
14
+ * 缓存
15
+ */
16
+ private _cache;
17
+ /**
18
+ * 加载中的资源列表
19
+ */
20
+ private _loadingList;
21
+ /**
22
+ * 实例化一个资源池对象
23
+ * @param app 应用
24
+ */
25
+ constructor(app: App);
26
+ /**
27
+ * 加载指定资源
28
+ * @param id 编号
29
+ */
30
+ private _loadRes;
31
+ /**
32
+ * 获取指定资源
33
+ * @param id 编号
34
+ * @param optimized 是否优化网格,1=强制优化,0=无动画时优化,其它=不优化,默认强制优化
35
+ */
36
+ getRes(id: string, optimized?: -1 | 0 | 1): Promise<Texture | InstantiatedEntries | NodeMaterial | undefined>;
37
+ /**
38
+ * 判断指定编号的的资源是否已缓存
39
+ * @param id 编号
40
+ */
41
+ isCached(id: string): boolean;
42
+ /**
43
+ * 获取资源信息
44
+ * @param index 索引或资源编号
45
+ */
46
+ getResInfo(index: number | string): ResOptions;
47
+ /**
48
+ * 获取资源编号
49
+ * @param index 索引
50
+ */
51
+ getResId(index: number): string | undefined;
52
+ /**
53
+ * 获取资源索引
54
+ * @param id 编号
55
+ */
56
+ getResIndex(id: string): number | undefined;
57
+ }
@@ -0,0 +1,6 @@
1
+ import { TransformNode } from '../runtime';
2
+ /**
3
+ * 替换实例网格
4
+ * @param rootNode 根节点
5
+ */
6
+ export declare function replaceInstancedMesh(rootNode: TransformNode): void;
@@ -0,0 +1,119 @@
1
+ import { Scene } from '@babylonjs/core/scene';
2
+ import { WASMExports } from './wasm/WASMExports';
3
+ /**
4
+ * 应用对象
5
+ */
6
+ interface App {
7
+ /**
8
+ * 画布
9
+ */
10
+ canvas: HTMLCanvasElement;
11
+ /**
12
+ * 项目文件地址
13
+ */
14
+ projectFile: string;
15
+ /**
16
+ * 授权文件地址
17
+ */
18
+ licenseFile: string;
19
+ /**
20
+ * 场景对象
21
+ */
22
+ _scene: Scene;
23
+ /**
24
+ * 触发事件
25
+ * @param eventType 事件类型
26
+ */
27
+ trigger(eventType: string, data?: any): void;
28
+ /**
29
+ * 根据ID获取实体对象
30
+ * @param id ID
31
+ */
32
+ getEntityById(id: string): any;
33
+ /**
34
+ * 创建实体
35
+ * @param type 实体类型
36
+ */
37
+ create(type: number): any;
38
+ /**
39
+ * 层级管理器
40
+ */
41
+ levelMgr: any;
42
+ size: {
43
+ width: number;
44
+ height: number;
45
+ };
46
+ }
47
+ /**
48
+ * 资源项
49
+ */
50
+ export interface ResItem {
51
+ /**
52
+ * ID
53
+ */
54
+ id: string;
55
+ /**
56
+ * 文件扩展名
57
+ */
58
+ ext: string;
59
+ /**
60
+ * 名称
61
+ */
62
+ name: string;
63
+ }
64
+ /**
65
+ * 运行时
66
+ */
67
+ export declare class RunTime {
68
+ /**
69
+ * 获取项目文件的资源列表(不实例化App)
70
+ * @param projectFile 项目文件地址
71
+ */
72
+ static getProjectResList(projectFile: string): Promise<ResItem[]>;
73
+ static getProjectSerialNum(projectFile: string): Promise<string>;
74
+ /**
75
+ * 应用
76
+ */
77
+ app: App;
78
+ /**
79
+ * WASM导出
80
+ */
81
+ exports: WASMExports;
82
+ /**
83
+ * 实例化一个运行时对象
84
+ * @param app 应用
85
+ */
86
+ constructor(app: App);
87
+ /**
88
+ * 截图
89
+ * @param width 宽度
90
+ * @param height 高度
91
+ * @returns base64字符串
92
+ */
93
+ screenShot(width: number, height: number): Promise<string>;
94
+ /**
95
+ * 创建默认截图并保存
96
+ */
97
+ createDefaultScreenShotAndSave(): void;
98
+ /**
99
+ * 获取授权信息
100
+ */
101
+ getLicenseInfo(): string;
102
+ /**
103
+ * 获取序列号
104
+ */
105
+ getSerialNum(): string;
106
+ /**
107
+ * 持久化成项目文件
108
+ */
109
+ toProjectFile(): Promise<Uint8Array>;
110
+ /**
111
+ * 加载项目
112
+ */
113
+ loadProject(): Promise<void>;
114
+ /**
115
+ * 等待WASM加载
116
+ */
117
+ private _waitingForLoading;
118
+ }
119
+ export {};
@@ -0,0 +1,73 @@
1
+ export { Scene } from '@babylonjs/core/scene';
2
+ export { InstantiatedEntries } from '@babylonjs/core/assetContainer';
3
+ export { Node } from '@babylonjs/core/node';
4
+ export { AssetContainer } from '@babylonjs/core/assetContainer';
5
+ export { Engine } from '@babylonjs/core/Engines/engine';
6
+ export type { ICanvasRenderingContext } from '@babylonjs/core/Engines/ICanvas';
7
+ export { CreateGround } from '@babylonjs/core/Meshes/Builders/groundBuilder';
8
+ export { CreateBox } from '@babylonjs/core/Meshes/Builders/boxBuilder';
9
+ export { CreateLines, CreateLineSystem } from '@babylonjs/core/Meshes/Builders/linesBuilder';
10
+ export { CreateSphere } from '@babylonjs/core/Meshes/Builders/sphereBuilder';
11
+ export { CreateTube } from '@babylonjs/core/Meshes/Builders/tubeBuilder';
12
+ export { CreateCylinder } from '@babylonjs/core/Meshes/Builders/cylinderBuilder';
13
+ export { CreatePlane } from '@babylonjs/core/Meshes/Builders/planeBuilder';
14
+ export { Mesh } from '@babylonjs/core/Meshes/mesh';
15
+ export { AbstractMesh } from '@babylonjs/core/Meshes/abstractMesh';
16
+ export { TransformNode } from '@babylonjs/core/Meshes/transformNode';
17
+ export { Geometry } from '@babylonjs/core/Meshes/geometry';
18
+ export { VertexData } from '@babylonjs/core/Meshes/mesh.vertexData';
19
+ export { InstancedMesh } from '@babylonjs/core/Meshes/instancedMesh';
20
+ export { Color3 } from '@babylonjs/core/Maths/math.color';
21
+ export { Color4 } from '@babylonjs/core/Maths/math.color';
22
+ export { Vector2 } from '@babylonjs/core/Maths/math.vector';
23
+ export { Vector3 } from '@babylonjs/core/Maths/math.vector';
24
+ export { Vector4 } from '@babylonjs/core/Maths/math.vector';
25
+ export { Quaternion } from '@babylonjs/core/Maths/math.vector';
26
+ export { Matrix } from '@babylonjs/core/Maths/math.vector';
27
+ export { Scalar } from '@babylonjs/core/Maths/math.scalar';
28
+ export { SphericalPolynomial } from '@babylonjs/core/Maths/sphericalPolynomial';
29
+ export { Plane } from '@babylonjs/core/Maths/math.plane';
30
+ export type { FloatArray } from '@babylonjs/core/types';
31
+ export { VertexBuffer } from '@babylonjs/core/Buffers/buffer';
32
+ export { PBRMaterial } from '@babylonjs/core/Materials/PBR/pbrMaterial';
33
+ export { StandardMaterial } from '@babylonjs/core/Materials/standardMaterial';
34
+ export { Material } from '@babylonjs/core/Materials/material';
35
+ export { Texture } from '@babylonjs/core/Materials/Textures/texture';
36
+ export { FresnelParameters } from '@babylonjs/core/Materials/fresnelParameters';
37
+ export { ImageProcessingConfiguration } from '@babylonjs/core/Materials/imageProcessingConfiguration';
38
+ export { ColorCurves } from '@babylonjs/core/Materials/colorCurves';
39
+ export { CubeTexture } from '@babylonjs/core/Materials/Textures/cubeTexture';
40
+ export { NodeMaterial } from '@babylonjs/core/Materials/Node/nodeMaterial';
41
+ export { Effect } from '@babylonjs/core/Materials/effect';
42
+ import '@babylonjs/core/Materials/Node/Blocks';
43
+ export { PickingInfo } from '@babylonjs/core/Collisions/pickingInfo';
44
+ export { Tools } from '@babylonjs/core/Misc/tools';
45
+ export { Observer } from '@babylonjs/core/Misc/observable';
46
+ export { EnvironmentTextureTools } from '@babylonjs/core/Misc/environmentTextureTools';
47
+ export { PointerInfo } from '@babylonjs/core/Events/pointerEvents';
48
+ export { PointerEventTypes } from '@babylonjs/core/Events/pointerEvents';
49
+ export { BoundingBox } from '@babylonjs/core/Culling/boundingBox';
50
+ export { Ray } from '@babylonjs/core/Culling/ray';
51
+ export type { TrianglePickingPredicate } from '@babylonjs/core/Culling/ray';
52
+ export { BoundingInfo } from '@babylonjs/core/Culling/boundingInfo';
53
+ export { Camera } from '@babylonjs/core/Cameras/camera';
54
+ export { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera';
55
+ export type { ICameraInput } from '@babylonjs/core/Cameras/cameraInputsManager';
56
+ export { ParticleHelper } from '@babylonjs/core/Particles/particleHelper';
57
+ export { ParticleSystem } from '@babylonjs/core/Particles/particleSystem';
58
+ import '@babylonjs/core/Particles/particleSystemComponent';
59
+ import '@babylonjs/core/Helpers/sceneHelpers';
60
+ export { GlowLayer } from '@babylonjs/core/Layers/glowLayer';
61
+ export { HighlightLayer } from '@babylonjs/core/Layers/highlightLayer';
62
+ export { HemisphericLight } from '@babylonjs/core/Lights/hemisphericLight';
63
+ import '@babylonjs/core/Rendering/boundingBoxRenderer';
64
+ export { AnimationGroup } from '@babylonjs/core/Animations/animationGroup';
65
+ export { ActionManager } from '@babylonjs/core/Actions/actionManager';
66
+ export { ExecuteCodeAction } from '@babylonjs/core/Actions/directActions';
67
+ export { SceneInstrumentation } from '@babylonjs/core/Instrumentation/sceneInstrumentation';
68
+ export { EngineInstrumentation } from '@babylonjs/core/Instrumentation/engineInstrumentation';
69
+ import '@babylonjs/core/Engines/Extensions/engine.query';
70
+ export { SceneLoader } from '@babylonjs/core/Loading/sceneLoader';
71
+ export { PointerDragBehavior } from '@babylonjs/core/Behaviors/Meshes/pointerDragBehavior';
72
+ export { GizmoManager } from '@babylonjs/core/Gizmos/gizmoManager';
73
+ export { Gizmo } from '@babylonjs/core/Gizmos/gizmo';
@@ -0,0 +1,12 @@
1
+ export { AdvancedDynamicTexture } from '@babylonjs/gui/2D/advancedDynamicTexture';
2
+ export { Container } from '@babylonjs/gui/2D/controls/container';
3
+ export { Rectangle } from '@babylonjs/gui/2D/controls/rectangle';
4
+ export { Control } from '@babylonjs/gui/2D/controls/control';
5
+ export { Ellipse } from '@babylonjs/gui/2D/controls/ellipse';
6
+ export { Image } from '@babylonjs/gui/2D/controls/image';
7
+ export { TextBlock } from '@babylonjs/gui/2D/controls/textBlock';
8
+ export { Measure } from '@babylonjs/gui/2D/measure';
9
+ export { StackPanel } from '@babylonjs/gui/2D/controls/stackPanel';
10
+ export { Line as Line2D } from '@babylonjs/gui/2D/controls/line';
11
+ export { Button } from '@babylonjs/gui/2D/controls/button';
12
+ export { InputText } from '@babylonjs/gui/2D/controls/inputText';
@@ -0,0 +1 @@
1
+ import '@babylonjs/loaders/glTF/2.0/index';
@@ -0,0 +1 @@
1
+ export { GridMaterial } from '@babylonjs/materials/grid';
@@ -0,0 +1,7 @@
1
+ export * from './babylonjs/babylonjs-core';
2
+ export * from './babylonjs/babylonjs-gui';
3
+ import './babylonjs/babylonjs-loaders';
4
+ export * from './babylonjs/babylonjs-materials';
5
+ import './extension';
6
+ export * from './tweenjs';
7
+ export * from './RunTime';
@@ -0,0 +1 @@
1
+ export { Tween, Easing } from '@tweenjs/tween.js';
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@glowjs/core",
3
+ "version": "2022.06.21",
4
+ "description": "GlowJS数字孪生引擎核心库。",
5
+ "main": "./dist/glow.core.js",
6
+ "types": "./dist/typings/index.d.ts",
7
+ "files": [
8
+ "dist/glow.core.js",
9
+ "dist/typings/index.d.ts",
10
+ "dist/typings/base",
11
+ "dist/typings/camera",
12
+ "dist/typings/core",
13
+ "dist/typings/effect",
14
+ "dist/typings/entity",
15
+ "dist/typings/event",
16
+ "dist/typings/gui",
17
+ "dist/typings/material",
18
+ "dist/typings/misc",
19
+ "dist/typings/res",
20
+ "dist/typings/runtime/babylonjs",
21
+ "dist/typings/runtime/tweenjs",
22
+ "dist/typings/runtime/index.d.ts",
23
+ "dist/typings/runtime/RunTime.d.ts"
24
+ ],
25
+ "scripts": {
26
+ "dev": "ts-node ./build/build.ts development",
27
+ "build": "ts-node ./build/build.ts production"
28
+ },
29
+ "keywords": [
30
+ "babylonjs",
31
+ "three.js",
32
+ "thing.js",
33
+ "ThingJS",
34
+ "优锘",
35
+ "GlowJS",
36
+ "51WORLD",
37
+ "数字孪生",
38
+ "元宇宙",
39
+ "DCVM",
40
+ "数据中心可视化",
41
+ "可视化",
42
+ "3D"
43
+ ],
44
+ "author": "",
45
+ "license": "ISC",
46
+ "dependencies": {
47
+ "@babylonjs/core": "^5.11.0",
48
+ "@babylonjs/gui": "^5.11.0",
49
+ "@babylonjs/inspector": "^5.11.0",
50
+ "@babylonjs/loaders": "^5.11.0",
51
+ "@babylonjs/materials": "^5.11.0",
52
+ "@tweenjs/tween.js": "^18.6.4",
53
+ "earcut": "^2.2.2",
54
+ "heatmap.js": "^2.0.5",
55
+ "pako": "^2.0.4",
56
+ "robust-point-in-polygon": "^1.0.3",
57
+ "tslib": "^2.3.1"
58
+ },
59
+ "devDependencies": {
60
+ "@types/earcut": "^2.1.1",
61
+ "@types/heatmap.js": "^2.0.37",
62
+ "@types/pako": "^1.0.3",
63
+ "@types/robust-point-in-polygon": "^1.0.2",
64
+ "clean-webpack-plugin": "^4.0.0",
65
+ "colors": "^1.4.0",
66
+ "terser-webpack-plugin": "^5.3.3",
67
+ "ts-loader": "^9.3.0",
68
+ "ts-node": "^10.8.0",
69
+ "webpack": "^5.73.0"
70
+ }
71
+ }