mxdraw 0.1.248 → 0.1.250

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/dist/mxdraw.d.ts CHANGED
@@ -1154,6 +1154,15 @@ declare function createMxObject(this: MxFunType, { canvasId, cadFile, callback,
1154
1154
  }): void;
1155
1155
 
1156
1156
  declare let mxUiData: MxVueInterface;
1157
+ interface MxFunClass {
1158
+ /** mxdraw引入初始化(一般用于在这个阶段注册命令) */
1159
+ on(name: "init"): void;
1160
+ /**
1161
+ * 注册一个系统事件的监听
1162
+ * init 事件会在模块加载完成后触发。
1163
+ * */
1164
+ on(eventName: string, call: any): void;
1165
+ }
1157
1166
  /**
1158
1167
  * MxFun 模块
1159
1168
  * 导出库时已实例化,只需要调用实例方法 例如:
@@ -1673,11 +1682,6 @@ declare class MxFunClass {
1673
1682
  * ```
1674
1683
  */
1675
1684
  getCurrentMousePostion(): THREE.Vector3;
1676
- /**
1677
- * 注册一个系统事件的监听
1678
- * init 事件会在模块加载完成后触发。
1679
- * */
1680
- on: (eventName: string, call: any) => void;
1681
1685
  /**
1682
1686
  * 触发一个系统事件的调用
1683
1687
  * */
@@ -2753,6 +2757,15 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
2753
2757
  * ```
2754
2758
  */
2755
2759
  isWhiteViewColor(): boolean;
2760
+ /**
2761
+ * 根据当前颜色,自动对color进行反色,比如:背景色是白色,自动取黑色.
2762
+ * @example
2763
+ * ```typescript
2764
+ *
2765
+ *
2766
+ * ```
2767
+ */
2768
+ automaticInversionColor(color: number): number;
2756
2769
  }
2757
2770
 
2758
2771
  /**
@@ -3343,48 +3356,88 @@ declare enum MrxDbgUiPrBaseReturn {
3343
3356
 
3344
3357
  /** @module MrxDbgUiPrPointClass */
3345
3358
 
3359
+ /** 鼠标样式类型 */
3346
3360
  declare enum MxCursorType {
3361
+ /** 正常 */
3347
3362
  kNormal = 0,
3363
+ /** 矩形 */
3348
3364
  kRect = 1,
3365
+ /**十字 */
3349
3366
  kCross = 2
3350
3367
  }
3368
+ /** 动态输入显示类型 */
3351
3369
  declare enum DynamicInputType {
3370
+ /** 不进行动态显示 */
3352
3371
  kNoInput = 0,
3372
+ /** X,Y坐标输入 */
3353
3373
  kXYCoordInput = 1,
3374
+ /** 输入与前一个点的距离和与水平的夹角,并能动态跟踪. */
3354
3375
  kDistanceInput = 2,
3376
+ /** 仅显示提示 */
3355
3377
  kDynTip = 3,
3378
+ /** 自动确定输入类型. */
3356
3379
  kAutoInput = 4,
3380
+ /** 输入与前一个点的距离和与水平的夹角 */
3357
3381
  kAngleInput = 5
3358
3382
  }
3383
+ /** 当前交互操作返回值类型 */
3359
3384
  declare enum DetailedResult {
3385
+ /** 未知操作 */
3360
3386
  kUnknown = 1,
3387
+ /** 移动触摸按下 */
3361
3388
  kTouchDownIn = 2,
3389
+ /** 移动触摸抬起 */
3362
3390
  kTouchUpIn = 3,
3391
+ /** 鼠标左键输入。 */
3363
3392
  kMouseLeftIn = 4,
3393
+ /** 鼠标左键输入抬起。 */
3364
3394
  kMouseLeftUpIn = 5,
3395
+ /** 鼠标右键输入 */
3365
3396
  kMouseRightIn = 6,
3397
+ /** 命令行输入有效内容退出,比如输入了关键字 */
3366
3398
  kKeyIn = 7,
3399
+ /** 坐标输入(文字提示输入对应数字也行) */
3367
3400
  kCoordIn = 8,
3401
+ /** 空回车输入 */
3368
3402
  kNullEnterIn = 9,
3403
+ /** 空回空格输入 */
3369
3404
  kNullSpaceIn = 10,
3405
+ /** ESC输入 */
3370
3406
  kEcsIn = 11,
3407
+ /** 新命令,使用当前命令退出. */
3371
3408
  kNewCommadIn = 12
3372
3409
  }
3410
+ /** 用户输入函数控制操作符 */
3373
3411
  declare enum UserInputControls {
3412
+ /** 由正射模式控制 */
3374
3413
  kGovernedByOrthoMode = 1,
3414
+ /** 接受用户空输入 */
3375
3415
  kNullResponseAccepted = 2,
3416
+ /** 不回显Ctrl c的取消 */
3376
3417
  kDontEchoCancelForCtrlC = 4,
3418
+ /** 不更新最后一点 */
3377
3419
  kDontUpdateLastPoint = 8,
3420
+ /** 无图纸限制检查 */
3378
3421
  kNoDwgLimitsChecking = 16,
3422
+ /** 不接受0输入 */
3379
3423
  kNoZeroResponseAccepted = 32,
3424
+ /** 不接受负数输入 */
3380
3425
  kNoNegativeResponseAccepted = 64,
3426
+ /** 接受3d坐标 */
3381
3427
  kAccept3dCoordinates = 128,
3428
+ /** 接受鼠标向上移动作为指针 */
3382
3429
  kAcceptMouseUpAsPoint = 256,
3430
+ /** 任何空格都会终止输入 */
3383
3431
  kAnyBlankTerminatesInput = 512,
3432
+ /** 首字母空格终止输入 */
3384
3433
  kInitialBlankTerminatesInput = 1024,
3434
+ /** 接受其他输入字符串 */
3385
3435
  kAcceptOtherInputString = 2048,
3436
+ /** 由UCS检测控制 */
3386
3437
  kGovernedByUCSDetect = 4096,
3438
+ /** 无z方向正交 */
3387
3439
  kNoZDirectionOrtho = 8192,
3440
+ /** 接受空格输入 */
3388
3441
  kSpacesInAccepted = 16384
3389
3442
  }
3390
3443
  declare class MrxDbgUiPrBase {