litecanvas 0.79.2 → 0.79.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist.dev.js +2 -2
- package/package.json +2 -2
- package/src/index.js +2 -2
package/dist/dist.dev.js
CHANGED
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
textalign(align, baseline) {
|
|
556
556
|
DEV: assert(
|
|
557
557
|
null == align || ["left", "right", "center", "start", "end"].includes(align),
|
|
558
|
-
"textalign: 1st param must be
|
|
558
|
+
"textalign: 1st param must be null or one of the following values: center, left, right, start or end."
|
|
559
559
|
);
|
|
560
560
|
DEV: assert(
|
|
561
561
|
null == baseline || [
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"alphabetic",
|
|
567
567
|
"ideographic"
|
|
568
568
|
].includes(baseline),
|
|
569
|
-
"textalign: 2nd param must be
|
|
569
|
+
"textalign: 2nd param must be null or one of the following values: middle, top, bottom, hanging, alphabetic or ideographic."
|
|
570
570
|
);
|
|
571
571
|
if (align) _ctx.textAlign = align;
|
|
572
572
|
if (baseline) _ctx.textBaseline = baseline;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litecanvas",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.3",
|
|
4
4
|
"description": "Lightweight HTML5 canvas game engine suitable for small projects and creative coding. Inspired by PICO-8 and P5/Processing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Luiz Bills <luizbills@pm.me>",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@swc/core": "^1.11.13",
|
|
10
10
|
"ava": "^6.2.0",
|
|
11
|
-
"esbuild": "^0.25.
|
|
11
|
+
"esbuild": "^0.25.2",
|
|
12
12
|
"gzip-size": "^7.0.0",
|
|
13
13
|
"prettier": "^3.5.3"
|
|
14
14
|
},
|
package/src/index.js
CHANGED
|
@@ -657,7 +657,7 @@ export default function litecanvas(settings = {}) {
|
|
|
657
657
|
DEV: assert(
|
|
658
658
|
null == align ||
|
|
659
659
|
['left', 'right', 'center', 'start', 'end'].includes(align),
|
|
660
|
-
'textalign: 1st param must be
|
|
660
|
+
'textalign: 1st param must be null or one of the following values: center, left, right, start or end.'
|
|
661
661
|
)
|
|
662
662
|
DEV: assert(
|
|
663
663
|
null == baseline ||
|
|
@@ -669,7 +669,7 @@ export default function litecanvas(settings = {}) {
|
|
|
669
669
|
'alphabetic',
|
|
670
670
|
'ideographic',
|
|
671
671
|
].includes(baseline),
|
|
672
|
-
'textalign: 2nd param must be
|
|
672
|
+
'textalign: 2nd param must be null or one of the following values: middle, top, bottom, hanging, alphabetic or ideographic.'
|
|
673
673
|
)
|
|
674
674
|
|
|
675
675
|
if (align) _ctx.textAlign = align
|