mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
339 B
TypeScript
23 lines
339 B
TypeScript
|
|
import jcanvas = require("jcanvas");
|
|
jcanvas($, window);
|
|
|
|
|
|
const elt = $(".foo");
|
|
elt.clearCanvas();
|
|
elt.drawSlice({
|
|
fillStyle: "blue",
|
|
x: 100, y: 100,
|
|
radius: 80,
|
|
start: 0, end: 359.9
|
|
});
|
|
elt.drawText({
|
|
fillStyle: "white",
|
|
strokeStyle: "red",
|
|
strokeWidth: 2,
|
|
x: 100, y: 100,
|
|
fontSize: 48,
|
|
fontFamily: "Arial",
|
|
text: "bar"
|
|
});
|