highmark-cli 0.0.138 → 0.0.139

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 (86) hide show
  1. package/bin/action/publish.js +2 -0
  2. package/bin/constants.js +3 -1
  3. package/bin/handler/liveReload.js +18 -0
  4. package/bin/operation/copyCheckmark.js +32 -0
  5. package/bin/operation/copyClient.js +5 -5
  6. package/bin/operation/markdownStylesCSS.js +2 -2
  7. package/bin/operation/server.js +7 -10
  8. package/bin/router/static.js +17 -0
  9. package/checkmark.svg +12 -0
  10. package/client.js +6216 -1574
  11. package/css/loading.css +32 -32
  12. package/lib/client.js +21 -6
  13. package/lib/constants.js +29 -9
  14. package/lib/createMethods.js +64 -0
  15. package/lib/customEventTypes.js +9 -1
  16. package/lib/eventTypes.js +5 -1
  17. package/lib/localStorage.js +56 -0
  18. package/lib/mixins/fullsrean.js +63 -0
  19. package/lib/mixins/touch.js +101 -32
  20. package/lib/selectors.js +9 -9
  21. package/lib/state.js +133 -0
  22. package/lib/styles.js +78 -0
  23. package/lib/utilities/fullScreen.js +16 -0
  24. package/lib/utilities/orientation.js +39 -0
  25. package/lib/view/button/closeMenu.js +121 -0
  26. package/lib/view/button/fullScreen.js +121 -0
  27. package/lib/view/button/zoomMenuIn.js +121 -0
  28. package/lib/view/button/zoomMenuOut.js +121 -0
  29. package/lib/view/button.js +160 -0
  30. package/lib/view/checkbox.js +193 -0
  31. package/lib/view/div/buttons.js +215 -0
  32. package/lib/view/div/checkbox/invertColours.js +151 -0
  33. package/lib/view/div/checkbox/restoreNativeGestures.js +147 -0
  34. package/lib/view/div/checkbox.js +220 -0
  35. package/lib/view/div/checkboxes.js +211 -0
  36. package/lib/view/div/leaf.js +12 -20
  37. package/lib/view/div/menu.js +122 -28
  38. package/lib/view/div/overlay.js +650 -0
  39. package/lib/view/div/preloader.js +204 -0
  40. package/lib/view/element.js +164 -0
  41. package/lib/view/span.js +182 -0
  42. package/lib/view/svg/closeMenu.js +138 -0
  43. package/lib/view/svg/fullScreen.js +138 -0
  44. package/lib/view/svg/zoomMenuIn.js +146 -0
  45. package/lib/view/svg/zoomMenuOut.js +141 -0
  46. package/lib/view/svg.js +184 -0
  47. package/lib/view.js +23 -396
  48. package/package.json +3 -2
  49. package/src/client.js +32 -8
  50. package/src/constants.js +7 -2
  51. package/src/createMethods.js +66 -0
  52. package/src/customEventTypes.js +2 -0
  53. package/src/eventTypes.js +1 -0
  54. package/src/localStorage.js +48 -0
  55. package/src/mixins/fullsrean.js +75 -0
  56. package/src/mixins/touch.js +98 -39
  57. package/src/selectors.js +2 -2
  58. package/src/state.js +130 -0
  59. package/src/styles.js +18 -0
  60. package/src/utilities/fullScreen.js +8 -0
  61. package/src/utilities/orientation.js +34 -0
  62. package/src/view/button/closeMenu.js +16 -0
  63. package/src/view/button/fullScreen.js +16 -0
  64. package/src/view/button/zoomMenuIn.js +16 -0
  65. package/src/view/button/zoomMenuOut.js +16 -0
  66. package/src/view/button.js +38 -0
  67. package/src/view/checkbox.js +68 -0
  68. package/src/view/div/buttons.js +39 -0
  69. package/src/view/div/checkbox/invertColours.js +33 -0
  70. package/src/view/div/checkbox/restoreNativeGestures.js +29 -0
  71. package/src/view/div/checkbox.js +45 -0
  72. package/src/view/div/checkboxes.js +36 -0
  73. package/src/view/div/leaf.js +10 -15
  74. package/src/view/div/menu.js +83 -26
  75. package/src/view/div/overlay.js +578 -0
  76. package/src/view/div/preloader.js +25 -0
  77. package/src/view/element.js +16 -0
  78. package/src/view/span.js +22 -0
  79. package/src/view/svg/closeMenu.js +19 -0
  80. package/src/view/svg/fullScreen.js +19 -0
  81. package/src/view/svg/zoomMenuIn.js +20 -0
  82. package/src/view/svg/zoomMenuOut.js +19 -0
  83. package/src/view/svg.js +24 -0
  84. package/src/view.js +20 -482
  85. package/lib/style.js +0 -13
  86. package/src/style.js +0 -3
