kfb-view 2.1.7 → 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 +49 -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/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
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
</select>
|
|
37
37
|
</component>
|
|
38
38
|
<component name="ChangeListManager">
|
|
39
|
-
<list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment=""
|
|
39
|
+
<list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="">
|
|
40
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
41
|
+
</list>
|
|
40
42
|
<option name="SHOW_DIALOG" value="false" />
|
|
41
43
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
42
44
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -58,6 +60,9 @@
|
|
|
58
60
|
</option>
|
|
59
61
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
60
62
|
</component>
|
|
63
|
+
<component name="MarkdownSettingsMigration">
|
|
64
|
+
<option name="stateVersion" value="1" />
|
|
65
|
+
</component>
|
|
61
66
|
<component name="ProjectId" id="1hqXz2bwk8xsvUX2aTlZ9SFeYgK" />
|
|
62
67
|
<component name="ProjectViewState">
|
|
63
68
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
@@ -66,6 +71,7 @@
|
|
|
66
71
|
<component name="PropertiesComponent">
|
|
67
72
|
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
68
73
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
74
|
+
<property name="dart.analysis.tool.window.visible" value="false" />
|
|
69
75
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
70
76
|
<property name="list.type.of.created.stylesheet" value="CSS" />
|
|
71
77
|
<property name="node.js.detected.package.eslint" value="true" />
|
|
@@ -74,11 +80,11 @@
|
|
|
74
80
|
<property name="node.js.path.for.package.standard" value="project" />
|
|
75
81
|
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
76
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" />
|
|
77
84
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
|
78
85
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
|
79
|
-
<property name="nodejs_package_manager_path" value="
|
|
80
|
-
<property name="
|
|
81
|
-
<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" />
|
|
82
88
|
<property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
|
|
83
89
|
<property name="vue.rearranger.settings.migration" value="true" />
|
|
84
90
|
</component>
|
|
@@ -148,7 +154,7 @@
|
|
|
148
154
|
<scripts>
|
|
149
155
|
<script value="server:hot" />
|
|
150
156
|
</scripts>
|
|
151
|
-
<node-interpreter value="
|
|
157
|
+
<node-interpreter value="$USER_HOME$/.nvm/versions/node/v10.15.1/bin/node" />
|
|
152
158
|
<package-manager value="npm" />
|
|
153
159
|
<envs />
|
|
154
160
|
<method v="2" />
|
|
@@ -163,9 +169,9 @@
|
|
|
163
169
|
<recent_temporary>
|
|
164
170
|
<list>
|
|
165
171
|
<item itemvalue="npm.build:lib" />
|
|
172
|
+
<item itemvalue="npm.build:prod" />
|
|
166
173
|
<item itemvalue="npm.server:hot" />
|
|
167
174
|
<item itemvalue="npm.lint" />
|
|
168
|
-
<item itemvalue="npm.build:prod" />
|
|
169
175
|
<item itemvalue="npm.server:dev" />
|
|
170
176
|
</list>
|
|
171
177
|
</recent_temporary>
|
|
@@ -243,7 +249,14 @@
|
|
|
243
249
|
<workItem from="1634268135304" duration="1276000" />
|
|
244
250
|
<workItem from="1634344422400" duration="3753000" />
|
|
245
251
|
<workItem from="1634435147345" duration="2072000" />
|
|
246
|
-
<workItem from="1634438173344" duration="
|
|
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" />
|
|
247
260
|
</task>
|
|
248
261
|
<task id="LOCAL-00001" summary="2.0.0重构">
|
|
249
262
|
<created>1600767106537</created>
|
|
@@ -560,7 +573,28 @@
|
|
|
560
573
|
<option name="project" value="LOCAL" />
|
|
561
574
|
<updated>1634437932304</updated>
|
|
562
575
|
</task>
|
|
563
|
-
<
|
|
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" />
|
|
564
598
|
<servers />
|
|
565
599
|
</component>
|
|
566
600
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -598,14 +632,10 @@
|
|
|
598
632
|
</entry>
|
|
599
633
|
</map>
|
|
600
634
|
</option>
|
|
601
|
-
<option name="oldMeFiltersMigrated" value="true" />
|
|
602
635
|
</component>
|
|
603
636
|
<component name="VcsManagerConfiguration">
|
|
604
637
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
605
638
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
606
|
-
<MESSAGE value="2.0.10缩略图" />
|
|
607
|
-
<MESSAGE value="2.0.11截图优化" />
|
|
608
|
-
<MESSAGE value="2.0.12增加lib打包" />
|
|
609
639
|
<MESSAGE value="导航图优化" />
|
|
610
640
|
<MESSAGE value="gnore" />
|
|
611
641
|
<MESSAGE value="标注信息从shape中移到area" />
|
|
@@ -628,113 +658,14 @@
|
|
|
628
658
|
<MESSAGE value="navigator 获取元素方式修改" />
|
|
629
659
|
<MESSAGE value="chrome 49版本兼容" />
|
|
630
660
|
<MESSAGE value="刻度线显示异常" />
|
|
631
|
-
<
|
|
661
|
+
<MESSAGE value="优化,增加部分注释" />
|
|
662
|
+
<MESSAGE value="2.1.8" />
|
|
663
|
+
<MESSAGE value="TerserPlugin" />
|
|
664
|
+
<option name="LAST_COMMIT_MESSAGE" value="TerserPlugin" />
|
|
632
665
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
633
666
|
</component>
|
|
634
|
-
<component name="
|
|
635
|
-
<
|
|
636
|
-
|
|
637
|
-
</state>
|
|
638
|
-
<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" />
|
|
639
|
-
<state x="804" y="176" width="937" height="804" key="CommitChangelistDialog2" timestamp="1634437932051">
|
|
640
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
641
|
-
</state>
|
|
642
|
-
<state x="804" y="176" width="937" height="804" key="CommitChangelistDialog2/0.27.1861.1052@0.27.1861.1052" timestamp="1634437932051" />
|
|
643
|
-
<state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2/0.27.2560.1348@0.27.2560.1348" timestamp="1632379604925" />
|
|
644
|
-
<state x="233" y="564" width="2360" height="1150" key="DiffContextDialog" timestamp="1632379478129">
|
|
645
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
646
|
-
</state>
|
|
647
|
-
<state x="233" y="564" width="2360" height="1150" key="DiffContextDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1632379478129" />
|
|
648
|
-
<state x="1595" y="688" width="424" height="484" key="FileChooserDialogImpl" timestamp="1632743649599">
|
|
649
|
-
<screen x="0" y="27" width="3840" height="2068" />
|
|
650
|
-
</state>
|
|
651
|
-
<state x="1063" y="458" width="424" height="484" key="FileChooserDialogImpl/0.27.2560.1348@0.27.2560.1348" timestamp="1630485689567" />
|
|
652
|
-
<state x="1595" y="688" key="FileChooserDialogImpl/0.27.3840.2068@0.27.3840.2068" timestamp="1632743649599" />
|
|
653
|
-
<state width="1834" height="301" key="GridCell.Tab.0.bottom" timestamp="1634436647542">
|
|
654
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
655
|
-
</state>
|
|
656
|
-
<state width="1834" height="301" key="GridCell.Tab.0.bottom/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647542" />
|
|
657
|
-
<state width="2533" height="408" key="GridCell.Tab.0.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458365" />
|
|
658
|
-
<state width="1834" height="301" key="GridCell.Tab.0.center" timestamp="1634436647540">
|
|
659
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
660
|
-
</state>
|
|
661
|
-
<state width="1834" height="301" key="GridCell.Tab.0.center/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647540" />
|
|
662
|
-
<state width="2533" height="408" key="GridCell.Tab.0.center/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458362" />
|
|
663
|
-
<state width="1834" height="301" key="GridCell.Tab.0.left" timestamp="1634436647539">
|
|
664
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
665
|
-
</state>
|
|
666
|
-
<state width="1834" height="301" key="GridCell.Tab.0.left/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647539" />
|
|
667
|
-
<state width="2533" height="408" key="GridCell.Tab.0.left/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458361" />
|
|
668
|
-
<state width="1834" height="301" key="GridCell.Tab.0.right" timestamp="1634436647541">
|
|
669
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
670
|
-
</state>
|
|
671
|
-
<state width="1834" height="301" key="GridCell.Tab.0.right/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647541" />
|
|
672
|
-
<state width="2533" height="408" key="GridCell.Tab.0.right/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458364" />
|
|
673
|
-
<state width="2533" height="457" key="GridCell.Tab.1.bottom" timestamp="1626673542669">
|
|
674
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
675
|
-
</state>
|
|
676
|
-
<state width="2533" height="457" key="GridCell.Tab.1.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542669" />
|
|
677
|
-
<state width="2533" height="457" key="GridCell.Tab.1.center" timestamp="1626673542666">
|
|
678
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
679
|
-
</state>
|
|
680
|
-
<state width="2533" height="457" key="GridCell.Tab.1.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542666" />
|
|
681
|
-
<state width="2533" height="457" key="GridCell.Tab.1.left" timestamp="1626673542663">
|
|
682
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
683
|
-
</state>
|
|
684
|
-
<state width="2533" height="457" key="GridCell.Tab.1.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542663" />
|
|
685
|
-
<state width="2533" height="457" key="GridCell.Tab.1.right" timestamp="1626673542668">
|
|
686
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
687
|
-
</state>
|
|
688
|
-
<state width="2533" height="457" key="GridCell.Tab.1.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542668" />
|
|
689
|
-
<state width="2533" height="457" key="GridCell.Tab.2.bottom" timestamp="1626673542674">
|
|
690
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
691
|
-
</state>
|
|
692
|
-
<state width="2533" height="457" key="GridCell.Tab.2.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542674" />
|
|
693
|
-
<state width="2533" height="457" key="GridCell.Tab.2.center" timestamp="1626673542672">
|
|
694
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
695
|
-
</state>
|
|
696
|
-
<state width="2533" height="457" key="GridCell.Tab.2.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542672" />
|
|
697
|
-
<state width="2533" height="457" key="GridCell.Tab.2.left" timestamp="1626673542671">
|
|
698
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
699
|
-
</state>
|
|
700
|
-
<state width="2533" height="457" key="GridCell.Tab.2.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542671" />
|
|
701
|
-
<state width="2533" height="457" key="GridCell.Tab.2.right" timestamp="1626673542673">
|
|
702
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
703
|
-
</state>
|
|
704
|
-
<state width="2533" height="457" key="GridCell.Tab.2.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542673" />
|
|
705
|
-
<state width="2533" height="457" key="GridCell.Tab.3.bottom" timestamp="1626673542682">
|
|
706
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
707
|
-
</state>
|
|
708
|
-
<state width="2533" height="457" key="GridCell.Tab.3.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542682" />
|
|
709
|
-
<state width="2533" height="457" key="GridCell.Tab.3.center" timestamp="1626673542679">
|
|
710
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
711
|
-
</state>
|
|
712
|
-
<state width="2533" height="457" key="GridCell.Tab.3.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542679" />
|
|
713
|
-
<state width="2533" height="457" key="GridCell.Tab.3.left" timestamp="1626673542676">
|
|
714
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
715
|
-
</state>
|
|
716
|
-
<state width="2533" height="457" key="GridCell.Tab.3.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542676" />
|
|
717
|
-
<state width="2533" height="457" key="GridCell.Tab.3.right" timestamp="1626673542680">
|
|
718
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
719
|
-
</state>
|
|
720
|
-
<state width="2533" height="457" key="GridCell.Tab.3.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542680" />
|
|
721
|
-
<state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog" timestamp="1630460804017">
|
|
722
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
723
|
-
</state>
|
|
724
|
-
<state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1630460804017" />
|
|
725
|
-
<state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser" timestamp="1631757307782">
|
|
726
|
-
<screen x="0" y="27" width="2560" height="1348" />
|
|
727
|
-
</state>
|
|
728
|
-
<state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser/0.27.2560.1348@0.27.2560.1348" timestamp="1631757307782" />
|
|
729
|
-
<state x="636" y="327" width="800" height="531" key="Vcs.Push.Dialog.v2" timestamp="1634268799005">
|
|
730
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
731
|
-
</state>
|
|
732
|
-
<state x="636" y="327" key="Vcs.Push.Dialog.v2/0.27.1861.1052@0.27.1861.1052" timestamp="1634268799005" />
|
|
733
|
-
<state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2/0.27.2560.1348@0.27.2560.1348" timestamp="1632364390828" />
|
|
734
|
-
<state x="704" y="306" width="839" height="626" key="find.popup" timestamp="1634435934505">
|
|
735
|
-
<screen x="0" y="27" width="1861" height="1052" />
|
|
736
|
-
</state>
|
|
737
|
-
<state x="704" y="306" width="839" height="626" key="find.popup/0.27.1861.1052@0.27.1861.1052" timestamp="1634435934505" />
|
|
738
|
-
<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 />
|
|
739
670
|
</component>
|
|
740
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);
|