@liquid-js/qr-code-styling 3.0.0-4 → 3.0.1
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.
|
@@ -43,9 +43,9 @@ function sanitizeGradient(gradient_newGradient) {
|
|
|
43
43
|
|
|
44
44
|
(GradientType = GradientType || (GradientType = {})).radial = "radial", GradientType.linear = "linear",
|
|
45
45
|
(DotType = DotType || (DotType = {})).dot = "dot", DotType.randomDot = "random-dot",
|
|
46
|
-
DotType.rounded = "rounded", DotType.
|
|
47
|
-
DotType.
|
|
48
|
-
DotType.
|
|
46
|
+
DotType.rounded = "rounded", DotType.extraRounded = "extra-rounded", DotType.verticalLine = "vertical-line",
|
|
47
|
+
DotType.horizontalLine = "horizontal-line", DotType.classy = "classy", DotType.classyRounded = "classy-rounded",
|
|
48
|
+
DotType.square = "square", DotType.smallSquare = "small-square", DotType.diamond = "diamond",
|
|
49
49
|
(CornerDotType = CornerDotType || (CornerDotType = {})).dot = "dot", CornerDotType.square = "square",
|
|
50
50
|
CornerDotType.heart = "heart", CornerDotType.extraRounded = "extra-rounded", CornerDotType.classy = "classy",
|
|
51
51
|
CornerDotType.outpoint = "outpoint", CornerDotType.inpoint = "inpoint", (CornerSquareType = CornerSquareType || (CornerSquareType = {})).dot = "dot",
|
|
@@ -189,7 +189,7 @@ class QRCornerDot {
|
|
|
189
189
|
let {size, x, y} = args;
|
|
190
190
|
this._element = this.document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
191
191
|
let move = !1, i = 0;
|
|
192
|
-
this._element.setAttribute("d", [ "M",
|
|
192
|
+
this._element.setAttribute("d", [ "M", 1, .3262506, "c", 0, .0383376, -.0064626, .0758377, -.0193751, .1125001, "s", -.0356247, .076875, -.0681248, .1206252, "c", -.0325, .0437499, -.0762503, .0931247, -.1312501, .1481249, "C", .7262502, .7625008, .6566626, .8279132, .5724999, .9037505, "L", .5, .9687506, "L", .4275001, .9037505, "C", .3433374, .8279132, .2737499, .7625005, .21875, .7075007, "C", .1637501, .6525008, .1199999, .6031258, .0874999, .5593758, "S", .0322876, .4754133, .0193751, .4387506, "S", 0, .3645881, 0, .3262506, "c", 0, -.0783374, .0262499, -.1437498, .07875, -.1962499, "s", .1179124, -.07875, .1962499, -.07875, "c", .0433376, 0, .0845875, .0091625, .12375, .0274999, "S", .4716623, .1229131, .5, .1562506, "c", .0283374, -.0333375, .0620874, -.0591625, .1012502, -.0775, "c", .0391627, -.0183375, .0804126, -.0274999, .12375, -.0274999, "c", .0783374, 0, .1437497, .0262499, .1962501, .07875, "S", 1, .2479131, 1, .3262506, "z" ].map((v => "string" == typeof v ? (i = 0,
|
|
193
193
|
move = v.toUpperCase() == v, v) : (i++, v *= size, move && (v += 1 == i % 2 ? x : y),
|
|
194
194
|
numToAttr(v)))).join(" "));
|
|
195
195
|
}
|
|
@@ -243,9 +243,9 @@ class QRCornerDot {
|
|
|
243
243
|
}
|
|
244
244
|
drawHeart({x, y, size, rotation}) {
|
|
245
245
|
this.basicHeart({
|
|
246
|
-
x
|
|
247
|
-
y
|
|
248
|
-
size
|
|
246
|
+
x,
|
|
247
|
+
y,
|
|
248
|
+
size,
|
|
249
249
|
rotation
|
|
250
250
|
});
|
|
251
251
|
}
|