mxdraw 0.1.164 → 0.1.166

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 CHANGED
@@ -180,7 +180,25 @@ loadCoreCode().then(()=> {
180
180
 
181
181
 
182
182
  ## 按需引入配置
183
- 自"0.1.164"版本起不再需要按需加载配置
183
+
184
+ 自"0.1.164"起不再需要配置按需引入, "0.1.164"以下可以选择以下配置:
185
+
186
+ > 使用`babel` 插件`babel-plugin-import` 实现按需引入
187
+ > 需要安装 `npm i babel-plugin-import -D` 然后找到或创建项目根目录的`.babelrc`文件新增如下内容
188
+ ```json
189
+ {
190
+ "plugins": [
191
+ [
192
+ "import", {
193
+ "libraryName": "mxdraw",
194
+ "libraryDirectory": "dist/lib/MxModule",
195
+ "camel2UnderlineComponentName": false,
196
+ "camel2DashComponentName": false
197
+ }
198
+ ]
199
+ ]
200
+ }
201
+ ```
184
202
 
185
203
  > 基于`babel-plugin-import`按需引入
186
204
  ``` javascript
package/dist/mxdraw.d.ts CHANGED
@@ -3817,7 +3817,7 @@ declare class MxDbShape extends MxDbEntity {
3817
3817
  rotation?: number;
3818
3818
  center?: THREE.Vector2;
3819
3819
  } | undefined;
3820
- setFillImageParam(param: typeof this$1.fillImageParam): void;
3820
+ setFillImageParam(param: MxDbShape["fillImageParam"]): void;
3821
3821
  /** 线段细分数值 */
3822
3822
  curveSegments: number;
3823
3823
  setCurveSegments(curveSegments: number): this;
@@ -4850,9 +4850,9 @@ declare class Layer extends RenderOrderNode<{}, MxDbEntity> {
4850
4850
  * new Layer().add(new MxDbLine(), new MxDbLine(), 3)
4851
4851
  * ```
4852
4852
  */
4853
- add(...entityList: typeof this$1.children): this;
4853
+ add(...entityList: MxDbEntity[]): this;
4854
4854
  /*** 移除该层的MxDbEntity, MxDbEntity回退到默认层*/
4855
- remove(...entityList: typeof this$1.children): this;
4855
+ remove(...entityList: MxDbEntity[]): this;
4856
4856
  }
4857
4857
 
4858
4858
  declare const Mx_loadCoreCode: typeof loadCoreCode;