@kudashi/kds-api 2.13.28 → 2.13.30
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/README.md +9 -0
- package/api.d.ts +408 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# api changelog
|
|
4
4
|
|
|
5
|
+
# version 2.13.30(2025-02-27)
|
|
6
|
+
- 新增KArchFace, KArchWall, KArchRoom, KArchPillar, KArchOpening相关api
|
|
7
|
+
- 新增KDesign.isShellSolid, KApplicationObserver.onGroupInstanceActivated, KApplicationObserver.onGroupInstanceDeactivated
|
|
8
|
+
|
|
9
|
+
# version 2.13.29(2025-02-20)
|
|
10
|
+
- 新增KGroupInstance.getInstanceParentGroupDefinition
|
|
11
|
+
- 新增KDesign.getEditPathsToGroupInstance KDesign.activateEditPath KDesign.toggleEntitiesVisible
|
|
12
|
+
- 新增isVisible判断模型是否可见
|
|
13
|
+
|
|
5
14
|
# version 2.13.28(2025-02-11)
|
|
6
15
|
- 支持三方插件存储模型库
|
|
7
16
|
- 插件标题支持多语言机制,详情参考:https://manual.kujiale.com/kds-plugin-document/1.0.0/docs/tutorial/%E9%85%B7%E5%A4%A7%E5%B8%88%E6%8F%92%E4%BB%B6%E6%A0%BC%E5%BC%8F%E8%A6%81%E6%B1%82
|
package/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// version: 2.13.
|
|
1
|
+
// version: 2.13.30
|
|
2
2
|
|
|
3
3
|
declare global {
|
|
4
4
|
/**
|
|
@@ -508,6 +508,22 @@ declare global {
|
|
|
508
508
|
* This method will be called by system when the model is changed, let plugin know the changed group definitions.
|
|
509
509
|
*/
|
|
510
510
|
onModelChanged?(changes: { isUndoRedo: boolean, modified?: KGroupDefinition[], added?: KGroupDefinition[], deleted?: KGroupDefinition[] }): void;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* 当成组实例被激活时,酷大师会调用这个接口
|
|
515
|
+
*
|
|
516
|
+
* The method is called when the group instance is activated.
|
|
517
|
+
*/
|
|
518
|
+
onGroupInstanceActivated?(groupInstance: KGroupInstance): void;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* 当成组实例退出激活态时,酷大师会调用这个接口
|
|
523
|
+
*
|
|
524
|
+
* The method is called when the group instance is deactivated.
|
|
525
|
+
*/
|
|
526
|
+
onGroupInstanceDeactivated?(groupInstance: KGroupInstance): void;
|
|
511
527
|
}
|
|
512
528
|
|
|
513
529
|
/*
|
|
@@ -741,6 +757,16 @@ declare global {
|
|
|
741
757
|
* The KArchFace class represents architecture.
|
|
742
758
|
*/
|
|
743
759
|
interface KArchFace {
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* 获取户型面id
|
|
764
|
+
*
|
|
765
|
+
* Get the id of archFace.
|
|
766
|
+
* @returns The id of archFace.
|
|
767
|
+
*/
|
|
768
|
+
getId(): string;
|
|
769
|
+
|
|
744
770
|
/**
|
|
745
771
|
*
|
|
746
772
|
* 获取非平面户型类型
|
|
@@ -773,6 +799,255 @@ declare global {
|
|
|
773
799
|
* @return The direction of non planar architecture face.
|
|
774
800
|
*/
|
|
775
801
|
getDirection(): KVector3d;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* 获取户型面所在房间
|
|
806
|
+
*
|
|
807
|
+
* Get the room of archFace.
|
|
808
|
+
* @returns The room of archFace
|
|
809
|
+
*/
|
|
810
|
+
getRoom(): KArchRoom | undefined;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* 获取户型面所在墙
|
|
815
|
+
*
|
|
816
|
+
* Get the wall of archFace.
|
|
817
|
+
* @returns The wall of archFace
|
|
818
|
+
*/
|
|
819
|
+
getWall(): KArchWall | undefined;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* 获取户型面所在柱子
|
|
824
|
+
*
|
|
825
|
+
* Get the pillar of archFace.
|
|
826
|
+
* @returns The pillar of archFace
|
|
827
|
+
*/
|
|
828
|
+
getPillar(): KArchPillar | undefined;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/*
|
|
832
|
+
* KArchOpening.ts
|
|
833
|
+
* Copyright 2024 Qunhe Tech, all rights reserved.
|
|
834
|
+
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
835
|
+
*/
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* 新自由造型环境下的门洞对象
|
|
840
|
+
*
|
|
841
|
+
* The KArchOpening class represents architecture.
|
|
842
|
+
*/
|
|
843
|
+
interface KArchOpening {
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* 获取门洞id
|
|
848
|
+
*
|
|
849
|
+
* Get the id of opening.
|
|
850
|
+
* @returns The id of opening.
|
|
851
|
+
*/
|
|
852
|
+
getId(): string;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* 获取门洞的深度
|
|
857
|
+
*
|
|
858
|
+
* Get the depth of opening.
|
|
859
|
+
* @returns The depth of opening
|
|
860
|
+
*/
|
|
861
|
+
getDepth(): number;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* 获取门洞的轮廓
|
|
866
|
+
*
|
|
867
|
+
* Get profile of opening
|
|
868
|
+
* @return The profile of opening.
|
|
869
|
+
*/
|
|
870
|
+
getProfile(): KBoundedCurve3d[];
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/*
|
|
874
|
+
* KArchPillar.ts
|
|
875
|
+
* Copyright 2024 Qunhe Tech, all rights reserved.
|
|
876
|
+
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
877
|
+
*/
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
*
|
|
881
|
+
* 新自由造型环境下的墙对象
|
|
882
|
+
*
|
|
883
|
+
* The KArchWall class represents architecture.
|
|
884
|
+
*/
|
|
885
|
+
interface KArchPillar {
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* 获取柱子id
|
|
890
|
+
*
|
|
891
|
+
* Get the id of pillar.
|
|
892
|
+
* @returns The id of pillar.
|
|
893
|
+
*/
|
|
894
|
+
getId(): string;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
*
|
|
898
|
+
* 获取柱子高度
|
|
899
|
+
*
|
|
900
|
+
* Get the height of pillar.
|
|
901
|
+
* @returns The height of pillar.
|
|
902
|
+
*/
|
|
903
|
+
getHeight(): number;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* 获取柱子侧面
|
|
908
|
+
*
|
|
909
|
+
* Get side archFaces of pillar
|
|
910
|
+
* @return The side archFaces of pillar.
|
|
911
|
+
*/
|
|
912
|
+
getSideFaces(): KArchFace[];
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/*
|
|
916
|
+
* KArchRoom.ts
|
|
917
|
+
* Copyright 2024 Qunhe Tech, all rights reserved.
|
|
918
|
+
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
919
|
+
*/
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
*
|
|
924
|
+
* 新自由造型环境下的房间对象
|
|
925
|
+
*
|
|
926
|
+
* The KArchRoom class represents architecture.
|
|
927
|
+
*/
|
|
928
|
+
interface KArchRoom {
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* 获取房间id
|
|
932
|
+
*
|
|
933
|
+
* Get the id of room.
|
|
934
|
+
* @returns The id of room.
|
|
935
|
+
*/
|
|
936
|
+
getId(): string;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
*
|
|
940
|
+
* 获取房间高度
|
|
941
|
+
*
|
|
942
|
+
* Get the height of room.
|
|
943
|
+
* @returns The height of room.
|
|
944
|
+
*/
|
|
945
|
+
getHeight(): number;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* 获取房间内的户型面
|
|
950
|
+
*
|
|
951
|
+
* Get the archFaces of room
|
|
952
|
+
* @return The archFaces of room.
|
|
953
|
+
*/
|
|
954
|
+
getFaces(): KArchFace[];
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* 获取房间顶面
|
|
959
|
+
*
|
|
960
|
+
* Get ceiling of room
|
|
961
|
+
* @return The archFace of ceiling.
|
|
962
|
+
*/
|
|
963
|
+
getCeiling(): KArchFace[];
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* 获取房间地板面
|
|
968
|
+
*
|
|
969
|
+
* Get floor of room
|
|
970
|
+
* @return The archFace of floor.
|
|
971
|
+
*/
|
|
972
|
+
getFloor(): KArchFace[];
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* 获取房间内侧墙面
|
|
977
|
+
*
|
|
978
|
+
* Get the inner wall faces of room
|
|
979
|
+
* @return The inner wall faces of room.
|
|
980
|
+
*/
|
|
981
|
+
// getInnerWallFaces(): KArchFace[];
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
*
|
|
985
|
+
* 获取房间内的墙
|
|
986
|
+
*
|
|
987
|
+
* Get the walls of room
|
|
988
|
+
* @return The walls of room.
|
|
989
|
+
*/
|
|
990
|
+
getWalls(): KArchWall[];
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* 获取房间内的柱子
|
|
995
|
+
*
|
|
996
|
+
* Get the pillars of room
|
|
997
|
+
* @return The pillars of room.
|
|
998
|
+
*/
|
|
999
|
+
getPillars(): KArchPillar[];
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/*
|
|
1003
|
+
* KArchWall.ts
|
|
1004
|
+
* Copyright 2024 Qunhe Tech, all rights reserved.
|
|
1005
|
+
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
1006
|
+
*/
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
*
|
|
1011
|
+
* 新自由造型环境下的墙对象
|
|
1012
|
+
*
|
|
1013
|
+
* The KArchWall class represents architecture.
|
|
1014
|
+
*/
|
|
1015
|
+
interface KArchWall {
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* 获取墙id
|
|
1019
|
+
*
|
|
1020
|
+
* Get the id of wall.
|
|
1021
|
+
* @returns The id of wall.
|
|
1022
|
+
*/
|
|
1023
|
+
getId(): string;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* 获取房间厚度
|
|
1028
|
+
*
|
|
1029
|
+
* Get the thickness of wall.
|
|
1030
|
+
* @returns thickness of wall.
|
|
1031
|
+
*/
|
|
1032
|
+
getThickness(): number;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
*
|
|
1036
|
+
* 获取墙上的门洞
|
|
1037
|
+
*
|
|
1038
|
+
* Get openings of wall
|
|
1039
|
+
* @return The openings of wall.
|
|
1040
|
+
*/
|
|
1041
|
+
getOpenings(): KArchOpening[];
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* 获取墙侧面
|
|
1046
|
+
*
|
|
1047
|
+
* Get side archFaces of wall
|
|
1048
|
+
* @return The side archFaces of wall.
|
|
1049
|
+
*/
|
|
1050
|
+
getSideFaces(): KArchFace[];
|
|
776
1051
|
}
|
|
777
1052
|
|
|
778
1053
|
/*
|
|
@@ -819,6 +1094,14 @@ declare global {
|
|
|
819
1094
|
* @returns The auxiliary vertex at the end of the auxiliary bounded curve.
|
|
820
1095
|
*/
|
|
821
1096
|
getEndVertex(): KAuxiliaryVertex;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* 获取该参考线段是否可见
|
|
1101
|
+
*
|
|
1102
|
+
* Get the auxiliaryBoundedCurve property of it is visible or not.
|
|
1103
|
+
*/
|
|
1104
|
+
isVisible(): boolean;
|
|
822
1105
|
}
|
|
823
1106
|
|
|
824
1107
|
/*
|
|
@@ -841,6 +1124,14 @@ declare global {
|
|
|
841
1124
|
* @returns The unique key.
|
|
842
1125
|
*/
|
|
843
1126
|
getKey(): string;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
*
|
|
1130
|
+
* 获取该参考线是否可见
|
|
1131
|
+
*
|
|
1132
|
+
* Get the auxiliaryCurve property of it is visible or not.
|
|
1133
|
+
*/
|
|
1134
|
+
isVisible(): boolean;
|
|
844
1135
|
}
|
|
845
1136
|
|
|
846
1137
|
/*
|
|
@@ -862,6 +1153,14 @@ declare global {
|
|
|
862
1153
|
* @returns The geometric 3D line.
|
|
863
1154
|
*/
|
|
864
1155
|
getLine(): KLine3d;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* 获取该参考线是否可见
|
|
1160
|
+
*
|
|
1161
|
+
* Get the auxiliaryCurve property of it is visible or not.
|
|
1162
|
+
*/
|
|
1163
|
+
isVisible(): boolean;
|
|
865
1164
|
}
|
|
866
1165
|
|
|
867
1166
|
/*
|
|
@@ -1745,6 +2044,22 @@ declare global {
|
|
|
1745
2044
|
*/
|
|
1746
2045
|
activateGroupInstance(groupInstance: KGroupInstance): HostPromise<{ isSuccess: boolean }>;
|
|
1747
2046
|
|
|
2047
|
+
/**
|
|
2048
|
+
*
|
|
2049
|
+
* 设置编辑路径。
|
|
2050
|
+
* 编辑路径:
|
|
2051
|
+
* 1. 从顶层组实例开始,依次为直接包含关系;
|
|
2052
|
+
* 2. 路径为空表示跳转到顶层编辑状态(完全退出组编辑状态)。
|
|
2053
|
+
*
|
|
2054
|
+
* Activate the edit path.
|
|
2055
|
+
* Edit path:
|
|
2056
|
+
* Start from the top-level groupInstance, sequentially representing direct containment relationships;
|
|
2057
|
+
* An empty path indicates a transition to the top-level edit state (completely exiting the group edit state).
|
|
2058
|
+
* @param editPath The edit path.
|
|
2059
|
+
* @returns Return an object that contains success flag.
|
|
2060
|
+
*/
|
|
2061
|
+
activateEditPath(editPath: KGroupInstance[]): HostPromise<{ isSuccess: boolean }>;
|
|
2062
|
+
|
|
1748
2063
|
/**
|
|
1749
2064
|
*
|
|
1750
2065
|
* 反激活一个成组实例
|
|
@@ -1778,6 +2093,16 @@ declare global {
|
|
|
1778
2093
|
*/
|
|
1779
2094
|
getEditPath(): KGroupInstance[];
|
|
1780
2095
|
|
|
2096
|
+
/**
|
|
2097
|
+
*
|
|
2098
|
+
* 获取组实例的编辑路径(从顶层起始,不包含给定组实例)
|
|
2099
|
+
*
|
|
2100
|
+
* Get the edit paths of the groupInstance (starting from the top level, excluding the given groupInstance)
|
|
2101
|
+
* @param groupInstance the groupInstance
|
|
2102
|
+
* @returns the edit paths
|
|
2103
|
+
*/
|
|
2104
|
+
getEditPathsToGroupInstance(groupInstance: KGroupInstance): KGroupInstance[][];
|
|
2105
|
+
|
|
1781
2106
|
/**
|
|
1782
2107
|
*
|
|
1783
2108
|
* @deprecated 此 API 仅供酷大师内部开发团队使用
|
|
@@ -2009,12 +2334,28 @@ declare global {
|
|
|
2009
2334
|
* Turn on/off the visibility of group instances. Constraints as below:
|
|
2010
2335
|
* 1. the group instances can be/not be in the current editing group definition (CheckUtils.CheckOperatingGroupInstanceInDefinition is false);
|
|
2011
2336
|
* 2. this operation is not a undo/redo transaction. it will not cause the design to be dirty as well.
|
|
2337
|
+
* 3. will clear selection
|
|
2012
2338
|
*
|
|
2013
2339
|
* @param groupInstances
|
|
2014
2340
|
* @param isVisible : True is turning to be visible, and vice versa
|
|
2015
2341
|
*/
|
|
2016
2342
|
toggleGroupInstancesVisible(groupInstances: KGroupInstance[], isVisible: boolean): { isSuccess: boolean };
|
|
2017
2343
|
|
|
2344
|
+
/**
|
|
2345
|
+
* 显示或者隐藏组实例、壳、面、边和参考线。仅用于特定场合,限制条件如下:
|
|
2346
|
+
*
|
|
2347
|
+
* Turn on/off the visibility of group instances, shells, faces, edges and auxiliaryCurves. Constraints as below:
|
|
2348
|
+
* 1. the entities can be/not be in the current editing group definition (CheckUtils.CheckOperatingGroupInstanceInDefinition is false);
|
|
2349
|
+
* 2. this operation is not a undo/redo transaction. it will not cause the design to be dirty as well.
|
|
2350
|
+
* 3. will clear selection
|
|
2351
|
+
*
|
|
2352
|
+
* @param groupInstances the group instances
|
|
2353
|
+
* @param faces the faces
|
|
2354
|
+
* @param auxiliaryCurves the auxiliaryCurves
|
|
2355
|
+
* @param isVisible : True is turning to be visible, and vice versa
|
|
2356
|
+
*/
|
|
2357
|
+
toggleEntitiesVisible(groupInstances: KGroupInstance[], shells: KShell[], faces: KFace[], edges: KEdge[], auxiliaryCurves: KAuxiliaryCurve[], isVisible: boolean): { isSuccess: boolean };
|
|
2358
|
+
|
|
2018
2359
|
/**
|
|
2019
2360
|
* Align the shells with a discrete target curve.
|
|
2020
2361
|
*
|
|
@@ -2146,6 +2487,15 @@ declare global {
|
|
|
2146
2487
|
resolution?: number,
|
|
2147
2488
|
smooth?: boolean,
|
|
2148
2489
|
): HostPromise<{ face: KFace, resultFaces: KFace[] }[] | undefined>;
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* 检测壳是否是实体
|
|
2494
|
+
*
|
|
2495
|
+
* do check if the shell is a solid body
|
|
2496
|
+
* @param shell
|
|
2497
|
+
*/
|
|
2498
|
+
isShellSolid(shell: KShell): boolean;
|
|
2149
2499
|
}
|
|
2150
2500
|
|
|
2151
2501
|
|
|
@@ -2246,6 +2596,14 @@ declare global {
|
|
|
2246
2596
|
* @return The continuous edge group if successful, otherwise null.
|
|
2247
2597
|
*/
|
|
2248
2598
|
getContinuousEdgeGroup(): KContinuousEdgeGroup | null;
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
*
|
|
2602
|
+
* 获取该边是否可见
|
|
2603
|
+
*
|
|
2604
|
+
* Get the edge property of it is visible or not.
|
|
2605
|
+
*/
|
|
2606
|
+
isVisible(): boolean;
|
|
2249
2607
|
}
|
|
2250
2608
|
|
|
2251
2609
|
/*
|
|
@@ -2451,6 +2809,14 @@ declare global {
|
|
|
2451
2809
|
* @param key : unique key for this kind of custom.
|
|
2452
2810
|
*/
|
|
2453
2811
|
deleteCustomProperty(key: string): { isSuccess: boolean };
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
*
|
|
2815
|
+
* 获取该面是否可见
|
|
2816
|
+
*
|
|
2817
|
+
* Get the face property of it is visible or not.
|
|
2818
|
+
*/
|
|
2819
|
+
isVisible(): boolean;
|
|
2454
2820
|
}
|
|
2455
2821
|
|
|
2456
2822
|
|
|
@@ -2691,6 +3057,7 @@ declare global {
|
|
|
2691
3057
|
* Copyright 2022 Qunhe Tech, all rights reserved.
|
|
2692
3058
|
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
2693
3059
|
*/
|
|
3060
|
+
|
|
2694
3061
|
/**
|
|
2695
3062
|
*
|
|
2696
3063
|
* 组实例
|
|
@@ -2749,6 +3116,7 @@ declare global {
|
|
|
2749
3116
|
getLocalBoundingBox(): KBoundingBox3d;
|
|
2750
3117
|
|
|
2751
3118
|
/**
|
|
3119
|
+
*
|
|
2752
3120
|
* 获取业务数据
|
|
2753
3121
|
*
|
|
2754
3122
|
* Get custom property data.
|
|
@@ -2757,6 +3125,7 @@ declare global {
|
|
|
2757
3125
|
getCustomProperty(key: string): string;
|
|
2758
3126
|
|
|
2759
3127
|
/**
|
|
3128
|
+
*
|
|
2760
3129
|
* 添加业务数据
|
|
2761
3130
|
*
|
|
2762
3131
|
* Set custom property data.
|
|
@@ -2768,6 +3137,7 @@ declare global {
|
|
|
2768
3137
|
setCustomProperty(key: string, data: string): { isSuccess: boolean };
|
|
2769
3138
|
|
|
2770
3139
|
/**
|
|
3140
|
+
*
|
|
2771
3141
|
* 获取该成组上所有的业务数据的key
|
|
2772
3142
|
*
|
|
2773
3143
|
* Get all keys of custom property data which set by current plugin.
|
|
@@ -2776,11 +3146,30 @@ declare global {
|
|
|
2776
3146
|
getAllCustomPropertiesKey(): string[];
|
|
2777
3147
|
|
|
2778
3148
|
/**
|
|
3149
|
+
*
|
|
3150
|
+
* @deprecated:建议使用KGroupInstance.isVisible()
|
|
3151
|
+
*
|
|
2779
3152
|
* 获取该成组是否可见
|
|
2780
3153
|
*
|
|
2781
3154
|
* Get the group property of it is invisible or not.
|
|
2782
3155
|
*/
|
|
2783
3156
|
isInvisible(): boolean;
|
|
3157
|
+
|
|
3158
|
+
/**
|
|
3159
|
+
*
|
|
3160
|
+
* 获取该成组是否可见
|
|
3161
|
+
*
|
|
3162
|
+
* Get the group property of it is visible or not.
|
|
3163
|
+
*/
|
|
3164
|
+
isVisible(): boolean;
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
*
|
|
3168
|
+
* 获取组实例的父组
|
|
3169
|
+
*
|
|
3170
|
+
* Get the parent KGroupDefinition of this.
|
|
3171
|
+
*/
|
|
3172
|
+
getParentGroupDefinition(): KGroupDefinition | undefined;
|
|
2784
3173
|
}
|
|
2785
3174
|
|
|
2786
3175
|
|
|
@@ -3496,7 +3885,7 @@ declare global {
|
|
|
3496
3885
|
* Get the entity's type.
|
|
3497
3886
|
* @returns The entity's type.
|
|
3498
3887
|
*/
|
|
3499
|
-
|
|
3888
|
+
getType(): KTopoType;
|
|
3500
3889
|
|
|
3501
3890
|
/**
|
|
3502
3891
|
*
|
|
@@ -3505,16 +3894,24 @@ declare global {
|
|
|
3505
3894
|
* Retrieve all the involved Faces of this Shell.
|
|
3506
3895
|
* @return The array of Faces.
|
|
3507
3896
|
*/
|
|
3508
|
-
|
|
3897
|
+
getFaces(): KFace[];
|
|
3509
3898
|
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3899
|
+
/**
|
|
3900
|
+
*
|
|
3901
|
+
* 获取所包含的边
|
|
3902
|
+
*
|
|
3903
|
+
* Retrieve all the involved Edges of this Shell.
|
|
3904
|
+
* @return The array of Edges.
|
|
3905
|
+
*/
|
|
3906
|
+
getEdges(): KEdge[];
|
|
3907
|
+
|
|
3908
|
+
/**
|
|
3909
|
+
*
|
|
3910
|
+
* 获取所包含的面和边是否全部可见
|
|
3911
|
+
*
|
|
3912
|
+
* Get whether all the faces and edges contained within shell are visible.
|
|
3913
|
+
*/
|
|
3914
|
+
isVisible(): boolean;
|
|
3518
3915
|
}
|
|
3519
3916
|
|
|
3520
3917
|
/*
|