appscms-tools-theme 2.7.1 → 2.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,182 +1,182 @@
1
- !(function (t) {
2
- 'object' == typeof exports && 'undefined' != typeof module
3
- ? (module.exports = t())
4
- : 'function' == typeof define && define.amd
5
- ? define([], t)
6
- : (('undefined' != typeof window
7
- ? window
8
- : 'undefined' != typeof global
9
- ? global
10
- : 'undefined' != typeof self
11
- ? self
12
- : this
13
- ).Perspective = t())
14
- })(function () {
15
- return (function o(n, r, i) {
16
- function s(e, t) {
17
- if (!r[e]) {
18
- if (!n[e]) {
19
- var a = 'function' == typeof require && require
20
- if (!t && a) return a(e, !0)
21
- if (c) return c(e, !0)
22
- throw (
23
- (((a = new Error("Cannot find module '" + e + "'")).code =
24
- 'MODULE_NOT_FOUND'),
25
- a)
26
- )
27
- }
28
- ;(a = r[e] = { exports: {} }),
29
- n[e][0].call(
30
- a.exports,
31
- function (t) {
32
- return s(n[e][1][t] || t)
33
- },
34
- a,
35
- a.exports,
36
- o,
37
- n,
38
- r,
39
- i
40
- )
41
- }
42
- return r[e].exports
43
- }
44
- for (
45
- var c = 'function' == typeof require && require, t = 0;
46
- t < i.length;
47
- t++
48
- )
49
- s(i[t])
50
- return s
51
- })(
52
- {
53
- 1: [
54
- function (t, e, a) {
55
- var o = window.html5jp || {}
56
- !(function () {
57
- o.perspective = function (t, e) {
58
- var a, o
59
- t &&
60
- t.strokeStyle &&
61
- e &&
62
- e.width &&
63
- e.height &&
64
- (((a = document.createElement('canvas')).width = parseInt(
65
- e.width
66
- )),
67
- (a.height = parseInt(e.height)),
68
- (o = a.getContext('2d')).drawImage(e, 0, 0, a.width, a.height),
69
- ((e = document.createElement('canvas')).width = t.canvas.width),
70
- (e.height = t.canvas.height),
71
- (e = e.getContext('2d')),
72
- (this.p = { ctxd: t, cvso: a, ctxo: o, ctxt: e }))
73
- }
74
- var t = o.perspective.prototype
75
- ;(t.draw = function (t) {
76
- for (
77
- var e = t[0][0],
78
- a = t[0][1],
79
- o = t[1][0],
80
- n = t[1][1],
81
- r = t[2][0],
82
- i = t[2][1],
83
- s = t[3][0],
84
- c = t[3][1],
85
- h = [
86
- Math.sqrt(Math.pow(e - o, 2) + Math.pow(a - n, 2)),
87
- Math.sqrt(Math.pow(o - r, 2) + Math.pow(n - i, 2)),
88
- Math.sqrt(Math.pow(r - s, 2) + Math.pow(i - c, 2)),
89
- Math.sqrt(Math.pow(s - e, 2) + Math.pow(c - a, 2)),
90
- ],
91
- p = this.p.cvso.width,
92
- f = this.p.cvso.height,
93
- d = 0,
94
- v = 0,
95
- w = 0,
96
- l = 0;
97
- l < 4;
98
- l++
99
- ) {
100
- var u = 0
101
- v < (u = l % 2 ? h[l] / p : h[l] / f) && ((d = l), (v = u)),
102
- 0 == h[l] && w++
103
- }
104
- if (!(1 < w)) {
105
- var g,
106
- m = this.p.ctxo,
107
- x = this.p.ctxt
108
- if (
109
- (x.clearRect(0, 0, x.canvas.width, x.canvas.height),
110
- d % 2 == 0)
111
- ) {
112
- ;(g = this.create_canvas_context(
113
- p,
114
- 10
115
- )).globalCompositeOperation = 'copy'
116
- for (var M = g.canvas, y = 0; y < f; y += 2) {
117
- var q = e + (s - e) * (O = y / f),
118
- _ = a + (c - a) * O,
119
- C = o + (r - o) * O,
120
- I = n + (i - n) * O,
121
- T = Math.atan((I - _) / (C - q)),
122
- b = Math.sqrt(Math.pow(C - q, 2) + Math.pow(I - _, 2)) / p
123
- g.setTransform(1, 0, 0, 1, 0, -y),
124
- g.drawImage(m.canvas, 0, 0),
125
- x.translate(q, _),
126
- x.rotate(T),
127
- x.scale(b, b),
128
- x.drawImage(M, 0, 0),
129
- x.setTransform(1, 0, 0, 1, 0, 0)
130
- }
131
- } else if (d % 2 == 1) {
132
- ;(g = this.create_canvas_context(
133
- 10,
134
- f
135
- )).globalCompositeOperation = 'copy'
136
- for (var M = g.canvas, E = 0; E < p; E += 2) {
137
- var O,
138
- q = e + (o - e) * (O = E / p),
139
- _ = a + (n - a) * O,
140
- C = s + (r - s) * O,
141
- I = c + (i - c) * O,
142
- T = Math.atan((q - C) / (I - _)),
143
- b = Math.sqrt(Math.pow(C - q, 2) + Math.pow(I - _, 2)) / f
144
- g.setTransform(1, 0, 0, 1, -E, 0),
145
- g.drawImage(m.canvas, 0, 0),
146
- x.translate(q, _),
147
- x.rotate(T),
148
- x.scale(b, b),
149
- x.drawImage(M, 0, 0),
150
- x.setTransform(1, 0, 0, 1, 0, 0)
151
- }
152
- }
153
- this.p.ctxd.save(),
154
- this._applyClipPath(this.p.ctxd, [
155
- [e, a],
156
- [o, n],
157
- [r, i],
158
- [s, c],
159
- ]),
160
- this.p.ctxd.drawImage(x.canvas, 0, 0),
161
- this.p.ctxd.restore()
162
- }
163
- }),
164
- (t.create_canvas_context = function (t, e) {
165
- var a = document.createElement('canvas')
166
- return (a.width = t), (a.height = e), a.getContext('2d')
167
- }),
168
- (t._applyClipPath = function (t, e) {
169
- t.beginPath(), t.moveTo(e[0][0], e[0][1])
170
- for (var a = 1; a < e.length; a++) t.lineTo(e[a][0], e[a][1])
171
- t.closePath(), t.clip()
172
- })
173
- })(),
174
- (e.exports = o.perspective)
175
- },
176
- {},
177
- ],
178
- },
179
- {},
180
- [1]
181
- )(1)
182
- })
1
+ !(function (t) {
2
+ 'object' == typeof exports && 'undefined' != typeof module
3
+ ? (module.exports = t())
4
+ : 'function' == typeof define && define.amd
5
+ ? define([], t)
6
+ : (('undefined' != typeof window
7
+ ? window
8
+ : 'undefined' != typeof global
9
+ ? global
10
+ : 'undefined' != typeof self
11
+ ? self
12
+ : this
13
+ ).Perspective = t())
14
+ })(function () {
15
+ return (function o(n, r, i) {
16
+ function s(e, t) {
17
+ if (!r[e]) {
18
+ if (!n[e]) {
19
+ var a = 'function' == typeof require && require
20
+ if (!t && a) return a(e, !0)
21
+ if (c) return c(e, !0)
22
+ throw (
23
+ (((a = new Error("Cannot find module '" + e + "'")).code =
24
+ 'MODULE_NOT_FOUND'),
25
+ a)
26
+ )
27
+ }
28
+ ;(a = r[e] = { exports: {} }),
29
+ n[e][0].call(
30
+ a.exports,
31
+ function (t) {
32
+ return s(n[e][1][t] || t)
33
+ },
34
+ a,
35
+ a.exports,
36
+ o,
37
+ n,
38
+ r,
39
+ i
40
+ )
41
+ }
42
+ return r[e].exports
43
+ }
44
+ for (
45
+ var c = 'function' == typeof require && require, t = 0;
46
+ t < i.length;
47
+ t++
48
+ )
49
+ s(i[t])
50
+ return s
51
+ })(
52
+ {
53
+ 1: [
54
+ function (t, e, a) {
55
+ var o = window.html5jp || {}
56
+ !(function () {
57
+ o.perspective = function (t, e) {
58
+ var a, o
59
+ t &&
60
+ t.strokeStyle &&
61
+ e &&
62
+ e.width &&
63
+ e.height &&
64
+ (((a = document.createElement('canvas')).width = parseInt(
65
+ e.width
66
+ )),
67
+ (a.height = parseInt(e.height)),
68
+ (o = a.getContext('2d')).drawImage(e, 0, 0, a.width, a.height),
69
+ ((e = document.createElement('canvas')).width = t.canvas.width),
70
+ (e.height = t.canvas.height),
71
+ (e = e.getContext('2d')),
72
+ (this.p = { ctxd: t, cvso: a, ctxo: o, ctxt: e }))
73
+ }
74
+ var t = o.perspective.prototype
75
+ ;(t.draw = function (t) {
76
+ for (
77
+ var e = t[0][0],
78
+ a = t[0][1],
79
+ o = t[1][0],
80
+ n = t[1][1],
81
+ r = t[2][0],
82
+ i = t[2][1],
83
+ s = t[3][0],
84
+ c = t[3][1],
85
+ h = [
86
+ Math.sqrt(Math.pow(e - o, 2) + Math.pow(a - n, 2)),
87
+ Math.sqrt(Math.pow(o - r, 2) + Math.pow(n - i, 2)),
88
+ Math.sqrt(Math.pow(r - s, 2) + Math.pow(i - c, 2)),
89
+ Math.sqrt(Math.pow(s - e, 2) + Math.pow(c - a, 2)),
90
+ ],
91
+ p = this.p.cvso.width,
92
+ f = this.p.cvso.height,
93
+ d = 0,
94
+ v = 0,
95
+ w = 0,
96
+ l = 0;
97
+ l < 4;
98
+ l++
99
+ ) {
100
+ var u = 0
101
+ v < (u = l % 2 ? h[l] / p : h[l] / f) && ((d = l), (v = u)),
102
+ 0 == h[l] && w++
103
+ }
104
+ if (!(1 < w)) {
105
+ var g,
106
+ m = this.p.ctxo,
107
+ x = this.p.ctxt
108
+ if (
109
+ (x.clearRect(0, 0, x.canvas.width, x.canvas.height),
110
+ d % 2 == 0)
111
+ ) {
112
+ ;(g = this.create_canvas_context(
113
+ p,
114
+ 10
115
+ )).globalCompositeOperation = 'copy'
116
+ for (var M = g.canvas, y = 0; y < f; y += 2) {
117
+ var q = e + (s - e) * (O = y / f),
118
+ _ = a + (c - a) * O,
119
+ C = o + (r - o) * O,
120
+ I = n + (i - n) * O,
121
+ T = Math.atan((I - _) / (C - q)),
122
+ b = Math.sqrt(Math.pow(C - q, 2) + Math.pow(I - _, 2)) / p
123
+ g.setTransform(1, 0, 0, 1, 0, -y),
124
+ g.drawImage(m.canvas, 0, 0),
125
+ x.translate(q, _),
126
+ x.rotate(T),
127
+ x.scale(b, b),
128
+ x.drawImage(M, 0, 0),
129
+ x.setTransform(1, 0, 0, 1, 0, 0)
130
+ }
131
+ } else if (d % 2 == 1) {
132
+ ;(g = this.create_canvas_context(
133
+ 10,
134
+ f
135
+ )).globalCompositeOperation = 'copy'
136
+ for (var M = g.canvas, E = 0; E < p; E += 2) {
137
+ var O,
138
+ q = e + (o - e) * (O = E / p),
139
+ _ = a + (n - a) * O,
140
+ C = s + (r - s) * O,
141
+ I = c + (i - c) * O,
142
+ T = Math.atan((q - C) / (I - _)),
143
+ b = Math.sqrt(Math.pow(C - q, 2) + Math.pow(I - _, 2)) / f
144
+ g.setTransform(1, 0, 0, 1, -E, 0),
145
+ g.drawImage(m.canvas, 0, 0),
146
+ x.translate(q, _),
147
+ x.rotate(T),
148
+ x.scale(b, b),
149
+ x.drawImage(M, 0, 0),
150
+ x.setTransform(1, 0, 0, 1, 0, 0)
151
+ }
152
+ }
153
+ this.p.ctxd.save(),
154
+ this._applyClipPath(this.p.ctxd, [
155
+ [e, a],
156
+ [o, n],
157
+ [r, i],
158
+ [s, c],
159
+ ]),
160
+ this.p.ctxd.drawImage(x.canvas, 0, 0),
161
+ this.p.ctxd.restore()
162
+ }
163
+ }),
164
+ (t.create_canvas_context = function (t, e) {
165
+ var a = document.createElement('canvas')
166
+ return (a.width = t), (a.height = e), a.getContext('2d')
167
+ }),
168
+ (t._applyClipPath = function (t, e) {
169
+ t.beginPath(), t.moveTo(e[0][0], e[0][1])
170
+ for (var a = 1; a < e.length; a++) t.lineTo(e[a][0], e[a][1])
171
+ t.closePath(), t.clip()
172
+ })
173
+ })(),
174
+ (e.exports = o.perspective)
175
+ },
176
+ {},
177
+ ],
178
+ },
179
+ {},
180
+ [1]
181
+ )(1)
182
+ })
@@ -1,85 +1,85 @@
1
- [
2
- {
3
- "name": "together_forever",
4
- "effectImagePath": "/assets/images/together_forever.png",
5
- "elements": [
6
- {
7
- "type": "image",
8
- "height": 308,
9
- "width": 210,
10
- "perspective": {
11
- "topLeft": {
12
- "x": 0,
13
- "y": 0
14
- },
15
- "topRight": {
16
- "x": 210,
17
- "y": 0
18
- },
19
- "bottomLeft": {
20
- "x": 0,
21
- "y": 308
22
- },
23
- "bottomRight": {
24
- "x": 210,
25
- "y": 308
26
- }
27
- },
28
- "translate": {
29
- "x": 150,
30
- "y": 250
31
- },
32
- "x": 100,
33
- "y": 100,
34
- "id": "file-1"
35
- },
36
- {
37
- "type": "text",
38
- "x": "200",
39
- "y": "200",
40
- "color": "red",
41
- "fontFamily": "Calligraphy",
42
- "fontPath": "/assets/fonts/Calligraphy.ttf",
43
- "id": "text-1",
44
- "fontSize": 50,
45
- "fontSizeOption1": 10
46
- }
47
- ]
48
- },
49
- {
50
- "name": "face-frame",
51
- "effectImagePath": "/assets/images/faceframe.png",
52
- "elements": [
53
- {
54
- "type": "image",
55
- "height": 308,
56
- "width": 210,
57
- "perspective": {
58
- "topLeft": {
59
- "x": 0,
60
- "y": 0
61
- },
62
- "topRight": {
63
- "x": 210,
64
- "y": 0
65
- },
66
- "bottomLeft": {
67
- "x": 0,
68
- "y": 308
69
- },
70
- "bottomRight": {
71
- "x": 210,
72
- "y": 308
73
- }
74
- },
75
- "translate": {
76
- "x": 150,
77
- "y": 250
78
- },
79
- "x": 100,
80
- "y": 100,
81
- "id": "file-1"
82
- }
83
- ]
84
- }
1
+ [
2
+ {
3
+ "name": "together_forever",
4
+ "effectImagePath": "/assets/images/together_forever.png",
5
+ "elements": [
6
+ {
7
+ "type": "image",
8
+ "height": 308,
9
+ "width": 210,
10
+ "perspective": {
11
+ "topLeft": {
12
+ "x": 0,
13
+ "y": 0
14
+ },
15
+ "topRight": {
16
+ "x": 210,
17
+ "y": 0
18
+ },
19
+ "bottomLeft": {
20
+ "x": 0,
21
+ "y": 308
22
+ },
23
+ "bottomRight": {
24
+ "x": 210,
25
+ "y": 308
26
+ }
27
+ },
28
+ "translate": {
29
+ "x": 150,
30
+ "y": 250
31
+ },
32
+ "x": 100,
33
+ "y": 100,
34
+ "id": "file-1"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "x": "200",
39
+ "y": "200",
40
+ "color": "red",
41
+ "fontFamily": "Calligraphy",
42
+ "fontPath": "/assets/fonts/Calligraphy.ttf",
43
+ "id": "text-1",
44
+ "fontSize": 50,
45
+ "fontSizeOption1": 10
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "name": "face-frame",
51
+ "effectImagePath": "/assets/images/faceframe.png",
52
+ "elements": [
53
+ {
54
+ "type": "image",
55
+ "height": 308,
56
+ "width": 210,
57
+ "perspective": {
58
+ "topLeft": {
59
+ "x": 0,
60
+ "y": 0
61
+ },
62
+ "topRight": {
63
+ "x": 210,
64
+ "y": 0
65
+ },
66
+ "bottomLeft": {
67
+ "x": 0,
68
+ "y": 308
69
+ },
70
+ "bottomRight": {
71
+ "x": 210,
72
+ "y": 308
73
+ }
74
+ },
75
+ "translate": {
76
+ "x": 150,
77
+ "y": 250
78
+ },
79
+ "x": 100,
80
+ "y": 100,
81
+ "id": "file-1"
82
+ }
83
+ ]
84
+ }
85
85
  ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-05 00:00:00.000000000 Z
11
+ date: 2022-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '12.0'
55
- description:
55
+ description:
56
56
  email:
57
57
  - vivek@appscms.com
58
58
  executables: []
@@ -2695,7 +2695,7 @@ homepage: https://github.com/Appscms-com/appscms-tools-theme
2695
2695
  licenses:
2696
2696
  - MIT
2697
2697
  metadata: {}
2698
- post_install_message:
2698
+ post_install_message:
2699
2699
  rdoc_options: []
2700
2700
  require_paths:
2701
2701
  - lib
@@ -2710,8 +2710,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2710
2710
  - !ruby/object:Gem::Version
2711
2711
  version: '0'
2712
2712
  requirements: []
2713
- rubygems_version: 3.1.6
2714
- signing_key:
2713
+ rubygems_version: 3.1.2
2714
+ signing_key:
2715
2715
  specification_version: 4
2716
2716
  summary: Appscms theme for all tools
2717
2717
  test_files: []