kfb-view 2.1.5 → 2.1.9
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/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/workspace.xml +82 -118
- package/config/webpack.lib.conf.js +3 -3
- package/config/webpack.prod.conf.js +3 -3
- package/example/index.js +29 -14
- package/lib/kfb-view.js +2 -1
- package/lib/kfb-view.js.LICENSE.txt +9 -0
- package/package.json +2 -2
- package/src/components/area/index.js +32 -14
- package/src/components/board/index.js +7 -2
- package/src/components/graduation/index.js +4 -5
- package/src/components/navigator/index.js +1 -1
- package/src/components/tailoring/index.js +7 -3
- package/src/view.js +19 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GitToolBoxProjectSettings">
|
|
4
|
+
<option name="commitMessageIssueKeyValidationOverride">
|
|
5
|
+
<BoolValueOverride>
|
|
6
|
+
<option name="enabled" value="true" />
|
|
7
|
+
</BoolValueOverride>
|
|
8
|
+
</option>
|
|
9
|
+
<option name="commitMessageValidationConfigOverride">
|
|
10
|
+
<CommitMessageValidationOverride>
|
|
11
|
+
<option name="enabled" value="true" />
|
|
12
|
+
</CommitMessageValidationOverride>
|
|
13
|
+
</option>
|
|
14
|
+
</component>
|
|
15
|
+
</project>
|
package/.idea/workspace.xml
CHANGED
|
@@ -37,13 +37,7 @@
|
|
|
37
37
|
</component>
|
|
38
38
|
<component name="ChangeListManager">
|
|
39
39
|
<list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="">
|
|
40
|
-
<change beforePath="$PROJECT_DIR$/config/webpack.dev.conf.js" beforeDir="false" afterPath="$PROJECT_DIR$/config/webpack.dev.conf.js" afterDir="false" />
|
|
41
|
-
<change beforePath="$PROJECT_DIR$/example/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.html" afterDir="false" />
|
|
42
|
-
<change beforePath="$PROJECT_DIR$/example/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.js" afterDir="false" />
|
|
43
40
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
44
|
-
<change beforePath="$PROJECT_DIR$/src/components/navigator/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/navigator/index.js" afterDir="false" />
|
|
45
|
-
<change beforePath="$PROJECT_DIR$/src/components/navigator/navigator.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/navigator/navigator.scss" afterDir="false" />
|
|
46
|
-
<change beforePath="$PROJECT_DIR$/src/view.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/view.js" afterDir="false" />
|
|
47
41
|
</list>
|
|
48
42
|
<option name="SHOW_DIALOG" value="false" />
|
|
49
43
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -66,6 +60,9 @@
|
|
|
66
60
|
</option>
|
|
67
61
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
68
62
|
</component>
|
|
63
|
+
<component name="MarkdownSettingsMigration">
|
|
64
|
+
<option name="stateVersion" value="1" />
|
|
65
|
+
</component>
|
|
69
66
|
<component name="ProjectId" id="1hqXz2bwk8xsvUX2aTlZ9SFeYgK" />
|
|
70
67
|
<component name="ProjectViewState">
|
|
71
68
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
@@ -74,6 +71,7 @@
|
|
|
74
71
|
<component name="PropertiesComponent">
|
|
75
72
|
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
76
73
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
74
|
+
<property name="dart.analysis.tool.window.visible" value="false" />
|
|
77
75
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
78
76
|
<property name="list.type.of.created.stylesheet" value="CSS" />
|
|
79
77
|
<property name="node.js.detected.package.eslint" value="true" />
|
|
@@ -82,11 +80,11 @@
|
|
|
82
80
|
<property name="node.js.path.for.package.standard" value="project" />
|
|
83
81
|
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
84
82
|
<property name="node.js.selected.package.standard" value="" />
|
|
83
|
+
<property name="nodejs_interpreter_path" value="$USER_HOME$/.nvm/versions/node/v10.15.1/bin/node" />
|
|
85
84
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
|
86
85
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
|
87
|
-
<property name="nodejs_package_manager_path" value="
|
|
88
|
-
<property name="
|
|
89
|
-
<property name="settings.editor.selected.configurable" value="project.propVCSSupport.CommitDialog" />
|
|
86
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
|
87
|
+
<property name="settings.editor.selected.configurable" value="settings.nodejs" />
|
|
90
88
|
<property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
|
|
91
89
|
<property name="vue.rearranger.settings.migration" value="true" />
|
|
92
90
|
</component>
|
|
@@ -156,7 +154,7 @@
|
|
|
156
154
|
<scripts>
|
|
157
155
|
<script value="server:hot" />
|
|
158
156
|
</scripts>
|
|
159
|
-
<node-interpreter value="
|
|
157
|
+
<node-interpreter value="$USER_HOME$/.nvm/versions/node/v10.15.1/bin/node" />
|
|
160
158
|
<package-manager value="npm" />
|
|
161
159
|
<envs />
|
|
162
160
|
<method v="2" />
|
|
@@ -171,10 +169,10 @@
|
|
|
171
169
|
<recent_temporary>
|
|
172
170
|
<list>
|
|
173
171
|
<item itemvalue="npm.build:lib" />
|
|
172
|
+
<item itemvalue="npm.build:prod" />
|
|
174
173
|
<item itemvalue="npm.server:hot" />
|
|
175
174
|
<item itemvalue="npm.lint" />
|
|
176
175
|
<item itemvalue="npm.server:dev" />
|
|
177
|
-
<item itemvalue="npm.build:prod" />
|
|
178
176
|
</list>
|
|
179
177
|
</recent_temporary>
|
|
180
178
|
</component>
|
|
@@ -239,7 +237,26 @@
|
|
|
239
237
|
<workItem from="1631343012139" duration="12587000" />
|
|
240
238
|
<workItem from="1631665536248" duration="9947000" />
|
|
241
239
|
<workItem from="1631751049128" duration="15257000" />
|
|
242
|
-
<workItem from="1632269649302" duration="
|
|
240
|
+
<workItem from="1632269649302" duration="15644000" />
|
|
241
|
+
<workItem from="1632442983325" duration="942000" />
|
|
242
|
+
<workItem from="1632452605749" duration="612000" />
|
|
243
|
+
<workItem from="1632615323445" duration="735000" />
|
|
244
|
+
<workItem from="1632701267211" duration="2657000" />
|
|
245
|
+
<workItem from="1632902494154" duration="1200000" />
|
|
246
|
+
<workItem from="1632988331348" duration="597000" />
|
|
247
|
+
<workItem from="1633433313520" duration="532000" />
|
|
248
|
+
<workItem from="1633434001653" duration="14000" />
|
|
249
|
+
<workItem from="1634268135304" duration="1276000" />
|
|
250
|
+
<workItem from="1634344422400" duration="3753000" />
|
|
251
|
+
<workItem from="1634435147345" duration="2072000" />
|
|
252
|
+
<workItem from="1634438173344" duration="4115000" />
|
|
253
|
+
<workItem from="1634553017155" duration="1214000" />
|
|
254
|
+
<workItem from="1634689926208" duration="599000" />
|
|
255
|
+
<workItem from="1634776612768" duration="633000" />
|
|
256
|
+
<workItem from="1641349006244" duration="1011000" />
|
|
257
|
+
<workItem from="1641351835998" duration="596000" />
|
|
258
|
+
<workItem from="1646288182802" duration="1809000" />
|
|
259
|
+
<workItem from="1646290338220" duration="2938000" />
|
|
243
260
|
</task>
|
|
244
261
|
<task id="LOCAL-00001" summary="2.0.0重构">
|
|
245
262
|
<created>1600767106537</created>
|
|
@@ -535,7 +552,49 @@
|
|
|
535
552
|
<option name="project" value="LOCAL" />
|
|
536
553
|
<updated>1632364377230</updated>
|
|
537
554
|
</task>
|
|
538
|
-
<
|
|
555
|
+
<task id="LOCAL-00043" summary="navigator 获取元素方式修改">
|
|
556
|
+
<created>1632379605009</created>
|
|
557
|
+
<option name="number" value="00043" />
|
|
558
|
+
<option name="presentableId" value="LOCAL-00043" />
|
|
559
|
+
<option name="project" value="LOCAL" />
|
|
560
|
+
<updated>1632379605009</updated>
|
|
561
|
+
</task>
|
|
562
|
+
<task id="LOCAL-00044" summary="chrome 49版本兼容">
|
|
563
|
+
<created>1634268789961</created>
|
|
564
|
+
<option name="number" value="00044" />
|
|
565
|
+
<option name="presentableId" value="LOCAL-00044" />
|
|
566
|
+
<option name="project" value="LOCAL" />
|
|
567
|
+
<updated>1634268789961</updated>
|
|
568
|
+
</task>
|
|
569
|
+
<task id="LOCAL-00045" summary="刻度线显示异常">
|
|
570
|
+
<created>1634437932304</created>
|
|
571
|
+
<option name="number" value="00045" />
|
|
572
|
+
<option name="presentableId" value="LOCAL-00045" />
|
|
573
|
+
<option name="project" value="LOCAL" />
|
|
574
|
+
<updated>1634437932304</updated>
|
|
575
|
+
</task>
|
|
576
|
+
<task id="LOCAL-00046" summary="优化,增加部分注释">
|
|
577
|
+
<created>1646292963908</created>
|
|
578
|
+
<option name="number" value="00046" />
|
|
579
|
+
<option name="presentableId" value="LOCAL-00046" />
|
|
580
|
+
<option name="project" value="LOCAL" />
|
|
581
|
+
<updated>1646292963908</updated>
|
|
582
|
+
</task>
|
|
583
|
+
<task id="LOCAL-00047" summary="2.1.8">
|
|
584
|
+
<created>1646292978431</created>
|
|
585
|
+
<option name="number" value="00047" />
|
|
586
|
+
<option name="presentableId" value="LOCAL-00047" />
|
|
587
|
+
<option name="project" value="LOCAL" />
|
|
588
|
+
<updated>1646292978431</updated>
|
|
589
|
+
</task>
|
|
590
|
+
<task id="LOCAL-00048" summary="TerserPlugin">
|
|
591
|
+
<created>1646293408931</created>
|
|
592
|
+
<option name="number" value="00048" />
|
|
593
|
+
<option name="presentableId" value="LOCAL-00048" />
|
|
594
|
+
<option name="project" value="LOCAL" />
|
|
595
|
+
<updated>1646293408931</updated>
|
|
596
|
+
</task>
|
|
597
|
+
<option name="localTasksCounter" value="49" />
|
|
539
598
|
<servers />
|
|
540
599
|
</component>
|
|
541
600
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -573,17 +632,10 @@
|
|
|
573
632
|
</entry>
|
|
574
633
|
</map>
|
|
575
634
|
</option>
|
|
576
|
-
<option name="oldMeFiltersMigrated" value="true" />
|
|
577
635
|
</component>
|
|
578
636
|
<component name="VcsManagerConfiguration">
|
|
579
637
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
580
638
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
581
|
-
<MESSAGE value="2.0.7" />
|
|
582
|
-
<MESSAGE value="2.0.8单个标注允许拖动" />
|
|
583
|
-
<MESSAGE value="2.0.9单个标注允许移动和调整大小" />
|
|
584
|
-
<MESSAGE value="2.0.10缩略图" />
|
|
585
|
-
<MESSAGE value="2.0.11截图优化" />
|
|
586
|
-
<MESSAGE value="2.0.12增加lib打包" />
|
|
587
639
|
<MESSAGE value="导航图优化" />
|
|
588
640
|
<MESSAGE value="gnore" />
|
|
589
641
|
<MESSAGE value="标注信息从shape中移到area" />
|
|
@@ -603,105 +655,17 @@
|
|
|
603
655
|
<MESSAGE value="修复navigator中图片宽高一致时不显示" />
|
|
604
656
|
<MESSAGE value="2.1.3" />
|
|
605
657
|
<MESSAGE value="2.1.4" />
|
|
606
|
-
<
|
|
658
|
+
<MESSAGE value="navigator 获取元素方式修改" />
|
|
659
|
+
<MESSAGE value="chrome 49版本兼容" />
|
|
660
|
+
<MESSAGE value="刻度线显示异常" />
|
|
661
|
+
<MESSAGE value="优化,增加部分注释" />
|
|
662
|
+
<MESSAGE value="2.1.8" />
|
|
663
|
+
<MESSAGE value="TerserPlugin" />
|
|
664
|
+
<option name="LAST_COMMIT_MESSAGE" value="TerserPlugin" />
|
|
607
665
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
608
666
|
</component>
|
|
609
|
-
<component name="
|
|
610
|
-
<
|
|
611
|
-
|
|
612
|
-
</state>
|
|
613
|
-
<state x="738" y="358" width="1084" height="756" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1626252602840" />
|
|
614
|
-
<state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2" timestamp="1632364377156">
|
|
615
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
616
|
-
</state>
|
|
617
|
-
<state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2/0.27.2560.1348@0.27.2560.1348" timestamp="1632364377156" />
|
|
618
|
-
<state x="233" y="564" width="2360" height="1150" key="DiffContextDialog" timestamp="1632379478129">
|
|
619
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
620
|
-
</state>
|
|
621
|
-
<state x="233" y="564" width="2360" height="1150" key="DiffContextDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1632379478129" />
|
|
622
|
-
<state x="1063" y="458" width="424" height="484" key="FileChooserDialogImpl" timestamp="1630485689567">
|
|
623
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
624
|
-
</state>
|
|
625
|
-
<state x="1063" y="458" width="424" height="484" key="FileChooserDialogImpl/0.27.2560.1348@0.27.2560.1348" timestamp="1630485689567" />
|
|
626
|
-
<state width="2533" height="408" key="GridCell.Tab.0.bottom" timestamp="1632364366352">
|
|
627
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
628
|
-
</state>
|
|
629
|
-
<state width="2533" height="408" key="GridCell.Tab.0.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1632364366352" />
|
|
630
|
-
<state width="2533" height="408" key="GridCell.Tab.0.center" timestamp="1632364366349">
|
|
631
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
632
|
-
</state>
|
|
633
|
-
<state width="2533" height="408" key="GridCell.Tab.0.center/0.27.2560.1348@0.27.2560.1348" timestamp="1632364366349" />
|
|
634
|
-
<state width="2533" height="408" key="GridCell.Tab.0.left" timestamp="1632364366348">
|
|
635
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
636
|
-
</state>
|
|
637
|
-
<state width="2533" height="408" key="GridCell.Tab.0.left/0.27.2560.1348@0.27.2560.1348" timestamp="1632364366348" />
|
|
638
|
-
<state width="2533" height="408" key="GridCell.Tab.0.right" timestamp="1632364366350">
|
|
639
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
640
|
-
</state>
|
|
641
|
-
<state width="2533" height="408" key="GridCell.Tab.0.right/0.27.2560.1348@0.27.2560.1348" timestamp="1632364366350" />
|
|
642
|
-
<state width="2533" height="457" key="GridCell.Tab.1.bottom" timestamp="1626673542669">
|
|
643
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
644
|
-
</state>
|
|
645
|
-
<state width="2533" height="457" key="GridCell.Tab.1.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542669" />
|
|
646
|
-
<state width="2533" height="457" key="GridCell.Tab.1.center" timestamp="1626673542666">
|
|
647
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
648
|
-
</state>
|
|
649
|
-
<state width="2533" height="457" key="GridCell.Tab.1.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542666" />
|
|
650
|
-
<state width="2533" height="457" key="GridCell.Tab.1.left" timestamp="1626673542663">
|
|
651
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
652
|
-
</state>
|
|
653
|
-
<state width="2533" height="457" key="GridCell.Tab.1.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542663" />
|
|
654
|
-
<state width="2533" height="457" key="GridCell.Tab.1.right" timestamp="1626673542668">
|
|
655
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
656
|
-
</state>
|
|
657
|
-
<state width="2533" height="457" key="GridCell.Tab.1.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542668" />
|
|
658
|
-
<state width="2533" height="457" key="GridCell.Tab.2.bottom" timestamp="1626673542674">
|
|
659
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
660
|
-
</state>
|
|
661
|
-
<state width="2533" height="457" key="GridCell.Tab.2.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542674" />
|
|
662
|
-
<state width="2533" height="457" key="GridCell.Tab.2.center" timestamp="1626673542672">
|
|
663
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
664
|
-
</state>
|
|
665
|
-
<state width="2533" height="457" key="GridCell.Tab.2.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542672" />
|
|
666
|
-
<state width="2533" height="457" key="GridCell.Tab.2.left" timestamp="1626673542671">
|
|
667
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
668
|
-
</state>
|
|
669
|
-
<state width="2533" height="457" key="GridCell.Tab.2.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542671" />
|
|
670
|
-
<state width="2533" height="457" key="GridCell.Tab.2.right" timestamp="1626673542673">
|
|
671
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
672
|
-
</state>
|
|
673
|
-
<state width="2533" height="457" key="GridCell.Tab.2.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542673" />
|
|
674
|
-
<state width="2533" height="457" key="GridCell.Tab.3.bottom" timestamp="1626673542682">
|
|
675
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
676
|
-
</state>
|
|
677
|
-
<state width="2533" height="457" key="GridCell.Tab.3.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542682" />
|
|
678
|
-
<state width="2533" height="457" key="GridCell.Tab.3.center" timestamp="1626673542679">
|
|
679
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
680
|
-
</state>
|
|
681
|
-
<state width="2533" height="457" key="GridCell.Tab.3.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542679" />
|
|
682
|
-
<state width="2533" height="457" key="GridCell.Tab.3.left" timestamp="1626673542676">
|
|
683
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
684
|
-
</state>
|
|
685
|
-
<state width="2533" height="457" key="GridCell.Tab.3.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542676" />
|
|
686
|
-
<state width="2533" height="457" key="GridCell.Tab.3.right" timestamp="1626673542680">
|
|
687
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
688
|
-
</state>
|
|
689
|
-
<state width="2533" height="457" key="GridCell.Tab.3.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542680" />
|
|
690
|
-
<state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog" timestamp="1630460804017">
|
|
691
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
692
|
-
</state>
|
|
693
|
-
<state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1630460804017" />
|
|
694
|
-
<state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser" timestamp="1631757307782">
|
|
695
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
696
|
-
</state>
|
|
697
|
-
<state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser/0.27.2560.1348@0.27.2560.1348" timestamp="1631757307782" />
|
|
698
|
-
<state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2" timestamp="1632364390828">
|
|
699
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
700
|
-
</state>
|
|
701
|
-
<state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2/0.27.2560.1348@0.27.2560.1348" timestamp="1632364390828" />
|
|
702
|
-
<state x="969" y="384" width="1154" height="626" key="find.popup" timestamp="1632379533248">
|
|
703
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
704
|
-
</state>
|
|
705
|
-
<state x="969" y="384" width="1154" height="626" key="find.popup/0.27.2560.1348@0.27.2560.1348" timestamp="1632379533248" />
|
|
667
|
+
<component name="XSLT-Support.FileAssociations.UIState">
|
|
668
|
+
<expand />
|
|
669
|
+
<select />
|
|
706
670
|
</component>
|
|
707
671
|
</project>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const utils = require('./utils');
|
|
2
|
-
const
|
|
2
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
3
3
|
const EsmWebpackPlugin = require('@purtuga/esm-webpack-plugin');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
@@ -61,13 +61,13 @@ module.exports = {
|
|
|
61
61
|
// production模式下自动开启
|
|
62
62
|
minimize: true,
|
|
63
63
|
minimizer: [
|
|
64
|
-
new
|
|
64
|
+
new TerserPlugin({
|
|
65
65
|
test: /\.js($|\?)/i,
|
|
66
66
|
// 是否启用缓存
|
|
67
67
|
cache: true,
|
|
68
68
|
// 启用并行化
|
|
69
69
|
parallel: true,
|
|
70
|
-
|
|
70
|
+
terserOptions: {
|
|
71
71
|
// 支持ie8
|
|
72
72
|
ie8: false,
|
|
73
73
|
// enable work around safari 10/11 bugs in loop scoping and await,
|
|
@@ -2,7 +2,7 @@ const utils = require('./utils');
|
|
|
2
2
|
// const webpack = require('webpack');
|
|
3
3
|
const webpackMerge = require('webpack-merge');
|
|
4
4
|
const baseWebpackConfig = require('./webpack.base.conf');
|
|
5
|
-
const
|
|
5
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
6
6
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
7
7
|
|
|
8
8
|
process.env.NODE_ENV = process.env.NODE_ENV ?
|
|
@@ -31,13 +31,13 @@ module.exports = function() {
|
|
|
31
31
|
// production模式下自动开启
|
|
32
32
|
minimize: true,
|
|
33
33
|
minimizer: [
|
|
34
|
-
new
|
|
34
|
+
new TerserPlugin({
|
|
35
35
|
test: /\.js($|\?)/i,
|
|
36
36
|
// 是否启用缓存
|
|
37
37
|
cache: true,
|
|
38
38
|
// 启用并行化
|
|
39
39
|
parallel: true,
|
|
40
|
-
|
|
40
|
+
terserOptions: {
|
|
41
41
|
// 支持ie8
|
|
42
42
|
ie8: false,
|
|
43
43
|
// enable work around safari 10/11 bugs in loop scoping and await,
|
package/example/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {KfbView, cacheGammaTable, hslToRgb, rgbToHsl} from '../src';
|
|
2
2
|
import axios from 'axios';
|
|
3
|
+
import {EVENT_TAILORING_SCREENSHOT} from '../src/const/event';
|
|
3
4
|
|
|
4
5
|
const fileName = '/upload/large_file/last/fb6f566d15cc52331e3c4f3e1794a748/T2020-00935.kfb';
|
|
5
6
|
|
|
@@ -20,6 +21,9 @@ instance.get(`/ai/kfb/info?file=${fileName}`).then(({data}) => {
|
|
|
20
21
|
disabled: false,
|
|
21
22
|
drag: true,
|
|
22
23
|
},
|
|
24
|
+
board: {
|
|
25
|
+
ROI: true,
|
|
26
|
+
},
|
|
23
27
|
graduation: {
|
|
24
28
|
right: 30,
|
|
25
29
|
},
|
|
@@ -66,7 +70,15 @@ instance.get(`/ai/kfb/info?file=${fileName}`).then(({data}) => {
|
|
|
66
70
|
},
|
|
67
71
|
},
|
|
68
72
|
tileDrawing(e) {
|
|
69
|
-
const {
|
|
73
|
+
const {
|
|
74
|
+
context,
|
|
75
|
+
rendered,
|
|
76
|
+
sourceWidth,
|
|
77
|
+
sourceHeight,
|
|
78
|
+
position,
|
|
79
|
+
size,
|
|
80
|
+
initRendered,
|
|
81
|
+
} = e;
|
|
70
82
|
let rangeA = document.querySelector('#a').value / 1;
|
|
71
83
|
let rangeB = document.querySelector('#b').value / 1;
|
|
72
84
|
let rangeC = document.querySelector('#c').value / 1;
|
|
@@ -176,8 +188,11 @@ instance.get(`/ai/kfb/info?file=${fileName}`).then(({data}) => {
|
|
|
176
188
|
rect.onclick = () => {
|
|
177
189
|
kv.board.startDraw({
|
|
178
190
|
tool: KfbView.marks.RECTANGLE,
|
|
179
|
-
|
|
191
|
+
isROI: true,
|
|
180
192
|
once: true,
|
|
193
|
+
measure: false,
|
|
194
|
+
resize: false,
|
|
195
|
+
move: false,
|
|
181
196
|
});
|
|
182
197
|
};
|
|
183
198
|
line.onclick = () => {
|
|
@@ -258,18 +273,18 @@ instance.get(`/ai/kfb/info?file=${fileName}`).then(({data}) => {
|
|
|
258
273
|
kv.$on(KfbView.events.EVENT_CANCEL_SELECT_LABEL, (e) => {
|
|
259
274
|
// kv.board.endDraw();
|
|
260
275
|
});
|
|
261
|
-
|
|
262
|
-
kv.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
276
|
+
const {width, height} = kv.$options;
|
|
277
|
+
kv.$on(KfbView.events.EVENT_TAILORING_SCREENSHOT, (e) => {
|
|
278
|
+
console.log(e.detail);
|
|
279
|
+
});
|
|
280
|
+
/* kv.tailoring.init(
|
|
281
|
+
{
|
|
282
|
+
left: width / 2 - 100,
|
|
283
|
+
top: height / 2 - 100,
|
|
284
|
+
height: 200,
|
|
285
|
+
width: 200,
|
|
286
|
+
color: '#F00',
|
|
287
|
+
});*/
|
|
273
288
|
setTimeout(() => {
|
|
274
289
|
// kv.destroy();
|
|
275
290
|
}, 6000);
|