jclic 2.1.21 → 2.1.23

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/jclic-node.js +9 -8
  3. package/dist/jclic-node.js.map +1 -1
  4. package/dist/jclic.min.js +2 -2
  5. package/dist/jclic.min.js.map +1 -1
  6. package/package.json +4 -4
  7. package/src/GlobalData.js +1 -1
  8. package/src/JClicPlayer.js +2 -2
  9. package/src/bags/MediaBag.js +6 -5
  10. package/dist/1078.jclic-node.js +0 -282
  11. package/dist/1078.jclic-node.js.map +0 -1
  12. package/dist/1196.jclic-node.js +0 -808
  13. package/dist/1196.jclic-node.js.map +0 -1
  14. package/dist/1253.jclic-node.js +0 -1432
  15. package/dist/1253.jclic-node.js.map +0 -1
  16. package/dist/13.jclic-node.js +0 -103
  17. package/dist/13.jclic-node.js.map +0 -1
  18. package/dist/1567.jclic-node.js +0 -2313
  19. package/dist/1567.jclic-node.js.map +0 -1
  20. package/dist/1588.jclic-node.js +0 -602
  21. package/dist/1588.jclic-node.js.map +0 -1
  22. package/dist/1725.jclic-node.js +0 -836
  23. package/dist/1725.jclic-node.js.map +0 -1
  24. package/dist/1731.jclic-node.js +0 -438
  25. package/dist/1731.jclic-node.js.map +0 -1
  26. package/dist/1842.jclic-node.js +0 -651
  27. package/dist/1842.jclic-node.js.map +0 -1
  28. package/dist/2160.jclic-node.js +0 -1016
  29. package/dist/2160.jclic-node.js.map +0 -1
  30. package/dist/222.jclic-node.js +0 -129
  31. package/dist/222.jclic-node.js.map +0 -1
  32. package/dist/2316.jclic-node.js +0 -949
  33. package/dist/2316.jclic-node.js.map +0 -1
  34. package/dist/2355.jclic-node.js +0 -371
  35. package/dist/2355.jclic-node.js.map +0 -1
  36. package/dist/2366.jclic-node.js +0 -431
  37. package/dist/2366.jclic-node.js.map +0 -1
  38. package/dist/2379.jclic-node.js +0 -202
  39. package/dist/2379.jclic-node.js.map +0 -1
  40. package/dist/2437.jclic-node.js +0 -450
  41. package/dist/2437.jclic-node.js.map +0 -1
  42. package/dist/2531.jclic-node.js +0 -869
  43. package/dist/2531.jclic-node.js.map +0 -1
  44. package/dist/2608.jclic-node.js +0 -160
  45. package/dist/2608.jclic-node.js.map +0 -1
  46. package/dist/2715.jclic-node.js +0 -554
  47. package/dist/2715.jclic-node.js.map +0 -1
  48. package/dist/277.jclic-node.js +0 -22
  49. package/dist/277.jclic-node.js.map +0 -1
  50. package/dist/2921.jclic-node.js +0 -660
  51. package/dist/2921.jclic-node.js.map +0 -1
  52. package/dist/2952.jclic-node.js +0 -101
  53. package/dist/2952.jclic-node.js.map +0 -1
  54. package/dist/3018.jclic-node.js +0 -421
  55. package/dist/3018.jclic-node.js.map +0 -1
  56. package/dist/3019.jclic-node.js +0 -682
  57. package/dist/3019.jclic-node.js.map +0 -1
  58. package/dist/3231.jclic-node.js +0 -274
  59. package/dist/3231.jclic-node.js.map +0 -1
  60. package/dist/331.jclic-node.js +0 -115
  61. package/dist/331.jclic-node.js.map +0 -1
  62. package/dist/3391.jclic-node.js +0 -276
  63. package/dist/3391.jclic-node.js.map +0 -1
  64. package/dist/3502.jclic-node.js +0 -671
  65. package/dist/3502.jclic-node.js.map +0 -1
  66. package/dist/3653.jclic-node.js +0 -982
  67. package/dist/3653.jclic-node.js.map +0 -1
  68. package/dist/371.jclic.min.js +0 -2
  69. package/dist/371.jclic.min.js.map +0 -1
  70. package/dist/3856.jclic-node.js +0 -575
  71. package/dist/3856.jclic-node.js.map +0 -1
  72. package/dist/4112.jclic-node.js +0 -659
  73. package/dist/4112.jclic-node.js.map +0 -1
  74. package/dist/4123.jclic-node.js +0 -910
  75. package/dist/4123.jclic-node.js.map +0 -1
  76. package/dist/427.jclic-node.js +0 -894
  77. package/dist/427.jclic-node.js.map +0 -1
  78. package/dist/4483.jclic-node.js +0 -327
  79. package/dist/4483.jclic-node.js.map +0 -1
  80. package/dist/4548.jclic-node.js +0 -1078
  81. package/dist/4548.jclic-node.js.map +0 -1
  82. package/dist/466.jclic-node.js +0 -99
  83. package/dist/466.jclic-node.js.map +0 -1
  84. package/dist/485.jclic-node.js +0 -783
  85. package/dist/485.jclic-node.js.map +0 -1
  86. package/dist/4921.jclic-node.js +0 -500
  87. package/dist/4921.jclic-node.js.map +0 -1
  88. package/dist/5091.jclic-node.js +0 -239
  89. package/dist/5091.jclic-node.js.map +0 -1
  90. package/dist/520.jclic-node.js +0 -550
  91. package/dist/520.jclic-node.js.map +0 -1
  92. package/dist/5312.jclic-node.js +0 -1126
  93. package/dist/5312.jclic-node.js.map +0 -1
  94. package/dist/5338.jclic-node.js +0 -212
  95. package/dist/5338.jclic-node.js.map +0 -1
  96. package/dist/5344.jclic-node.js +0 -229
  97. package/dist/5344.jclic-node.js.map +0 -1
  98. package/dist/5550.jclic-node.js +0 -238
  99. package/dist/5550.jclic-node.js.map +0 -1
  100. package/dist/5626.jclic-node.js +0 -614
  101. package/dist/5626.jclic-node.js.map +0 -1
  102. package/dist/5977.jclic-node.js +0 -1081
  103. package/dist/5977.jclic-node.js.map +0 -1
  104. package/dist/6148.jclic-node.js +0 -345
  105. package/dist/6148.jclic-node.js.map +0 -1
  106. package/dist/6176.jclic-node.js +0 -481
  107. package/dist/6176.jclic-node.js.map +0 -1
  108. package/dist/6221.jclic-node.js +0 -1072
  109. package/dist/6221.jclic-node.js.map +0 -1
  110. package/dist/6238.jclic-node.js +0 -718
  111. package/dist/6238.jclic-node.js.map +0 -1
  112. package/dist/6454.jclic-node.js +0 -1413
  113. package/dist/6454.jclic-node.js.map +0 -1
  114. package/dist/6565.jclic-node.js +0 -294
  115. package/dist/6565.jclic-node.js.map +0 -1
  116. package/dist/6579.jclic-node.js +0 -719
  117. package/dist/6579.jclic-node.js.map +0 -1
  118. package/dist/6715.jclic-node.js +0 -148
  119. package/dist/6715.jclic-node.js.map +0 -1
  120. package/dist/6777.jclic-node.js +0 -171
  121. package/dist/6777.jclic-node.js.map +0 -1
  122. package/dist/6782.jclic-node.js +0 -1611
  123. package/dist/6782.jclic-node.js.map +0 -1
  124. package/dist/6847.jclic-node.js +0 -601
  125. package/dist/6847.jclic-node.js.map +0 -1
  126. package/dist/6856.jclic-node.js +0 -252
  127. package/dist/6856.jclic-node.js.map +0 -1
  128. package/dist/696.jclic-node.js +0 -1821
  129. package/dist/696.jclic-node.js.map +0 -1
  130. package/dist/698.jclic-node.js +0 -583
  131. package/dist/698.jclic-node.js.map +0 -1
  132. package/dist/704.jclic-node.js +0 -80
  133. package/dist/704.jclic-node.js.map +0 -1
  134. package/dist/7046.jclic-node.js +0 -735
  135. package/dist/7046.jclic-node.js.map +0 -1
  136. package/dist/7220.jclic-node.js +0 -156
  137. package/dist/7220.jclic-node.js.map +0 -1
  138. package/dist/7257.jclic-node.js +0 -931
  139. package/dist/7257.jclic-node.js.map +0 -1
  140. package/dist/743.jclic-node.js +0 -583
  141. package/dist/743.jclic-node.js.map +0 -1
  142. package/dist/757.jclic-node.js +0 -1072
  143. package/dist/757.jclic-node.js.map +0 -1
  144. package/dist/7781.jclic-node.js +0 -202
  145. package/dist/7781.jclic-node.js.map +0 -1
  146. package/dist/7912.jclic-node.js +0 -2103
  147. package/dist/7912.jclic-node.js.map +0 -1
  148. package/dist/827.jclic-node.js +0 -708
  149. package/dist/827.jclic-node.js.map +0 -1
  150. package/dist/8276.jclic-node.js +0 -409
  151. package/dist/8276.jclic-node.js.map +0 -1
  152. package/dist/8322.jclic-node.js +0 -498
  153. package/dist/8322.jclic-node.js.map +0 -1
  154. package/dist/8641.jclic-node.js +0 -360
  155. package/dist/8641.jclic-node.js.map +0 -1
  156. package/dist/8837.jclic-node.js +0 -651
  157. package/dist/8837.jclic-node.js.map +0 -1
  158. package/dist/8895.jclic-node.js +0 -151
  159. package/dist/8895.jclic-node.js.map +0 -1
  160. package/dist/9072.jclic-node.js +0 -1285
  161. package/dist/9072.jclic-node.js.map +0 -1
  162. package/dist/9078.jclic-node.js +0 -935
  163. package/dist/9078.jclic-node.js.map +0 -1
  164. package/dist/9103.jclic-node.js +0 -718
  165. package/dist/9103.jclic-node.js.map +0 -1
  166. package/dist/9359.jclic-node.js +0 -145
  167. package/dist/9359.jclic-node.js.map +0 -1
  168. package/dist/9409.jclic-node.js +0 -921
  169. package/dist/9409.jclic-node.js.map +0 -1
  170. package/dist/9513.jclic-node.js +0 -720
  171. package/dist/9513.jclic-node.js.map +0 -1
  172. package/dist/9704.jclic-node.js +0 -81
  173. package/dist/9704.jclic-node.js.map +0 -1
  174. package/dist/9950.jclic-node.js +0 -827
  175. package/dist/9950.jclic-node.js.map +0 -1
