mx3d 0.1.3 → 0.1.6

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 (3) hide show
  1. package/index.d.ts +194 -177
  2. package/mx3d.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  @author gzmaijing
3
3
  @email mj@gzmaijing.com
4
4
  */
5
- declare module MX3D {
6
- export class App {
5
+
6
+ export class App {
7
7
  canvas: HTMLCanvasElement;
8
8
  engine: any;
9
9
  scene: any;
@@ -16,84 +16,84 @@ declare module MX3D {
16
16
  Project: Project;
17
17
  ToolTips: ToolTips;
18
18
  constructor(_config: {
19
- container: HTMLElement;
20
- sl?: string;
21
- rl?: string;
19
+ container: HTMLElement;
20
+ sl?: string;
21
+ rl?: string;
22
22
  });
23
23
  load(_config: {
24
- pk: string;
25
- progress?: Function;
26
- complete?: Function;
24
+ pk: string;
25
+ progress?: Function;
26
+ complete?: Function;
27
27
  }): Promise<void>;
28
28
  dispose(): void;
29
- }
29
+ }
30
30
 
31
- export class Builder {
31
+ export class Builder {
32
32
  static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
33
33
  static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
34
34
  static createMatrixCloud(_data: {
35
- anchor: IObject;
36
- value: {
37
- maxX: number;
38
- maxY: number;
39
- data: Array<{
40
- x: number;
41
- y: number;
42
- value: number;
43
- }>;
44
- };
45
- displayValues: boolean;
46
- height: number;
47
- isLevelRender: boolean;
48
- isAlpha: boolean;
49
- isParticle: boolean;
50
- radius: number;
51
- range: {
52
- max: number;
53
- min: number;
54
- };
35
+ anchor: IObject;
36
+ value: {
37
+ maxX: number;
38
+ maxY: number;
39
+ data: Array<{
40
+ x: number;
41
+ y: number;
42
+ value: number;
43
+ }>;
44
+ };
45
+ displayValues: boolean;
46
+ height: number;
47
+ isLevelRender: boolean;
48
+ isAlpha: boolean;
49
+ isParticle: boolean;
50
+ radius: number;
51
+ range: {
52
+ max: number;
53
+ min: number;
54
+ };
55
55
  }): void;
56
56
  static createPunctateCloud(_data: {
57
- anchor: IObject;
58
- value: number;
59
- radius: number;
60
- isLevelRender: boolean;
61
- displayValues: boolean;
62
- isAlpha: boolean;
63
- isParticle: boolean;
64
- range: {
65
- max: number;
66
- min: number;
67
- };
57
+ anchor: IObject;
58
+ value: number;
59
+ radius: number;
60
+ isLevelRender: boolean;
61
+ displayValues: boolean;
62
+ isAlpha: boolean;
63
+ isParticle: boolean;
64
+ range: {
65
+ max: number;
66
+ min: number;
67
+ };
68
68
  }): void;
69
69
  createColumnCloud(_data: {
70
- anchor: IObject;
71
- data: Array<{
72
- index: number;
73
- value: number;
74
- }>;
75
- isLevelRender: boolean;
76
- displayValues: boolean;
77
- isAlpha: boolean;
78
- isParticle: boolean;
79
- radius: number;
80
- range: {
81
- max: number;
82
- min: number;
83
- };
70
+ anchor: IObject;
71
+ data: Array<{
72
+ index: number;
73
+ value: number;
74
+ }>;
75
+ isLevelRender: boolean;
76
+ displayValues: boolean;
77
+ isAlpha: boolean;
78
+ isParticle: boolean;
79
+ radius: number;
80
+ range: {
81
+ max: number;
82
+ min: number;
83
+ };
84
84
  }): void;
85
85
  static create2DLine(_id: string, _objs: Array<IObject>, _options?: {
86
- _width: number;
87
- _color: string;
88
- isDotted: boolean;
86
+ _width: number;
87
+ _color: string;
88
+ isDotted: boolean;
89
89
  }): void;
90
90
  static create3DLine(_id: string, _objs: Array<IObject>, _options?: {
91
- _width: number;
92
- _color: string;
91
+ _width: number;
92
+ _color: string;
93
93
  }): void;
94
- }
94
+ }
95
95
 
96
- export class Capacity {
96
+ export class Capacity {
97
97
  anchor: IObject;
98
98
  mesh: any;
99
99
  ratio: number;
@@ -101,20 +101,20 @@ declare module MX3D {
101
101
  textMesh: any;
102
102
  constructor(_object: IObject, _RATIO: number);
103
103
  dispose(): void;
104
- }
104
+ }
105
105
 
106
- export class EffectMgr {
106
+ export class EffectMgr {
107
107
  static colors: {};
108
108
  static init(): void;
109
- }
109
+ }
110
110
 
111
- export enum EffectType {
111
+ export enum EffectType {
112
112
  Opaque = 0,
113
113
  Flash = 1,
114
114
  Transparent = 2
115
- }
115
+ }
116
116
 
117
- export class Environment {
117
+ export class Environment {
118
118
  app: App;
119
119
  lights: any;
120
120
  _color: any;
@@ -138,16 +138,16 @@ declare module MX3D {
138
138
  hideFps(): void;
139
139
  showDebug(): void;
140
140
  setLightIntensity(_intensity?: number): void;
141
- }
141
+ }
142
142
 
143
- export class DefaultEvent implements IEvent {
143
+ export class DefaultEvent implements IEvent {
144
144
  app: App;
145
145
  runRender(): void;
146
146
  onPointer(_pointerInfo: any): void;
147
147
  onKeyboard(_kbInfo: any): void;
148
- }
148
+ }
149
149
 
150
- export class FPSCameraEvent implements IEvent {
150
+ export class FPSCameraEvent implements IEvent {
151
151
  app: App;
152
152
  isFPS: boolean;
153
153
  angle: number;
@@ -159,24 +159,24 @@ declare module MX3D {
159
159
  runRender(): void;
160
160
  onPointer(_pointerInfo: any): void;
161
161
  onKeyboard(_e: any): void;
162
- }
162
+ }
163
163
 
164
- export interface IEvent {
164
+ export interface IEvent {
165
165
  runRender(): void;
166
166
  onPointer(e: any): void;
167
167
  onKeyboard(e: any): void;
168
- }
168
+ }
169
169
 
170
- export enum EventType {
170
+ export enum EventType {
171
171
  leftClick = "leftClick",
172
172
  rightClick = "rightClick",
173
173
  doubleClick = "doubleClick",
174
174
  eover = "eover",
175
175
  longPress = "longPress",
176
176
  out = "out"
177
- }
177
+ }
178
178
 
179
- export class HeatMap implements BaseNode {
179
+ export class HeatMap implements BaseNode {
180
180
  id: string;
181
181
  anchor: IObject;
182
182
  mesh: any;
@@ -186,17 +186,17 @@ declare module MX3D {
186
186
  isEnabled(_bool: boolean): void;
187
187
  set displayValues(_value: boolean);
188
188
  dispose(): void;
189
- }
189
+ }
190
190
 
191
- export class Icon implements BaseNode {
191
+ export class Icon implements BaseNode {
192
192
  id: string;
193
193
  scene: any;
194
194
  pint: any;
195
195
  rect: any;
196
196
  onPointerClick: Function;
197
197
  size: {
198
- width: number;
199
- height: number;
198
+ width: number;
199
+ height: number;
200
200
  };
201
201
  height: number;
202
202
  container: any;
@@ -204,21 +204,21 @@ declare module MX3D {
204
204
  set background(_url: string);
205
205
  addEventListener(_action: Function): void;
206
206
  setTexts(_textArr: [{
207
- text: string;
208
- fontSize: string;
209
- color: string;
210
- top: number;
211
- left: number;
207
+ text: string;
208
+ fontSize: string;
209
+ color: string;
210
+ top: number;
211
+ left: number;
212
212
  }]): void;
213
213
  line(_line: {
214
- width: number;
215
- color: string;
214
+ width: number;
215
+ color: string;
216
216
  }): void;
217
217
  dispose(): void;
218
218
  isEnabled(_isEnabled: boolean): void;
219
- }
219
+ }
220
220
 
221
- export class IconFromMesh implements BaseNode {
221
+ export class IconFromMesh implements BaseNode {
222
222
  id: string;
223
223
  scene: any;
224
224
  instance: any;
@@ -229,44 +229,60 @@ declare module MX3D {
229
229
  addEventListener(_action: Function): void;
230
230
  setColor(_color: string): void;
231
231
  setContents(_textArr: [{
232
- text: string;
233
- fontSize: string;
234
- top: number;
235
- left: number;
236
- color?: string;
232
+ text: string;
233
+ fontSize: string;
234
+ top: number;
235
+ left: number;
236
+ color?: string;
237
237
  }]): void;
238
238
  dispose(): void;
239
239
  isEnabled(_bool: boolean): void;
240
- }
240
+ }
241
241
 
242
- export class UI {
242
+ export class UI {
243
243
  static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
244
244
  static createIcon(_id: string, _anchor: IObject, _size: {
245
- width: number;
246
- height: number;
245
+ width: number;
246
+ height: number;
247
247
  }, _height: number): void;
248
- }
248
+ }
249
249
 
250
- export class HubService {
250
+ export class HubService {
251
251
  static connection: any;
252
252
  static listener(_Url: string): Promise<void>;
253
253
  static start(): Promise<void>;
254
- }
254
+ }
255
255
 
256
- export class Directional extends LightObject {
256
+ export default class MX3D {
257
+ static accessToken: string;
258
+ static pk: string;
259
+ static sl: string;
260
+ static rl: string;
261
+ static App: typeof App;
262
+ static Tools: typeof Tools;
263
+ static Earth: typeof Earth;
264
+ static EffectMgr: typeof EffectMgr;
265
+ static HubService: typeof HubService;
266
+ static UI: typeof UI;
267
+ static Builder: typeof Builder;
268
+ static EffectType: typeof EffectType;
269
+ static EventType: typeof EventType;
270
+ }
271
+
272
+ export class Directional extends LightObject {
257
273
  direction: any;
258
274
  position: any;
259
275
  light: any;
260
276
  load(): void;
261
- }
277
+ }
262
278
 
263
- export class Hemispheric extends LightObject {
279
+ export class Hemispheric extends LightObject {
264
280
  direction: any;
265
281
  light: any;
266
282
  load(): void;
267
- }
283
+ }
268
284
 
269
- export interface ILightObject {
285
+ export interface ILightObject {
270
286
  id: string;
271
287
  sceneId: string;
272
288
  name: string;
@@ -275,9 +291,9 @@ declare module MX3D {
275
291
  lightType: string;
276
292
  intensity: number;
277
293
  load: Function;
278
- }
294
+ }
279
295
 
280
- export class LightObject implements ILightObject {
296
+ export class LightObject implements ILightObject {
281
297
  id: string;
282
298
  sceneId: string;
283
299
  name: string;
@@ -289,23 +305,23 @@ declare module MX3D {
289
305
  app: App;
290
306
  constructor(_app: App);
291
307
  load(): void;
292
- }
308
+ }
293
309
 
294
- export enum LightType {
310
+ export enum LightType {
295
311
  Point = "Point",
296
312
  Spot = "Spot",
297
313
  Directional = "Directional",
298
314
  Hemispheric = "Hemispheric"
299
- }
315
+ }
300
316
 
301
- export class Point extends LightObject {
317
+ export class Point extends LightObject {
302
318
  position: any;
303
319
  light: any;
304
320
  range: number;
305
321
  load(): void;
306
- }
322
+ }
307
323
 
308
- export class Spot extends LightObject {
324
+ export class Spot extends LightObject {
309
325
  direction: any;
310
326
  position: any;
311
327
  angle: number;
@@ -313,35 +329,36 @@ declare module MX3D {
313
329
  range: number;
314
330
  light: any;
315
331
  load(): void;
316
- }
332
+ }
317
333
 
318
- export class BabylonLayer {
334
+ export class BabylonLayer {
319
335
  readonly id: string;
320
336
  readonly type: "custom";
321
337
  readonly renderingMode: "3d";
322
338
  drones: {
323
- x: number;
324
- y: number;
325
- z: number;
339
+ x: number;
340
+ y: number;
341
+ z: number;
326
342
  };
327
343
  initialCoordinates: [];
328
344
  recalculateProjectionMatrix(_coordinates: []): void;
329
345
  onAdd: (_map: any, _gl: WebGLRenderingContext) => void;
330
346
  render: (_gl: WebGLRenderingContext, _matrix: number[]) => void;
331
- }
347
+ }
332
348
 
333
- export class Earth {
349
+ export class Earth {
334
350
  initialCoordinates: [];
335
351
  map: any;
336
352
  load(_action: Function): void;
337
- laodScene(_url: string, _initialCoordinates: []): void;
353
+ constructor(_container: string, _initialCoordinates?: []);
354
+ laodScene(_url?: string, _initialCoordinates?: []): void;
338
355
  flyTo(_center?: [], _zoom?: number, _bearing?: number, _pitch?: number, _duration?: number): void;
339
- }
356
+ }
340
357
 
341
- export class CabinetObject extends DefaultObject {
342
- }
358
+ export class CabinetObject extends DefaultObject {
359
+ }
343
360
 
344
- export class ConduitObject extends DefaultObject {
361
+ export class ConduitObject extends DefaultObject {
345
362
  alpha: number;
346
363
  color: string;
347
364
  bind(_m: any): void;
@@ -351,14 +368,14 @@ declare module MX3D {
351
368
  setFlash(_level?: number): void;
352
369
  setOpaque(): void;
353
370
  setTransparent(_alpha?: number): void;
354
- }
371
+ }
355
372
 
356
- export class CornerObject extends DefaultObject {
373
+ export class CornerObject extends DefaultObject {
357
374
  height: number;
358
375
  bind(_m: any): void;
359
- }
376
+ }
360
377
 
361
- export class DefaultObject implements IObject {
378
+ export class DefaultObject implements IObject {
362
379
  app: App;
363
380
  id: string;
364
381
  name: string;
@@ -391,27 +408,27 @@ declare module MX3D {
391
408
  setTransparent(_alpha?: number): void;
392
409
  play(): void;
393
410
  stop(): void;
394
- }
411
+ }
395
412
 
396
- export class DoorObject extends DefaultObject {
413
+ export class DoorObject extends DefaultObject {
397
414
  height: number;
398
415
  bind(_m: any): void;
399
- }
416
+ }
400
417
 
401
- export class FloorObject extends DefaultObject {
418
+ export class FloorObject extends DefaultObject {
402
419
  height: number;
403
420
  bind(_m: any): void;
404
- }
421
+ }
405
422
 
406
- export interface IBase {
423
+ export interface IBase {
407
424
  app: App;
408
425
  id: string;
409
426
  name: string;
410
427
  parentId: string;
411
428
  objectType: string;
412
- }
429
+ }
413
430
 
414
- export interface IObject extends IBase {
431
+ export interface IObject extends IBase {
415
432
  customNumber: string;
416
433
  customType: string;
417
434
  modelId: string;
@@ -430,16 +447,16 @@ declare module MX3D {
430
447
  play(isloop: boolean): any;
431
448
  stop(): any;
432
449
  computeView(): any;
433
- }
450
+ }
434
451
 
435
- export class LeakWaterObject extends DefaultObject {
452
+ export class LeakWaterObject extends DefaultObject {
436
453
  bind(_l: any): void;
437
454
  computeView(): void;
438
455
  addEventListener(_type: string, _callback: Function): void;
439
456
  removeEventListener(_type: string): void;
440
- }
457
+ }
441
458
 
442
- export enum ObjectType {
459
+ export enum ObjectType {
443
460
  Region = "Region",
444
461
  Cabinet = "Cabinet",
445
462
  Corner = "Corner",
@@ -452,9 +469,9 @@ declare module MX3D {
452
469
  Wall = "Wall",
453
470
  Window = "Window",
454
471
  Conduit = "Conduit"
455
- }
472
+ }
456
473
 
457
- export class Project {
474
+ export class Project {
458
475
  app: App;
459
476
  id: string;
460
477
  root: IObject;
@@ -473,9 +490,9 @@ declare module MX3D {
473
490
  findObjectByCustomNumber(): void;
474
491
  findObjectsByCustomType(): void;
475
492
  switchLevel(_id?: string, _isFocus?: boolean, _includeSub?: boolean): void;
476
- }
493
+ }
477
494
 
478
- export class RegionObject extends DefaultObject {
495
+ export class RegionObject extends DefaultObject {
479
496
  index: number;
480
497
  height: number;
481
498
  constructor(app: App, _storey: any);
@@ -486,39 +503,39 @@ declare module MX3D {
486
503
  setEnabled(_value: boolean): void;
487
504
  getBounding(): void;
488
505
  dispose(): void;
489
- }
506
+ }
490
507
 
491
- export class UI3DTextObject extends DefaultObject {
508
+ export class UI3DTextObject extends DefaultObject {
492
509
  bind(_u: any): void;
493
- }
510
+ }
494
511
 
495
- export class VirtualBoxObject extends DefaultObject {
512
+ export class VirtualBoxObject extends DefaultObject {
496
513
  bind(_m: any): Promise<void>;
497
- }
514
+ }
498
515
 
499
- export class WallObject extends DefaultObject {
500
- nativeMaterial: BABYLON.StandardMaterial;
516
+ export class WallObject extends DefaultObject {
517
+ nativeMaterial: any;
501
518
  baseModel: any;
502
519
  height: number;
503
520
  bind(_w: any): void;
504
- }
521
+ }
505
522
 
506
- export class WindowObject extends DefaultObject {
523
+ export class WindowObject extends DefaultObject {
507
524
  height: number;
508
525
  bind(_m: any): void;
509
- }
526
+ }
510
527
 
511
- export class ArrayEx<T> extends Array<T> {
528
+ export class ArrayEx<T> extends Array<T> {
512
529
  remove(_val: any): void;
513
- }
530
+ }
514
531
 
515
- export interface BaseNode {
532
+ export interface BaseNode {
516
533
  id: string;
517
534
  dispose(): any;
518
535
  isEnabled(bool: boolean): any;
519
- }
536
+ }
520
537
 
521
- export class CameraController {
538
+ export class CameraController {
522
539
  app: App;
523
540
  camera: any;
524
541
  frustrum: number;
@@ -533,11 +550,11 @@ declare module MX3D {
533
550
  _wheel(_p: any): void;
534
551
  switchArcRotateCamera(): void;
535
552
  switchFPSCamera(): void;
536
- }
553
+ }
537
554
 
538
- export class Dictionary<T> {
555
+ export class Dictionary<T> {
539
556
  map: {
540
- [key: string]: T;
557
+ [key: string]: T;
541
558
  };
542
559
  constructor();
543
560
  add(_key: string, _value: T): void;
@@ -547,13 +564,13 @@ declare module MX3D {
547
564
  showAll(): void;
548
565
  count(): void;
549
566
  clear(): void;
550
- }
567
+ }
551
568
 
552
- export class GUID {
569
+ export class GUID {
553
570
  static getGUID(_length: number): void;
554
- }
571
+ }
555
572
 
556
- export class Resources {
573
+ export class Resources {
557
574
  app: App;
558
575
  walls: Dictionary<any>;
559
576
  resources: Dictionary<any>;
@@ -572,9 +589,9 @@ declare module MX3D {
572
589
  GetMergeMaterial(_textureData: any, _scene: any): void;
573
590
  delete(_isAll?: boolean): void;
574
591
  GetWalls(_url: string, _projectId: string): Promise<void>;
575
- }
592
+ }
576
593
 
577
- export class Sight {
594
+ export class Sight {
578
595
  alpha: number;
579
596
  focus: any;
580
597
  radius: number;
@@ -587,9 +604,9 @@ declare module MX3D {
587
604
  toString(): void;
588
605
  setLimit(_miniLimit: number, _maxiLimit: number): void;
589
606
  setBeta(_minBeta: number, _maxBeta: number): void;
590
- }
607
+ }
591
608
 
592
- export class Tools {
609
+ export class Tools {
593
610
  static vector3ToJson(_old: any): any;
594
611
  static vector3ARRToJson(_olds: any[]): void;
595
612
  static ToVector3(_old: any): void;
@@ -606,9 +623,9 @@ declare module MX3D {
606
623
  static getAngleFromVector2(_startV: any, _coreV: any, _endV: any): void;
607
624
  static getAngleFromVector3(_startV: any, _coreV: any, _endV: any): void;
608
625
  static RandomNumBoth(_Min: any, _Max: any): void;
609
- }
626
+ }
610
627
 
611
- export class ToolTips {
628
+ export class ToolTips {
612
629
  app: App;
613
630
  url: string;
614
631
  ele: HTMLDivElement;
@@ -621,5 +638,5 @@ declare module MX3D {
621
638
  close(): void;
622
639
  setBackground(_url: string): void;
623
640
  dispose(): void;
624
- }
625
641
  }
642
+
package/mx3d.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.MX3D=e():t.MX3D=e()}(window,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return t[r].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var c in t)o.d(r,c,function(e){return t[e]}.bind(null,c));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return s}));class r{static init(){}}r.colors={};var c,n;!function(t){t[t.Opaque=0]="Opaque",t[t.Flash=1]="Flash",t[t.Transparent=2]="Transparent"}(c||(c={})),function(t){t.leftClick="leftClick",t.rightClick="rightClick",t.doubleClick="doubleClick",t.eover="eover",t.longPress="longPress",t.out="out"}(n||(n={}));class s{}s.sl="https://www.wodashijie.com/",s.rl="https://models.wodashijie.com/",s.App=class{constructor(t){}async load(t){}dispose(){}},s.Tools=class{static vector3ToJson(t){}static vector3ARRToJson(t){}static ToVector3(t){}static ToARRVector3(t){}static computeBounds(t){}static computeBoundsToARR(t){}static Expand(t,e){}static norm(t,e){}static MergeMeshes(t,e){}static DeconsTructMesh(t,e,o){}static getVisualAngle(t,e){}static pathTransformation(t,e){}static createTube(t,e,o=.05,r){}static getAngleFromVector2(t,e,o){}static getAngleFromVector3(t,e,o){}static RandomNumBoth(t,e){}},s.Earth=class{constructor(){this.initialCoordinates=[]}load(t){}laodScene(t,e){}flyTo(t=this.initialCoordinates,e=18,o=130,r=75,c=12e3){}},s.EffectMgr=r,s.HubService=class{static async listener(t){}static async start(){}},s.UI=class{static createIconFromMesh(t,e,o,r,c){}static createIcon(t,e,o,r){}},s.Builder=class{static createCapacity(t,e,o,r="200px"){}static createTextMesh(t,e,o,r="200px",c="white"){}static createMatrixCloud(t){}static createPunctateCloud(t){}createColumnCloud(t){}static create2DLine(t,e,o){}static create3DLine(t,e,o){}},s.EffectType=c,s.EventType=n}]).default}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.MX3D=e():t.MX3D=e()}(window,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return t[r].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var c in t)o.d(r,c,function(e){return t[e]}.bind(null,c));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return s}));class r{static init(){}}r.colors={};var c,n;!function(t){t[t.Opaque=0]="Opaque",t[t.Flash=1]="Flash",t[t.Transparent=2]="Transparent"}(c||(c={})),function(t){t.leftClick="leftClick",t.rightClick="rightClick",t.doubleClick="doubleClick",t.eover="eover",t.longPress="longPress",t.out="out"}(n||(n={}));class s{}s.sl="https://www.wodashijie.com/",s.rl="https://models.wodashijie.com/",s.App=class{constructor(t){}async load(t){}dispose(){}},s.Tools=class{static vector3ToJson(t){}static vector3ARRToJson(t){}static ToVector3(t){}static ToARRVector3(t){}static computeBounds(t){}static computeBoundsToARR(t){}static Expand(t,e){}static norm(t,e){}static MergeMeshes(t,e){}static DeconsTructMesh(t,e,o){}static getVisualAngle(t,e){}static pathTransformation(t,e){}static createTube(t,e,o=.05,r){}static getAngleFromVector2(t,e,o){}static getAngleFromVector3(t,e,o){}static RandomNumBoth(t,e){}},s.Earth=class{constructor(t,e){this.initialCoordinates=[]}load(t){}laodScene(t,e){}flyTo(t=this.initialCoordinates,e=18,o=130,r=75,c=12e3){}},s.EffectMgr=r,s.HubService=class{static async listener(t){}static async start(){}},s.UI=class{static createIconFromMesh(t,e,o,r,c){}static createIcon(t,e,o,r){}},s.Builder=class{static createCapacity(t,e,o,r="200px"){}static createTextMesh(t,e,o,r="200px",c="white"){}static createMatrixCloud(t){}static createPunctateCloud(t){}createColumnCloud(t){}static create2DLine(t,e,o){}static create3DLine(t,e,o){}},s.EffectType=c,s.EventType=n}]).default}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mx3d",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "分支版本",
5
5
  "main": "mx3d.js",
6
6
  "typings": "./dist/index.d.ts",