@manycore/custom-sdk 1.0.1-rc.1 → 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/1.index.js CHANGED
@@ -1,4 +1,4 @@
1
- (window.webpackJsonpapp=window.webpackJsonpapp||[]).push([[1],{3142:function(t,e,s){var i,a;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}a=window||{},void 0===(i=function(){return function(t){var e,s,i="http://www.w3.org/2000/svg",a="",n=!0,h=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=(Math.round,Math.pow),l=Math.sqrt,p=(Math.abs,Math.floor),f=(Math.max,Math.min),m={};(function(){var t,e=Object.getOwnPropertyNames(Math),s=e.length;for(t=0;t<s;t+=1)m[e[t]]=Math[e[t]]})(),m.random=Math.random,m.abs=function(t){if("object"===r(t)&&t.length){var e,s=Array.apply(null,{length:t.length}),i=t.length;for(e=0;e<i;e+=1)s[e]=Math.abs(t[e]);return s}return Math.abs(t)};var d=150,c=Math.PI/180;function u(t){s=t?Math.round:function(t){return t}}function g(t){return Math.round(1e4*t)/1e4}function y(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=i<0?-1:1}function v(t,e){this.type=t,this.direction=e<0?-1:1}function b(t,e,s,i){this.type=t,this.currentLoop=e,this.totalLoops=s,this.direction=i<0?-1:1}function k(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}function A(t,e){this.type=t,this.target=e}function P(t,e){var s;void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var i="";for(s=t;s>0;--s)i+=e[Math.round(Math.random()*(e.length-1))];return i}function E(t,e,s){var i,a,r,n,h,o,l,p;switch(1===arguments.length&&(e=t.s,s=t.v,t=t.h),o=s*(1-e),l=s*(1-(h=6*t-(n=Math.floor(6*t)))*e),p=s*(1-(1-h)*e),n%6){case 0:i=s,a=p,r=o;break;case 1:i=l,a=s,r=o;break;case 2:i=o,a=s,r=p;break;case 3:i=o,a=l,r=s;break;case 4:i=p,a=o,r=s;break;case 5:i=s,a=o,r=l}return[i,a,r]}function M(t,e,s){1===arguments.length&&(e=t.g,s=t.b,t=t.r);var i,a=Math.max(t,e,s),r=Math.min(t,e,s),n=a-r,h=0===a?0:n/a,o=a/255;switch(a){case r:i=0;break;case t:i=e-s+n*(e<s?6:0),i/=6*n;break;case e:i=s-t+2*n,i/=6*n;break;case s:i=t-e+4*n,i/=6*n}return[i,h,o]}function _(t,e){var s=M(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),E(s[0],s[1],s[2])}function S(t,e){var s=M(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),E(s[0],s[1],s[2])}function F(t,e){var s=M(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),E(s[0],s[1],s[2])}u(!1);var w=function(){var t,e,s=[];for(t=0;t<256;t+=1)e=t.toString(16),s[t]=1==e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+s[t]+s[e]+s[i]}}();
1
+ (window.webpackJsonpapp=window.webpackJsonpapp||[]).push([[1],{3143:function(t,e,s){var i,a;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}a=window||{},void 0===(i=function(){return function(t){var e,s,i="http://www.w3.org/2000/svg",a="",n=!0,h=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=(Math.round,Math.pow),l=Math.sqrt,p=(Math.abs,Math.floor),f=(Math.max,Math.min),m={};(function(){var t,e=Object.getOwnPropertyNames(Math),s=e.length;for(t=0;t<s;t+=1)m[e[t]]=Math[e[t]]})(),m.random=Math.random,m.abs=function(t){if("object"===r(t)&&t.length){var e,s=Array.apply(null,{length:t.length}),i=t.length;for(e=0;e<i;e+=1)s[e]=Math.abs(t[e]);return s}return Math.abs(t)};var d=150,c=Math.PI/180;function u(t){s=t?Math.round:function(t){return t}}function g(t){return Math.round(1e4*t)/1e4}function y(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=i<0?-1:1}function v(t,e){this.type=t,this.direction=e<0?-1:1}function b(t,e,s,i){this.type=t,this.currentLoop=e,this.totalLoops=s,this.direction=i<0?-1:1}function k(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}function A(t,e){this.type=t,this.target=e}function P(t,e){var s;void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var i="";for(s=t;s>0;--s)i+=e[Math.round(Math.random()*(e.length-1))];return i}function E(t,e,s){var i,a,r,n,h,o,l,p;switch(1===arguments.length&&(e=t.s,s=t.v,t=t.h),o=s*(1-e),l=s*(1-(h=6*t-(n=Math.floor(6*t)))*e),p=s*(1-(1-h)*e),n%6){case 0:i=s,a=p,r=o;break;case 1:i=l,a=s,r=o;break;case 2:i=o,a=s,r=p;break;case 3:i=o,a=l,r=s;break;case 4:i=p,a=o,r=s;break;case 5:i=s,a=o,r=l}return[i,a,r]}function M(t,e,s){1===arguments.length&&(e=t.g,s=t.b,t=t.r);var i,a=Math.max(t,e,s),r=Math.min(t,e,s),n=a-r,h=0===a?0:n/a,o=a/255;switch(a){case r:i=0;break;case t:i=e-s+n*(e<s?6:0),i/=6*n;break;case e:i=s-t+2*n,i/=6*n;break;case s:i=t-e+4*n,i/=6*n}return[i,h,o]}function _(t,e){var s=M(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),E(s[0],s[1],s[2])}function S(t,e){var s=M(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),E(s[0],s[1],s[2])}function F(t,e){var s=M(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),E(s[0],s[1],s[2])}u(!1);var w=function(){var t,e,s=[];for(t=0;t<256;t+=1)e=t.toString(16),s[t]=1==e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+s[t]+s[e]+s[i]}}();
2
2
  /*!
3
3
  Transformation Matrix v2.0
4
4
  (c) Epistemex 2014-2015
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 {
@@ -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 {