@@ -1,921 +0,0 @@
1
- "use strict";
2
- exports.id = 9409;
3
- exports.ids = [9409,8276];
4
- exports.modules = {
5
-
6
- /***/ 9409:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
11
- /* harmony export */ });
12
- /* unused harmony export ActiveBagContent */
13
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7750);
14
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
15
- /* harmony import */ var _BoxBase_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3018);
16
- /* harmony import */ var _ActiveBoxContent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9072);
17
- /* harmony import */ var _shapers_Shaper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8276);
18
- /* harmony import */ var _AWT_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7912);
19
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1253);
20
- /**
21
- * File : boxes/ActiveBagContent.js
22
- * Created : 13/04/2015
23
- * By : Francesc Busquets <francesc@gmail.com>
24
- *
25
- * JClic.js
26
- * An HTML5 player of JClic activities
27
- * https://projectestac.github.io/jclic.js
28
- *
29
- * @source https://github.com/projectestac/jclic.js
30
- *
31
- * @license EUPL-1.2
32
- * @licstart
33
- * (c) 2000-2020 Educational Telematic Network of Catalonia (XTEC)
34
- *
35
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
36
- * the European Commission- subsequent versions of the EUPL (the "Licence");
37
- * You may not use this work except in compliance with the Licence.
38
- *
39
- * You may obtain a copy of the Licence at:
40
- * https://joinup.ec.europa.eu/software/page/eupl
41
- *
42
- * Unless required by applicable law or agreed to in writing, software
43
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
44
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
45
- * Licence for the specific language governing permissions and limitations
46
- * under the Licence.
47
- * @licend
48
- * @module
49
- */
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
- /**
59
- * This class packs a collection of {@link module:boxes/ActiveBoxContent.ActiveBoxContent ActiveBoxContent} objects and provides methods to access
60
- * and manage it. The two main members of `ActiveBagContent` are the {@link module:shapers/Shaper.Shaper Shaper}, responsible for
61
- * determining the position and shape of each {@link module:boxes/ActiveBox.ActiveBox ActiveBox}, and the {@link module:boxes/BoxBase.BoxBase BoxBase} (field `style`),
62
- * provider of a common visual style.
63
- */
64
- class ActiveBagContent {
65
- /**
66
- * ActiveBagContent constructor
67
- * @param {string} [id] - An optional text tag identifying this ActiveBagContent
68
- * @param {number} ncw - In grid-based distributions, number of columns.
69
- * @param {number} nch - In grid-based distributions, number of rows.
70
- */
71
- constructor(id, ncw, nch) {
72
- if (id)
73
- this.id = id;
74
- this.cells = [];
75
- this.ncw = Math.max(1, ncw);
76
- this.nch = Math.max(1, nch);
77
- }
78
-
79
- /**
80
- * Loads the object settings from a specific JQuery XML element
81
- * @param {external:jQuery} $xml - The XML element to parse
82
- * @param {module:bags/MediaBag.MediaBag} mediaBag - The project's MediaBag
83
- */
84
- setProperties($xml, mediaBag) {
85
- let bug = false;
86
- (0,_Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .attrForEach */ .GM)($xml.get(0).attributes, (name, val) => {
87
- switch (name) {
88
- case 'id':
89
- this.id = val;
90
- break;
91
- case 'image':
92
- this.image = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .nSlash */ .c4)(val);
93
- break;
94
- // Bug in JClic beta 1: "columns" is number of rows, and "rows" is number of columns.
95
- // Was corrected in beta 2: If "cols" is specified, "rows" are rows and "cols" are columns.
96
- case 'rows':
97
- this.nch = Number(val);
98
- break;
99
- case 'columns':
100
- bug = true;
101
- /* falls through */
102
- case 'cols':
103
- this.ncw = Number(val);
104
- break;
105
- case 'cellWidth':
106
- this.w = Number(val);
107
- break;
108
- case 'cellHeight':
109
- this.h = Number(val);
110
- break;
111
- case 'border':
112
- this.border = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .getBoolean */ .pW)(val);
113
- break;
114
- }
115
- });
116
-
117
- if (bug) {
118
- let n = this.ncw;
119
- this.ncw = this.nch;
120
- this.nch = n;
121
- }
122
-
123
- $xml.children().each((_n, child) => {
124
- const $node = jquery__WEBPACK_IMPORTED_MODULE_0___default()(child);
125
- switch (child.nodeName) {
126
- case 'style':
127
- this.style = new _BoxBase_js__WEBPACK_IMPORTED_MODULE_1__["default"](null).setProperties($node);
128
- break;
129
- case 'shaper':
130
- const shaperClassName = $node.attr('class'),
131
- nCols = Math.max(1, $node.attr('cols')),
132
- nRows = Math.max(1, $node.attr('rows'));
133
- this.shaper = _shapers_Shaper_js__WEBPACK_IMPORTED_MODULE_3__["default"].getShaper(shaperClassName, nCols, nRows);
134
- this.shaper.setProperties($node);
135
- break;
136
- case 'ids':
137
- // Used in special cases where all cells have empty content with only 'ids'
138
- this.ids = child.textContent;
139
- this.ids.split(' ').forEach((id, i) => { this.cells[i] = new _ActiveBoxContent_js__WEBPACK_IMPORTED_MODULE_2__["default"](Number(id)); });
140
- break;
141
- case 'cell':
142
- this.cells.push(new _ActiveBoxContent_js__WEBPACK_IMPORTED_MODULE_2__["default"]().setProperties($node, mediaBag));
143
- break;
144
- }
145
- });
146
-
147
- let n = this.cells.length;
148
-
149
- // Create cells when `cells` is empty
150
- if (n === 0 && this.shaper && this.shaper.nCells > 0) {
151
- this.initiallyEmptyCells = true;
152
- n = this.shaper.nCells;
153
- this.getActiveBoxContent(n - 1);
154
- }
155
-
156
- // Assign ids when cells have empty content (they are just shapes)
157
- if (n > 0) {
158
- let empty = true;
159
- for (let i = 0; i < n; i++) {
160
- const bxc = this.getActiveBoxContent(i);
161
- if (bxc.id !== -1 || bxc.item !== -1 || !bxc.isEmpty()) {
162
- empty = false;
163
- break;
164
- }
165
- }
166
- if (empty) {
167
- for (let i = 0; i < n; i++)
168
- this.getActiveBoxContent(i).id = i;
169
- }
170
- }
171
-
172
- // Link [BoxBase](BoxBase.html) objects of `cells` elements to `style`
173
- if (this.style)
174
- this.cells.forEach((abc) => { if (abc.style) abc.style.parent = this.style; });
175
-
176
- return this;
177
- }
178
-
179
- /**
180
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
181
- * parent references, constants and also attributes retaining the default value.
182
- * The resulting object is commonly usued to serialize elements in JSON format.
183
- * @returns {object} - The resulting object, with minimal attrributes
184
- */
185
- getAttributes() {
186
- const fields = [
187
- 'id', 'image',
188
- 'ncw', 'nch',
189
- 'w', 'h', 'border',
190
- 'style', // BoxBase
191
- 'shaper', // Shaper
192
- ];
193
- if (!this.initiallyEmptyCells)
194
- fields.push(this.ids ? 'ids' : 'cells'); // ActiveBoxContent
195
- return (0,_Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .getAttr */ .iu)(this, fields);
196
- }
197
-
198
- /**
199
- * Reads the properties of this ActiveBagContent from a data object
200
- * @param {object} data - The data object to be parsed
201
- * @param {module:bags/MediaBag.MediaBag} mediaBag - The project's MediaBag
202
- * @returns {module:boxes/ActiveBagContent.ActiveBagContent}
203
- */
204
- setAttributes(data, mediaBag) {
205
- (0,_Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .setAttr */ .ob)(this, data, [
206
- 'id', 'image',
207
- 'ncw', 'nch',
208
- 'w', 'h', 'border',
209
- { key: 'style', fn: _BoxBase_js__WEBPACK_IMPORTED_MODULE_1__["default"] },
210
- { key: 'shaper', fn: _shapers_Shaper_js__WEBPACK_IMPORTED_MODULE_3__["default"] },
211
- 'ids',
212
- { key: 'cells', fn: _ActiveBoxContent_js__WEBPACK_IMPORTED_MODULE_2__["default"], group: 'array', params: [mediaBag] },
213
- ]);
214
-
215
- let n = this.cells.length;
216
-
217
- // Create cells when `cells` is empty
218
- if (n === 0 && this.shaper && this.shaper.nCells > 0) {
219
- this.initiallyEmptyCells = true;
220
- n = this.shaper.nCells;
221
- this.getActiveBoxContent(n - 1);
222
- if (this.ids)
223
- this.ids.split(' ').forEach((id, i) => { this.getActiveBoxContent(i).id = Number(id); });
224
- }
225
-
226
- // Assign ids when cells have empty content (they are just shapes)
227
- if (n > 0) {
228
- let empty = true;
229
- for (let i = 0; i < n; i++) {
230
- const bxc = this.getActiveBoxContent(i);
231
- if (bxc.id !== -1 || bxc.item !== -1 || !bxc.isEmpty()) {
232
- empty = false;
233
- break;
234
- }
235
- }
236
- if (empty) {
237
- for (let i = 0; i < n; i++)
238
- this.getActiveBoxContent(i).id = i;
239
- }
240
- }
241
-
242
- // Link [BoxBase](BoxBase.html) objects of `cells` elements to `style`
243
- if (this.style)
244
- this.cells.forEach(abc => { if (abc.style) abc.style.parent = this.style; });
245
-
246
- if (mediaBag)
247
- this.cells.forEach(abc => abc.realizeContent(mediaBag));
248
-
249
- return this;
250
- }
251
-
252
- /**
253
- * Prepares the media content of all elements
254
- * @param {module:JClicPlayer.JClicPlayer} playStation - The {@link module:JClicPlayer.JClicPlayer JClicPlayer}
255
- */
256
- prepareMedia(playStation) {
257
- this.cells.forEach(abc => abc.prepareMedia(playStation));
258
- }
259
-
260
- /**
261
- * Gets the estimated total width of this content bag
262
- * @returns {number}
263
- */
264
- getTotalWidth() {
265
- return this.w * this.ncw;
266
- }
267
-
268
- /**
269
- * Gets the estimated total height of this bag
270
- * @returns {number}
271
- */
272
- getTotalHeight() {
273
- return this.h * this.nch;
274
- }
275
-
276
- /**
277
- * Gets the total number of cells of this bag
278
- * @returns {number}
279
- */
280
- getNumCells() {
281
- return this.cells.length;
282
- }
283
-
284
- /**
285
- * Checks if the bag is empty
286
- * @returns {boolean}
287
- */
288
- isEmpty() {
289
- return this.cells.length === 0;
290
- }
291
-
292
- /**
293
- * Retrieves the {@link module:shapers/Shaper.Shaper Shaper} of this bag, creating a new one if it was _null_
294
- * @returns {module:shapers/Shaper.Shaper}
295
- */
296
- getShaper() {
297
- if (this.shaper === null)
298
- this.shaper = _shapers_Shaper_js__WEBPACK_IMPORTED_MODULE_3__["default"].getShaper('@Rectangular', this.ncw, this.nch);
299
- return this.shaper;
300
- }
301
-
302
- /**
303
- * Retrieves the {@link module:boxes/BoxBase.BoxBase BoxBase} of this bag, creating a new one if it was _null_
304
- * @returns {module:boxes/BoxBase.BoxBase}
305
- */
306
- getBoxBase() {
307
- if (this.style === null)
308
- this.style = new _BoxBase_js__WEBPACK_IMPORTED_MODULE_1__["default"]();
309
- return this.style;
310
- }
311
-
312
- /**
313
- * Adds a new {@link module:boxes/ActiveBoxContent.ActiveBoxContent ActiveBoxContent} to this bag
314
- * @param {module:boxes/ActiveBoxContent.ActiveBoxContent} ab - The ActiveBoxContent to add
315
- */
316
- addActiveBoxContent(ab) {
317
- this.cells.push(ab);
318
- if (this.ncw === 0 || this.nch === 0) {
319
- this.ncw = this.nch = 1;
320
- }
321
- }
322
-
323
- /**
324
- * Gets the nth {@link module:boxes/ActiveBoxContent.ActiveBoxContent ActiveBoxContent} in `cells`
325
- * @param {number} i - The index of the content to be retrieved
326
- * @returns {module:boxes/ActiveBoxContent.ActiveBoxContent}
327
- */
328
- getActiveBoxContent(i) {
329
- if (i >= this.cells.length) {
330
- for (let j = this.cells.length; j <= i; j++)
331
- this.cells.push(new _ActiveBoxContent_js__WEBPACK_IMPORTED_MODULE_2__["default"]());
332
- }
333
- return this.cells[i];
334
- }
335
-
336
- /**
337
- * Finds the ActiveBoxContent with specific `id` and `item` values
338
- * @param {number} id
339
- * @param {number} item
340
- * @returns {module:boxes/ActiveBoxContent.ActiveBoxContent}
341
- */
342
- getActiveBoxContentWith(id, item) {
343
- return this.cells.find(bxc => bxc.id === id && bxc.item === item);
344
- }
345
-
346
- /**
347
- * Sets the content of the cells based on a image spliced by a shaper
348
- * @param {module:bags/MediaBag.MediaBag} mb - The MediaBag used to retrieve the image
349
- * @param {module:shapers/Shaper.Shaper} sh - The Shaper used to splice the image
350
- * @param {boolean} roundSizes - When `true`, the size and coordinates of cells will be rounded
351
- * to the nearest integer values.
352
- */
353
- setImgContent(mb, sh, roundSizes) {
354
- if (sh)
355
- this.setShaper(sh);
356
-
357
- if (this.shaper.className === '@Holes')
358
- this.shaper.hasRemainder = true;
359
-
360
- this.ncw = this.shaper.nCols;
361
- this.nch = this.shaper.nRows;
362
- const mbe = mb.elements[this.image];
363
- if (mb && this.image && mbe && mbe.ready) {
364
- this.img = mbe.data;
365
- if (mbe.animated)
366
- this.animatedGifFile = mbe.getFullPath();
367
- this.w = this.img.width / this.ncw;
368
- this.h = this.img.height / this.nch;
369
- if (roundSizes) {
370
- this.w = Math.round(this.w);
371
- this.h = Math.round(this.h);
372
- }
373
- } else {
374
- this.img = null;
375
- this.w = Math.max(this.w, 10);
376
- this.h = Math.max(this.h, 10);
377
- }
378
-
379
- const r = new _AWT_js__WEBPACK_IMPORTED_MODULE_4__/* .Rectangle */ .M_(0, 0, this.w * this.ncw, this.h * this.nch);
380
- for (let i = 0; i < this.shaper.nCells; i++)
381
- this.getActiveBoxContent(i).setImgContent(this.img, this.shaper.getShape(i, r), this.animatedGifFile);
382
-
383
- if (this.shaper.hasRemainder) {
384
- this.backgroundContent = new _ActiveBoxContent_js__WEBPACK_IMPORTED_MODULE_2__["default"]();
385
- this.backgroundContent.setImgContent(this.img, this.shaper.getRemainderShape(r));
386
- }
387
- }
388
-
389
- /**
390
- * Sets the content of this bag based on an array of strings
391
- * @param {string[]} txt - The array of strings to be used as content.
392
- * @param {number} setNcw - Number of columns
393
- * @param {number} setNch - Number of rows
394
- */
395
- setTextContent(txt, setNcw, setNch) {
396
- this.ncw = Math.max(1, setNcw);
397
- this.nch = Math.max(1, setNch);
398
- const n = this.ncw * this.nch;
399
- for (let i = 0; i < n; i++)
400
- this.getActiveBoxContent(i).setTextContent(i >= txt.length || txt[i] === null ? '' : txt[i]);
401
- }
402
-
403
- /**
404
- * Sets `id` values to a all the {@link module:boxes/ActiveBoxContent.ActiveBoxContent ActiveBoxContent} elements of his bag.
405
- * @param {number[]} ids -Array of numeric identifiers
406
- */
407
- setIds(ids) {
408
- for (let i = 0; i < ids.length && i < this.cells.length; i++)
409
- this.getActiveBoxContent(i).id = ids[i];
410
- }
411
-
412
- /**
413
- * Sets `value` to the `key` attribute of all cells
414
- * @param {string} key - The key where the value will be stored
415
- * @param {any} value - The supplied value. Can be of any type.
416
- */
417
- setCellsAttribute(key, value) {
418
- this.cells.forEach(abc => abc[key] = value);
419
- }
420
-
421
- /**
422
- *
423
- * Cheks if the `id` values of all {@link module:boxes/ActiveBoxContent.ActiveBoxContent ActiveBoxContent} objects are -1 and, if true,
424
- * sets new ids to them, with values between 0 and `maxId`
425
- * @param {number} maxId - The maximum value of identifiers
426
- */
427
- avoidAllIdsNull(maxId) {
428
- if (this.cells.every(abc => abc.id === -1)) {
429
- maxId = Math.max(1, maxId);
430
- this.cells.forEach((abc, n) => { abc.id = n % maxId; });
431
- }
432
- }
433
- }
434
-
435
- Object.assign(ActiveBagContent.prototype, {
436
- /**
437
- * The global identifier of this object: `primary`, `secondary`...
438
- * @name module:boxes/ActiveBagContent.ActiveBagContent#id
439
- * @type {string} */
440
- id: 'primary',
441
- /**
442
- * The name of the image file used as a common image of this bag
443
- * @name module:boxes/ActiveBagContent.ActiveBagContent#image
444
- * @type {string} */
445
- image: null,
446
- /**
447
- * The built image object
448
- * @name module:boxes/ActiveBagContent.ActiveBagContent#img
449
- * @type {external:HTMLImageElement} */
450
- img: null,
451
- /**
452
- * Name of the img source when is an animated GIF
453
- * @name module:boxes/ActiveBagContent.ActiveBagContent#animatedGifFile
454
- * @type {string} */
455
- animatedGifFile: null,
456
- /**
457
- * Number of columns when cells are distributed in a grid
458
- * @name module:boxes/ActiveBagContent.ActiveBagContent#ncw
459
- * @type {number} */
460
- ncw: 1,
461
- /**
462
- * Number of rows when cells are distributed in a grid
463
- * @name module:boxes/ActiveBagContent.ActiveBagContent#nch
464
- * @type {number} */
465
- nch: 1,
466
- /**
467
- * Optimal cell width
468
- * @name module:boxes/ActiveBagContent.ActiveBagContent#w
469
- * @type {number} */
470
- w: _Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .settings */ .W0.DEFAULT_GRID_ELEMENT_SIZE,
471
- /**
472
- * Optimal cell height
473
- * @name module:boxes/ActiveBagContent.ActiveBagContent#h
474
- * @type {number} */
475
- h: _Utils_js__WEBPACK_IMPORTED_MODULE_5__/* .settings */ .W0.DEFAULT_GRID_ELEMENT_SIZE,
476
- /**
477
- * Whether the cells must have a border or not
478
- * @name module:boxes/ActiveBagContent.ActiveBagContent#border
479
- * @type {boolean} */
480
- border: true,
481
- /**
482
- * The BoxBase used for this bag of cell contents
483
- * @name module:boxes/ActiveBagContent.ActiveBagContent#style
484
- * @type {module:boxes/BoxBase.BoxBase} */
485
- style: null,
486
- /**
487
- * The Shaper used to define the specific shape of each cell
488
- * @name module:boxes/ActiveBagContent.ActiveBagContent#shaper
489
- * @type {module:shapers/Shaper.Shaper} */
490
- shaper: null,
491
- /**
492
- * An optional ActiveBoxContent object with background settings.
493
- * @name module:boxes/ActiveBagContent.ActiveBagContent#backgroundContent
494
- * @type {module:boxes/ActiveBoxContent.ActiveBoxContent} */
495
- backgroundContent: null,
496
- /**
497
- * The main Array of {@link module:boxes/ActiveBoxContent.ActiveBoxContent ActiveBoxContent} objects
498
- * @name module:boxes/ActiveBagContent.ActiveBagContent#cells
499
- * @type {module:boxes/ActiveBoxContent.ActiveBoxContent[]} */
500
- cells: null,
501
- /**
502
- * The default value to be assigned at the 'id' field of children
503
- * @name module:boxes/ActiveBagContent.ActiveBagContent#defaultIdValue
504
- * @type {number} */
505
- defaultIdValue: -1,
506
- /**
507
- * Used in special cases where all cells have empty content with only numeric identifiers
508
- * @name module:boxes/ActiveBagContent.ActiveBagContent#ids
509
- * @type {string} */
510
- ids: null,
511
- });
512
-
513
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActiveBagContent);
514
-
515
-
516
- /***/ }),
517
-
518
- /***/ 8276:
519
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
520
-
521
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
522
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
523
- /* harmony export */ });
524
- /* unused harmony export Shaper */
525
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7750);
526
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
527
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1253);
528
- /* harmony import */ var _AWT_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7912);
529
- /**
530
- * File : shapers/Shaper.js
531
- * Created : 13/04/2015
532
- * By : Francesc Busquets <francesc@gmail.com>
533
- *
534
- * JClic.js
535
- * An HTML5 player of JClic activities
536
- * https://projectestac.github.io/jclic.js
537
- *
538
- * @source https://github.com/projectestac/jclic.js
539
- *
540
- * @license EUPL-1.2
541
- * @licstart
542
- * (c) 2000-2020 Educational Telematic Network of Catalonia (XTEC)
543
- *
544
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
545
- * the European Commission- subsequent versions of the EUPL (the "Licence");
546
- * You may not use this work except in compliance with the Licence.
547
- *
548
- * You may obtain a copy of the Licence at:
549
- * https://joinup.ec.europa.eu/software/page/eupl
550
- *
551
- * Unless required by applicable law or agreed to in writing, software
552
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
553
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
554
- * Licence for the specific language governing permissions and limitations
555
- * under the Licence.
556
- * @licend
557
- * @module
558
- */
559
-
560
-
561
-
562
-
563
-
564
- /**
565
- * The function of this class and its subclasses is to draw a set of "shapes" that will be used to
566
- * place {@link module:boxes/ActiveBox.ActiveBox ActiveBox} objects at a specific position, and to determine its dimension and
567
- * appearance.
568
- */
569
- class Shaper {
570
- /**
571
- * Shaper constructor
572
- * @param {number} nx - Number of columns (in grid-based shapers)
573
- * @param {number} ny - Number of rows (in grid-based shapers)
574
- */
575
- constructor(nx, ny) {
576
- this.reset(nx, ny);
577
- }
578
-
579
- /**
580
- * Registers a new type of shaper
581
- * @param {string} shaperName - The name used to identify this shaper
582
- * @param {function} shaperClass - The shaper class, usually extending Shaper
583
- * @returns {module:shapers/Shaper.Shaper} - The provided shaper class
584
- */
585
- static registerClass(shaperName, shaperClass) {
586
- Shaper.CLASSES[shaperName] = shaperClass;
587
- return shaperClass;
588
- }
589
-
590
- /**
591
- * Factory constructor that returns a Shaper of the requested class.
592
- * @param {string} className - The class name of the requested Shaper.
593
- * @param {number} nx - Number of columns (in grid-based shapers)
594
- * @param {number} ny - Number of rows (in grid-based shapers)
595
- * @returns {module:shapers/Shaper.Shaper}
596
- */
597
- static getShaper(className, nx, ny) {
598
- const cl = Shaper.CLASSES[(className || '').replace(/^edu\.xtec\.jclic\.shapers\./, '@')];
599
- if (!cl)
600
- (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .log */ .Rm)('error', `Unknown shaper: ${className}`);
601
- return cl ? new cl(nx, ny) : null;
602
- }
603
-
604
- /**
605
- * Initializes this Shaper to default values
606
- * @param {number} nCols - Number of columns
607
- * @param {number} nRows - Number of rows
608
- */
609
- reset(nCols, nRows) {
610
- this.nCols = nCols;
611
- this.nRows = nRows;
612
- this.nCells = nRows * nCols;
613
- this.initiated = false;
614
- this.shapeData = [];
615
- for (let i = 0; i < this.nCells; i++)
616
- this.shapeData[i] = new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Shape */ .yp();
617
- }
618
-
619
- /**
620
- * Loads this shaper settings from a specific JQuery XML element
621
- * @param {external:jQuery} $xml - The XML element with the shaper data
622
- */
623
- setProperties($xml) {
624
- (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .attrForEach */ .GM)($xml.get(0).attributes, (name, value) => {
625
- switch (name) {
626
- case 'class':
627
- this.className = value;
628
- break;
629
- case 'cols':
630
- this.nCols = Number(value);
631
- break;
632
- case 'rows':
633
- this.nRows = Number(value);
634
- break;
635
- case 'baseWidthFactor':
636
- case 'toothHeightFactor':
637
- case 'scaleX':
638
- case 'scaleY':
639
- this[name] = Number(value);
640
- break;
641
- case 'randomLines':
642
- case 'showEnclosure':
643
- this[name] = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .getBoolean */ .pW)(value, true);
644
- break;
645
- }
646
- });
647
-
648
- // Reads the 'enclosing'
649
- // (main shape area where the other shape elements are placed)
650
- $xml.children('enclosing:first').each((_n, child) => {
651
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(child).children('shape:first').each((_n, child2) => {
652
- let sh = Shaper.readShapeData(child2, this.scaleX, this.scaleY);
653
- this.enclosing = sh;
654
- this.showEnclosure = true;
655
- this.hasRemainder = true;
656
- });
657
- });
658
-
659
- // Read the shape elements
660
- $xml.children('shape').each((n, child) => {
661
- this.shapeData[n] = Shaper.readShapeData(child, this.scaleX, this.scaleY);
662
- });
663
-
664
- // Correction needed for '@Holes' shaper
665
- if (this.shapeData.length > 0 /* && this.shapeData.length !== this.nRows * this.nCols */) {
666
- //this.nRows = this.shapeData.length
667
- //this.nCols = 1
668
- //this.nCells = this.nCols * this.nRows
669
- this.nCells = this.shapeData.length;
670
- }
671
- return this;
672
- }
673
-
674
- /**
675
- * Reads an individual shape from an XML element.
676
- * Shapes are arrays of `stroke` objects.
677
- * Each `stroke` has an `action` (_move to_, _line to_, _quad to_...) and associated `data`.
678
- * @param {external:jQuery} $xml - The XML element with the shape data
679
- * @param {number} scaleX
680
- * @param {number} scaleY
681
- * @returns {module:AWT.Shape}
682
- */
683
- static readShapeData(xml, scaleX, scaleY) {
684
- const shd = [];
685
- let result = null;
686
- jquery__WEBPACK_IMPORTED_MODULE_0___default().each(xml.textContent.split('|'), (_n, txt) => {
687
- const sd = txt.split(':');
688
- // Possible strokes are: `rectangle`, `ellipse`, `M`, `L`, `Q`, `B`, `X`
689
- // Also possible, but not currently used in JClic: `roundRectangle` and `pie`
690
- let data = sd.length > 1 ? sd[1].split(',') : null;
691
- //
692
- // Data should be always divided by the scale (X or Y)
693
- if (data)
694
- data = data.map((d, n) => d / (n % 2 ? scaleY : scaleX));
695
-
696
- switch (sd[0]) {
697
- case 'rectangle':
698
- result = new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Rectangle */ .M_(data[0], data[1], data[2], data[3]);
699
- break;
700
- case 'ellipse':
701
- result = new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Ellipse */ .Pp(data[0], data[1], data[2], data[3]);
702
- break;
703
- default:
704
- // It's an `AWT.PathStroke`
705
- shd.push(new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .PathStroke */ .kg(sd[0], data));
706
- break;
707
- }
708
- });
709
-
710
- return !result && shd.length > 0 ? new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Path */ .wA(shd) : result;
711
- }
712
-
713
- /**
714
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
715
- * parent references, constants and also attributes retaining the default value.
716
- * The resulting object is commonly usued to serialize elements in JSON format.
717
- * @returns {object} - The resulting object, with minimal attrributes
718
- */
719
- getAttributes() {
720
- const fields = [
721
- 'className', 'nCols', 'nRows',
722
- 'baseWidthFactor', 'toothHeightFactor',
723
- 'scaleX', 'scaleY',
724
- 'randomLines',
725
- ];
726
-
727
- if (this.customShapes) {
728
- ['showEnclosure', 'hasRemainder',
729
- 'enclosing', 'shapeData', // Array of AWT.Rectangle, AWT.Ellipse or (AWT.Path -> AWT.PathStroke)
730
- ].forEach(f => fields.push(f));
731
- }
732
-
733
- return (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .getAttr */ .iu)(this, fields);
734
- }
735
-
736
- /**
737
- * Builds a new shaper, based on the properties specified in a data object
738
- * @param {object} data - The data object to be parsed
739
- * @returns {module:shapers/Shaper.Shaper}
740
- */
741
- static factory(data) {
742
- const result = Shaper.getShaper(data.className, data.nCols, data.nRows);
743
- (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .setAttr */ .ob)(result, data, [
744
- 'className', 'nCols', 'nRows',
745
- 'baseWidthFactor', 'toothHeightFactor',
746
- 'scaleX', 'scaleY',
747
- 'randomLines',
748
- 'showEnclosure', 'hasRemainder',
749
- { key: 'enclosing', fn: _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Shape */ .yp },
750
- { key: 'shapeData', fn: _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Shape */ .yp, group: 'array' },
751
- ]);
752
-
753
- result.nCells = result.shapeData.length || result.nCols * result.nRows;
754
-
755
- return result;
756
- }
757
-
758
- /**
759
- * Builds the individual shapes that will form this Shaper
760
- */
761
- buildShapes() {
762
- }
763
-
764
- /**
765
- * Gets a clone of the nth Shape object, scaled and located inside a Rectangle
766
- * @param {number} n
767
- * @param {module:AWT.Rectangle} rect
768
- * @returns {module:AWT.Shape}
769
- */
770
- getShape(n, rect) {
771
- if (!this.initiated)
772
- this.buildShapes();
773
- if (n >= this.nCells || this.shapeData[n] === null)
774
- return null;
775
- return this.shapeData[n].getShape(rect);
776
- }
777
-
778
- /**
779
- * Gets the nth Shape data object
780
- * @param {number} n
781
- * @returns {object}
782
- */
783
- getShapeData(n) {
784
- return n >= 0 && n < this.shapeData.length ? this.shapeData[n] : null;
785
- }
786
-
787
- /**
788
- * Gets the AWT.Rectangle that contains all shapes of this Shaper.
789
- * @returns {module:AWT.Rectangle}
790
- */
791
- getEnclosingShapeData() {
792
- return new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Rectangle */ .M_(0, 0, 1, 1);
793
- }
794
-
795
- /**
796
- * When `hasRemainder` is true, this method gets the rectangle containing the full surface where
797
- * the Shaper develops.
798
- * @param {module:AWT.Rectangle} rect - The frame where to move and scale all the shapes
799
- * @returns {module:AWT.Rectangle}
800
- */
801
- getRemainderShape(rect) {
802
- if (!this.hasRemainder)
803
- return null;
804
-
805
- if (!this.initiated)
806
- this.buildShapes();
807
-
808
- const sh = this.getEnclosingShapeData();
809
- const r = sh ? sh.getShape(rect) : new _AWT_js__WEBPACK_IMPORTED_MODULE_2__/* .Rectangle */ .M_();
810
- for (let i = 0; i < this.nCells; i++) {
811
- if (this.shapeData[i])
812
- r.add(this.shapeData[i].getShape(rect), false);
813
- }
814
- return r;
815
- }
816
- }
817
-
818
- Object.assign(Shaper.prototype, {
819
- /**
820
- * This shaper class name
821
- * @name module:shapers/Shaper.Shaper#className
822
- * @type {string} */
823
- className: 'Shaper',
824
- /**
825
- * Number of columns (useful in grid-based shapers)
826
- * @name module:shapers/Shaper.Shaper#nCols
827
- * @type {number} */
828
- nCols: 0,
829
- /**
830
- * Number of rows (useful in grid-based shapers)
831
- * @name module:shapers/Shaper.Shaper#nRows
832
- * @type {number} */
833
- nRows: 0,
834
- /**
835
- * Number of cells managed by this shaper
836
- * @name module:shapers/Shaper.Shaper#nCells
837
- * @type {number} */
838
- nCells: 0,
839
- /**
840
- * Contains the specific definition of each shape
841
- * @name module:shapers/Shaper.Shaper#shapeData
842
- * @type {object} */
843
- shapeData: null,
844
- /**
845
- * Flag used to check if the `Shaper` has been initialized against a real surface
846
- * @name module:shapers/Shaper.Shaper#initiated
847
- * @type {boolean} */
848
- initiated: false,
849
- //
850
- // Fields used only in JigSaw shapers
851
- /**
852
- * In {@link module:shapers/JigSaw.JigSaw JigSaw}, ratio between the base width of the tooth and the total length of the side.
853
- * @name module:shapers/Shaper.Shaper#baseWidthFactor
854
- * @type {number} */
855
- baseWidthFactor: 1.0 / 3,
856
- /**
857
- * In {@link module:shapers/JigSaw.JigSaw JigSaw}, ratio between the tooth height and the total length of the side.
858
- * @name module:shapers/Shaper.Shaper#toothHeightFactor
859
- * @type {number} */
860
- toothHeightFactor: 1.0 / 6,
861
- /**
862
- * In {@link module:shapers/JigSaw.JigSaw JigSaw}, whether the tooths take random directions or not
863
- * @name module:shapers/Shaper.Shaper#randomLines
864
- * @type {boolean} */
865
- randomLines: false,
866
- //
867
- // Fields used only in the `Holes` shaper
868
- /**
869
- * In {@link module:shapers/Holes.Holes Holes}, scale to be applied to horizontal positions and lengths to achieve the real
870
- * value of the shape placed on a real surface.
871
- * @name module:shapers/Shaper.Shaper#scaleX
872
- * @type {number} */
873
- scaleX: 1.0,
874
- /**
875
- * In {@link module:shapers/Holes.Holes Holes}, scale to be applied to vertical positions and lengths to achieve the real
876
- * value of the shape placed on a real surface.
877
- * @name module:shapers/Shaper.Shaper#scaleY
878
- * @type {number} */
879
- scaleY: 1.0,
880
- /**
881
- * In {@link module:shapers/Holes.Holes Holes}, the enclosing area where all shapes are placed.
882
- * @name module:shapers/Shaper.Shaper#enclosing
883
- * @type {module:AWT.Shape} */
884
- enclosing: null,
885
- /**
886
- * In {@link module:shapers/Holes.Holes Holes}, when `true`, the enclosing area will be drawn
887
- * @name module:shapers/Shaper.Shaper#showEnclosure
888
- * @type {boolean} */
889
- showEnclosure: false,
890
- /**
891
- * Flag indicating if this shaper organizes its cells in rows and columns
892
- * @name module:shapers/Shaper.Shaper#rectangularShapes
893
- * @type {boolean} */
894
- rectangularShapes: false,
895
- /**
896
- * Flag indicating if this Shaper deploys over a surface biggest than the rectangle enclosing
897
- * all its shapes
898
- * @name module:shapers/Shaper.Shaper#hasRemainder
899
- * @type {boolean} */
900
- hasRemainder: false,
901
- /**
902
- * Only the `Holes` shaper has this flag activated
903
- * @name module:shapers/Shaper.Shaper#customShapes
904
- * @type {boolean} */
905
- customShapes: false,
906
- });
907
-
908
- /**
909
- * List of known classes derived from Shaper. It should be filled by real shaper classes at
910
- * declaration time.
911
- * @type {object} */
912
- Shaper.CLASSES = {};
913
-
914
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Shaper);
915
-
916
-
917
- /***/ })
918
-
919
- };
920
- ;
921
- //# sourceMappingURL=9409.jclic-node.js.map