目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Paper.ptrn(x, y, width, height, vbx, vby, vbw, vbh)

优质
小牛编辑
129浏览
2023-12-01

Equivalent in behaviour to Paper.g, except it’s a pattern.

Parameters

  1. xnumberoptional X of the element
  2. ynumberoptional Y of the element
  3. widthnumberoptional width of the element
  4. heightnumberoptional height of the element
  5. vbxnumberoptional viewbox X
  6. vbynumberoptional viewbox Y
  7. vbwnumberoptional viewbox width
  8. vbhnumberoptional viewbox height

Returns: object the pattern element