highmark-cli 0.0.174 → 0.0.175

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 (90) hide show
  1. package/README.md +20 -2
  2. package/bin/abbreviations.js +6 -9
  3. package/bin/action/help.js +3 -3
  4. package/bin/action/publish.js +3 -4
  5. package/bin/action/server.js +2 -2
  6. package/bin/constants.js +2 -6
  7. package/bin/defaults.js +4 -6
  8. package/bin/main.js +7 -9
  9. package/bin/operation/copyFonts.js +5 -23
  10. package/bin/operation/html.js +5 -71
  11. package/bin/options.js +4 -6
  12. package/package.json +2 -26
  13. package/.swcrc +0 -11
  14. package/bin/utilities/client.js +0 -38
  15. package/checkmark.svg +0 -12
  16. package/client.js +0 -39623
  17. package/css/loading.css +0 -59
  18. package/lib/client.js +0 -74
  19. package/lib/constants.js +0 -70
  20. package/lib/createMethods.js +0 -84
  21. package/lib/customEventTypes.js +0 -74
  22. package/lib/localStorage.js +0 -41
  23. package/lib/migrate.js +0 -34
  24. package/lib/selectors.js +0 -26
  25. package/lib/state/version_1.js +0 -39
  26. package/lib/state.js +0 -153
  27. package/lib/styles.js +0 -82
  28. package/lib/utilities/element.js +0 -62
  29. package/lib/utilities/orientation.js +0 -39
  30. package/lib/versions.js +0 -13
  31. package/lib/view/button/closeMenu.js +0 -121
  32. package/lib/view/button/zoomMenuIn.js +0 -121
  33. package/lib/view/button/zoomMenuOut.js +0 -121
  34. package/lib/view/button.js +0 -160
  35. package/lib/view/checkbox.js +0 -193
  36. package/lib/view/div/buttons.js +0 -213
  37. package/lib/view/div/checkbox/fullScreen.js +0 -155
  38. package/lib/view/div/checkbox/invertColours.js +0 -154
  39. package/lib/view/div/checkbox/nativeGestures.js +0 -154
  40. package/lib/view/div/checkbox.js +0 -220
  41. package/lib/view/div/checkboxes.js +0 -213
  42. package/lib/view/div/menu.js +0 -301
  43. package/lib/view/div/overlay.js +0 -685
  44. package/lib/view/div/preloader.js +0 -204
  45. package/lib/view/div.js +0 -227
  46. package/lib/view/element.js +0 -164
  47. package/lib/view/span.js +0 -182
  48. package/lib/view/svg/closeMenu.js +0 -138
  49. package/lib/view/svg/zoomMenuIn.js +0 -146
  50. package/lib/view/svg/zoomMenuOut.js +0 -141
  51. package/lib/view/svg.js +0 -184
  52. package/lib/view.js +0 -247
  53. package/src/client.js +0 -70
  54. package/src/constants.js +0 -16
  55. package/src/createMethods.js +0 -105
  56. package/src/customEventTypes.js +0 -17
  57. package/src/localStorage.js +0 -40
  58. package/src/migrate.js +0 -19
  59. package/src/selectors.js +0 -5
  60. package/src/state/version_1.js +0 -32
  61. package/src/state.js +0 -152
  62. package/src/styles.js +0 -19
  63. package/src/utilities/element.js +0 -66
  64. package/src/utilities/orientation.js +0 -34
  65. package/src/versions.js +0 -3
  66. package/src/view/button/closeMenu.js +0 -16
  67. package/src/view/button/zoomMenuIn.js +0 -16
  68. package/src/view/button/zoomMenuOut.js +0 -16
  69. package/src/view/button.js +0 -38
  70. package/src/view/checkbox.js +0 -68
  71. package/src/view/div/buttons.js +0 -37
  72. package/src/view/div/checkbox/fullScreen.js +0 -40
  73. package/src/view/div/checkbox/invertColours.js +0 -37
  74. package/src/view/div/checkbox/nativeGestures.js +0 -38
  75. package/src/view/div/checkbox.js +0 -45
  76. package/src/view/div/checkboxes.js +0 -38
  77. package/src/view/div/menu.js +0 -88
  78. package/src/view/div/overlay.js +0 -602
  79. package/src/view/div/preloader.js +0 -25
  80. package/src/view/div.js +0 -47
  81. package/src/view/element.js +0 -16
  82. package/src/view/span.js +0 -20
  83. package/src/view/svg/closeMenu.js +0 -19
  84. package/src/view/svg/zoomMenuIn.js +0 -20
  85. package/src/view/svg/zoomMenuOut.js +0 -19
  86. package/src/view/svg.js +0 -24
  87. package/src/view.js +0 -64
  88. package/template/client.html +0 -4
  89. package/template/default.html +0 -71
  90. package/template/loading.html +0 -17
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- import withStyle from "easy-with-style"; ///
4
-
5
- import Element from "../element";
6
- import FullScreenCheckboxDiv from "./checkbox/fullScreen";
7
- import InvertColoursCheckboxDiv from "./checkbox/invertColours";
8
- import NativeGesturesCheckboxDiv from "./checkbox/nativeGestures";
9
-
10
- import { checkboxesDivGap } from "../../styles";
11
-
12
- class CheckboxesDiv extends Element {
13
- childElements() {
14
- return ([
15
-
16
- <InvertColoursCheckboxDiv/>,
17
- <FullScreenCheckboxDiv/>,
18
- <NativeGesturesCheckboxDiv/>
19
-
20
- ]);
21
- }
22
-
23
- static tagName = "div";
24
-
25
- static defaultProperties = {
26
- className: "checkboxes"
27
- };
28
- }
29
-
30
- export default withStyle(CheckboxesDiv)`
31
-
32
- gap: ${checkboxesDivGap};
33
- display: flex;
34
- flex-wrap: wrap;
35
- flex-direction: row;
36
- justify-content: flex-start;
37
-
38
- `;
@@ -1,88 +0,0 @@
1
- "use strict";
2
-
3
- import withStyle from "easy-with-style"; ///
4
-
5
- import Element from "../element";
6
- import ButtonsDiv from "../div/buttons";
7
- import CheckboxesDiv from "../div/checkboxes";
8
-
9
- import { GRID } from "../../constants";
10
- import { getMenuZoom as getZoom } from "../../state";
11
- import { menuDivGap, borderColour, menuDivPadding, backgroundColour } from "../../styles";
12
-
13
- class MenuDiv extends Element {
14
- show() {
15
- const display = GRID;
16
-
17
- this.display(display);
18
- }
19
-
20
- openMenu() {
21
- this.show();
22
- }
23
-
24
- closeMenu() {
25
- this.hide();
26
- }
27
-
28
- updateMenuZoom() {
29
- const zoom = getZoom(),
30
- width = `${100/zoom}%`,
31
- transform = `scale(${zoom})`,
32
- css = {
33
- width,
34
- transform
35
- };
36
-
37
- this.css(css);
38
- }
39
-
40
- childElements() {
41
- return ([
42
-
43
- <CheckboxesDiv/>,
44
- <ButtonsDiv/>
45
-
46
- ]);
47
- }
48
-
49
- parentContext() {
50
- const context = this.getContext(),
51
- openMenu = this.openMenu.bind(this),
52
- closeMenu = this.closeMenu.bind(this),
53
- updateMenuZoom = this.updateMenuZoom.bind(this);
54
-
55
- return ({
56
- ...context,
57
- openMenu,
58
- closeMenu,
59
- updateMenuZoom
60
- });
61
- }
62
-
63
- initialise() {
64
- this.hide();
65
- }
66
-
67
- static tagName = "div";
68
-
69
- static defaultProperties = {
70
- className: "menu"
71
- };
72
- }
73
-
74
- export default withStyle(MenuDiv)`
75
-
76
- gap: ${menuDivGap};
77
- left: 0;
78
- bottom: 0;
79
- display: grid;
80
- padding: ${menuDivPadding};
81
- position: fixed;
82
- border-top: 1px solid ${borderColour};
83
- background-color: ${backgroundColour};
84
- transform-origin: bottom left;
85
- grid-template-rows: auto;
86
- grid-template-columns: auto min-content;
87
-
88
- `;
@@ -1,602 +0,0 @@
1
- "use strict";
2
-
3
- import withStyle from "easy-with-style"; ///
4
-
5
- import { window } from "easy";
6
- import { keyCodes } from "necessary";
7
- import { resetFragment } from "fragmented";
8
- import { touchMixins, fullScreenMixins, fullScreenUtilities } from "easy-mobile";
9
-
10
- import Div from "../div";
11
- import Element from "../element";
12
-
13
- import { elementsFromDOMElements } from "../../utilities/element";
14
- import { scrollToAnchor, findDivByAnchorId } from "../../utilities/element";
15
- import { getOverlayZoom as getZoom, areColoursInverted, areNativeGesturesRestored } from "../../state";
16
- import { SCROLL_DELAY, UP_DIRECTION, DECELERATION, DOWN_DIRECTION, OPEN_MENU_TAP_AREA_HEIGHT } from "../../constants";
17
-
18
- const { isFullScreen } = fullScreenUtilities,
19
- { ENTER_KEY_CODE,
20
- ESCAPE_KEY_CODE,
21
- BACKSPACE_KEY_CODE,
22
- ARROW_UP_KEY_CODE,
23
- ARROW_DOWN_KEY_CODE,
24
- ARROW_LEFT_KEY_CODE,
25
- ARROW_RIGHT_KEY_CODE } = keyCodes;
26
-
27
- class OverlayDiv extends Element {
28
- fullScreenChangeCustomHandler = (event, element) => {
29
- controller.updateFullScreen();
30
-
31
- this.updateOverlayZoom();
32
- }
33
-
34
- singleTapCustomHandler = (event, element, top, left) => {
35
- const height = this.getHeight(),
36
- bottom = height - top;
37
-
38
- if (bottom < OPEN_MENU_TAP_AREA_HEIGHT) {
39
- controller.openMenu();
40
- }
41
- }
42
-
43
- doubleTapCustomHandler = (event, element, top, left) => {
44
- const fullScreen = isFullScreen();
45
-
46
- if (fullScreen) {
47
- controller.exitFullScreen();
48
-
49
- return;
50
- }
51
-
52
- const nativeGesturesRestored = areNativeGesturesRestored();
53
-
54
- nativeGesturesRestored ?
55
- controller.suppressNativeGestures() :
56
- controller.restoreNativeGestures();
57
- }
58
-
59
- pinchStartCustomHandler = (event, element) => {
60
- const zoom = getZoom(),
61
- startZoom = zoom; ///
62
-
63
- this.setStartZoom(startZoom);
64
- }
65
-
66
- pinchMoveCustomHandler = (event, element, ratio) => {
67
- const startZoom = this.getStartZoom(),
68
- overlayZoom = startZoom * Math.sqrt(ratio); ///
69
-
70
- controller.zoomOverlay(overlayZoom);
71
- }
72
-
73
- swipeRightCustomHandler = (event, element, top, left, spped) => {
74
- this.showLeftDiv();
75
- }
76
-
77
- swipeLeftCustomHandler = (event, element, top, left, spped) => {
78
- this.showRightDiv();
79
- }
80
-
81
- swipeDownCustomHandler = (event, element, top, left, speed) => {
82
- const direction = DOWN_DIRECTION;
83
-
84
- this.startScrolling(speed, direction);
85
- }
86
-
87
- swipeUpCustomHandler = (event, element, top, left, speed) => {
88
- const direction = UP_DIRECTION;
89
-
90
- this.startScrolling(speed, direction);
91
- }
92
-
93
- dragStartCustomHandler = (event, element, top, left) => {
94
- const scrollTop = this.getScrollTop(),
95
- startScrollTop = scrollTop; ///
96
-
97
- this.setStartScrollTop(startScrollTop);
98
- }
99
-
100
- dragDownCustomHandler = (event, element, top, left) => {
101
- const startScrollTop = this.getStartScrollTop();
102
-
103
- if (startScrollTop === null) {
104
- return;
105
- }
106
-
107
- const scrollTop = startScrollTop - top;
108
-
109
- this.setScrollTop(scrollTop);
110
- }
111
-
112
- dragUpCustomHandler = (event, element, top, left) => {
113
- const startScrollTop = this.getStartScrollTop();
114
-
115
- if (startScrollTop === null) {
116
- return;
117
- }
118
-
119
- const scrollTop = startScrollTop - top;
120
-
121
- this.setScrollTop(scrollTop);
122
- }
123
-
124
- keyDownHandler = (event, element) => {
125
- const { keyCode } = event;
126
-
127
- switch (keyCode) {
128
- case ENTER_KEY_CODE:
129
- case ARROW_RIGHT_KEY_CODE: {
130
- this.showRightDiv();
131
-
132
- break;
133
- }
134
-
135
- case BACKSPACE_KEY_CODE:
136
- case ARROW_LEFT_KEY_CODE: {
137
- this.showLeftDiv();
138
-
139
- break;
140
- }
141
-
142
- case ESCAPE_KEY_CODE: {
143
- const fullScreen = isFullScreen();
144
-
145
- if (fullScreen) {
146
- controller.exitFullScreen();
147
- }
148
-
149
- controller.closeMenu();
150
-
151
- break;
152
- }
153
-
154
- case ARROW_UP_KEY_CODE: {
155
- this.showFirstDiv();
156
-
157
- break;
158
- }
159
-
160
- case ARROW_DOWN_KEY_CODE: {
161
- this.showLastDiv();
162
-
163
- break;
164
- }
165
- }
166
- }
167
-
168
- scrollToAnchor(anchorId) {
169
- let div;
170
-
171
- div = findDivByAnchorId(anchorId);
172
-
173
- const nextDiv = div; ///
174
-
175
- div = this.findDiv();
176
-
177
- const previousDiv = div; ///
178
-
179
- const divs = this.getDivs(),
180
- nextIndex = divs.indexOf(nextDiv), ///
181
- previousIndex = divs.indexOf(previousDiv); ///
182
-
183
- this.showNextDiv(nextIndex, previousIndex, () => {
184
- scrollToAnchor(anchorId);
185
- });
186
- }
187
-
188
- scrollToTop() {
189
- const scrollTop = 0;
190
-
191
- this.setScrollTop(scrollTop);
192
- }
193
-
194
- stopScrolling() {
195
- let interval = this.getInterval();
196
-
197
- if (interval !== null) {
198
- clearInterval(interval);
199
-
200
- interval = null;
201
-
202
- this.setInterval(interval);
203
- }
204
- }
205
-
206
- startScrolling(speed, direction) {
207
- let scrollTop = this.getScrollTop();
208
-
209
- scrollTop += speed * SCROLL_DELAY;
210
-
211
- this.setScrollTop(scrollTop);
212
-
213
- let interval = this.getInterval();
214
-
215
- if (interval !== null) {
216
- clearInterval(interval);
217
- }
218
-
219
- interval = setInterval(() => {
220
- speed = speed - direction * DECELERATION;
221
-
222
- if ((speed * direction) < 0) {
223
- clearInterval(interval);
224
-
225
- interval = null;
226
-
227
- this.setInterval(interval);
228
- }
229
-
230
- let scrollTop = this.getScrollTop();
231
-
232
- scrollTop += speed * SCROLL_DELAY;
233
-
234
- this.setScrollTop(scrollTop);
235
- }, SCROLL_DELAY);
236
-
237
- this.setInterval(interval);
238
- }
239
-
240
- enterFullScreen() {
241
- this.requestFullScreen();
242
- }
243
-
244
- updateOverlayZoom() {
245
- const div = this.findDiv(),
246
- zoom = getZoom();
247
-
248
- div.zoom(zoom);
249
- }
250
-
251
- updateOverlayColours() {
252
- const coloursInverted = areColoursInverted();
253
-
254
- coloursInverted ?
255
- this.addClass("inverted-colours") :
256
- this.removeClass("inverted-colours");
257
- }
258
-
259
- updateNativeGestures() {
260
- const nativeGesturesRestored = areNativeGesturesRestored();
261
-
262
- nativeGesturesRestored ?
263
- this.addClass("native-gestures") :
264
- this.removeClass("native-gestures");
265
-
266
- nativeGesturesRestored ?
267
- this.disableCustomGestures() :
268
- this.enableCustomGestures();
269
- }
270
-
271
- enableCustomGestures() {
272
- let nativeGesturedEnabled = this.areNativeGesturesEnabled();
273
-
274
- if (nativeGesturedEnabled) {
275
- return;
276
- }
277
-
278
- this.onCustomDragUp(this.dragUpCustomHandler);
279
- this.onCustomDragDown(this.dragDownCustomHandler);
280
- this.onCustomDragStart(this.dragStartCustomHandler);
281
- this.onCustomSwipeUp(this.swipeUpCustomHandler);
282
- this.onCustomSwipeDown(this.swipeDownCustomHandler);
283
- this.onCustomSwipeLeft(this.swipeLeftCustomHandler);
284
- this.onCustomSwipeRight(this.swipeRightCustomHandler);
285
- this.onCustomPinchMove(this.pinchMoveCustomHandler);
286
- this.onCustomPinchStart(this.pinchStartCustomHandler);
287
- this.onCustomDoubleTap(this.doubleTapCustomHandler);
288
-
289
- nativeGesturedEnabled = true;
290
-
291
- this.setNativeGesturesEnabled(nativeGesturedEnabled);
292
- }
293
-
294
- disableCustomGestures() {
295
- let nativeGesturedEnabled = this.areNativeGesturesEnabled();
296
-
297
- if (!nativeGesturedEnabled) {
298
- return;
299
- }
300
-
301
- this.offCustomDragUp(this.dragUpCustomHandler);
302
- this.offCustomDragDown(this.dragDownCustomHandler);
303
- this.offCustomDragStart(this.dragStartCustomHandler);
304
- this.offCustomSwipeUp(this.swipeUpCustomHandler);
305
- this.offCustomSwipeDown(this.swipeDownCustomHandler);
306
- this.offCustomSwipeLeft(this.swipeLeftCustomHandler);
307
- this.offCustomSwipeRight(this.swipeRightCustomHandler);
308
- this.offCustomPinchMove(this.pinchMoveCustomHandler);
309
- this.offCustomPinchStart(this.pinchStartCustomHandler);
310
- this.offCustomDoubleTap(this.doubleTapCustomHandler);
311
-
312
- nativeGesturedEnabled = false;
313
-
314
- this.setNativeGesturesEnabled(nativeGesturedEnabled);
315
- }
316
-
317
- areNativeGesturesRestored() {
318
- const nativeGesturesRestored = this.hasClass("native-gestures");
319
-
320
- return nativeGesturesRestored;
321
- }
322
-
323
- showRightDiv() {
324
- const div = this.findDiv(),
325
- divs = this.getDivs(),
326
- divsLength = divs.length,
327
- index = divs.indexOf(div),
328
- nextIndex = index + 1,
329
- previousIndex = index; ///
330
-
331
- if (nextIndex === divsLength) {
332
- return;
333
- }
334
-
335
- this.showNextDiv(nextIndex, previousIndex);
336
- }
337
-
338
- showLeftDiv() {
339
- const div = this.findDiv(),
340
- divs = this.getDivs(),
341
- index = divs.indexOf(div),
342
- nextIndex = index - 1,
343
- previousIndex = index; ///
344
-
345
- if (nextIndex === -1) {
346
- return;
347
- }
348
-
349
- this.showNextDiv(nextIndex, previousIndex);
350
- }
351
-
352
- showLastDiv() {
353
- const div = this.findDiv(),
354
- divs = this.getDivs(),
355
- divsLength = divs.length,
356
- index = (div === null) ?
357
- -1 :
358
- divs.indexOf(div),
359
- nextIndex = divsLength - 1,
360
- previousIndex = index; ///
361
-
362
- if (nextIndex === previousIndex) {
363
- return;
364
- }
365
-
366
- this.showNextDiv(nextIndex, previousIndex);
367
- }
368
-
369
- showFirstDiv() {
370
- const div = this.findDiv(),
371
- divs = this.getDivs(),
372
- index = (div === null) ?
373
- -1 :
374
- divs.indexOf(div),
375
- nextIndex = 0,
376
- previousIndex = index; ///
377
-
378
- if (nextIndex === previousIndex) {
379
- return;
380
- }
381
-
382
- this.showNextDiv(nextIndex, previousIndex);
383
- }
384
-
385
- showNextDiv(nextIndex, previousIndex, done = () => {}) {
386
- resetFragment();
387
-
388
- const divs = this.getDivs();
389
-
390
- if (previousIndex !== -1) {
391
- const previousDiv = divs[previousIndex];
392
-
393
- previousDiv.hide();
394
- }
395
-
396
- const zoom = getZoom(),
397
- nextDiv = divs[nextIndex];
398
-
399
- this.stopScrolling();
400
-
401
- this.scrollToTop();
402
-
403
- nextDiv.zoom(zoom);
404
-
405
- nextDiv.show();
406
-
407
- defer(() => {
408
- const backgroundColour = nextDiv.getBackgroundColour();
409
-
410
- this.setBackgroundColour(backgroundColour);
411
-
412
- done();
413
- });
414
- }
415
-
416
- setBackgroundColour(backgroundColour) {
417
- const backgroundColor = backgroundColour, ///
418
- css = {
419
- backgroundColor
420
- };
421
-
422
- this.css(css);
423
- }
424
-
425
- findDiv() {
426
- const divs = this.getDivs(),
427
- div = divs.find((div) => {
428
- const showing = div.isShowing();
429
-
430
- if (showing) {
431
- return true;
432
- }
433
- }) || null;
434
-
435
- return div;
436
- }
437
-
438
- getDivs() {
439
- const childElements = this.getChildElements(),
440
- divs = childElements; ///
441
-
442
- return divs;
443
- }
444
-
445
- getInterval() {
446
- const { interval } = this.getState();
447
-
448
- return interval;
449
- }
450
-
451
- setInterval(interval) {
452
- this.updateState({
453
- interval
454
- });
455
- }
456
-
457
- getStartZoom() {
458
- const { startZoom } = this.getState();
459
-
460
- return startZoom;
461
- }
462
-
463
- setStartZoom(startZoom) {
464
- this.updateState({
465
- startZoom
466
- });
467
- }
468
-
469
- getStartScrollTop() {
470
- const { startScrollTop } = this.getState();
471
-
472
- return startScrollTop;
473
- }
474
-
475
- setStartScrollTop(startScrollTop) {
476
- this.updateState({
477
- startScrollTop
478
- });
479
- }
480
-
481
- areNativeGesturesEnabled() {
482
- const { nativeGesturesEnabled } = this.getState();
483
-
484
- return nativeGesturesEnabled;
485
- }
486
-
487
- setNativeGesturesEnabled(nativeGesturesEnabled) {
488
- this.updateState({
489
- nativeGesturesEnabled
490
- });
491
- }
492
-
493
- setInitialState() {
494
- const interval = null,
495
- startZoom = null,
496
- startScrollTop = null,
497
- nativeGesturesEnabled = false;
498
-
499
- this.setState({
500
- interval,
501
- startZoom,
502
- startScrollTop,
503
- nativeGesturesEnabled
504
- });
505
- }
506
-
507
- didMount() {
508
- window.onKeyDown(this.keyDownHandler);
509
-
510
- this.onCustomSingleTap(this.singleTapCustomHandler);
511
-
512
- this.onCustomFullScreenChange(this.fullScreenChangeCustomHandler);
513
-
514
- this.enableFullScreen();
515
-
516
- this.enableTouch();
517
- }
518
-
519
- willUnmount() {
520
- this.disableTouch();
521
-
522
- this.disableFullScreen();
523
-
524
- this.offCustomFullScreenChange(this.fullScreenChangeCustomHandler);
525
-
526
- this.offCustomSingleTap(this.singleTapCustomHandler);
527
-
528
- window.offKeyDown(this.keyDownHandler);
529
- }
530
-
531
- childElements() {
532
- const { divDOMElements } = this.properties,
533
- divs = elementsFromDOMElements(divDOMElements, Div),
534
- childElements = [
535
- ...divs
536
- ];
537
-
538
- return childElements;
539
- }
540
-
541
- parentContext() {
542
- const showFirstDiv = this.showFirstDiv.bind(this),
543
- scrollToAnchor = this.scrollToAnchor.bind(this),
544
- exitFullScreen = this.exitFullScreen.bind(this),
545
- enterFullScreen = this.enterFullScreen.bind(this),
546
- updateOverlayZoom = this.updateOverlayZoom.bind(this),
547
- updateOverlayColours = this.updateOverlayColours.bind(this),
548
- updateNativeGestures = this.updateNativeGestures.bind(this);
549
-
550
- return ({
551
- showFirstDiv,
552
- scrollToAnchor,
553
- exitFullScreen,
554
- enterFullScreen,
555
- updateOverlayZoom,
556
- updateOverlayColours,
557
- updateNativeGestures
558
- });
559
- }
560
-
561
- initialise() {
562
- this.assignContext();
563
-
564
- this.setInitialState();
565
- }
566
-
567
- static tagName = "div";
568
-
569
- static ignoredProperties = [
570
- "divDOMElements"
571
- ];
572
-
573
- static defaultProperties = {
574
- className: "overlay"
575
- };
576
- }
577
-
578
- Object.assign(OverlayDiv.prototype, touchMixins);
579
- Object.assign(OverlayDiv.prototype, fullScreenMixins);
580
-
581
- export default withStyle(OverlayDiv)`
582
-
583
- width: 100%;
584
- height: 100%;
585
-
586
- overflow: hidden;
587
- touch-action: none;
588
-
589
- .native-gestures {
590
- overflow: scroll;
591
- touch-action: auto;
592
- }
593
-
594
- .inverted-colours {
595
- filter: invert(1);
596
- }
597
-
598
- `;
599
-
600
- function defer(func) {
601
- setTimeout(func, 0);
602
- }