- D3.js 4.x Data Visualization(Third Edition)
- ?ndrew Rininsland Swizec Teller
- 140字
- 2021-07-02 23:20:27
Manually adding elements and shapes
An SVG image is a collection of elements rendered as shapes and comes with a set of seven basic elements; almost all of these are just an easier way to define a path:
- Straight lines (a path with two points)
- Rectangles (a path with four points and right angles)
- Circles (a round path)
- Ellipses (an oblong path)
- Polylines (a path comprising straight lines)
- Polygons (a path comprising straight lines that closes in on itself)
- Text (the only one that isn't a path)
You build SVG images by adding these elements to the document and defining some attributes. All of them can have a stroke style defining how the edge is rendered, a fill style defining how the shape is filled, and all of them can be rotated, skewed, or moved using the transform attribute.
推薦閱讀
- Implementing VMware Horizon 7(Second Edition)
- Visual FoxPro程序設(shè)計(jì)教程(第3版)
- Visual C++實(shí)例精通
- FreeSWITCH 1.6 Cookbook
- Webpack實(shí)戰(zhàn):入門、進(jìn)階與調(diào)優(yōu)
- Visual Basic程序設(shè)計(jì)(第三版)
- Programming Microsoft Dynamics? NAV 2015
- 測(cè)試工程師Python開(kāi)發(fā)實(shí)戰(zhàn)
- Java EE互聯(lián)網(wǎng)輕量級(jí)框架整合開(kāi)發(fā):SSM+Redis+Spring微服務(wù)(上下冊(cè))
- Advanced C++
- C++游戲設(shè)計(jì)案例教程
- 深入理解Android:WebKit卷
- Python程序設(shè)計(jì)教程
- Learning Adobe Muse
- 高性能Scala