mx3d 2024.6.122 → 2024.8.2-8.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/index.d.ts +47 -12
- package/mx3d.min.js +1 -1
- package/package.json +11 -6
- package/docs/.nojekyll +0 -0
- package/docs/README.md +0 -24
- package/docs/_sidebar.md +0 -29
- package/docs/cabinet/24_back.jpg +0 -0
- package/docs/cabinet/24_font.jpg +0 -0
- package/docs/cabinet/43_back.jpg +0 -0
- package/docs/cabinet/43_font.jpg +0 -0
- package/docs/cabinet/cabinet.md +0 -250
- package/docs/camera.md +0 -109
- package/docs/css/dark.css +0 -979
- package/docs/css/local.google.fonts.css +0 -295
- package/docs/css/vue.css +0 -1025
- package/docs/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2 +0 -0
- package/docs/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2 +0 -0
- package/docs/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2 +0 -0
- package/docs/gui/2D.md +0 -153
- package/docs/gui/3D.md +0 -154
- package/docs/gui/bg.png +0 -0
- package/docs/heatMap/heatMap.md +0 -290
- package/docs/index.html +0 -89
- package/docs/js/bootstrap/bootstrap-theme.min.css +0 -5
- package/docs/js/bootstrap/bootstrap.min.css +0 -5
- package/docs/js/bootstrap/bootstrap.min.js +0 -1
- package/docs/js/bootstrap/jquery.min.js +0 -1
- package/docs/js/docsify@4.min.js +0 -1
- package/docs/js/search.min.js +0 -1
- package/docs/models/capacity.md +0 -88
- package/docs/models/effect.md +0 -73
- package/docs/models/event.md +0 -100
- package/docs/models/line.md +0 -97
- package/docs/models/model.md +0 -164
- package/docs/models/modelmgr.md +0 -79
- package/docs/project/projectmgr.md +0 -64
- package/docs/releases.md +0 -119
- package/docs/started/environment.md +0 -103
- package/docs/started/quickstart.md +0 -112
package/index.d.ts
CHANGED
|
@@ -331,6 +331,7 @@ declare module MX3D {
|
|
|
331
331
|
static effects: Dictionary<IEffect>;
|
|
332
332
|
static add(_effectType: EffectType, _app: App): void;
|
|
333
333
|
static remove(_effectType: EffectType): void;
|
|
334
|
+
static removeAll(): void;
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
interface IEffect {
|
|
@@ -524,6 +525,10 @@ declare module MX3D {
|
|
|
524
525
|
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
525
526
|
}
|
|
526
527
|
|
|
528
|
+
export class Mx3dV1Loader {
|
|
529
|
+
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
530
|
+
}
|
|
531
|
+
|
|
527
532
|
export class BaseModel {
|
|
528
533
|
extension: string;
|
|
529
534
|
groupId: string;
|
|
@@ -541,8 +546,7 @@ declare module MX3D {
|
|
|
541
546
|
|
|
542
547
|
export class BuildingObject extends DefaultObject {
|
|
543
548
|
completed(): void;
|
|
544
|
-
|
|
545
|
-
getInto(): void;
|
|
549
|
+
getInto(_isFocus?: boolean): void;
|
|
546
550
|
goBack(): void;
|
|
547
551
|
}
|
|
548
552
|
|
|
@@ -558,6 +562,8 @@ declare module MX3D {
|
|
|
558
562
|
}
|
|
559
563
|
|
|
560
564
|
export class CampusObject extends IRegion {
|
|
565
|
+
position: Runtime.Vector3;
|
|
566
|
+
rotation: Runtime.Vector3;
|
|
561
567
|
addEventListener(_type: string, _callback: Function): void;
|
|
562
568
|
removeEventListener(_type: string): void;
|
|
563
569
|
setEnabled(_isEnabled: boolean): void;
|
|
@@ -682,6 +688,32 @@ declare module MX3D {
|
|
|
682
688
|
bind(): void;
|
|
683
689
|
}
|
|
684
690
|
|
|
691
|
+
export class EmptyProject implements IBase {
|
|
692
|
+
app: App;
|
|
693
|
+
id: string;
|
|
694
|
+
name: string;
|
|
695
|
+
parentId: string;
|
|
696
|
+
objectType: string;
|
|
697
|
+
customNumber: string;
|
|
698
|
+
customType: string;
|
|
699
|
+
baseModel: BaseModel;
|
|
700
|
+
instance: Mesh | InstancedMesh;
|
|
701
|
+
Sight: Sight;
|
|
702
|
+
storey: StoreyObject | CampusObject;
|
|
703
|
+
loadProperties(_m: any): void;
|
|
704
|
+
bind(): void;
|
|
705
|
+
completed(): void;
|
|
706
|
+
setEnabled(_isEnabled: boolean): void;
|
|
707
|
+
toJson(): {
|
|
708
|
+
id: string;
|
|
709
|
+
parentId: string;
|
|
710
|
+
name: string;
|
|
711
|
+
objectType: string;
|
|
712
|
+
};
|
|
713
|
+
getInto(_isFocus?: boolean): void;
|
|
714
|
+
goBack(): void;
|
|
715
|
+
}
|
|
716
|
+
|
|
685
717
|
export class FloorObject extends DefaultObject {
|
|
686
718
|
height: number;
|
|
687
719
|
vectors: Runtime.Vector3[];
|
|
@@ -709,7 +741,7 @@ declare module MX3D {
|
|
|
709
741
|
completed(): any;
|
|
710
742
|
setEnabled(isEnabled: boolean): any;
|
|
711
743
|
toJson(): any;
|
|
712
|
-
getInto(): any;
|
|
744
|
+
getInto(_isFocus?: boolean): any;
|
|
713
745
|
goBack(): any;
|
|
714
746
|
}
|
|
715
747
|
|
|
@@ -797,6 +829,7 @@ declare module MX3D {
|
|
|
797
829
|
Building = 'Building',
|
|
798
830
|
Storey = 'Storey',
|
|
799
831
|
Campus = 'Campus',
|
|
832
|
+
Project = 'Project',
|
|
800
833
|
}
|
|
801
834
|
|
|
802
835
|
export class OptimizedWallObject extends DefaultObject {
|
|
@@ -809,29 +842,29 @@ declare module MX3D {
|
|
|
809
842
|
private app;
|
|
810
843
|
id: string;
|
|
811
844
|
current: IBase;
|
|
812
|
-
root:
|
|
845
|
+
root: string;
|
|
813
846
|
levelEvent: Function;
|
|
814
847
|
objectDatas: Dictionary<IBase>;
|
|
815
848
|
constructor(_app: App);
|
|
816
849
|
clear(): void;
|
|
817
850
|
optimization(): void;
|
|
818
|
-
getChildsById(_id: string, _includeSub?: boolean): IBase
|
|
851
|
+
getChildsById(_id: string, _includeSub?: boolean): Array<IBase>;
|
|
819
852
|
getSceneTree(_id?: string, _excludeTypes?: Array<string>): any;
|
|
820
853
|
findObjectById(_id: string): IBase;
|
|
821
|
-
findObjectByCustomNumber(_customNumber: string):
|
|
854
|
+
findObjectByCustomNumber(_customNumber: string): IBase;
|
|
822
855
|
findObjectsByCustomType(
|
|
823
856
|
_customType: string,
|
|
824
857
|
queryParameters?: {
|
|
825
858
|
isCurrent: boolean;
|
|
826
859
|
isEnabled: boolean;
|
|
827
860
|
},
|
|
828
|
-
):
|
|
829
|
-
findObjectsByType(_type: ObjectType): IBase
|
|
861
|
+
): Array<IBase>;
|
|
862
|
+
findObjectsByType(_type: ObjectType): Array<IBase>;
|
|
830
863
|
computeSight(_objs: Array<IBase>): any;
|
|
831
864
|
switchLevel(_id?: string, _isFocus?: boolean): void;
|
|
832
865
|
goBack(): void;
|
|
833
|
-
|
|
834
|
-
getCustomTypes(_parentId?: string):
|
|
866
|
+
getObjectTypes(_parentId?: string): Array<ObjectType>;
|
|
867
|
+
getCustomTypes(_parentId?: string): Array<ObjectType>;
|
|
835
868
|
}
|
|
836
869
|
|
|
837
870
|
export class RackModel {
|
|
@@ -900,12 +933,13 @@ declare module MX3D {
|
|
|
900
933
|
|
|
901
934
|
export class StoreyObject extends IRegion {
|
|
902
935
|
scaling: Runtime.Vector3;
|
|
936
|
+
autoSight: boolean;
|
|
903
937
|
loadProperties(_m: any): void;
|
|
904
938
|
bind(): void;
|
|
905
939
|
alwaysActive(): void;
|
|
906
940
|
completed(): void;
|
|
907
941
|
computeView(): void;
|
|
908
|
-
getInto(): void;
|
|
942
|
+
getInto(_isFocus?: boolean): void;
|
|
909
943
|
}
|
|
910
944
|
|
|
911
945
|
export class UI3DTextObject extends DefaultObject {
|
|
@@ -1004,6 +1038,7 @@ declare module MX3D {
|
|
|
1004
1038
|
|
|
1005
1039
|
export class RES {
|
|
1006
1040
|
static de(str: string): any;
|
|
1041
|
+
static en(word: any): string;
|
|
1007
1042
|
}
|
|
1008
1043
|
|
|
1009
1044
|
export class Resources {
|
|
@@ -1063,7 +1098,7 @@ declare module MX3D {
|
|
|
1063
1098
|
static vector3ARRToJson(olds: Runtime.Vector3[]): Runtime.Vector3[];
|
|
1064
1099
|
static ToVector3(old: any): Runtime.Vector3;
|
|
1065
1100
|
static ToARRVector3(olds: any[]): Runtime.Vector3[];
|
|
1066
|
-
static computeBounds(mscene: Runtime.Mesh): Runtime.BoundingInfo;
|
|
1101
|
+
static computeBounds(mscene: Runtime.Mesh | AbstractMesh): Runtime.BoundingInfo;
|
|
1067
1102
|
static computeBoundsToARR(_meshs: Array<Runtime.Mesh>): Runtime.BoundingInfo;
|
|
1068
1103
|
static Expand(polygon: Array<Runtime.Vector3>, expand: number): Array<Runtime.Vector3>;
|
|
1069
1104
|
static norm(x: number, y: number): number;
|