appscms-tools-theme 2.5.9 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/feature.html +0 -1
- data/assets/js/frame.js +5 -3
- data/assets/js/photo-effects.json +8 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30d957c8873b6d2852b0a3632235ac8d76ea4c90a4c3f69416bdd0cd644170c3
|
4
|
+
data.tar.gz: 8628a9dcb87e275ac8ed515f6f47a2f8d8d90ead50cf0bbf335c48dc68d6d1d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f50252598fd44fbfd95ec94a682cf7d654ccdb464c23bb275c89d60a66a2773cfd69866da42913f9b6729ff0f08cbca4b4f5322af1af87b8483120daca466151
|
7
|
+
data.tar.gz: 4f74b60d77819c9767bea36f2476b2951d7e64a45a26746cc4c523bbcb8bbac2db601f2fea16730af0c58a8065a8a7d3777707aae8d1e95cf378b3c193d126a6
|
data/_layouts/feature.html
CHANGED
data/assets/js/frame.js
CHANGED
@@ -83,9 +83,6 @@ const drawInputImage = (ctx, item, indexValue) => {
|
|
83
83
|
if (item.translate) {
|
84
84
|
ctx.translate(item.translate.x, item.translate.y)
|
85
85
|
}
|
86
|
-
if (item.skew) {
|
87
|
-
ctx.setTransform(1, item.skew.x, item.skew.y, 1, 0, 0)
|
88
|
-
}
|
89
86
|
if (perspectiveKey) {
|
90
87
|
let p = new Perspective(ctx, image)
|
91
88
|
p.draw([
|
@@ -95,6 +92,11 @@ const drawInputImage = (ctx, item, indexValue) => {
|
|
95
92
|
[item.perspective.bottomLeft.x, item.perspective.bottomLeft.y],
|
96
93
|
])
|
97
94
|
}
|
95
|
+
|
96
|
+
if (item.skew) {
|
97
|
+
ctx.setTransform(1, item.skew.x, item.skew.y, 1, 0, 0)
|
98
|
+
}
|
99
|
+
|
98
100
|
ctx.restore()
|
99
101
|
resolve()
|
100
102
|
}
|
@@ -5,30 +5,29 @@
|
|
5
5
|
"elements": [
|
6
6
|
{
|
7
7
|
"type": "image",
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"width": 300,
|
8
|
+
"height": 308,
|
9
|
+
"width": 210,
|
11
10
|
"perspective": {
|
12
11
|
"topLeft": {
|
13
12
|
"x": 0,
|
14
13
|
"y": 0
|
15
14
|
},
|
16
15
|
"topRight": {
|
17
|
-
"x":
|
16
|
+
"x": 210,
|
18
17
|
"y": 0
|
19
18
|
},
|
20
19
|
"bottomLeft": {
|
21
20
|
"x": 0,
|
22
|
-
"y":
|
21
|
+
"y": 308
|
23
22
|
},
|
24
23
|
"bottomRight": {
|
25
|
-
"x":
|
26
|
-
"y":
|
24
|
+
"x": 210,
|
25
|
+
"y": 308
|
27
26
|
}
|
28
27
|
},
|
29
28
|
"translate": {
|
30
|
-
"x":
|
31
|
-
"y":
|
29
|
+
"x": 150,
|
30
|
+
"y": 250
|
32
31
|
},
|
33
32
|
"x": 100,
|
34
33
|
"y": 100,
|