How to draw a curly braces with canvs?

want to draw one as shown in the picture: I don"t know how to draw it.

clipboard.png

May.14,2021

quote a drawing bag, it is too difficult to write by yourself, where to turn, position separation and so on, canvas only has basic underlining, drawing circles and so on, the algorithm behind this kind of diagram can not be handled by individuals. Baidu ECharts has a similar tree diagram. You can take a look at http://echarts.baidu.com/exam.


the canvas path look at


skr

  1. draw lines ( moveTo , lineTo )
  2. draw dots ( arc )

the specific api refers to the canvas api of mdn. https://developer.mozilla.org.

canvas drawings can be used with this: https://github.com/PengJiyuan.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf9c46-54dfe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf9c46-54dfe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?