western-world 3.0.691 → 3.0.693
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/demo-templates/index.html +20 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/svg/backgrounds/colony/colony-arrow-clon-dike.svg +10 -0
- package/src/svg/backgrounds/colony/colony-arrow-mutiny-on-the-ship-desert-island.svg +10 -0
- package/src/svg/backgrounds/colony/colony-arrow-pirates.svg +22 -0
- package/src/svg/backgrounds/colony/colony-arrow-travel-agency-port-yankees.svg +10 -0
- package/src/svg/backgrounds/colony/colony-background-top-elements-leaves.svg +145 -0
- package/src/svg/backgrounds/colony/colony-background.svg +605 -0
- package/src/svg/backgrounds/desert.svg +223 -199
- package/src/{scss/backgrounds → svg/backgrounds/forest}/forest.scss +2 -2
- package/src/svg/backgrounds/forest/forest.svg +1556 -0
- package/src/{scss/backgrounds → svg/backgrounds/start}/start.scss +3 -3
- package/src/svg/backgrounds/start/start.svg +1346 -0
- package/src/svg/index.js +27 -12
- package/src/western-world.component.js +17 -37
- package/src/western-world.utils.js +9 -37
- package/src/svg/backgrounds/background-top-elements.svg +0 -145
- package/src/svg/backgrounds/colony-arrows.svg +0 -51
- package/src/svg/backgrounds/forest.svg +0 -1490
- package/src/svg/backgrounds/start.svg +0 -1185
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<button id="update-firm-10">update firm 10</button>
|
|
13
13
|
<button id="update-all-firms">all firms</button>
|
|
14
14
|
|
|
15
|
-
<div style="width: 9087px; height: 3918px;">
|
|
15
|
+
<div style="width: calc(9087px / 3); height: calc(3918px / 3);">
|
|
16
16
|
<western-world></western-world>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<script>
|
|
21
21
|
fetch('http://localhost/api/admin/default-clasic-game-template')
|
|
22
22
|
.then((response) => response.json())
|
|
23
|
-
.then(({CELLS}) => {
|
|
23
|
+
.then(({ CELLS }) => {
|
|
24
24
|
const westernWorldEl = document.querySelector('western-world');
|
|
25
25
|
const GAME_MOCK = {
|
|
26
26
|
players: { 1024: { firms: [10] } },
|
|
@@ -36,14 +36,27 @@
|
|
|
36
36
|
stocks: ALL_FIRMS.reduce((previousValue, firmId) => ({ ...previousValue, [firmId]: { stars: 3 } }), {}),
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
westernWorldEl.others = [
|
|
40
|
+
{ fileName: 'colony-background', x: 30, y: 135, size: 1045, onTopOfCells: false },
|
|
41
|
+
{ fileName: 'start', x: 1420, y: 880, size: 450, onTopOfCells: false },
|
|
42
|
+
{ fileName: 'desert', x: 160, y: 1050, size: 700, onTopOfCells: false },
|
|
43
|
+
{ fileName: 'forest', x: 1045, y: 115, size: 490, onTopOfCells: false },
|
|
44
|
+
|
|
45
|
+
{ fileName: 'colony-background-top-elements-leaves', x: 317, y: 360, size: 370, onTopOfCells: true },
|
|
46
|
+
{ fileName: 'colony-arrow-travel-agency-port-yankees', x: 440, y: 145, size: 160, onTopOfCells: true },
|
|
47
|
+
{ fileName: 'colony-arrow-mutiny-on-the-ship-desert-island', x: 665, y: 508, size: 190, onTopOfCells: true },
|
|
48
|
+
{ fileName: 'colony-arrow-pirates', x: 770, y: 320, size: 170, onTopOfCells: true },
|
|
49
|
+
{ fileName: 'colony-arrow-clon-dike', x: 485, y: 750, size: 120, onTopOfCells: true },
|
|
50
|
+
|
|
51
|
+
];
|
|
39
52
|
westernWorldEl.allCells = CELLS;
|
|
40
|
-
westernWorldEl.PADDING_LEFT =
|
|
41
|
-
westernWorldEl.PADDING_RIGHT =
|
|
42
|
-
westernWorldEl.PADDING_TOP =
|
|
43
|
-
westernWorldEl.PADDING_BOTTOM =
|
|
53
|
+
westernWorldEl.PADDING_LEFT = 500;
|
|
54
|
+
westernWorldEl.PADDING_RIGHT = 500;
|
|
55
|
+
westernWorldEl.PADDING_TOP = 500;
|
|
56
|
+
westernWorldEl.PADDING_BOTTOM = 500;
|
|
44
57
|
westernWorldEl.showWesternBackground = true;
|
|
45
58
|
westernWorldEl.SIZE_X_QUALITY = 3;
|
|
46
|
-
westernWorldEl.language = '
|
|
59
|
+
westernWorldEl.language = 'ru';
|
|
47
60
|
westernWorldEl.playersIconMap = window['western-utils'].getPlayersIconsMap({ game: GAME_MOCK });
|
|
48
61
|
|
|
49
62
|
westernWorldEl.game = GAME_MOCK;
|