test: update text test
This commit is contained in:
parent
8f27fe0974
commit
298cb72b74
@ -4,6 +4,7 @@
|
|||||||
"description": "svgcanvas",
|
"description": "svgcanvas",
|
||||||
"main": "dist/svgcanvas.js",
|
"main": "dist/svgcanvas.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"watch": "rollup -c -w",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"test": "karma start"
|
"test": "karma start"
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
export default function text(ctx) {
|
export default function text(ctx) {
|
||||||
ctx.font = "normal 36px Times";
|
ctx.font = "normal 120px Arial";
|
||||||
ctx.fillStyle = "#000000";
|
ctx.fillStyle = "#000000";
|
||||||
ctx.fillText("A Text Example", 50, 50);
|
ctx.fillText("Hello", 0, 200);
|
||||||
ctx.font = "normal 36px Arial";
|
|
||||||
ctx.strokeStyle = "#000000";
|
|
||||||
ctx.strokeText("A Text Example", 50, 90);
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user