@tmagic/editor 1.0.0-rc.1 → 1.0.0-rc.2
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/coverage/clover.xml +94 -98
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +35 -35
- package/coverage/lcov-report/src/Editor.vue.html +24 -9
- package/coverage/lcov-report/src/components/ContentMenu.vue.html +1 -1
- package/coverage/lcov-report/src/components/Icon.vue.html +1 -1
- package/coverage/lcov-report/src/components/ScrollViewer.vue.html +1 -1
- package/coverage/lcov-report/src/components/ToolButton.vue.html +1 -1
- package/coverage/lcov-report/src/components/index.html +1 -1
- package/coverage/lcov-report/src/index.html +14 -14
- package/coverage/lcov-report/src/layouts/AddPageBox.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/Framework.vue.html +48 -9
- package/coverage/lcov-report/src/layouts/NavMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/PropsPanel.vue.html +2 -2
- package/coverage/lcov-report/src/layouts/Resizer.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/index.html +15 -15
- package/coverage/lcov-report/src/layouts/sidebar/ComponentListPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/LayerMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/LayerPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/Sidebar.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/TabPane.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/index.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/PageBar.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/Stage.vue.html +7 -4
- package/coverage/lcov-report/src/layouts/workspace/ViewerMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/Workspace.vue.html +68 -56
- package/coverage/lcov-report/src/layouts/workspace/index.html +21 -21
- package/coverage/lcov-report/src/services/BaseService.ts.html +1 -1
- package/coverage/lcov-report/src/services/componentList.ts.html +1 -1
- package/coverage/lcov-report/src/services/editor.ts.html +1 -1
- package/coverage/lcov-report/src/services/events.ts.html +1 -1
- package/coverage/lcov-report/src/services/history.ts.html +1 -1
- package/coverage/lcov-report/src/services/index.html +1 -1
- package/coverage/lcov-report/src/services/props.ts.html +1 -1
- package/coverage/lcov-report/src/services/ui.ts.html +1 -1
- package/coverage/lcov-report/src/type.ts.html +1 -1
- package/coverage/lcov-report/src/utils/compose.ts.html +1 -1
- package/coverage/lcov-report/src/utils/config.ts.html +1 -1
- package/coverage/lcov-report/src/utils/editor.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/index.ts.html +1 -1
- package/coverage/lcov-report/src/utils/logger.ts.html +1 -1
- package/coverage/lcov-report/src/utils/props.ts.html +1 -1
- package/coverage/lcov-report/src/utils/scroll-viewer.ts.html +1 -1
- package/coverage/lcov-report/src/utils/undo-redo.ts.html +1 -1
- package/coverage/lcov.info +314 -275
- package/dist/style.css +3 -3
- package/dist/tmagic-editor.es.js +60 -1256
- package/dist/tmagic-editor.es.js.map +1 -1
- package/dist/tmagic-editor.umd.js +62 -1258
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/dist/types/src/Editor.vue.d.ts +9 -0
- package/dist/types/src/layouts/Framework.vue.d.ts +15 -3
- package/package.json +16 -8
- package/src/Editor.vue +6 -1
- package/src/layouts/CodeEditor.vue +1 -4
- package/src/layouts/Framework.vue +14 -1
- package/src/layouts/PropsPanel.vue +1 -1
- package/src/layouts/workspace/Stage.vue +1 -0
- package/src/layouts/workspace/Workspace.vue +37 -33
- package/src/theme/props-panel.scss +6 -4
- package/src/utils/polyfills.ts +5 -19
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at
|
|
164
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -703,7 +703,7 @@ export default defineComponent({
|
|
|
703
703
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
704
704
|
Code coverage generated by
|
|
705
705
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
706
|
-
at
|
|
706
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
707
707
|
</div>
|
|
708
708
|
<script src="../../../prettify.js"></script>
|
|
709
709
|
<script>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">14.
|
|
33
|
+
<span class="strong">14.12% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>25/
|
|
35
|
+
<span class='fraction'>25/177</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -287,7 +287,8 @@
|
|
|
287
287
|
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
288
|
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
289
|
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
-
<a name='L225'></a><a href='#L225'>225</a
|
|
290
|
+
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
+
<a name='L226'></a><a href='#L226'>226</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
291
292
|
<span class="cline-any cline-neutral"> </span>
|
|
292
293
|
<span class="cline-any cline-neutral"> </span>
|
|
293
294
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -504,6 +505,7 @@
|
|
|
504
505
|
<span class="cline-any cline-neutral"> </span>
|
|
505
506
|
<span class="cline-any cline-neutral"> </span>
|
|
506
507
|
<span class="cline-any cline-neutral"> </span>
|
|
508
|
+
<span class="cline-any cline-neutral"> </span>
|
|
507
509
|
<span class="cline-any cline-no"> </span>
|
|
508
510
|
<span class="cline-any cline-neutral"> </span>
|
|
509
511
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -722,6 +724,7 @@ export default defineComponent({
|
|
|
722
724
|
const <span class="cstat-no" title="statement not covered" >{ s</span>crollTop, scrollLeft } = stage.mask;
|
|
723
725
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (layout === Layout.ABSOLUTE) {</span>
|
|
724
726
|
<span class="cstat-no" title="statement not covered" > config.</span>style = {
|
|
727
|
+
...(config.style || {}),
|
|
725
728
|
position: 'absolute',
|
|
726
729
|
top: e.clientY - containerRect.top + scrollTop,
|
|
727
730
|
left: e.clientX - containerRect.left + scrollLeft,
|
|
@@ -742,7 +745,7 @@ export default defineComponent({
|
|
|
742
745
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
743
746
|
Code coverage generated by
|
|
744
747
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
745
|
-
at
|
|
748
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
746
749
|
</div>
|
|
747
750
|
<script src="../../../prettify.js"></script>
|
|
748
751
|
<script>
|
|
@@ -517,7 +517,7 @@ export default defineComponent({
|
|
|
517
517
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
518
518
|
Code coverage generated by
|
|
519
519
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
520
|
-
at
|
|
520
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
521
521
|
</div>
|
|
522
522
|
<script src="../../../prettify.js"></script>
|
|
523
523
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">35.59% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>21/59</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">7.4% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>10/135</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">10.34% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>3/
|
|
42
|
+
<span class='fraction'>3/29</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">38.18% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>21/55</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -230,7 +230,11 @@
|
|
|
230
230
|
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
231
|
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
232
|
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
-
<a name='L168'></a><a href='#L168'>168</a
|
|
233
|
+
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
+
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
+
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
+
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
+
<a name='L172'></a><a href='#L172'>172</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
234
238
|
<span class="cline-any cline-neutral"> </span>
|
|
235
239
|
<span class="cline-any cline-neutral"> </span>
|
|
236
240
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -298,6 +302,11 @@
|
|
|
298
302
|
<span class="cline-any cline-neutral"> </span>
|
|
299
303
|
<span class="cline-any cline-neutral"> </span>
|
|
300
304
|
<span class="cline-any cline-yes">1x</span>
|
|
305
|
+
<span class="cline-any cline-no"> </span>
|
|
306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
307
|
+
<span class="cline-any cline-neutral"> </span>
|
|
308
|
+
<span class="cline-any cline-yes">1x</span>
|
|
309
|
+
<span class="cline-any cline-yes">1x</span>
|
|
301
310
|
<span class="cline-any cline-yes">1x</span>
|
|
302
311
|
<span class="cline-any cline-neutral"> </span>
|
|
303
312
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -310,76 +319,74 @@
|
|
|
310
319
|
<span class="cline-any cline-neutral"> </span>
|
|
311
320
|
<span class="cline-any cline-no"> </span>
|
|
312
321
|
<span class="cline-any cline-no"> </span>
|
|
313
|
-
<span class="cline-any cline-no"> </span>
|
|
314
322
|
<span class="cline-any cline-neutral"> </span>
|
|
315
323
|
<span class="cline-any cline-neutral"> </span>
|
|
316
324
|
<span class="cline-any cline-no"> </span>
|
|
317
325
|
<span class="cline-any cline-no"> </span>
|
|
318
|
-
<span class="cline-any cline-neutral"> </span>
|
|
319
|
-
<span class="cline-any cline-neutral"> </span>
|
|
320
|
-
<span class="cline-any cline-no"> </span>
|
|
321
326
|
<span class="cline-any cline-no"> </span>
|
|
322
327
|
<span class="cline-any cline-neutral"> </span>
|
|
323
328
|
<span class="cline-any cline-neutral"> </span>
|
|
324
329
|
<span class="cline-any cline-no"> </span>
|
|
325
330
|
<span class="cline-any cline-no"> </span>
|
|
326
331
|
<span class="cline-any cline-no"> </span>
|
|
327
|
-
<span class="cline-any cline-no"> </span>
|
|
328
332
|
<span class="cline-any cline-neutral"> </span>
|
|
329
333
|
<span class="cline-any cline-neutral"> </span>
|
|
330
334
|
<span class="cline-any cline-no"> </span>
|
|
331
|
-
<span class="cline-any cline-no"> </span>
|
|
332
335
|
<span class="cline-any cline-neutral"> </span>
|
|
333
336
|
<span class="cline-any cline-neutral"> </span>
|
|
334
337
|
<span class="cline-any cline-no"> </span>
|
|
335
|
-
<span class="cline-any cline-no"> </span>
|
|
336
338
|
<span class="cline-any cline-neutral"> </span>
|
|
337
339
|
<span class="cline-any cline-neutral"> </span>
|
|
338
340
|
<span class="cline-any cline-no"> </span>
|
|
339
341
|
<span class="cline-any cline-no"> </span>
|
|
342
|
+
<span class="cline-any cline-no"> </span>
|
|
340
343
|
<span class="cline-any cline-neutral"> </span>
|
|
341
344
|
<span class="cline-any cline-neutral"> </span>
|
|
342
345
|
<span class="cline-any cline-no"> </span>
|
|
343
|
-
<span class="cline-any cline-no"> </span>
|
|
344
346
|
<span class="cline-any cline-neutral"> </span>
|
|
345
347
|
<span class="cline-any cline-neutral"> </span>
|
|
346
348
|
<span class="cline-any cline-no"> </span>
|
|
347
|
-
<span class="cline-any cline-no"> </span>
|
|
348
349
|
<span class="cline-any cline-neutral"> </span>
|
|
349
350
|
<span class="cline-any cline-neutral"> </span>
|
|
350
351
|
<span class="cline-any cline-no"> </span>
|
|
351
|
-
<span class="cline-any cline-no"> </span>
|
|
352
352
|
<span class="cline-any cline-neutral"> </span>
|
|
353
353
|
<span class="cline-any cline-neutral"> </span>
|
|
354
354
|
<span class="cline-any cline-no"> </span>
|
|
355
|
-
<span class="cline-any cline-no"> </span>
|
|
356
355
|
<span class="cline-any cline-neutral"> </span>
|
|
357
356
|
<span class="cline-any cline-neutral"> </span>
|
|
358
357
|
<span class="cline-any cline-no"> </span>
|
|
359
|
-
<span class="cline-any cline-no"> </span>
|
|
360
358
|
<span class="cline-any cline-neutral"> </span>
|
|
361
359
|
<span class="cline-any cline-neutral"> </span>
|
|
362
360
|
<span class="cline-any cline-no"> </span>
|
|
363
|
-
<span class="cline-any cline-no"> </span>
|
|
364
361
|
<span class="cline-any cline-neutral"> </span>
|
|
365
362
|
<span class="cline-any cline-neutral"> </span>
|
|
366
363
|
<span class="cline-any cline-no"> </span>
|
|
364
|
+
<span class="cline-any cline-neutral"> </span>
|
|
365
|
+
<span class="cline-any cline-neutral"> </span>
|
|
367
366
|
<span class="cline-any cline-no"> </span>
|
|
368
367
|
<span class="cline-any cline-neutral"> </span>
|
|
369
368
|
<span class="cline-any cline-neutral"> </span>
|
|
370
369
|
<span class="cline-any cline-no"> </span>
|
|
370
|
+
<span class="cline-any cline-neutral"> </span>
|
|
371
|
+
<span class="cline-any cline-neutral"> </span>
|
|
371
372
|
<span class="cline-any cline-no"> </span>
|
|
372
373
|
<span class="cline-any cline-neutral"> </span>
|
|
373
374
|
<span class="cline-any cline-neutral"> </span>
|
|
374
375
|
<span class="cline-any cline-no"> </span>
|
|
376
|
+
<span class="cline-any cline-neutral"> </span>
|
|
377
|
+
<span class="cline-any cline-neutral"> </span>
|
|
375
378
|
<span class="cline-any cline-no"> </span>
|
|
376
379
|
<span class="cline-any cline-neutral"> </span>
|
|
377
380
|
<span class="cline-any cline-neutral"> </span>
|
|
378
381
|
<span class="cline-any cline-no"> </span>
|
|
382
|
+
<span class="cline-any cline-neutral"> </span>
|
|
383
|
+
<span class="cline-any cline-neutral"> </span>
|
|
379
384
|
<span class="cline-any cline-no"> </span>
|
|
380
385
|
<span class="cline-any cline-neutral"> </span>
|
|
381
386
|
<span class="cline-any cline-neutral"> </span>
|
|
382
387
|
<span class="cline-any cline-no"> </span>
|
|
388
|
+
<span class="cline-any cline-neutral"> </span>
|
|
389
|
+
<span class="cline-any cline-neutral"> </span>
|
|
383
390
|
<span class="cline-any cline-no"> </span>
|
|
384
391
|
<span class="cline-any cline-neutral"> </span>
|
|
385
392
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -387,6 +394,7 @@
|
|
|
387
394
|
<span class="cline-any cline-yes">1x</span>
|
|
388
395
|
<span class="cline-any cline-no"> </span>
|
|
389
396
|
<span class="cline-any cline-no"> </span>
|
|
397
|
+
<span class="cline-any cline-no"> </span>
|
|
390
398
|
<span class="cline-any cline-neutral"> </span>
|
|
391
399
|
<span class="cline-any cline-neutral"> </span>
|
|
392
400
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -463,9 +471,14 @@ export default defineComponent({
|
|
|
463
471
|
const mouseenterHandler = <span class="fstat-no" title="function not covered" >() => {</span>
|
|
464
472
|
<span class="cstat-no" title="statement not covered" > workspace.</span>value?.focus();
|
|
465
473
|
};
|
|
474
|
+
|
|
475
|
+
const mouseleaveHandler = <span class="fstat-no" title="function not covered" >() => {</span>
|
|
476
|
+
<span class="cstat-no" title="statement not covered" > workspace.</span>value?.blur();
|
|
477
|
+
};
|
|
466
478
|
|
|
467
479
|
onMounted(() => {
|
|
468
480
|
workspace.value<span class="branch-0 cbranch-no" title="branch not covered" >?.a</span>ddEventListener('mouseenter', mouseenterHandler);
|
|
481
|
+
workspace.value<span class="branch-0 cbranch-no" title="branch not covered" >?.a</span>ddEventListener('mouseleave', mouseleaveHandler);
|
|
469
482
|
|
|
470
483
|
keycon = new KeyController(workspace.value);
|
|
471
484
|
|
|
@@ -474,85 +487,84 @@ export default defineComponent({
|
|
|
474
487
|
const ctrl = isMac ? <span class="branch-0 cbranch-no" title="branch not covered" >'meta' : '</span>ctrl';
|
|
475
488
|
|
|
476
489
|
keycon
|
|
490
|
+
.keydown(<span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
491
|
+
<span class="cstat-no" title="statement not covered" > console.</span>log(e);
|
|
492
|
+
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
493
|
+
})
|
|
477
494
|
.keyup('delete', <span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
478
495
|
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
479
496
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!node.value || isPage(node.value)) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
480
497
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.remove(node.value);
|
|
481
498
|
})
|
|
482
|
-
.
|
|
499
|
+
.keyup('backspace', <span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
483
500
|
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
501
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!node.value || isPage(node.value)) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
502
|
+
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.remove(node.value);
|
|
503
|
+
})
|
|
504
|
+
.keydown([ctrl, 'c'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
484
505
|
<span class="cstat-no" title="statement not covered" > node.</span>value && services?.editorService.copy(node.value);
|
|
485
506
|
})
|
|
486
|
-
.keydown([ctrl, 'v'], <span class="fstat-no" title="function not covered" >(
|
|
487
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
507
|
+
.keydown([ctrl, 'v'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
488
508
|
<span class="cstat-no" title="statement not covered" > node.</span>value && services?.editorService.paste();
|
|
489
509
|
})
|
|
490
|
-
.keydown([ctrl, 'x'], <span class="fstat-no" title="function not covered" >(
|
|
491
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
510
|
+
.keydown([ctrl, 'x'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
492
511
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!node.value || isPage(node.value)) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
493
512
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.copy(node.value);
|
|
494
513
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.remove(node.value);
|
|
495
514
|
})
|
|
496
|
-
.keydown([ctrl, 'z'], <span class="fstat-no" title="function not covered" >(
|
|
497
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
515
|
+
.keydown([ctrl, 'z'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
498
516
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.undo();
|
|
499
517
|
})
|
|
500
|
-
.keydown([ctrl, 'shift', 'z'], <span class="fstat-no" title="function not covered" >(
|
|
501
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
518
|
+
.keydown([ctrl, 'shift', 'z'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
502
519
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.redo();
|
|
503
520
|
})
|
|
504
|
-
.keydown('up', <span class="fstat-no" title="function not covered" >(
|
|
505
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
521
|
+
.keydown('up', <span class="fstat-no" title="function not covered" >() => {</span>
|
|
506
522
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(0, -1);
|
|
507
523
|
})
|
|
508
|
-
.keydown('down', <span class="fstat-no" title="function not covered" >(
|
|
509
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
524
|
+
.keydown('down', <span class="fstat-no" title="function not covered" >() => {</span>
|
|
510
525
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(0, 1);
|
|
511
526
|
})
|
|
512
|
-
.keydown('left', <span class="fstat-no" title="function not covered" >(
|
|
513
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
527
|
+
.keydown('left', <span class="fstat-no" title="function not covered" >() => {</span>
|
|
514
528
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(-1, 0);
|
|
515
529
|
})
|
|
516
|
-
.keydown('right', <span class="fstat-no" title="function not covered" >(
|
|
517
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
530
|
+
.keydown('right', <span class="fstat-no" title="function not covered" >() => {</span>
|
|
518
531
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(1, 0);
|
|
519
532
|
})
|
|
520
|
-
.keydown([ctrl, 'up'], <span class="fstat-no" title="function not covered" >(
|
|
521
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
533
|
+
.keydown([ctrl, 'up'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
522
534
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(0, -10);
|
|
523
535
|
})
|
|
524
|
-
.keydown([ctrl, 'down'], <span class="fstat-no" title="function not covered" >(
|
|
525
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
536
|
+
.keydown([ctrl, 'down'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
526
537
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(0, 10);
|
|
527
538
|
})
|
|
528
|
-
.keydown([ctrl, 'left'], <span class="fstat-no" title="function not covered" >(
|
|
529
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
539
|
+
.keydown([ctrl, 'left'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
530
540
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(-10, 0);
|
|
531
541
|
})
|
|
532
|
-
.keydown([ctrl, 'right'], <span class="fstat-no" title="function not covered" >(
|
|
533
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
542
|
+
.keydown([ctrl, 'right'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
534
543
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.move(10, 0);
|
|
535
544
|
})
|
|
536
|
-
.keydown('tab', <span class="fstat-no" title="function not covered" >(
|
|
537
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
545
|
+
.keydown('tab', <span class="fstat-no" title="function not covered" >() => {</span>
|
|
538
546
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.selectNextNode();
|
|
539
547
|
})
|
|
540
|
-
.keydown([ctrl, 'tab'], <span class="fstat-no" title="function not covered" >(
|
|
541
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
548
|
+
.keydown([ctrl, 'tab'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
542
549
|
<span class="cstat-no" title="statement not covered" > services?</span>.editorService.selectNextPage();
|
|
543
550
|
})
|
|
544
|
-
.keydown([ctrl, '='], <span class="fstat-no" title="function not covered" >(
|
|
545
|
-
<span class="cstat-no" title="statement not covered" > e.</span>inputEvent.preventDefault();
|
|
551
|
+
.keydown([ctrl, '='], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
546
552
|
<span class="cstat-no" title="statement not covered" > services?</span>.uiService.zoom(0.1);
|
|
547
553
|
})
|
|
548
|
-
.keydown([ctrl, '
|
|
549
|
-
<span class="cstat-no" title="statement not covered" >
|
|
554
|
+
.keydown([ctrl, 'numpadplus'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
555
|
+
<span class="cstat-no" title="statement not covered" > services?</span>.uiService.zoom(0.1);
|
|
556
|
+
})
|
|
557
|
+
.keydown([ctrl, '-'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
558
|
+
<span class="cstat-no" title="statement not covered" > services?</span>.uiService.zoom(-0.1);
|
|
559
|
+
})
|
|
560
|
+
.keydown([ctrl, 'numpad-'], <span class="fstat-no" title="function not covered" >() => {</span>
|
|
550
561
|
<span class="cstat-no" title="statement not covered" > services?</span>.uiService.zoom(-0.1);
|
|
551
562
|
});
|
|
552
563
|
});
|
|
553
564
|
|
|
554
565
|
onUnmounted(<span class="fstat-no" title="function not covered" >() => {</span>
|
|
555
566
|
<span class="cstat-no" title="statement not covered" > workspace.</span>value?.removeEventListener('mouseenter', mouseenterHandler);
|
|
567
|
+
<span class="cstat-no" title="statement not covered" > workspace.</span>value?.removeEventListener('mouseleave', mouseleaveHandler);
|
|
556
568
|
<span class="cstat-no" title="statement not covered" > keycon.</span>destroy();
|
|
557
569
|
});
|
|
558
570
|
|
|
@@ -571,7 +583,7 @@ export default defineComponent({
|
|
|
571
583
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
572
584
|
Code coverage generated by
|
|
573
585
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
574
|
-
at
|
|
586
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
575
587
|
</div>
|
|
576
588
|
<script src="../../../prettify.js"></script>
|
|
577
589
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">45.84% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>127/277</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">15.74% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>71/451</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">34.69% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>34/
|
|
42
|
+
<span class='fraction'>34/98</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">47.54% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>116/244</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="38.94" class="pct low">38.94%</td>
|
|
102
102
|
<td data-value="95" class="abs low">37/95</td>
|
|
103
|
-
<td data-value="14.
|
|
104
|
-
<td data-value="
|
|
103
|
+
<td data-value="14.12" class="pct low">14.12%</td>
|
|
104
|
+
<td data-value="177" class="abs low">25/177</td>
|
|
105
105
|
<td data-value="25.92" class="pct low">25.92%</td>
|
|
106
106
|
<td data-value="27" class="abs low">7/27</td>
|
|
107
107
|
<td data-value="40" class="pct low">40%</td>
|
|
@@ -125,17 +125,17 @@
|
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
127
127
|
<td class="file low" data-value="Workspace.vue"><a href="Workspace.vue.html">Workspace.vue</a></td>
|
|
128
|
-
<td data-value="
|
|
129
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
128
|
+
<td data-value="35.59" class="pic low">
|
|
129
|
+
<div class="chart"><div class="cover-fill" style="width: 35%"></div><div class="cover-empty" style="width: 65%"></div></div>
|
|
130
130
|
</td>
|
|
131
|
-
<td data-value="
|
|
132
|
-
<td data-value="
|
|
133
|
-
<td data-value="
|
|
134
|
-
<td data-value="
|
|
135
|
-
<td data-value="
|
|
136
|
-
<td data-value="
|
|
137
|
-
<td data-value="
|
|
138
|
-
<td data-value="
|
|
131
|
+
<td data-value="35.59" class="pct low">35.59%</td>
|
|
132
|
+
<td data-value="59" class="abs low">21/59</td>
|
|
133
|
+
<td data-value="7.4" class="pct low">7.4%</td>
|
|
134
|
+
<td data-value="135" class="abs low">10/135</td>
|
|
135
|
+
<td data-value="10.34" class="pct low">10.34%</td>
|
|
136
|
+
<td data-value="29" class="abs low">3/29</td>
|
|
137
|
+
<td data-value="38.18" class="pct low">38.18%</td>
|
|
138
|
+
<td data-value="55" class="abs low">21/55</td>
|
|
139
139
|
</tr>
|
|
140
140
|
|
|
141
141
|
</tbody>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at
|
|
149
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -628,7 +628,7 @@ export default class extends EventEmitter {
|
|
|
628
628
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
629
629
|
Code coverage generated by
|
|
630
630
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
631
|
-
at
|
|
631
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
632
632
|
</div>
|
|
633
633
|
<script src="../../prettify.js"></script>
|
|
634
634
|
<script>
|
|
@@ -214,7 +214,7 @@ export default new ComponentList();
|
|
|
214
214
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
215
215
|
Code coverage generated by
|
|
216
216
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
217
|
-
at
|
|
217
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
218
218
|
</div>
|
|
219
219
|
<script src="../../prettify.js"></script>
|
|
220
220
|
<script>
|
|
@@ -2062,7 +2062,7 @@ export default new Editor();
|
|
|
2062
2062
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2063
2063
|
Code coverage generated by
|
|
2064
2064
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2065
|
-
at
|
|
2065
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
2066
2066
|
</div>
|
|
2067
2067
|
<script src="../../prettify.js"></script>
|
|
2068
2068
|
<script>
|
|
@@ -316,7 +316,7 @@ export default new Events();
|
|
|
316
316
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
317
317
|
Code coverage generated by
|
|
318
318
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
319
|
-
at
|
|
319
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
320
320
|
</div>
|
|
321
321
|
<script src="../../prettify.js"></script>
|
|
322
322
|
<script>
|
|
@@ -463,7 +463,7 @@ export default new History();
|
|
|
463
463
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
464
464
|
Code coverage generated by
|
|
465
465
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
466
|
-
at
|
|
466
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
467
467
|
</div>
|
|
468
468
|
<script src="../../prettify.js"></script>
|
|
469
469
|
<script>
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
192
192
|
Code coverage generated by
|
|
193
193
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
194
|
-
at
|
|
194
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
195
195
|
</div>
|
|
196
196
|
<script src="../../prettify.js"></script>
|
|
197
197
|
<script>
|
|
@@ -400,7 +400,7 @@ export default new Props();
|
|
|
400
400
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
401
401
|
Code coverage generated by
|
|
402
402
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
403
|
-
at
|
|
403
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
404
404
|
</div>
|
|
405
405
|
<script src="../../prettify.js"></script>
|
|
406
406
|
<script>
|
|
@@ -565,7 +565,7 @@ export default new Ui();
|
|
|
565
565
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
566
566
|
Code coverage generated by
|
|
567
567
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
568
|
-
at
|
|
568
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
569
569
|
</div>
|
|
570
570
|
<script src="../../prettify.js"></script>
|
|
571
571
|
<script>
|
|
@@ -835,7 +835,7 @@ export enum Keys {
|
|
|
835
835
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
836
836
|
Code coverage generated by
|
|
837
837
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
838
|
-
at
|
|
838
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
839
839
|
</div>
|
|
840
840
|
<script src="../prettify.js"></script>
|
|
841
841
|
<script>
|
|
@@ -169,7 +169,7 @@ export const compose = (middleware: Function[]) => {
|
|
|
169
169
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
170
170
|
Code coverage generated by
|
|
171
171
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
172
|
-
at
|
|
172
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
173
173
|
</div>
|
|
174
174
|
<script src="../../prettify.js"></script>
|
|
175
175
|
<script>
|
|
@@ -157,7 +157,7 @@ export { getConfig, setConfig };
|
|
|
157
157
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
158
158
|
Code coverage generated by
|
|
159
159
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
160
|
-
at
|
|
160
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
161
161
|
</div>
|
|
162
162
|
<script src="../../prettify.js"></script>
|
|
163
163
|
<script>
|
|
@@ -823,7 +823,7 @@ export const Fixed2Other = async (
|
|
|
823
823
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
824
824
|
Code coverage generated by
|
|
825
825
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
826
|
-
at
|
|
826
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
827
827
|
</div>
|
|
828
828
|
<script src="../../prettify.js"></script>
|
|
829
829
|
<script>
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
207
207
|
Code coverage generated by
|
|
208
208
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
209
|
-
at
|
|
209
|
+
at Tue May 24 2022 21:03:16 GMT+0800 (China Standard Time)
|
|
210
210
|
</div>
|
|
211
211
|
<script src="../../prettify.js"></script>
|
|
212
212
|
<script>
|