@hxzk/snapsvg
v0.1.0
Published
TypeScript definitions for snapsvg
Readme
文档
荔枝
import { snap, mina } from "@hxzk/snapsvg";
var c = snap(el.value).paper.circle(150, 150, 100).attr({ fill: "red" });
let b = c.paper.circle(150, 10, 100).attr({ fill: "blue" });
let loop = () =>
b.animate(
{ cx: +b.attr("cx") == 50 ? 1500 : 50 },
Math.random() * 1000,
mina.linear,
loop
);
loop();
let dd = b.paper.rect(10, 10, 20, 20);
dd.drag();
版权归属
https://github.com/adobe-webplatform/Snap.svg