美文网首页
antdv-X6图形汇总

antdv-X6图形汇总

作者: 花影_62b4 | 来源:发表于2023-01-30 14:27 被阅读0次
image.png
//菱形
graph.addNode({
  shape: 'polygon',
  x: 40,
  y: 40,
  width: 80,
  height: 80,
  label: 'polygon',
  attrs: {
    body: {
      fill: '#efdbff',
      stroke: '#9254de',
      refPoints: '0,10 10,0 20,10 10,20',
    },
  },
})
//正五边形
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '100,10 190,78 160,198 40,198  10,78',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})
//正六边形
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '100,27 300,27 400,200 300,373 100,373 0,200',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})
//正八边形
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '0,1.41 1.41,0 3.41,0 4.82,1.41 4.82,3.41 3.41,4.82 1.41,4.82 0,3.41 ',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})
//圆形
graph.addNode({
  shape: 'circle',
  x: 200,
  y: 40,
  width: 60,
  height: 60,
  label: 'circle',
  attrs: {
    body: {
      fill: '#efdbff',
      stroke: '#9254de',
    },
  },
})
//卡片
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '0,10 8,0 20,0 20,40 0,40',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})
//人工输入
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '0,10 30,0 30,40 0,40',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})
//人工操作
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '0,0 40,0 30,40 10,40',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})
//标签
graph.addNode({
  shape: 'polygon',
  x: 180,
  y: 180,
  width: 80,
  height: 80,
  points: '0,0 20,0 20,40 10,30 0,40',
  attrs: {
    body: {
      fill: '#ffd591',
      stroke: '#ffa940',
      strokeWidth: 2,
      fillRule: 'evenodd',
    },
  },
})




相关文章

  • 第05节 OSG相关书籍

    以下是图形图像和OSG相关的图书汇总,包含图形图像相关的书籍比如GPU pro, GPU GEMS, OPENG相...

  • 整理和复习

    一年级下册复习知识点汇总:一、图形可分为(1)平面图形;(2)立体图形1. 平面图形:正方形、长方形、三角形、圆、...

  • 一年级下册数学复习

    一年级下册复习知识点汇总:一、图形可分为(1)平面图形;(2)立体图形 1. 平面图形:正方形、长方形、三角形、圆...

  • #建议收藏#1-6年级数学口决/定义分类汇总, 孩子必背的数学概

    孔文教育启东校区 1-6年级数学概念汇总 1、什么是图形的周长? 围成一个图形所有边长的总和就是这个图形的周长。 ...

  • 3、EXCEL基础知识

    作用:表格制作、数据录入存储汇总、绘制图形、图表、开发系统 插入选项卡中:可以汇总迷你图、柱形图、盈亏图 开始选项...

  • Git图形化界面客户端大汇总

    Git图形化界面客户端大汇总 https://www.cnblogs.com/liangxiaofeng/p/58...

  • UIBezierPath

    贝塞尔曲线(UIBezierPath)属性、方法汇总 UIBezierPath主要用来绘制矢量图形,它是基于Cor...

  • pandas 绘图title,xlabel,ylabel出现中文

    pandas 绘图title,xlabel,ylabel出现中文乱码的问题 在利用pandas汇总图形时,不可避免...

  • 商务与经济统计第二章笔记

    描述性统计学1:表格法和图形法 一、单个变量的汇总方法 1、表格汇总方法 1)频数分布 数量型变量则需要分组,5-...

  • R语言图形参数汇总

    1.符号和线条 1 pch 用于指定绘制点时使用的符号:pch类型 2 cex代表绘制点的大小,cex = 2 表...

网友评论

      本文标题:antdv-X6图形汇总

      本文链接:https://www.haomeiwen.com/subject/evvmhdtx.html