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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04e730b88e246c845416e3f40e975c7de1af93e0ac565a1e3a19050721875b11
4
- data.tar.gz: 2d6a765c327f1deb8b203f85f2f07e7599f2ea05a0f788ad3b0864ef880b643a
3
+ metadata.gz: 30d957c8873b6d2852b0a3632235ac8d76ea4c90a4c3f69416bdd0cd644170c3
4
+ data.tar.gz: 8628a9dcb87e275ac8ed515f6f47a2f8d8d90ead50cf0bbf335c48dc68d6d1d7
5
5
  SHA512:
6
- metadata.gz: 229f78bc8a881139eeb93281a90051b824674dcd8887c4428dc35f367ebdc341258b55e96cc8e43d10f7a6ad01801b2ade34adfebdeaaf4d247df48b7b587310
7
- data.tar.gz: f347b2baddbfbb556a4f7300366712381a5caed95c46f86dfe3aaf5d25378f720c65cc6689d82030ee084ee986880fcddf04852272ed99653f0b409623ae79bf
6
+ metadata.gz: f50252598fd44fbfd95ec94a682cf7d654ccdb464c23bb275c89d60a66a2773cfd69866da42913f9b6729ff0f08cbca4b4f5322af1af87b8483120daca466151
7
+ data.tar.gz: 4f74b60d77819c9767bea36f2476b2951d7e64a45a26746cc4c523bbcb8bbac2db601f2fea16730af0c58a8065a8a7d3777707aae8d1e95cf378b3c193d126a6
@@ -255,7 +255,6 @@
255
255
  {%- endif -%}
256
256
  {% include footer/index.html %}
257
257
  {% include script.html %}
258
- <script defer src="/app.js"></script>
259
258
  </body>
260
259
 
261
260
  </html>
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
- "filter": "",
9
- "height": 300,
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": 0,
16
+ "x": 210,
18
17
  "y": 0
19
18
  },
20
19
  "bottomLeft": {
21
20
  "x": 0,
22
- "y": 0
21
+ "y": 308
23
22
  },
24
23
  "bottomRight": {
25
- "x": 0,
26
- "y": 0
24
+ "x": 210,
25
+ "y": 308
27
26
  }
28
27
  },
29
28
  "translate": {
30
- "x": -5,
31
- "y": -10
29
+ "x": 150,
30
+ "y": 250
32
31
  },
33
32
  "x": 100,
34
33
  "y": 100,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.9
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms