@kudashi/kds-api 2.14.2 → 2.14.3
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 +300 -300
- package/api.d.ts +66 -24
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -1,300 +1,300 @@
|
|
|
1
|
-
# 酷大师api
|
|
2
|
-
|
|
3
|
-
# api changelog
|
|
4
|
-
|
|
5
|
-
# version 2.13.33(2025-09-16)
|
|
6
|
-
- 新增接口KPublicFontLibrary, 新增方法KAssetLibraryHelper.getPublicFontLibrary, KPublicFontLibrary.getFontList
|
|
7
|
-
- KDesign.createText3d
|
|
8
|
-
- KDesign.addFacesRoundCorner,KDesign.sweepFaceFollowBoundedCurves
|
|
9
|
-
- startOperation,commitOperation,abortOperation, toggleTransactionConfigurations返回报错信息
|
|
10
|
-
- KShell.getVertices
|
|
11
|
-
- KTool方法改为可选
|
|
12
|
-
- KGeomLib.createMatrix4byElements, KMatrix4.elements
|
|
13
|
-
|
|
14
|
-
# version 2.13.35(2025-07-30)
|
|
15
|
-
- KArchFace.getOpening, KArchOpening.getFaces, KArchOpening.getWall, KArchWall.getRooms
|
|
16
|
-
- 新增enum TransactionConfigurations, KDesign.startOperation支持传入TransactionConfigurations
|
|
17
|
-
- KDesign.addFaces增添指定softVertexIndicesArray参数
|
|
18
|
-
|
|
19
|
-
# version 2.13.34(2025-07-18)
|
|
20
|
-
- KDesign.uploadSVG
|
|
21
|
-
- 新增接口KAssetLibraryHelper, KPublicMoldingLibrary, 新增方法KApplication.getAssetLibraryHelper, KAssetLibraryHelper.getPublicMoldingLibrary, KPublicMoldingLibrary.getMoldingProfileList
|
|
22
|
-
|
|
23
|
-
# version 2.13.33(2025-06-24)
|
|
24
|
-
- 支持KApplication.getProductManager获取酷家乐商品库管理器
|
|
25
|
-
- 支持PublicProductLibrary公共商品库
|
|
26
|
-
- sweepFollowEdges && sweepFollowCurves新增可选参数
|
|
27
|
-
|
|
28
|
-
# version 2.13.32(2025-04-28)
|
|
29
|
-
- support setPluginCursor and KAuxiliaryPiecewiseBezierCurve
|
|
30
|
-
|
|
31
|
-
# version 2.13.31(2025-03-18)
|
|
32
|
-
- 新增createPluginModelLibrary
|
|
33
|
-
|
|
34
|
-
# version 2.13.30(2025-02-27)
|
|
35
|
-
- 新增KArchFace, KArchWall, KArchRoom, KArchPillar, KArchOpening相关api
|
|
36
|
-
- 新增KDesign.isShellSolid, KApplicationObserver.onGroupInstanceActivated, KApplicationObserver.onGroupInstanceDeactivated
|
|
37
|
-
|
|
38
|
-
# version 2.13.29(2025-02-20)
|
|
39
|
-
- 新增KGroupInstance.getInstanceParentGroupDefinition
|
|
40
|
-
- 新增KDesign.getEditPathsToGroupInstance KDesign.activateEditPath KDesign.toggleEntitiesVisible
|
|
41
|
-
- 新增isVisible判断模型是否可见
|
|
42
|
-
|
|
43
|
-
# version 2.13.28(2025-02-11)
|
|
44
|
-
- 支持三方插件存储模型库
|
|
45
|
-
- 插件标题支持多语言机制,详情参考: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
|
|
46
|
-
|
|
47
|
-
# version 2.13.27(2028-01-07)
|
|
48
|
-
- KDesign.startOperation和KDesign.commitOperation之间的操作更加兼容undo/redo
|
|
49
|
-
- KGroupInstance.setCustomProperty和KGroupDefinition.setCustomProperty兼容undo/redo
|
|
50
|
-
- 增加KView.getModelSnapshot
|
|
51
|
-
|
|
52
|
-
# version 2.13.26(2024-11-26)
|
|
53
|
-
- 增加KTopoEdge.getKey()
|
|
54
|
-
|
|
55
|
-
# version 2.13.25(2024-11-25)
|
|
56
|
-
- 增加KSurface.getPoint()
|
|
57
|
-
|
|
58
|
-
# version 2.13.25(2024-11-25)
|
|
59
|
-
- 增加KSurface.getPoint()
|
|
60
|
-
|
|
61
|
-
# version 2.13.24
|
|
62
|
-
- deactivateGroupInstance改为异步
|
|
63
|
-
|
|
64
|
-
# version 2.13.23
|
|
65
|
-
- 个人库材质上传限制
|
|
66
|
-
- 增加KDesign.inflateFaces
|
|
67
|
-
|
|
68
|
-
# version 2.13.22
|
|
69
|
-
- 增加KDesign.saveInstanceAsLibraryProject
|
|
70
|
-
|
|
71
|
-
# version 2.13.21
|
|
72
|
-
- 增加KApplicationUI.getSelectControlAxises
|
|
73
|
-
- 增加KGroupInstance.getLocalBoundingBox
|
|
74
|
-
|
|
75
|
-
# version 2.13.20
|
|
76
|
-
- 增加KDesign.enterExpressMode
|
|
77
|
-
|
|
78
|
-
# version 2.13.19
|
|
79
|
-
- 支持插件multiViews
|
|
80
|
-
|
|
81
|
-
# version 2.13.14(2023-0919)
|
|
82
|
-
- 增加KPluginView接口对应multiViews中每个View
|
|
83
|
-
- 增加一些apaas api
|
|
84
|
-
- KApplication.getPluginViewById
|
|
85
|
-
- KApplication.registerMessageHandler
|
|
86
|
-
- KApplication.unRegisterMessageHandler
|
|
87
|
-
- KApplicationUI.toggleSketchToolBar
|
|
88
|
-
- KApplicationUI.togglePropertyPanelVisibility
|
|
89
|
-
- KApplicationUI.switchToCurrentPluginAssetPanel
|
|
90
|
-
- KApplicationUI.injectMenuItems
|
|
91
|
-
- KApplicationUI.injectToolItems
|
|
92
|
-
- KApplicationUI.toggleMaterialReplacePanel
|
|
93
|
-
- KDesign.createInstanceFromAnotherProject
|
|
94
|
-
- KPluginView
|
|
95
|
-
# version 2.13.12(2023-0718)
|
|
96
|
-
- 增加了一些apaas api:
|
|
97
|
-
- KDesign.thickenFaces
|
|
98
|
-
- KDesign.uploadMaterial
|
|
99
|
-
- KTestHelper增加了turnOffShellValidation和undefineShellValidation命令
|
|
100
|
-
|
|
101
|
-
# version 2.13.11(2023-07-0-7)
|
|
102
|
-
- 在KDesign中增加了:
|
|
103
|
-
- exitExpressMode
|
|
104
|
-
|
|
105
|
-
# version 2.13.10(2023-06-20)
|
|
106
|
-
- 在KDesign中增加了:
|
|
107
|
-
- breakGroupReference
|
|
108
|
-
- reparentGroupInstance
|
|
109
|
-
|
|
110
|
-
# version 2.13.9(2023-05-30)
|
|
111
|
-
- 在KDesign中增加了:
|
|
112
|
-
- assignMaterialForEntities()
|
|
113
|
-
- assignDecorationMaterialForEntities()
|
|
114
|
-
- brushDecorationMaterialToEntities()
|
|
115
|
-
- editMaterialParamsOfFace()
|
|
116
|
-
- adjustMaterialMapping()
|
|
117
|
-
- clearMaterial()
|
|
118
|
-
- getFacePavingGroupByFace()
|
|
119
|
-
- 在KCamera中增加了:
|
|
120
|
-
- setPosition()
|
|
121
|
-
- setTarget()
|
|
122
|
-
- 在KPickHelper中增加了:
|
|
123
|
-
- pickByPoint3d()
|
|
124
|
-
- 在KView中增加了:
|
|
125
|
-
- getScreenSnopShot()
|
|
126
|
-
- 添加材质连续对象KFacePavingGroup
|
|
127
|
-
|
|
128
|
-
# version 2.13.7(2023-05-18)
|
|
129
|
-
- 在KFace中增加了:
|
|
130
|
-
- getCustomProperty()
|
|
131
|
-
- setCustomProperty()
|
|
132
|
-
- deleteCustomProperty()
|
|
133
|
-
- 在KGroupDefinition和KGroupInstance中增加了:
|
|
134
|
-
- getCustomProperty()
|
|
135
|
-
- setCustomProperty()
|
|
136
|
-
- getAllCustomPropertiesKey()
|
|
137
|
-
- 在KGroupInstance中增加了:
|
|
138
|
-
- isInvisible()
|
|
139
|
-
- 在KDesign中增加了:
|
|
140
|
-
- shareModel()
|
|
141
|
-
- addFaceHoles()
|
|
142
|
-
- getMaterialOfFace()
|
|
143
|
-
- getMaterialParamsOfFace()
|
|
144
|
-
- findGroupInstancesByAppKey()
|
|
145
|
-
- findGroupInstancesByResource()
|
|
146
|
-
- toggleGroupInstancesVisible()
|
|
147
|
-
- alignShells()
|
|
148
|
-
- flipFace(face: KFace)
|
|
149
|
-
- 在KApplicationObserver中增加了:
|
|
150
|
-
- onModelChanged()
|
|
151
|
-
- 在KApplicationUI中增加了:
|
|
152
|
-
- toggleShowInvisibleModel()
|
|
153
|
-
- getActivePluginEntrancePosition()
|
|
154
|
-
- showPopover()
|
|
155
|
-
- isShownInvisibleModel()
|
|
156
|
-
- 增加了枚举类型:
|
|
157
|
-
- KGroupDefinitionType.Variable来表示变量化成组
|
|
158
|
-
- 在KTestHelper中增加了:
|
|
159
|
-
- purgeMaterialsInDesign()
|
|
160
|
-
- clearAllDecorationMaterials()
|
|
161
|
-
- 更新了math的apaas api版本,引入了很多新类型:
|
|
162
|
-
- "@qunhe/math-apaas-api": "3.0.0",
|
|
163
|
-
- "@qunhe/math-apaas-impl": "3.0.0",
|
|
164
|
-
- 修复了如下问题:
|
|
165
|
-
- boolean()没有导出KBooleanType类型的问题
|
|
166
|
-
- fillet()返回类型不能使用map类型的问题
|
|
167
|
-
- KSelection.getAllEntities()增加了默认参数,来控制是否包含vertex;默认为false保持和原来行为一致
|
|
168
|
-
- 吸附结果中添加了吸附点的normal值
|
|
169
|
-
|
|
170
|
-
# version 2.13.6(2022-11-29)
|
|
171
|
-
- Adjust the parameters of the following APIs:
|
|
172
|
-
- drawArrow3d
|
|
173
|
-
- drawCylinder
|
|
174
|
-
|
|
175
|
-
# version 2.13.5(2022-11-28)
|
|
176
|
-
- Add API:
|
|
177
|
-
- drawArrow3d
|
|
178
|
-
- getShortestPath
|
|
179
|
-
|
|
180
|
-
# version 2.13.4(2022-11-01)
|
|
181
|
-
- Add API:
|
|
182
|
-
- drawCylinder
|
|
183
|
-
- clearTemporaryShapesByIds
|
|
184
|
-
- getYunDesignInfo
|
|
185
|
-
- executeRequest
|
|
186
|
-
- Rebuilding API, change the return value of the following API from boolean to "{ id: string }":
|
|
187
|
-
- drawPoints
|
|
188
|
-
- drawLines
|
|
189
|
-
- drawPolylines
|
|
190
|
-
- drawText
|
|
191
|
-
- drawPromptLine
|
|
192
|
-
|
|
193
|
-
# version 2.13.3
|
|
194
|
-
|
|
195
|
-
# version 2.13.2(2022-07-15)
|
|
196
|
-
- Add KApplication Chinese comment
|
|
197
|
-
- Add KPluginUIAndStorage Chinese comment
|
|
198
|
-
|
|
199
|
-
# version 2.13.2(2022-07-15)
|
|
200
|
-
- Remove the qunhe brep api
|
|
201
|
-
- Add KApplication Chinese comment
|
|
202
|
-
- Add KPluginUIAndStorage Chinese comment
|
|
203
|
-
|
|
204
|
-
# version 2.13.1(2022-02-23)
|
|
205
|
-
- Added KEuler and KQuaternion.
|
|
206
|
-
- Modified the return type of KGeomLib.faces2dBoolean.
|
|
207
|
-
- Added some Chinese comments.
|
|
208
|
-
- Add the KTestHelper class.
|
|
209
|
-
- Add the getTestHelper method in the KApplication class.
|
|
210
|
-
- Add the fillet method in the KDesign class.
|
|
211
|
-
- Add the transformVertices in the KDesign class.
|
|
212
|
-
- Added an API createAlignCCSMatrix4.
|
|
213
|
-
- Add the getHoveredItem method in the KToolHelper class.
|
|
214
|
-
- Add the loadMaterial method in the KDesign class.
|
|
215
|
-
- Add the getBoundingBox method in the KGroupDefinition class.
|
|
216
|
-
- Add the assignMaterialForFaces method in the KDesign class.
|
|
217
|
-
- Add the assignMaterialForGroupInstance method in the KDesign class.
|
|
218
|
-
- Add the isInExpressMode method in the KGroupDefinition class.
|
|
219
|
-
- Add the setExcludedInferenceEntities method in the KToolHelper class.
|
|
220
|
-
- Add the clearExcludedInferenceEntities method in the KToolHelper class.
|
|
221
|
-
- The KApplication.onPluginClosed will be called after 200ms of closing plugin.
|
|
222
|
-
- Add the closable param in the KToastOption.
|
|
223
|
-
- Add the success method in the KToast.
|
|
224
|
-
- Added parameter propagateContinuousEdge in the moveVertices method.
|
|
225
|
-
- Remove the withMerge parameter in the moveVertices method.
|
|
226
|
-
- Remove the withMerge parameter in the moveEdge method.
|
|
227
|
-
- Remove the withMerge parameter in the transformShells method.
|
|
228
|
-
- Make version consistent with KuDaShi.
|
|
229
|
-
- Change KGeomLib.faces2dBoolean API.
|
|
230
|
-
|
|
231
|
-
# version 1.0.26
|
|
232
|
-
- Add the mergeFaces method in the KDesign class.
|
|
233
|
-
- Add the bulkCopyGroupInstances method in the KDesign class.
|
|
234
|
-
- Modify the createInstanceFromExternalResources method in the KDesign class.
|
|
235
|
-
- Add the matchEntities method in the KGroupDefinition class.
|
|
236
|
-
|
|
237
|
-
# version 1.0.25
|
|
238
|
-
- Add the KApplicationObserver class, which provides additional utilities for KApplication.
|
|
239
|
-
- Add the save method in the KDesign class.
|
|
240
|
-
- Add the KToolHelper class, which provides additional utilities for KTool.
|
|
241
|
-
- Add removeEdges and getEditPath two methods in the KDesign class.
|
|
242
|
-
- Add isReversed method in the KFace and KHalfEdge classes.
|
|
243
|
-
- Add drawPolylines method in KView class.
|
|
244
|
-
- Add signedDistanceTo method in KSurface class.
|
|
245
|
-
- Add isOnSameSide method in KVector3d class.
|
|
246
|
-
|
|
247
|
-
## version 1.0.24
|
|
248
|
-
- Add the KPickHelper class, which is used to pick entities.
|
|
249
|
-
|
|
250
|
-
## version 1.0.23
|
|
251
|
-
- Add the setSoftEdgesVisible method in the KDesign class.
|
|
252
|
-
|
|
253
|
-
## version 1.0.22
|
|
254
|
-
- modify parameters of the boolean method in the KDesign class.
|
|
255
|
-
|
|
256
|
-
## version 1.0.21
|
|
257
|
-
- Add the faceSplitByFace method in the KDesign class.
|
|
258
|
-
- Add the faceSplitByGroup method in the KDesign class.
|
|
259
|
-
- Add the createInstanceFromExternalResources method in the KDesign class.
|
|
260
|
-
- Add the createShellFromMesh method in the KDesign class.
|
|
261
|
-
|
|
262
|
-
## version 1.0.20
|
|
263
|
-
- Rename the withMerge argument to beCopyToInstance in the copyFaces method in the KDesign class.
|
|
264
|
-
- Add KApplicationUI interface to enable/disable tool bar, menu bar, resource panel, etc.
|
|
265
|
-
- The copyFaces method in the KDesign class will return group instance if we set withMerge false.
|
|
266
|
-
- Add the createEmptyGroupInstance method in the KDesign class.
|
|
267
|
-
- Add the activateGroupInstance method in the KDesign class.
|
|
268
|
-
- Add the deactivateGroupInstance method in the KDesign class.
|
|
269
|
-
- Add the getDesignId method in the KDesign class.
|
|
270
|
-
|
|
271
|
-
## version 1.0.19
|
|
272
|
-
- Add the onKeyUp method in the KTool class.
|
|
273
|
-
- Add the getUp method in the KCamera class.
|
|
274
|
-
- Rename the 'getCameraMode' method in KCamera to 'getMode'.
|
|
275
|
-
- Rename the 'getCameraPosition' method in KCamera to 'getPosition'.
|
|
276
|
-
- Rename the 'getCameraTarget' method in KCamera to 'getTarget'.
|
|
277
|
-
|
|
278
|
-
## version 1.0.18
|
|
279
|
-
- Add the addFaces method in the KDesign class.
|
|
280
|
-
- Add the setEdgesSoft method in the KDesign class.
|
|
281
|
-
- Add the setVerticesSoft method in the KDesign class.
|
|
282
|
-
- Add the boolean method in the KDesign class.
|
|
283
|
-
- Add the offset method in the KDesign class.
|
|
284
|
-
|
|
285
|
-
## version 1.0.17
|
|
286
|
-
- Modify the KTool to support to get the inference entity and the inference instance path.
|
|
287
|
-
|
|
288
|
-
## version 1.0.16
|
|
289
|
-
- Rename KGeometry to KGeomLib.
|
|
290
|
-
- Add the moveVertices method in the KDesign class.
|
|
291
|
-
- Rename the 'onUseInference' method in KTool to 'allowUsingInference'.
|
|
292
|
-
- Delete the 'startAngle' and 'endAngle' properties from the KArc3d and KArc2d classes.
|
|
293
|
-
- The interfaces to get continuous edges and continuous faces infos are provided in the KEdge and KFace class.
|
|
294
|
-
- The selection event is provided. You can create a selection observer to observe the selection change.
|
|
295
|
-
- Drawing temporary interfaces in the KView class are provided, which can be use to draw temporary shaped in KTool.
|
|
296
|
-
|
|
297
|
-
## version 1.0.15
|
|
298
|
-
- The sweepFollowEdges and sweepFollowCurves methods will remove the face that the contour belongs to.
|
|
299
|
-
- The sweepFollowEdges and sweepFollowCurves methods returns a new parameter 'addedShells'.
|
|
300
|
-
|
|
1
|
+
# 酷大师api
|
|
2
|
+
|
|
3
|
+
# api changelog
|
|
4
|
+
|
|
5
|
+
# version 2.13.33(2025-09-16)
|
|
6
|
+
- 新增接口KPublicFontLibrary, 新增方法KAssetLibraryHelper.getPublicFontLibrary, KPublicFontLibrary.getFontList
|
|
7
|
+
- KDesign.createText3d
|
|
8
|
+
- KDesign.addFacesRoundCorner,KDesign.sweepFaceFollowBoundedCurves
|
|
9
|
+
- startOperation,commitOperation,abortOperation, toggleTransactionConfigurations返回报错信息
|
|
10
|
+
- KShell.getVertices
|
|
11
|
+
- KTool方法改为可选
|
|
12
|
+
- KGeomLib.createMatrix4byElements, KMatrix4.elements
|
|
13
|
+
|
|
14
|
+
# version 2.13.35(2025-07-30)
|
|
15
|
+
- KArchFace.getOpening, KArchOpening.getFaces, KArchOpening.getWall, KArchWall.getRooms
|
|
16
|
+
- 新增enum TransactionConfigurations, KDesign.startOperation支持传入TransactionConfigurations
|
|
17
|
+
- KDesign.addFaces增添指定softVertexIndicesArray参数
|
|
18
|
+
|
|
19
|
+
# version 2.13.34(2025-07-18)
|
|
20
|
+
- KDesign.uploadSVG
|
|
21
|
+
- 新增接口KAssetLibraryHelper, KPublicMoldingLibrary, 新增方法KApplication.getAssetLibraryHelper, KAssetLibraryHelper.getPublicMoldingLibrary, KPublicMoldingLibrary.getMoldingProfileList
|
|
22
|
+
|
|
23
|
+
# version 2.13.33(2025-06-24)
|
|
24
|
+
- 支持KApplication.getProductManager获取酷家乐商品库管理器
|
|
25
|
+
- 支持PublicProductLibrary公共商品库
|
|
26
|
+
- sweepFollowEdges && sweepFollowCurves新增可选参数
|
|
27
|
+
|
|
28
|
+
# version 2.13.32(2025-04-28)
|
|
29
|
+
- support setPluginCursor and KAuxiliaryPiecewiseBezierCurve
|
|
30
|
+
|
|
31
|
+
# version 2.13.31(2025-03-18)
|
|
32
|
+
- 新增createPluginModelLibrary
|
|
33
|
+
|
|
34
|
+
# version 2.13.30(2025-02-27)
|
|
35
|
+
- 新增KArchFace, KArchWall, KArchRoom, KArchPillar, KArchOpening相关api
|
|
36
|
+
- 新增KDesign.isShellSolid, KApplicationObserver.onGroupInstanceActivated, KApplicationObserver.onGroupInstanceDeactivated
|
|
37
|
+
|
|
38
|
+
# version 2.13.29(2025-02-20)
|
|
39
|
+
- 新增KGroupInstance.getInstanceParentGroupDefinition
|
|
40
|
+
- 新增KDesign.getEditPathsToGroupInstance KDesign.activateEditPath KDesign.toggleEntitiesVisible
|
|
41
|
+
- 新增isVisible判断模型是否可见
|
|
42
|
+
|
|
43
|
+
# version 2.13.28(2025-02-11)
|
|
44
|
+
- 支持三方插件存储模型库
|
|
45
|
+
- 插件标题支持多语言机制,详情参考: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
|
|
46
|
+
|
|
47
|
+
# version 2.13.27(2028-01-07)
|
|
48
|
+
- KDesign.startOperation和KDesign.commitOperation之间的操作更加兼容undo/redo
|
|
49
|
+
- KGroupInstance.setCustomProperty和KGroupDefinition.setCustomProperty兼容undo/redo
|
|
50
|
+
- 增加KView.getModelSnapshot
|
|
51
|
+
|
|
52
|
+
# version 2.13.26(2024-11-26)
|
|
53
|
+
- 增加KTopoEdge.getKey()
|
|
54
|
+
|
|
55
|
+
# version 2.13.25(2024-11-25)
|
|
56
|
+
- 增加KSurface.getPoint()
|
|
57
|
+
|
|
58
|
+
# version 2.13.25(2024-11-25)
|
|
59
|
+
- 增加KSurface.getPoint()
|
|
60
|
+
|
|
61
|
+
# version 2.13.24
|
|
62
|
+
- deactivateGroupInstance改为异步
|
|
63
|
+
|
|
64
|
+
# version 2.13.23
|
|
65
|
+
- 个人库材质上传限制
|
|
66
|
+
- 增加KDesign.inflateFaces
|
|
67
|
+
|
|
68
|
+
# version 2.13.22
|
|
69
|
+
- 增加KDesign.saveInstanceAsLibraryProject
|
|
70
|
+
|
|
71
|
+
# version 2.13.21
|
|
72
|
+
- 增加KApplicationUI.getSelectControlAxises
|
|
73
|
+
- 增加KGroupInstance.getLocalBoundingBox
|
|
74
|
+
|
|
75
|
+
# version 2.13.20
|
|
76
|
+
- 增加KDesign.enterExpressMode
|
|
77
|
+
|
|
78
|
+
# version 2.13.19
|
|
79
|
+
- 支持插件multiViews
|
|
80
|
+
|
|
81
|
+
# version 2.13.14(2023-0919)
|
|
82
|
+
- 增加KPluginView接口对应multiViews中每个View
|
|
83
|
+
- 增加一些apaas api
|
|
84
|
+
- KApplication.getPluginViewById
|
|
85
|
+
- KApplication.registerMessageHandler
|
|
86
|
+
- KApplication.unRegisterMessageHandler
|
|
87
|
+
- KApplicationUI.toggleSketchToolBar
|
|
88
|
+
- KApplicationUI.togglePropertyPanelVisibility
|
|
89
|
+
- KApplicationUI.switchToCurrentPluginAssetPanel
|
|
90
|
+
- KApplicationUI.injectMenuItems
|
|
91
|
+
- KApplicationUI.injectToolItems
|
|
92
|
+
- KApplicationUI.toggleMaterialReplacePanel
|
|
93
|
+
- KDesign.createInstanceFromAnotherProject
|
|
94
|
+
- KPluginView
|
|
95
|
+
# version 2.13.12(2023-0718)
|
|
96
|
+
- 增加了一些apaas api:
|
|
97
|
+
- KDesign.thickenFaces
|
|
98
|
+
- KDesign.uploadMaterial
|
|
99
|
+
- KTestHelper增加了turnOffShellValidation和undefineShellValidation命令
|
|
100
|
+
|
|
101
|
+
# version 2.13.11(2023-07-0-7)
|
|
102
|
+
- 在KDesign中增加了:
|
|
103
|
+
- exitExpressMode
|
|
104
|
+
|
|
105
|
+
# version 2.13.10(2023-06-20)
|
|
106
|
+
- 在KDesign中增加了:
|
|
107
|
+
- breakGroupReference
|
|
108
|
+
- reparentGroupInstance
|
|
109
|
+
|
|
110
|
+
# version 2.13.9(2023-05-30)
|
|
111
|
+
- 在KDesign中增加了:
|
|
112
|
+
- assignMaterialForEntities()
|
|
113
|
+
- assignDecorationMaterialForEntities()
|
|
114
|
+
- brushDecorationMaterialToEntities()
|
|
115
|
+
- editMaterialParamsOfFace()
|
|
116
|
+
- adjustMaterialMapping()
|
|
117
|
+
- clearMaterial()
|
|
118
|
+
- getFacePavingGroupByFace()
|
|
119
|
+
- 在KCamera中增加了:
|
|
120
|
+
- setPosition()
|
|
121
|
+
- setTarget()
|
|
122
|
+
- 在KPickHelper中增加了:
|
|
123
|
+
- pickByPoint3d()
|
|
124
|
+
- 在KView中增加了:
|
|
125
|
+
- getScreenSnopShot()
|
|
126
|
+
- 添加材质连续对象KFacePavingGroup
|
|
127
|
+
|
|
128
|
+
# version 2.13.7(2023-05-18)
|
|
129
|
+
- 在KFace中增加了:
|
|
130
|
+
- getCustomProperty()
|
|
131
|
+
- setCustomProperty()
|
|
132
|
+
- deleteCustomProperty()
|
|
133
|
+
- 在KGroupDefinition和KGroupInstance中增加了:
|
|
134
|
+
- getCustomProperty()
|
|
135
|
+
- setCustomProperty()
|
|
136
|
+
- getAllCustomPropertiesKey()
|
|
137
|
+
- 在KGroupInstance中增加了:
|
|
138
|
+
- isInvisible()
|
|
139
|
+
- 在KDesign中增加了:
|
|
140
|
+
- shareModel()
|
|
141
|
+
- addFaceHoles()
|
|
142
|
+
- getMaterialOfFace()
|
|
143
|
+
- getMaterialParamsOfFace()
|
|
144
|
+
- findGroupInstancesByAppKey()
|
|
145
|
+
- findGroupInstancesByResource()
|
|
146
|
+
- toggleGroupInstancesVisible()
|
|
147
|
+
- alignShells()
|
|
148
|
+
- flipFace(face: KFace)
|
|
149
|
+
- 在KApplicationObserver中增加了:
|
|
150
|
+
- onModelChanged()
|
|
151
|
+
- 在KApplicationUI中增加了:
|
|
152
|
+
- toggleShowInvisibleModel()
|
|
153
|
+
- getActivePluginEntrancePosition()
|
|
154
|
+
- showPopover()
|
|
155
|
+
- isShownInvisibleModel()
|
|
156
|
+
- 增加了枚举类型:
|
|
157
|
+
- KGroupDefinitionType.Variable来表示变量化成组
|
|
158
|
+
- 在KTestHelper中增加了:
|
|
159
|
+
- purgeMaterialsInDesign()
|
|
160
|
+
- clearAllDecorationMaterials()
|
|
161
|
+
- 更新了math的apaas api版本,引入了很多新类型:
|
|
162
|
+
- "@qunhe/math-apaas-api": "3.0.0",
|
|
163
|
+
- "@qunhe/math-apaas-impl": "3.0.0",
|
|
164
|
+
- 修复了如下问题:
|
|
165
|
+
- boolean()没有导出KBooleanType类型的问题
|
|
166
|
+
- fillet()返回类型不能使用map类型的问题
|
|
167
|
+
- KSelection.getAllEntities()增加了默认参数,来控制是否包含vertex;默认为false保持和原来行为一致
|
|
168
|
+
- 吸附结果中添加了吸附点的normal值
|
|
169
|
+
|
|
170
|
+
# version 2.13.6(2022-11-29)
|
|
171
|
+
- Adjust the parameters of the following APIs:
|
|
172
|
+
- drawArrow3d
|
|
173
|
+
- drawCylinder
|
|
174
|
+
|
|
175
|
+
# version 2.13.5(2022-11-28)
|
|
176
|
+
- Add API:
|
|
177
|
+
- drawArrow3d
|
|
178
|
+
- getShortestPath
|
|
179
|
+
|
|
180
|
+
# version 2.13.4(2022-11-01)
|
|
181
|
+
- Add API:
|
|
182
|
+
- drawCylinder
|
|
183
|
+
- clearTemporaryShapesByIds
|
|
184
|
+
- getYunDesignInfo
|
|
185
|
+
- executeRequest
|
|
186
|
+
- Rebuilding API, change the return value of the following API from boolean to "{ id: string }":
|
|
187
|
+
- drawPoints
|
|
188
|
+
- drawLines
|
|
189
|
+
- drawPolylines
|
|
190
|
+
- drawText
|
|
191
|
+
- drawPromptLine
|
|
192
|
+
|
|
193
|
+
# version 2.13.3
|
|
194
|
+
|
|
195
|
+
# version 2.13.2(2022-07-15)
|
|
196
|
+
- Add KApplication Chinese comment
|
|
197
|
+
- Add KPluginUIAndStorage Chinese comment
|
|
198
|
+
|
|
199
|
+
# version 2.13.2(2022-07-15)
|
|
200
|
+
- Remove the qunhe brep api
|
|
201
|
+
- Add KApplication Chinese comment
|
|
202
|
+
- Add KPluginUIAndStorage Chinese comment
|
|
203
|
+
|
|
204
|
+
# version 2.13.1(2022-02-23)
|
|
205
|
+
- Added KEuler and KQuaternion.
|
|
206
|
+
- Modified the return type of KGeomLib.faces2dBoolean.
|
|
207
|
+
- Added some Chinese comments.
|
|
208
|
+
- Add the KTestHelper class.
|
|
209
|
+
- Add the getTestHelper method in the KApplication class.
|
|
210
|
+
- Add the fillet method in the KDesign class.
|
|
211
|
+
- Add the transformVertices in the KDesign class.
|
|
212
|
+
- Added an API createAlignCCSMatrix4.
|
|
213
|
+
- Add the getHoveredItem method in the KToolHelper class.
|
|
214
|
+
- Add the loadMaterial method in the KDesign class.
|
|
215
|
+
- Add the getBoundingBox method in the KGroupDefinition class.
|
|
216
|
+
- Add the assignMaterialForFaces method in the KDesign class.
|
|
217
|
+
- Add the assignMaterialForGroupInstance method in the KDesign class.
|
|
218
|
+
- Add the isInExpressMode method in the KGroupDefinition class.
|
|
219
|
+
- Add the setExcludedInferenceEntities method in the KToolHelper class.
|
|
220
|
+
- Add the clearExcludedInferenceEntities method in the KToolHelper class.
|
|
221
|
+
- The KApplication.onPluginClosed will be called after 200ms of closing plugin.
|
|
222
|
+
- Add the closable param in the KToastOption.
|
|
223
|
+
- Add the success method in the KToast.
|
|
224
|
+
- Added parameter propagateContinuousEdge in the moveVertices method.
|
|
225
|
+
- Remove the withMerge parameter in the moveVertices method.
|
|
226
|
+
- Remove the withMerge parameter in the moveEdge method.
|
|
227
|
+
- Remove the withMerge parameter in the transformShells method.
|
|
228
|
+
- Make version consistent with KuDaShi.
|
|
229
|
+
- Change KGeomLib.faces2dBoolean API.
|
|
230
|
+
|
|
231
|
+
# version 1.0.26
|
|
232
|
+
- Add the mergeFaces method in the KDesign class.
|
|
233
|
+
- Add the bulkCopyGroupInstances method in the KDesign class.
|
|
234
|
+
- Modify the createInstanceFromExternalResources method in the KDesign class.
|
|
235
|
+
- Add the matchEntities method in the KGroupDefinition class.
|
|
236
|
+
|
|
237
|
+
# version 1.0.25
|
|
238
|
+
- Add the KApplicationObserver class, which provides additional utilities for KApplication.
|
|
239
|
+
- Add the save method in the KDesign class.
|
|
240
|
+
- Add the KToolHelper class, which provides additional utilities for KTool.
|
|
241
|
+
- Add removeEdges and getEditPath two methods in the KDesign class.
|
|
242
|
+
- Add isReversed method in the KFace and KHalfEdge classes.
|
|
243
|
+
- Add drawPolylines method in KView class.
|
|
244
|
+
- Add signedDistanceTo method in KSurface class.
|
|
245
|
+
- Add isOnSameSide method in KVector3d class.
|
|
246
|
+
|
|
247
|
+
## version 1.0.24
|
|
248
|
+
- Add the KPickHelper class, which is used to pick entities.
|
|
249
|
+
|
|
250
|
+
## version 1.0.23
|
|
251
|
+
- Add the setSoftEdgesVisible method in the KDesign class.
|
|
252
|
+
|
|
253
|
+
## version 1.0.22
|
|
254
|
+
- modify parameters of the boolean method in the KDesign class.
|
|
255
|
+
|
|
256
|
+
## version 1.0.21
|
|
257
|
+
- Add the faceSplitByFace method in the KDesign class.
|
|
258
|
+
- Add the faceSplitByGroup method in the KDesign class.
|
|
259
|
+
- Add the createInstanceFromExternalResources method in the KDesign class.
|
|
260
|
+
- Add the createShellFromMesh method in the KDesign class.
|
|
261
|
+
|
|
262
|
+
## version 1.0.20
|
|
263
|
+
- Rename the withMerge argument to beCopyToInstance in the copyFaces method in the KDesign class.
|
|
264
|
+
- Add KApplicationUI interface to enable/disable tool bar, menu bar, resource panel, etc.
|
|
265
|
+
- The copyFaces method in the KDesign class will return group instance if we set withMerge false.
|
|
266
|
+
- Add the createEmptyGroupInstance method in the KDesign class.
|
|
267
|
+
- Add the activateGroupInstance method in the KDesign class.
|
|
268
|
+
- Add the deactivateGroupInstance method in the KDesign class.
|
|
269
|
+
- Add the getDesignId method in the KDesign class.
|
|
270
|
+
|
|
271
|
+
## version 1.0.19
|
|
272
|
+
- Add the onKeyUp method in the KTool class.
|
|
273
|
+
- Add the getUp method in the KCamera class.
|
|
274
|
+
- Rename the 'getCameraMode' method in KCamera to 'getMode'.
|
|
275
|
+
- Rename the 'getCameraPosition' method in KCamera to 'getPosition'.
|
|
276
|
+
- Rename the 'getCameraTarget' method in KCamera to 'getTarget'.
|
|
277
|
+
|
|
278
|
+
## version 1.0.18
|
|
279
|
+
- Add the addFaces method in the KDesign class.
|
|
280
|
+
- Add the setEdgesSoft method in the KDesign class.
|
|
281
|
+
- Add the setVerticesSoft method in the KDesign class.
|
|
282
|
+
- Add the boolean method in the KDesign class.
|
|
283
|
+
- Add the offset method in the KDesign class.
|
|
284
|
+
|
|
285
|
+
## version 1.0.17
|
|
286
|
+
- Modify the KTool to support to get the inference entity and the inference instance path.
|
|
287
|
+
|
|
288
|
+
## version 1.0.16
|
|
289
|
+
- Rename KGeometry to KGeomLib.
|
|
290
|
+
- Add the moveVertices method in the KDesign class.
|
|
291
|
+
- Rename the 'onUseInference' method in KTool to 'allowUsingInference'.
|
|
292
|
+
- Delete the 'startAngle' and 'endAngle' properties from the KArc3d and KArc2d classes.
|
|
293
|
+
- The interfaces to get continuous edges and continuous faces infos are provided in the KEdge and KFace class.
|
|
294
|
+
- The selection event is provided. You can create a selection observer to observe the selection change.
|
|
295
|
+
- Drawing temporary interfaces in the KView class are provided, which can be use to draw temporary shaped in KTool.
|
|
296
|
+
|
|
297
|
+
## version 1.0.15
|
|
298
|
+
- The sweepFollowEdges and sweepFollowCurves methods will remove the face that the contour belongs to.
|
|
299
|
+
- The sweepFollowEdges and sweepFollowCurves methods returns a new parameter 'addedShells'.
|
|
300
|
+
|
package/api.d.ts
CHANGED
|
@@ -645,7 +645,19 @@ declare global {
|
|
|
645
645
|
*
|
|
646
646
|
* The relative placement of popover to the mount point
|
|
647
647
|
*/
|
|
648
|
-
type KPopoverPlacement =
|
|
648
|
+
type KPopoverPlacement =
|
|
649
|
+
| 'top'
|
|
650
|
+
| 'bottom'
|
|
651
|
+
| 'left'
|
|
652
|
+
| 'right'
|
|
653
|
+
| 'topLeft'
|
|
654
|
+
| 'topRight'
|
|
655
|
+
| 'bottomLeft'
|
|
656
|
+
| 'bottomRight'
|
|
657
|
+
| 'leftTop'
|
|
658
|
+
| 'leftBottom'
|
|
659
|
+
| 'rightTop'
|
|
660
|
+
| 'rightBottom';
|
|
649
661
|
|
|
650
662
|
/**
|
|
651
663
|
*
|
|
@@ -740,13 +752,15 @@ declare global {
|
|
|
740
752
|
* @param visibleFilter when the item should be visible
|
|
741
753
|
* @param onClick the click callback of item
|
|
742
754
|
*/
|
|
743
|
-
injectMenuItems(
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
755
|
+
injectMenuItems(
|
|
756
|
+
menuItems: {
|
|
757
|
+
icon: string;
|
|
758
|
+
title: string;
|
|
759
|
+
disabledFilter?: () => boolean;
|
|
760
|
+
visibleFilter?: () => boolean;
|
|
761
|
+
onClick: () => void;
|
|
762
|
+
}[]
|
|
763
|
+
): void;
|
|
750
764
|
|
|
751
765
|
/**
|
|
752
766
|
* 注入工具栏工具选项
|
|
@@ -759,13 +773,15 @@ declare global {
|
|
|
759
773
|
* @param visibleFilter when the item should be visible
|
|
760
774
|
* @param onClick the click callback of item
|
|
761
775
|
*/
|
|
762
|
-
injectToolItems(
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
776
|
+
injectToolItems(
|
|
777
|
+
menuItems: {
|
|
778
|
+
icon: string;
|
|
779
|
+
title: string;
|
|
780
|
+
disabledFilter?: () => boolean;
|
|
781
|
+
visibleFilter?: () => boolean;
|
|
782
|
+
onClick: () => void;
|
|
783
|
+
}[]
|
|
784
|
+
): void;
|
|
769
785
|
|
|
770
786
|
/**
|
|
771
787
|
* 显示实时材质编辑窗口
|
|
@@ -774,7 +790,10 @@ declare global {
|
|
|
774
790
|
* @param materialId material's id to edit.
|
|
775
791
|
* @param onSaveRealtimeMaterial the callback when material edit successful and has been saved.
|
|
776
792
|
*/
|
|
777
|
-
showRealTimeMaterialEditor(
|
|
793
|
+
showRealTimeMaterialEditor(
|
|
794
|
+
materialId: string,
|
|
795
|
+
onSaveRealtimeMaterial: (error?: any, data?: any) => void
|
|
796
|
+
): void;
|
|
778
797
|
|
|
779
798
|
/**
|
|
780
799
|
* 在酷大师中显示支付弹窗
|
|
@@ -786,12 +805,12 @@ declare global {
|
|
|
786
805
|
togglePaymentVisible(
|
|
787
806
|
visible: boolean,
|
|
788
807
|
config?: {
|
|
789
|
-
feid: string
|
|
790
|
-
title: string
|
|
791
|
-
kioid: string
|
|
792
|
-
hunterid?: string
|
|
793
|
-
onSuccess?: (result: { obsOrderId: string }) => void
|
|
794
|
-
onClose?: () => void
|
|
808
|
+
feid: string;
|
|
809
|
+
title: string;
|
|
810
|
+
kioid: string;
|
|
811
|
+
hunterid?: string;
|
|
812
|
+
onSuccess?: (result: { obsOrderId: string }) => void;
|
|
813
|
+
onClose?: () => void;
|
|
795
814
|
}
|
|
796
815
|
): void;
|
|
797
816
|
|
|
@@ -803,7 +822,11 @@ declare global {
|
|
|
803
822
|
* @param onSoftMaterialClick is the callback when choose a soft material.
|
|
804
823
|
* @param defaultPosition default position of the panel, with x and y coordinates(When x=0, the panel is aligned to the right; increasing x moves the panel to the left)
|
|
805
824
|
*/
|
|
806
|
-
toggleMaterialReplacePanel(
|
|
825
|
+
toggleMaterialReplacePanel(
|
|
826
|
+
visible: boolean,
|
|
827
|
+
onSoftMaterialClick?: (materialId: string, bgid: string) => void,
|
|
828
|
+
defaultPosition?: { x: number; y: number }
|
|
829
|
+
): void;
|
|
807
830
|
|
|
808
831
|
/**
|
|
809
832
|
* 获取SelectControl控件当前的三轴方向
|
|
@@ -824,6 +847,17 @@ declare global {
|
|
|
824
847
|
*/
|
|
825
848
|
setCursorIcon(icon: string): boolean;
|
|
826
849
|
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* 设置footer的操作条(2d/3d,现实模式操作按钮)向右的偏移量,仅在CustomTool激活时生效, 避免插件遮挡
|
|
853
|
+
*
|
|
854
|
+
* take effect only when CustomTool is active
|
|
855
|
+
*
|
|
856
|
+
* @param
|
|
857
|
+
*
|
|
858
|
+
*/
|
|
859
|
+
setFooterViewBarOffset(offset: number): void;
|
|
860
|
+
|
|
827
861
|
/**
|
|
828
862
|
* 获取所有控件
|
|
829
863
|
*
|
|
@@ -874,7 +908,8 @@ declare global {
|
|
|
874
908
|
* @returns 设置的菜单上方快捷按钮控件实例 (Set select menu title widget instance)
|
|
875
909
|
*/
|
|
876
910
|
setSelectMenuTitleWidget(options: KSelectMenuTitleWidgetOptions): KSelectMenuTitleWidget;
|
|
877
|
-
}
|
|
911
|
+
}
|
|
912
|
+
|
|
878
913
|
|
|
879
914
|
/*
|
|
880
915
|
* KArchFace.ts
|
|
@@ -4598,6 +4633,13 @@ declare global {
|
|
|
4598
4633
|
* @returns
|
|
4599
4634
|
*/
|
|
4600
4635
|
postMessage(data: any, origin?: string): void
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* view是否使用最大高度 将会覆盖size.y
|
|
4639
|
+
* @param viewId
|
|
4640
|
+
* @param useMaxHeight
|
|
4641
|
+
*/
|
|
4642
|
+
pluginViewUseMaxHeight(viewId: string, useMaxHeight: boolean): void;
|
|
4601
4643
|
}
|
|
4602
4644
|
|
|
4603
4645
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kudashi/kds-api",
|
|
3
|
-
"version": "2.14.
|
|
4
|
-
"description": "kds api",
|
|
5
|
-
"main": "api.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"typings": "api.d.ts",
|
|
10
|
-
"files": [
|
|
11
|
-
"api.d.ts"
|
|
12
|
-
],
|
|
13
|
-
"keywords": [
|
|
14
|
-
"kds"
|
|
15
|
-
],
|
|
16
|
-
"author": "kds",
|
|
17
|
-
"license": "ISC"
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@kudashi/kds-api",
|
|
3
|
+
"version": "2.14.3",
|
|
4
|
+
"description": "kds api",
|
|
5
|
+
"main": "api.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"typings": "api.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"api.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"kds"
|
|
15
|
+
],
|
|
16
|
+
"author": "kds",
|
|
17
|
+
"license": "ISC"
|
|
18
|
+
}
|