块状模型
块状模型通用类
// 以使用svg生成Shape对象为例, 首先将svg解析为Shape对象 const shapes = await SvgUtils.parseSVG( <svg url>, [0.02, 0, 0, 0, 0, -0.02, 0, 0, 0, 0, 0, 0, -40, 40, 0, 1], // 对齐矩阵 ); // 用每个shape生成对应的block const blocks = shapes.map((s) => new Block(s)); // 绑定block blocks.forEach((b) => { stage.bindElement(b); });
块状模型基础图形
块状模型