WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface ScriptContext

    脚本上下文 - 存储脚本执行时的状态

    interface ScriptContext {
        variables: Map<string, string | number>;
        labels: Map<string, number>;
        lastPoint: Point2D;
    }
    Index

    Properties

    variables: Map<string, string | number>

    用户定义的变量

    labels: Map<string, number>

    标签位置映射

    lastPoint: Point2D

    最后输入的点