@manycore/custom-sdk 1.0.0-rc.0 → 1.0.1-rc.2

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.css CHANGED
@@ -117,7 +117,7 @@ html,body{margin:0;width:100%;height:100%;font-size:16px;color:#333;line-height:
117
117
  .krc-message-notice{position:relative;left:50%;transform:translateX(-50%);display:inline-block;min-width:330px;height:42px;border-radius:4px;background:#fff;box-shadow:0 4px 20px 0 rgba(62,129,247,.2),0 16px 20px 0 rgba(0,0,0,.1);white-space:nowrap;text-align:left;pointer-events:auto}.krc-message-notice .krc-message-notice-icon-wp{position:relative;display:inline-block;box-sizing:border-box;width:42px;height:42px;border-radius:4px 0 0 4px}.krc-message-notice .krc-message-notice-icon-wp .krc-message-notice-icon{display:block;width:100%;height:100%;transform:scale(0.5)}.krc-message-notice .krc-message-notice-content{position:relative;display:inline-block;box-sizing:border-box;padding:0 48px 0 20px;max-width:480px;line-height:42px;font-size:16px;color:#828ba5;vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.krc-message-notice .krc-message-notice-close{position:absolute;width:42px;height:42px;right:0;top:0;z-index:1;cursor:pointer}.krc-message-notice .krc-message-notice-close:before,.krc-message-notice .krc-message-notice-close:after{content:"";position:absolute;width:14px;height:1px;background:#999;top:20px;left:14px}.krc-message-notice .krc-message-notice-close:before{transform:rotate(135deg)}.krc-message-notice .krc-message-notice-close:after{transform:rotate(45deg)}
118
118
  .krc-message-wp{position:fixed;z-index:9999;top:0;left:0;width:100%;pointer-events:none}
119
119
  .krc-notice-transition-enter{opacity:0;transform:translateY(-50px)}.krc-notice-transition-enter-active{opacity:1;transform:translateY(0);transition:opacity .3s,transform .3s;transition-timing-function:cubic-bezier(0.25, 0.61, 0.51, 0.93)}.krc-notice-transition-leave{opacity:1}.krc-notice-transition-leave-active{opacity:0;transition:opacity .3s;transition-timing-function:cubic-bezier(0.25, 0.61, 0.51, 0.93)}
120
- .error .error-icon-wp{background:#f40}.error .error-icon-wp .error-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/error.fafcfa23.png)}.info .info-icon-wp{background:#828ba5}.info .info-icon-wp .info-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/info.ce7bc1c7.png)}.warning .warning-icon-wp{background:#fa0}.warning .warning-icon-wp .warning-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/warning.a6e8e0ee.png)}.success .success-icon-wp{background:#1bbc9b}.success .success-icon-wp .success-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/success.b0a9caae.png)}.loading .loading-icon-wp{background:#fff}.loading .loading-icon-wp .loading-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/loading.a9ac4a92.png)}.loading .loading-icon-wp{border-right:1px solid #bec6da}.loading .loading-icon-wp .loading-icon{animation:icon-loading-anime 2s infinite linear}@keyframes icon-loading-anime{0%{transform:rotate(0) scale(0.5)}100%{transform:rotate(360deg) scale(0.5)}}
120
+ .error .error-icon-wp{background:#f40}.error .error-icon-wp .error-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/error.3d43b943.png)}.info .info-icon-wp{background:#828ba5}.info .info-icon-wp .info-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/info.76911618.png)}.warning .warning-icon-wp{background:#fa0}.warning .warning-icon-wp .warning-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/warning.663cd002.png)}.success .success-icon-wp{background:#1bbc9b}.success .success-icon-wp .success-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/success.646b3ea1.png)}.loading .loading-icon-wp{background:#fff}.loading .loading-icon-wp .loading-icon{background:no-repeat center;background-image:url(https://qhstaticssl.kujiale.com/custom/order/split/cos/loading.13ad8463.png)}.loading .loading-icon-wp{border-right:1px solid #bec6da}.loading .loading-icon-wp .loading-icon{animation:icon-loading-anime 2s infinite linear}@keyframes icon-loading-anime{0%{transform:rotate(0) scale(0.5)}100%{transform:rotate(360deg) scale(0.5)}}
121
121
  .krc-input{display:inline-block;position:relative}.krc-input input{color:#333;border:solid 1px #ddd;box-sizing:border-box;display:inline-block;height:40px;line-height:40px;padding:10px 12px;outline:none;font-size:14px}.krc-input input:focus{border-color:#3b78e7}.krc-input input:focus+.accessaries .clear-button{display:inline-block}.krc-input input.invalid{border-color:#ee001d;color:#ee001d}.krc-input input[disabled]{border-color:#ddd;background-color:#f7f7f7;color:#999}.krc-input input::-webkit-input-placeholder{color:#ccc}.krc-input input::-moz-placeholder{color:#ccc}.krc-input input:-ms-input-placeholder{color:#ccc}.krc-input input:-moz-placeholder{color:#ccc}.krc-input .input-wrapper{position:relative}.krc-input .accessaries{position:absolute;right:12px;top:50%;height:40px;transform:translate(0, -50%)}.krc-input .accessaries>*{height:40px;line-height:40px}.krc-input .clear-button{display:none;position:relative;overflow:hidden;padding-left:13px}.krc-input .clear-button .cross{cursor:pointer;color:#fff;border-radius:50%;background:#ddd;width:16px;height:16px;text-align:center;line-height:15px;position:relative;left:50%;top:50%;transform:translate(-50%, -50%)}.krc-input .clear-button .cross:hover{background:#3b78e7}
122
122
  .krc-message-notice.notification.prompt{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.krc-message-notice.notification.prompt .krc-message-notice-content{width:448px}.krc-message-notice.notification.prompt .krc-message-notice-close{top:6px}.prompt-content{width:100%}.prompt-content .title{font-size:16px;line-height:24px;box-sizing:border-box;height:55px;padding:20px 40px 20px 20px;font-weight:400;color:#323232;border-bottom:1px solid #ddd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prompt-content .content{padding:30px 40px}.prompt-content .content label{font-size:16px;line-height:24px;padding-right:15px;font-weight:400;color:#666}.prompt-content .content .krc-input input{padding-right:36px;width:246px;height:36px;line-height:36px}.prompt-content .content.invalid .krc-input input{border-color:#fa5048}.prompt-content .footer{padding:20px;background-color:#f5f5f5;text-align:right}
123
123
  .krc-message-notice.notification{height:auto;min-width:auto;box-shadow:0 4px 20px rgba(62,129,247,.2),0 16px 20px 0 rgba(0,0,0,.1)}.krc-message-notice.notification .krc-message-notice-content{padding:0;line-height:18px}.krc-message-notice.notification .krc-message-notice-icon-wp{display:none}.krc-message-notice.notification .krc-button{margin:0 5px}.krc-message-notice.loading .loading-icon-wp{border-right:none}.krc-message-notice.info .info-icon-wp{background-color:#3e82f7}.krc-message-notice .krc-message-notice-content{max-width:480px;color:#666;margin-right:10px}.krc-message-notice .krc-message-notice-content a{color:#3e82f7;text-decoration:underline;cursor:pointer}.krc-message-wp.has-mask{height:100%;z-index:1000;background-color:rgba(0,0,0,.6);pointer-events:auto}
@@ -136,7 +136,7 @@ html,body{margin:0;width:100%;height:100%;font-size:16px;color:#333;line-height:
136
136
  .tooltip-clean.krc-tooltip.krc-tooltip-placement-right .krc-tooltip-content:before,.tooltip-clean.krc-tooltip.krc-tooltip-placement-left .krc-tooltip-content:before{margin-left:0}.tooltip-clean.krc-tooltip.krc-tooltip-placement-top .krc-tooltip-content:before,.tooltip-clean.krc-tooltip.krc-tooltip-placement-bottom .krc-tooltip-content:before{margin-top:-5px}.tooltip-clean.krc-tooltip .krc-tooltip-content{padding:0;border:none;border-radius:4px}.tooltip-clean.krc-tooltip .krc-tooltip-content:before{border:none}
137
137
  .tree-selector{width:100%}.tree-selector .title{font-size:14px;line-height:22px;font-weight:600;color:#323232;border-left:solid 4px #3e82f7;padding-left:8px;cursor:pointer;line-height:1}.tree-selector .title:hover,.tree-selector .title.selected{color:#3e82f7}.tree-selector .select-items{line-height:1;padding-top:10px;width:100%;padding-left:6px;box-sizing:border-box;overflow:hidden;word-break:break-word}.tree-selector .select-items .select-item{font-size:12px;line-height:18px;display:inline-block;box-sizing:border-box;padding:6px;color:#666;margin-right:10px;cursor:pointer}.tree-selector .select-items .select-item.hot-query-word{color:#f60}.tree-selector .select-items .select-item.selected{box-sizing:border-box;padding:5px;border:1px solid #3e82f7;border-radius:2px;color:#3e82f7}.tree-selector .select-items .select-item.selected.hot-query-word{padding:5px;border:1px solid #f60;border-radius:2px;color:#e55b00}.tree-selector .select-items .select-item:hover{background-color:#f5f5f5}.tree-selector .select-items .select-item:hover.selected{background-color:initial}
138
138
  .validatablde-input-container{display:inline-block;position:relative;height:28px;line-height:28px}.validatablde-input-container input{display:inline-block;padding:0 5px;padding-right:22px;box-sizing:border-box;height:100%;width:100%;border:1px solid #ddd}.validatablde-input-container input:focus{border:1px solid #3e82f7}.validatablde-input-container input:focus.invalid{border:1px solid #fa5048}.validatablde-input-container .confirm-button{box-sizing:border-box;position:absolute;width:28px;height:28px;right:0;text-align:center}.validatablde-input-container.focused .confirm-button{color:#3e82f7}
139
- .scene3D_2iOIu,.rightPanel_ABX5u,.toolbox_qf1Pw{position:absolute;box-sizing:border-box}.scene3D_2iOIu{width:calc(100% - 274px);height:100%;top:0;left:0;overflow:hidden}.scene3D_2iOIu canvas:focus{outline:none}.rightPanel_ABX5u{width:274px;height:100%;top:0;right:0;background:var(--color_contrast__primary);overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;-ms-scroll-chaining:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.empty_1d76R{background:var(--color_background__light1)}.empty_1d76R>p{font-size:16px;color:var(--color_text__tertiary)}.toolbox_qf1Pw{width:calc(100% - 274px);height:48px;left:2.3%;bottom:3.1%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.tui-toast{box-shadow:var(--shadow__medium)}.tui-toast-message{line-height:20px}
139
+ .scene3D_Wr76d,.rightPanel_DwEHe,.toolbox_2wgM2{position:absolute;box-sizing:border-box}.scene3D_Wr76d{width:calc(100% - 274px);height:100%;top:0;left:0;overflow:hidden}.scene3D_Wr76d canvas:focus{outline:none}.rightPanel_DwEHe{width:274px;height:100%;top:0;right:0;background:var(--color_contrast__primary);overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;-ms-scroll-chaining:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.empty_1vryV{background:var(--color_background__light1)}.empty_1vryV>p{font-size:16px;color:var(--color_text__tertiary)}.toolbox_2wgM2{width:calc(100% - 274px);height:48px;left:2.3%;bottom:3.1%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.tui-toast{box-shadow:var(--shadow__medium)}.tui-toast-message{line-height:20px}
140
140
  .no-transit{transition:none !important}[class$=-enter-active],[class$=-exit-active]{transition:.25s}.fade-enter,.fade-exit-active{opacity:0}.flip-enter,.flip-exit-active{transform:translate3d(0, 30%, 0);opacity:0}.slip-enter,.slip-exit-active{transform:translate3d(-100%, 0, 0);opacity:0}.slide-enter,.slide-exit-active{transform:translate3d(100%, 0, 0);opacity:0}.fold-enter,.fold-exit-active{height:0;transform:rotate3d(1, 0, 0, -90deg);opacity:0}
141
- .empty_BKdi3{display:flex;height:100%;min-height:150px;box-sizing:border-box;flex-direction:column;justify-content:center;text-align:center}.empty_BKdi3>img{max-width:80%;max-height:80%;margin:15px auto}.empty_BKdi3>p{margin:0 0 15px;font-size:12px;color:var(--color_text__secondary)}
142
- .app-layout-root-container_2BmVM{width:100%}
141
+ .empty_2QIEl{display:flex;height:100%;min-height:150px;box-sizing:border-box;flex-direction:column;justify-content:center;text-align:center}.empty_2QIEl>img{max-width:80%;max-height:80%;margin:15px auto}.empty_2QIEl>p{margin:0 0 15px;font-size:12px;color:var(--color_text__secondary)}
142
+ .app-layout-root-container_1ueoP{width:100%}
package/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
+ import { EToolType } from '@qunhe/custom-miniapp-sdk';
1
2
  import { IExportModelData } from '@manycore/custom-miniapp-sdk';
3
+ import { ITopParamModelDataResponse } from '@qunhe/custom-miniapp-sdk';
4
+ import { ITopParamModelList } from '@qunhe/custom-miniapp-sdk';
5
+ import { ITopParamModelListOption } from '@qunhe/custom-miniapp-sdk';
2
6
  import { Number3 } from '@manycore/custom-miniapp-sdk';
3
7
 
4
8
  export declare class Application {
@@ -13,7 +17,7 @@ export declare class Application {
13
17
  * @param resource
14
18
  */
15
19
  initLange(lang?: string, resource?: {}): void;
16
- stop(): void;
20
+ stop(): Promise<void>;
17
21
  getService<T extends BaseService>(serv: {
18
22
  new (): T;
19
23
  }): T;
@@ -103,6 +107,8 @@ export declare enum ESelectedType {
103
107
  CASBIN = 2
104
108
  }
105
109
 
110
+ export { EToolType }
111
+
106
112
  export declare class FittingDesignService extends BaseService {
107
113
  /**
108
114
  * 设置孔槽方案自动保存
@@ -149,7 +155,7 @@ export declare class FittingDesignService extends BaseService {
149
155
  *
150
156
  * @param timeout
151
157
  */
152
- clearDesign(timeout?: number): Promise<void>;
158
+ clearDesign(options?: IBaseOptions): Promise<void>;
153
159
  }
154
160
 
155
161
  /**
@@ -226,6 +232,24 @@ export declare class FittingDesignService extends BaseService {
226
232
  * 交接体的shell数据
227
233
  */
228
234
  shell?: string;
235
+ /**
236
+ * 交接体版面是否需要开槽
237
+ */
238
+ needGroove?: boolean;
239
+ }
240
+
241
+ /**
242
+ * 获取模型数据/交界面/体数据参数
243
+ */
244
+ export declare interface IBaseOptions {
245
+ /**
246
+ * 超时时间
247
+ */
248
+ timeout?: number;
249
+ /**
250
+ * 模型ID
251
+ */
252
+ modelId?: string;
229
253
  }
230
254
 
231
255
  /**
@@ -377,19 +401,30 @@ export declare class FittingDesignService extends BaseService {
377
401
  plankFaceIds?: number[];
378
402
  }
379
403
 
404
+ export { ITopParamModelDataResponse }
405
+
406
+ export { ITopParamModelList }
407
+
408
+ export { ITopParamModelListOption }
409
+
380
410
  export declare class ModelService extends BaseService {
381
411
  /**
382
412
  * 获取当前整个模型数据信息
383
413
  *
384
414
  * @param timeout
385
415
  */
386
- getParamData(timeout?: number): Promise<any>;
416
+ getParamData(options?: IBaseOptions): Promise<any>;
387
417
  /**
388
418
  * 获取交接面信息
389
419
  *
390
420
  * @param timeout
391
421
  */
392
- getParamIntersected(timeout?: number): Promise<IIntersectedResult>;
422
+ getParamIntersected(options?: IBaseOptions): Promise<IIntersectedResult>;
423
+ /**
424
+ * 获取方案顶层模型列表
425
+ * @param options
426
+ */
427
+ getTopParamModels(options?: ITopParamModelListOption): Promise<ITopParamModelDataResponse>;
393
428
  }
394
429
 
395
430
  export declare class ModelViewerSelectionService extends BaseService {