03-01.svg
上传用户:zaktkj
上传日期:2022-08-08
资源大小:5770k
文件大小:2k
源码类别:

JavaScript

开发平台:

JavaScript

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="400" height="500" viewBox="0 0 400 500" style="font-weight:bold;font-family:arial,'lucida console',sans-serif,榛戜綋;font-size:14px;">
  3.     <defs>
  4.         <linearGradient id="line" x1="50%" x2="50%" y1="0%" y2="100%">
  5.             <stop offset="20%" stop-color="#88AAEE"/>
  6.             <stop offset="100%" stop-color="#224499"/>
  7.         </linearGradient>
  8.         <marker id="arrow" markerWidth="10" markerHeight="8" refX="4" refY="4" orient="auto">
  9.             <path d="M0,0 8,4 0,8Z" fill="white" stroke="black"/>
  10.         </marker>
  11.         <g id="bg">
  12.             <rect x="0" y="0" width="10" height="10" rx="5" ry="5"
  13.                 stroke="#223388" stroke-width="2" fill="url(#line)"/>
  14.         </g>
  15.     </defs>
  16.     <rect x="0" y="0" width="400" height="500" fill="white"/>
  17.     <g transform="translate(10,10)">
  18.         <g transform="translate(0,0)">
  19.             <circle cx="100" cy="50" r="40" stroke="#223388" stroke-width="2" fill="url(#line)"/>
  20.             <text x="67" y="55" fill="white">startDrag</text>
  21.             <line x1="100" y1="90" x2="100" y2="140" stroke="black" marker-end="url(#arrow)"/>
  22.         </g>
  23.         <g transform="translate(40,150)">
  24.             <rect x="0" y="0" width="120" height="40" rx="5" ry="5"
  25.                 stroke="#223388" stroke-width="2" fill="url(#line)"/>
  26.             <text x="30" y="25" fill="white">onDrag</text>
  27.             <line x1="60" y1="40" x2="60" y2="60" stroke="black" marker-end="url(#arrow)"/>
  28.         </g>
  29.         <g transform="translate(40,220)">
  30.             <rect x="0" y="0" width="120" height="40" rx="5" ry="5"
  31.                 stroke="#223388" stroke-width="2" fill="url(#line)"/>
  32.             <text x="18" y="25" fill="white">onDragDrop</text>
  33.             <line x1="60" y1="40" x2="60" y2="80" stroke="black" marker-end="url(#arrow)"/>
  34.         </g>
  35.         <g transform="translate(0,300)">
  36.             <circle cx="100" cy="50" r="40" stroke="#223388" stroke-width="2" fill="url(#line)"/>
  37.             <text x="67" y="55" fill="white">endDrag</text>
  38.         </g>
  39.     </g>
  40. </svg>