@@ -0,0 +1,578 @@
1
+ "use strict";
2
+
3
+ import withStyle from "easy-with-style"; ///
4
+
5
+ import { window } from "easy";
6
+ import { keyCodes } from "necessary";
7
+
8
+ import Element from "../element";
9
+ import LeafDiv from "../div/leaf";
10
+ import touchMixins from "../../mixins/touch";
11
+ import fullScreenMixins from "../../mixins/fullsrean";
12
+
13
+ import { isFullScreen } from "../../utilities/fullScreen";
14
+ import { DIVS_SELECTOR } from "../../selectors";
15
+ import { leafNodesFromNodeList } from "../../utilities/tree";
16
+ import { elementsFromDOMElements } from "../../utilities/element";
17
+ import { SCROLL_DELAY, UP_DIRECTION, DECELERATION, DOWN_DIRECTION, OPEN_MENU_TAP_AREA_HEIGHT } from "../../constants";
18
+ import { getViewZoom as getZoom, setViewZoom as setZoom, setColoursInverted, areColoursInverted } from "../../state";
19
+
20
+ const { ENTER_KEY_CODE,
21
+ ESCAPE_KEY_CODE,
22
+ BACKSPACE_KEY_CODE,
23
+ ARROW_UP_KEY_CODE,
24
+ ARROW_DOWN_KEY_CODE,
25
+ ARROW_LEFT_KEY_CODE,
26
+ ARROW_RIGHT_KEY_CODE } = keyCodes;
27
+
28
+ class OverlayDiv extends Element {
29
+ fullScreenChangeCustomHandler = (event, element) => {
30
+ controller.closeMenu();
31
+
32
+ this.updateZoom();
33
+ }
34
+
35
+ doubleTapCustomHandler = (event, element, top, left) => {
36
+ const fullScreen = isFullScreen();
37
+
38
+ if (fullScreen) {
39
+ controller.exitFullScreen();
40
+
41
+ return;
42
+ }
43
+
44
+ this.restoreNativeGestures();
45
+
46
+ controller.checkRestoreNativeGesturesCheckbox();
47
+ }
48
+
49
+ pinchStartCustomHandler = (event, element) => {
50
+ const zoom = getZoom(),
51
+ startZoom = zoom; ///
52
+
53
+ this.setStartZoom(startZoom);
54
+ }
55
+
56
+ pinchMoveCustomHandler = (event, element, ratio) => {
57
+ const startZoom = this.getStartZoom(),
58
+ zoom = startZoom * Math.sqrt(ratio);
59
+
60
+ setZoom(zoom);
61
+
62
+ this.updateZoom();
63
+ }
64
+
65
+ swipeRightCustomHandler = (event, element) => {
66
+ this.showLeftLeafDiv();
67
+ }
68
+
69
+ swipeLeftCustomHandler = (event, element) => {
70
+ this.showRightLeftDiv();
71
+ }
72
+
73
+ swipeDownCustomHandler = (event, element, top, left, speed) => {
74
+ const direction = DOWN_DIRECTION;
75
+
76
+ this.startScrolling(speed, direction);
77
+ }
78
+
79
+ swipeUpCustomHandler = (event, element, top, left, speed) => {
80
+ const direction = UP_DIRECTION;
81
+
82
+ this.startScrolling(speed, direction);
83
+ }
84
+
85
+ dragStartCustomHandler = (event, element, top, left) => {
86
+ const scrollTop = this.getScrollTop(),
87
+ startScrollTop = scrollTop; ///
88
+
89
+ this.setStartScrollTop(startScrollTop);
90
+ }
91
+
92
+ dragDownCustomHandler = (event, element, top, left) => {
93
+ const startScrollTop = this.getStartScrollTop();
94
+
95
+ if (startScrollTop === null) {
96
+ return;
97
+ }
98
+
99
+ const scrollTop = startScrollTop - top;
100
+
101
+ this.setScrollTop(scrollTop);
102
+ }
103
+
104
+ dragUpCustomHandler = (event, element, top, left) => {
105
+ const startScrollTop = this.getStartScrollTop();
106
+
107
+ if (startScrollTop === null) {
108
+ return;
109
+ }
110
+
111
+ const scrollTop = startScrollTop - top;
112
+
113
+ this.setScrollTop(scrollTop);
114
+ }
115
+
116
+ tapCustomHandler = (event, element, top, left) => {
117
+ const fullScreen = isFullScreen();
118
+
119
+ if (!fullScreen) {
120
+ const height = this.getHeight(),
121
+ bottom = height - top;
122
+
123
+ if (bottom < OPEN_MENU_TAP_AREA_HEIGHT) {
124
+ controller.openMenu();
125
+
126
+ return;
127
+ }
128
+ }
129
+
130
+ this.suppressNativeGestures();
131
+
132
+ controller.uncheckRestoreNativeGesturesCheckbox();
133
+ }
134
+
135
+ keyDownHandler = (event, element) => {
136
+ const { keyCode } = event;
137
+
138
+ switch (keyCode) {
139
+ case ENTER_KEY_CODE:
140
+ case ARROW_RIGHT_KEY_CODE: {
141
+ this.showRightLeftDiv();
142
+
143
+ break;
144
+ }
145
+
146
+ case BACKSPACE_KEY_CODE:
147
+ case ARROW_LEFT_KEY_CODE: {
148
+ this.showLeftLeafDiv();
149
+
150
+ break;
151
+ }
152
+
153
+ case ESCAPE_KEY_CODE: {
154
+ ///
155
+
156
+ break;
157
+ }
158
+
159
+ case ARROW_UP_KEY_CODE: {
160
+ this.showFirstLeafDiv();
161
+
162
+ break;
163
+ }
164
+
165
+ case ARROW_DOWN_KEY_CODE: {
166
+ this.showLastLeafDiv();
167
+
168
+ break;
169
+ }
170
+ }
171
+ }
172
+
173
+ updateColours() {
174
+ const coloursInverted = areColoursInverted();
175
+
176
+ coloursInverted ?
177
+ this.addClass("inverted-colours") :
178
+ this.removeClass("inverted-colours");
179
+
180
+ this.updateZoom();
181
+ }
182
+
183
+ updateZoom() {
184
+ const zoom = getZoom(),
185
+ displayedLeafDiv = this.findDisplayedLeafDiv();
186
+
187
+ displayedLeafDiv.zoom(zoom);
188
+ }
189
+
190
+ scrollToTop() {
191
+ const scrollTop = 0;
192
+
193
+ this.setScrollTop(scrollTop);
194
+ }
195
+
196
+ stopScrolling() {
197
+ let interval = this.getInterval();
198
+
199
+ if (interval !== null) {
200
+ clearInterval(interval);
201
+
202
+ interval = null;
203
+
204
+ this.setInterval(interval);
205
+ }
206
+ }
207
+
208
+ startScrolling(speed, direction) {
209
+ let scrollTop = this.getScrollTop();
210
+
211
+ scrollTop += speed * SCROLL_DELAY;
212
+
213
+ this.setScrollTop(scrollTop);
214
+
215
+ let interval = this.getInterval();
216
+
217
+ if (interval !== null) {
218
+ clearInterval(interval);
219
+ }
220
+
221
+ interval = setInterval(() => {
222
+ speed = speed - direction * DECELERATION;
223
+
224
+ if ((speed * direction) < 0) {
225
+ clearInterval(interval);
226
+
227
+ interval = null;
228
+
229
+ this.setInterval(interval);
230
+ }
231
+
232
+ let scrollTop = this.getScrollTop();
233
+
234
+ scrollTop += speed * SCROLL_DELAY;
235
+
236
+ this.setScrollTop(scrollTop);
237
+ }, SCROLL_DELAY);
238
+
239
+ this.setInterval(interval);
240
+ }
241
+
242
+ invertColours() {
243
+ const coloursInverted = true;
244
+
245
+ setColoursInverted(coloursInverted);
246
+
247
+ this.updateColours();
248
+ }
249
+
250
+ revertColours() {
251
+ const coloursInverted = false;
252
+
253
+ setColoursInverted(coloursInverted);
254
+
255
+ this.updateColours();
256
+ }
257
+
258
+ enterFullScreen() {
259
+ this.requestFullScreen();
260
+ }
261
+
262
+ restoreNativeGestures() {
263
+ this.addClass("native-gestures");
264
+
265
+ this.disableCustomGestures();
266
+ }
267
+
268
+ suppressNativeGestures() {
269
+ this.removeClass("native-gestures");
270
+
271
+ this.enableCustomGestures();
272
+ }
273
+
274
+ showFirstLeafDiv() {
275
+ const displayedLeafDiv = this.findDisplayedLeafDiv(),
276
+ leafDivs = this.getLeafDivs(),
277
+ index = leafDivs.indexOf(displayedLeafDiv),
278
+ nextIndex = 0,
279
+ previousIndex = (index === -1) ?
280
+ nextIndex : ///
281
+ index; ///
282
+
283
+ this.showNextLeafDiv(nextIndex, previousIndex);
284
+ }
285
+
286
+ showLeftLeafDiv() {
287
+ const displayedLeafDiv = this.findDisplayedLeafDiv(),
288
+ leafDivs = this.getLeafDivs(),
289
+ index = leafDivs.indexOf(displayedLeafDiv),
290
+ nextIndex = index - 1,
291
+ previousIndex = index; ///
292
+
293
+ if (nextIndex === -1) {
294
+ return;
295
+ }
296
+
297
+ this.showNextLeafDiv(nextIndex, previousIndex);
298
+ }
299
+
300
+ showRightLeftDiv() {
301
+ const displayedLeafDiv = this.findDisplayedLeafDiv(),
302
+ leafDivs = this.getLeafDivs(),
303
+ leafDivsLength = leafDivs.length,
304
+ index = leafDivs.indexOf(displayedLeafDiv),
305
+ nextIndex = index + 1,
306
+ previousIndex = index; ///
307
+
308
+ if (nextIndex === leafDivsLength) {
309
+ return;
310
+ }
311
+
312
+ this.showNextLeafDiv(nextIndex, previousIndex);
313
+ }
314
+
315
+ showLastLeafDiv() {
316
+ const displayedLeafDiv = this.findDisplayedLeafDiv(),
317
+ leafDivs = this.getLeafDivs(),
318
+ index = leafDivs.indexOf(displayedLeafDiv),
319
+ leafDivsLength = leafDivs.length,
320
+ nextIndex = leafDivsLength - 1,
321
+ previousIndex = (index === -1) ?
322
+ nextIndex : ///
323
+ index; ///
324
+
325
+ this.showNextLeafDiv(nextIndex, previousIndex);
326
+ }
327
+
328
+ showNextLeafDiv(nextIndex, previousIndex) {
329
+ const leafDivs = this.getLeafDivs(),
330
+ nextLeafDiv = leafDivs[nextIndex],
331
+ previousLeafDiv = leafDivs[previousIndex],
332
+ backgroundColour = nextLeafDiv.getBackgroundColour();
333
+
334
+ let zoom;
335
+
336
+ zoom = 1;
337
+
338
+ previousLeafDiv.zoom(zoom);
339
+
340
+ zoom = getZoom();
341
+
342
+ nextLeafDiv.zoom(zoom);
343
+
344
+ previousLeafDiv.hide();
345
+
346
+ this.setBackgroundColour(backgroundColour);
347
+
348
+ this.stopScrolling();
349
+
350
+ this.scrollToTop();
351
+
352
+ nextLeafDiv.show();
353
+ }
354
+
355
+ setBackgroundColour(backgroundColour) {
356
+ const backgroundColor = backgroundColour, ///
357
+ css = {
358
+ backgroundColor
359
+ };
360
+
361
+ this.css(css);
362
+ }
363
+
364
+ hideAllLeafDivs() {
365
+ this.forEachLeafDiv((leafDiv) => {
366
+ leafDiv.hide();
367
+ });
368
+ }
369
+
370
+ findDisplayedLeafDiv() {
371
+ const leafDivs = this.getLeafDivs(),
372
+ displayedLeafDiv = leafDivs.find((leafDiv) => {
373
+ const displayed = leafDiv.isDisplayed();
374
+
375
+ if (displayed) {
376
+ return true;
377
+ }
378
+ });
379
+
380
+ return displayedLeafDiv;
381
+ }
382
+
383
+ retrieveLeafDivs() {
384
+ const domElement = this.getDOMElement(),
385
+ divNodeList = domElement.querySelectorAll(DIVS_SELECTOR),
386
+ leafDivNodes = leafNodesFromNodeList(divNodeList), ///
387
+ leafDivs = elementsFromDOMElements(leafDivNodes, LeafDiv);
388
+
389
+ return leafDivs;
390
+ }
391
+
392
+ forEachLeafDiv(callback) {
393
+ const leafDivs = this.getLeafDivs();
394
+
395
+ leafDivs.forEach(callback);
396
+ }
397
+
398
+ getLeafDivs() {
399
+ const { leafDivs } = this.getState();
400
+
401
+ return leafDivs;
402
+ }
403
+
404
+ setLeftDivs(leafDivs) {
405
+ this.updateState({
406
+ leafDivs
407
+ });
408
+ }
409
+
410
+ getInterval() {
411
+ const { interval } = this.getState();
412
+
413
+ return interval;
414
+ }
415
+
416
+ setInterval(interval) {
417
+ this.updateState({
418
+ interval
419
+ });
420
+ }
421
+
422
+ getStartZoom() {
423
+ const { startZoom } = this.getState();
424
+
425
+ return startZoom;
426
+ }
427
+
428
+ setStartZoom(startZoom) {
429
+ this.updateState({
430
+ startZoom
431
+ });
432
+ }
433
+
434
+ getStartScrollTop() {
435
+ const { startScrollTop } = this.getState();
436
+
437
+ return startScrollTop;
438
+ }
439
+
440
+ setStartScrollTop(startScrollTop) {
441
+ this.updateState({
442
+ startScrollTop
443
+ });
444
+ }
445
+
446
+ setInitialState() {
447
+ const leafDivs = this.retrieveLeafDivs(),
448
+ interval = null,
449
+ startZoom = null,
450
+ startScrollTop = null;
451
+
452
+ this.setState({
453
+ leafDivs,
454
+ interval,
455
+ startZoom,
456
+ startScrollTop
457
+ });
458
+ }
459
+
460
+ appendDivDOMElement() {
461
+ const { divDOMElement } = this.properties,
462
+ domElement = this.getDOMElement();
463
+
464
+ domElement.append(divDOMElement);
465
+ }
466
+
467
+ didMount() {
468
+ window.onKeyDown(this.keyDownHandler);
469
+
470
+ this.onCustomTap(this.tapCustomHandler);
471
+ this.onCustomDragUp(this.dragUpCustomHandler);
472
+ this.onCustomDragDown(this.dragDownCustomHandler);
473
+ this.onCustomDragStart(this.dragStartCustomHandler);
474
+ this.onCustomSwipeUp(this.swipeUpCustomHandler);
475
+ this.onCustomSwipeDown(this.swipeDownCustomHandler);
476
+ this.onCustomSwipeLeft(this.swipeLeftCustomHandler);
477
+ this.onCustomSwipeRight(this.swipeRightCustomHandler);
478
+ this.onCustomPinchMove(this.pinchMoveCustomHandler);
479
+ this.onCustomPinchStart(this.pinchStartCustomHandler);
480
+ this.onCustomDoubleTap(this.doubleTapCustomHandler);
481
+
482
+ this.onCustomFullScreenChange(this.fullScreenChangeCustomHandler);
483
+
484
+ this.enableFullScreen();
485
+ this.enableTouch();
486
+
487
+ this.showFirstLeafDiv();
488
+
489
+ this.updateColours();
490
+
491
+ this.updateZoom();
492
+ }
493
+
494
+ willUnmount() {
495
+ this.disableTouch();
496
+ this.disableFullScreen();
497
+
498
+ this.offCustomTap(this.tapCustomHandler);
499
+ this.offCustomDragUp(this.dragUpCustomHandler);
500
+ this.offCustomDragDown(this.dragDownCustomHandler);
501
+ this.offCustomDragStart(this.dragStartCustomHandler);
502
+ this.offCustomSwipeUp(this.swipeUpCustomHandler);
503
+ this.offCustomSwipeDown(this.swipeDownCustomHandler);
504
+ this.offCustomSwipeLeft(this.swipeLeftCustomHandler);
505
+ this.offCustomSwipeRight(this.swipeRightCustomHandler);
506
+ this.offCustomPinchMove(this.pinchMoveCustomHandler);
507
+ this.offCustomPinchStart(this.pinchStartCustomHandler);
508
+ this.offCustomDoubleTap(this.doubleTapCustomHandler);
509
+
510
+ this.offCustomFullScreenChange(this.fullScreenChangeCustomHandler);
511
+
512
+ window.offKeyDown(this.keyDownHandler);
513
+ }
514
+
515
+ parentContext() {
516
+ const invertColours = this.invertColours.bind(this),
517
+ revertColours = this.revertColours.bind(this),
518
+ exitFullScreen = this.exitFullScreen.bind(this),
519
+ enterFullScreen = this.enterFullScreen.bind(this),
520
+ updateOverlayDivZoom = this.updateZoom.bind(this), ///
521
+ restoreNativeGestures = this.restoreNativeGestures.bind(this),
522
+ suppressNativeGestures = this.suppressNativeGestures.bind(this);
523
+
524
+ return ({
525
+ invertColours,
526
+ revertColours,
527
+ exitFullScreen,
528
+ enterFullScreen,
529
+ updateOverlayDivZoom,
530
+ restoreNativeGestures,
531
+ suppressNativeGestures
532
+ });
533
+ }
534
+
535
+ initialise() {
536
+ this.assignContext();
537
+
538
+ this.appendDivDOMElement();
539
+
540
+ this.setInitialState();
541
+
542
+ this.suppressNativeGestures();
543
+
544
+ this.hideAllLeafDivs();
545
+ }
546
+
547
+ static tagName = "div";
548
+
549
+ static ignoredProperties = [
550
+ "divDOMElement"
551
+ ];
552
+
553
+ static defaultProperties = {
554
+ className: "overlay"
555
+ };
556
+ }
557
+
558
+ Object.assign(OverlayDiv.prototype, touchMixins);
559
+ Object.assign(OverlayDiv.prototype, fullScreenMixins);
560
+
561
+ export default withStyle(OverlayDiv)`
562
+
563
+ width: 100%;
564
+ height: 100%;
565
+
566
+ overflow: hidden;
567
+ touch-action: none;
568
+
569
+ .native-gestures {
570
+ overflow: scroll;
571
+ touch-action: auto;
572
+ }
573
+
574
+ .inverted-colours {
575
+ filter: invert(1);
576
+ }
577
+
578
+ `;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ import withStyle from "easy-with-style"; ///
4
+
5
+ import { Element } from "easy";
6
+
7
+ class PreloaderDiv extends Element {
8
+ childElements() {
9
+ return "PRELOAD";
10
+ }
11
+
12
+ static tagName = "div";
13
+
14
+ static defaultProperties = {
15
+ className: "preloader"
16
+ };
17
+ }
18
+
19
+ export default withStyle(PreloaderDiv)`
20
+
21
+ height: 0;
22
+ overflow: hidden;
23
+ background-image: url("checkmark.svg");
24
+
25
+ `;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ import withStyle from "easy-with-style"; ///
4
+
5
+ import { Element } from "easy";
6
+
7
+ export default withStyle(class extends Element {
8
+ ///
9
+ })`
10
+
11
+ border: 0;
12
+ margin: 0;
13
+ padding: 0;
14
+ background: transparent;
15
+
16
+ `;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import withStyle from "easy-with-style"; ///
4
+
5
+ import Element from "./element";
6
+
7
+ import { spanColour, spanFontSize } from "../styles";
8
+
9
+ class Span extends Element {
10
+ static tagName = "span";
11
+ }
12
+
13
+ export default withStyle(Span)`
14
+
15
+ color: ${spanColour};
16
+ display: inline-block;
17
+ font-size: ${spanFontSize};
18
+ line-height: 1;
19
+ white-space: pre;
20
+ font-family: serif;
21
+
22
+ `;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import SVG from "../svg";
4
+
5
+ export default class CloseMenuSVG extends SVG {
6
+ childElements() {
7
+ return (
8
+
9
+ <g>
10
+ <path d="M 18.156886,3.3074544 12.500012,8.9643288 6.8431375,3.3074544 3.307454,6.8431379 8.9643284,12.500012 3.3074544,18.156886 6.8431379,21.69257 12.500012,16.035696 18.156886,21.69257 21.69257,18.156886 16.035695,12.500012 21.69257,6.8431379 Z" />
11
+ </g>
12
+
13
+ );
14
+ }
15
+
16
+ static defaultProperties = {
17
+ className: "close-menu"
18
+ };
19
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import SVG from "../svg";
4
+
5
+ export default class FullScreenSVG extends SVG {
6
+ childElements() {
7
+ return (
8
+
9
+ <g>
10
+ <path d="M 2.9998169 2.9998169 L 2.9998169 6.0001506 L 2.9998169 18.999874 L 2.9998169 22.000208 L 6.0001506 22.000208 L 18.999874 22.000208 L 22.000208 22.000208 L 22.000208 18.999874 L 22.000208 2.9998169 L 2.9998169 2.9998169 z M 6.0001506 6.0001506 L 18.999874 6.0001506 L 18.999874 18.999874 L 6.0001506 18.999874 L 6.0001506 6.0001506 z " />
11
+ </g>
12
+
13
+ );
14
+ }
15
+
16
+ static defaultProperties = {
17
+ className: "full-screen"
18
+ };
19
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ import SVG from "../svg";
4
+
5
+ export default class ZoomMenuInSVG extends SVG {
6
+ childElements() {
7
+ return (
8
+
9
+ <g>
10
+ <rect x="3" y="10" width="19" height="5"/>
11
+ <rect x="10" y="3" width="5" height="19"/>
12
+ </g>
13
+
14
+ );
15
+ }
16
+
17
+ static defaultProperties = {
18
+ className: "zoom-menu-in"
19
+ };
20
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import SVG from "../svg";
4
+
5
+ export default class ZoomMenuOutSVG extends SVG {
6
+ childElements() {
7
+ return (
8
+
9
+ <g>
10
+ <rect x="3" y="10" width="19" height="5"/>
11
+ </g>
12
+
13
+ );
14
+ }
15
+
16
+ static defaultProperties = {
17
+ className: "zoom-menu-out"
18
+ };
19
+ }