块状模型组
块状模型组通用类
// 以使用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 = new Block(shapes); // 绑定block stage.bindElement(blocks);
块状模型基础图形组
块状模型组