@everymatrix/lottery-program-wof 1.22.2 → 1.22.6
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/lottery-program-wof.js +1244 -2170
- package/dist/lottery-program-wof.js.map +1 -1
- package/index.html +2 -2
- package/package.json +2 -2
- package/src/LotteryProgramWof.svelte +7 -6
- package/src/business.ts +11 -6
- package/src/calc.point.ts +1 -112
- package/src/calc.ts +0 -6
- package/src/class.svgcalc.ts +35 -210
- package/src/images/theme.bg.blackring.svg +10 -0
- package/src/images/theme.bg.halo.svg +27 -0
- package/src/images/theme1Bg3.svg +15 -0
- package/src/images/theme2Bg3.svg +11 -0
- package/src/images/theme2Center.svg +36 -0
- package/src/images/theme3Bg1.svg +29 -0
- package/src/images/theme3Bg2.svg +19 -0
- package/src/images/theme3Center.svg +77 -0
- package/src/images/theme7Arrow.svg +67 -0
- package/src/images/theme7Bg1.svg +786 -0
- package/src/images/theme7Bg2.svg +40 -0
- package/src/images/theme7Bg3.svg +26 -0
- package/src/images/theme7Center.svg +72 -0
- package/src/images/theme7Light.svg +17 -0
- package/src/images/themeCenter1.svg +76 -0
- package/src/images/themeCenter2.svg +58 -0
- package/src/images/{areaSec.svg → themePointerArea.svg} +37 -4
- package/src/images/themeShadow.svg +27 -0
- package/src/private.item.svelte +13 -16
- package/src/private.item.svg.scss +179 -20
- package/src/private.item.svg.svelte +89 -135
- package/src/private.message.svelte +33 -12
- package/src/private.outcomes.svelte +1 -0
- package/src/themes.image.center.ts +61 -134
- package/src/themes.ts +8 -231
- package/src/translations.js +2 -2
- package/src/business.dom.test.ts +0 -34
- package/src/business.dom.ts +0 -21
- package/src/images/area.svg +0 -11
- package/src/images/areaV1.svg +0 -18
- package/src/images/areaV2.svg +0 -17
- package/src/images/background.svg +0 -27
- package/src/images/background3.svg +0 -13
- package/src/images/backgroundShadow.svg +0 -22
- package/src/images/centerArrow.svg +0 -50
- package/src/images/centerArrow1.svg +0 -18
- package/src/images/centerArrow2.svg +0 -5
- package/src/images/centerArrow3.svg +0 -46
- package/src/images/centerArrowBg.svg +0 -12
- package/src/images/centerBackground1.svg +0 -21
- package/src/images/centerBackground2.svg +0 -24
- package/src/images/centerCircle.svg +0 -24
- package/src/images/centerPack.svg +0 -16
- package/src/images/centerText3.svg +0 -3
- package/src/images/partition1.svg +0 -10
- package/src/images/spin.svg +0 -13
- package/src/themes.image.base.ts +0 -69
- package/src/themes.image.pointer.ts +0 -51
- package/src/themes.partitions.ts +0 -193
- /package/src/images/{pointerArrow.svg → theme2Arrow.svg} +0 -0
- /package/src/images/{pointerArrow3.svg → theme3Arrow.svg} +0 -0
- /package/src/images/{light.svg → themePartitionLight.svg} +0 -0
package/src/themes.image.base.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { pointPlus } from "./calc.point"
|
|
2
|
-
|
|
3
|
-
interface ImageSize {
|
|
4
|
-
width: number
|
|
5
|
-
height: number
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const renderSvgImageProps = (center: number, href: string, size: ImageSize, offset = {x: 0, y: 0}) => ({
|
|
9
|
-
x: center - size.width / 2 - offset.x,
|
|
10
|
-
y: center - size.height / 2 - offset.y,
|
|
11
|
-
width: size.width,
|
|
12
|
-
height: size.height,
|
|
13
|
-
href,
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
export const themedImagesUpdater = (
|
|
17
|
-
images, imagesData, imagesConfig, ratio, fn, offset?
|
|
18
|
-
) => {
|
|
19
|
-
|
|
20
|
-
let centerImagesComposed = {}
|
|
21
|
-
|
|
22
|
-
Object.keys(images).map(k => {
|
|
23
|
-
|
|
24
|
-
let _offset = {
|
|
25
|
-
x: 0,
|
|
26
|
-
y: 0
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if(imagesData[k].offset){
|
|
30
|
-
_offset = pointPlus(_offset, imagesData[k].offset)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if(offset){
|
|
34
|
-
_offset = pointPlus(_offset, offset)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const rationalize = (object) => {
|
|
38
|
-
let _object = JSON.parse(JSON.stringify(object))
|
|
39
|
-
|
|
40
|
-
Object.keys(object).map(_key => {
|
|
41
|
-
_object[_key] = object[_key] * ratio
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
return _object
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
centerImagesComposed[k] = {
|
|
48
|
-
src: images[k],
|
|
49
|
-
props: rationalize(imagesData[k].props),
|
|
50
|
-
... ( _offset ? {
|
|
51
|
-
offset: rationalize(_offset)
|
|
52
|
-
} : {})
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
const themedCenterImagesList = imagesConfig.map(i => {
|
|
57
|
-
return i.map(j => centerImagesComposed[j])
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
fn(themedCenterImagesList)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const themedImageProps = (center, themedImage) =>
|
|
64
|
-
renderSvgImageProps(
|
|
65
|
-
center,
|
|
66
|
-
themedImage.src,
|
|
67
|
-
themedImage.props,
|
|
68
|
-
themedImage.offset
|
|
69
|
-
)
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import pointerArrowSvg from './images/pointerArrow.svg'
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import pointerArrow3Svg from './images/pointerArrow3.svg'
|
|
6
|
-
import { themedImagesUpdater } from './themes.image.base'
|
|
7
|
-
|
|
8
|
-
export const pointerImages = {
|
|
9
|
-
pointerArrowSvg,
|
|
10
|
-
pointerArrow3Svg,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const pointerImagesData = {
|
|
14
|
-
pointerArrowSvg: {
|
|
15
|
-
props: {
|
|
16
|
-
width: 60 / 2,
|
|
17
|
-
height: 60 / 2
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
pointerArrow3Svg: {
|
|
21
|
-
props: {
|
|
22
|
-
width: 2.8 * 32 / 2,
|
|
23
|
-
height: 2.8 * 48 / 2
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const pointerImagesConfig = [
|
|
29
|
-
[ // 0
|
|
30
|
-
],
|
|
31
|
-
[ // 1
|
|
32
|
-
'pointerArrowSvg',
|
|
33
|
-
],
|
|
34
|
-
[ // 2
|
|
35
|
-
'pointerArrow3Svg',
|
|
36
|
-
],
|
|
37
|
-
[ // 3
|
|
38
|
-
],
|
|
39
|
-
[ // 4
|
|
40
|
-
],
|
|
41
|
-
[ // 5
|
|
42
|
-
]
|
|
43
|
-
]
|
|
44
|
-
|
|
45
|
-
export const themedPointerImagesUpdater = (ratio, fn, offset?) =>
|
|
46
|
-
themedImagesUpdater(
|
|
47
|
-
pointerImages,
|
|
48
|
-
pointerImagesData,
|
|
49
|
-
pointerImagesConfig,
|
|
50
|
-
ratio, fn, offset
|
|
51
|
-
)
|
package/src/themes.partitions.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
export const partitionStrokeSteps = [
|
|
2
|
-
{
|
|
3
|
-
offset: "0",
|
|
4
|
-
color: "#F28F00",
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
offset: "0.27",
|
|
8
|
-
color: "#F5A318",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
offset: "0.85",
|
|
12
|
-
color: "#FCD755",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
offset: "1",
|
|
16
|
-
color: "#FFE767",
|
|
17
|
-
},
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
export const partitions1 = {
|
|
21
|
-
colorSchema: [
|
|
22
|
-
[
|
|
23
|
-
{
|
|
24
|
-
color: '#009C9C',
|
|
25
|
-
offset: 0,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
color: '#002634',
|
|
29
|
-
offset: 1,
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
{
|
|
34
|
-
color: '#AA00BF',
|
|
35
|
-
offset: 0,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
color: '#3B0031',
|
|
39
|
-
offset: 1,
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
[
|
|
43
|
-
{
|
|
44
|
-
color: '#0068CD',
|
|
45
|
-
offset: 0,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
color: '#150D42',
|
|
49
|
-
offset: 1,
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
[
|
|
53
|
-
{
|
|
54
|
-
color: '#DA005B',
|
|
55
|
-
offset: 0,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
color: '#400021',
|
|
59
|
-
offset: 1,
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export const partitions2 = {
|
|
66
|
-
colorSchema: [
|
|
67
|
-
[
|
|
68
|
-
{
|
|
69
|
-
color: '#006666',
|
|
70
|
-
offset: 0,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
color: '#007F76',
|
|
74
|
-
offset: 0.13,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
color: '#00B59B',
|
|
78
|
-
offset: 0.42,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
color: '#00DDB5',
|
|
82
|
-
offset: 0.67,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
color: '#00F6C6',
|
|
86
|
-
offset: 0.88,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
color: '#00FFCC',
|
|
90
|
-
offset: 1,
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
[
|
|
94
|
-
{
|
|
95
|
-
color: '#580065',
|
|
96
|
-
offset: 0.23,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
color: '#D453FF',
|
|
100
|
-
offset: 0.91,
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
color: '#FFE767',
|
|
106
|
-
offset: 0,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
color: '#F28F00',
|
|
110
|
-
offset: 1,
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
{
|
|
115
|
-
color: '#900A42',
|
|
116
|
-
offset: 1 / 100 * 22.59,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
color: '#960A44',
|
|
120
|
-
offset: 1 / 100 * 23.94,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
color: '#B60B53',
|
|
124
|
-
offset: 1 / 100 * 31.36,
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
color: '#D00C5E',
|
|
128
|
-
offset: 1 / 100 * 39.45,
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
color: '#E40D67',
|
|
132
|
-
offset: 1 / 100 * 48.22,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
color: '#F30D6E',
|
|
136
|
-
offset: 1 / 100 * 57.66,
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
color: '#FB0D71',
|
|
140
|
-
offset: 1 / 100 * 69.8,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
color: '#FE0E73',
|
|
144
|
-
offset: 1 / 100 * 90.03,
|
|
145
|
-
},
|
|
146
|
-
]
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export const partitions3 = {
|
|
151
|
-
colorSchema: [
|
|
152
|
-
[
|
|
153
|
-
{
|
|
154
|
-
color: '#3B0031',
|
|
155
|
-
offset: 0,
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
color: '#7E008E',
|
|
159
|
-
offset: 1,
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
[
|
|
163
|
-
{
|
|
164
|
-
color: '#5A005F',
|
|
165
|
-
offset: 0,
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
color: '#EA53FF',
|
|
169
|
-
offset: 1,
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
[
|
|
173
|
-
{
|
|
174
|
-
color: '#B300C3',
|
|
175
|
-
offset: 0,
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
color: '#4D003B',
|
|
179
|
-
offset: 1,
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
[
|
|
183
|
-
{
|
|
184
|
-
color: '#59007B',
|
|
185
|
-
offset: 0,
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
color: '#B753FF',
|
|
189
|
-
offset: 1,
|
|
190
|
-
},
|
|
191
|
-
]
|
|
192
|
-
]
|
|
193
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|