0.1.0 • Published 1 year ago

@hxzk/snapsvg v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

文档

中文文档

英文文档

荔枝

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

0.1.0

1 year ago

0.5.8

1 year ago