图形, 用作地图图形描述
// 将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 const shape = new Shape({ path: 'm0,0l1,0l1,1l0,1' }); // 正方形 // 或 shape.updateData({ fill: '#ff0000' });
基于ShapeData结构的描述.
自动计算图形的视觉中心.
获得图形数据
获得图形类型
更新图形数据
基于ShapeData结构的描述
图形, 用作地图图形描述