SAX

Simple API for XML

viewBox

(minX, minY, width, height) 用来决定在整个坐标系空间中用于展示的取景范围, 其余部分会被隐藏. width, height 设定将取景框缩放到 html 展示的大小, 不会影响有哪些内容不被展示.

Tag

clipPath

裁剪框,将定义的 path 以外的元素裁切掉

Path

  • M = move to
  • L = line to
  • H = horizontal line to
  • V = vertical line to
  • C = curve to
  • S = smooth curve to
  • Q = quadratic Bézier curve
  • T = smooth quadratic Bézier curve to
  • A = elliptical Arc
  • Z = close path

大写:绝对路径 小写:相对路径

实用工具:svgpatheditor