kfb-view 3.0.0-beta3 → 3.0.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/.idea/workspace.xml +54 -42
- package/config/webpack.dev.conf.js +2 -2
- package/example/index.js +30 -1
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/board/index.js +4 -2
- package/src/components/tailoring/index.js +21 -3
- package/src/const/event.js +1 -0
- package/src/plugin/openseadragon/openseadragon.js +6 -2
- package/src/view.js +1 -0
package/.idea/workspace.xml
CHANGED
|
@@ -39,14 +39,11 @@
|
|
|
39
39
|
</select>
|
|
40
40
|
</component>
|
|
41
41
|
<component name="ChangeListManager">
|
|
42
|
-
<list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="
|
|
42
|
+
<list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="build:3.0.1">
|
|
43
43
|
<change beforePath="$PROJECT_DIR$/config/webpack.dev.conf.js" beforeDir="false" afterPath="$PROJECT_DIR$/config/webpack.dev.conf.js" afterDir="false" />
|
|
44
44
|
<change beforePath="$PROJECT_DIR$/example/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.js" afterDir="false" />
|
|
45
45
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
46
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
47
|
-
<change beforePath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.js.map" afterDir="false" />
|
|
48
|
-
<change beforePath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js" afterDir="false" />
|
|
49
|
-
<change beforePath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js.map" afterDir="false" />
|
|
46
|
+
<change beforePath="$PROJECT_DIR$/src/components/tailoring/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/tailoring/index.js" afterDir="false" />
|
|
50
47
|
</list>
|
|
51
48
|
<option name="SHOW_DIALOG" value="false" />
|
|
52
49
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -88,7 +85,7 @@
|
|
|
88
85
|
"Project.color": "4c401d",
|
|
89
86
|
"WebServerToolWindowFactoryState": "false",
|
|
90
87
|
"dart.analysis.tool.window.visible": "false",
|
|
91
|
-
"last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view
|
|
88
|
+
"last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view",
|
|
92
89
|
"node.js.detected.package.eslint": "true",
|
|
93
90
|
"node.js.detected.package.tslint": "true",
|
|
94
91
|
"node.js.selected.package.eslint": "(autodetect)",
|
|
@@ -180,8 +177,8 @@
|
|
|
180
177
|
<recent_temporary>
|
|
181
178
|
<list>
|
|
182
179
|
<item itemvalue="npm.build:lib" />
|
|
183
|
-
<item itemvalue="npm.server" />
|
|
184
180
|
<item itemvalue="npm.server:hot" />
|
|
181
|
+
<item itemvalue="npm.server" />
|
|
185
182
|
<item itemvalue="npm.clean:lib" />
|
|
186
183
|
<item itemvalue="npm.build:prod" />
|
|
187
184
|
</list>
|
|
@@ -398,35 +395,22 @@
|
|
|
398
395
|
<workItem from="1675385204348" duration="1462000" />
|
|
399
396
|
<workItem from="1675843622628" duration="4524000" />
|
|
400
397
|
<workItem from="1675848342418" duration="2364000" />
|
|
401
|
-
<workItem from="1675902452322" duration="
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<
|
|
405
|
-
<
|
|
406
|
-
<
|
|
407
|
-
<
|
|
408
|
-
<
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
<
|
|
412
|
-
<
|
|
413
|
-
<
|
|
414
|
-
<
|
|
415
|
-
<
|
|
416
|
-
|
|
417
|
-
<task id="LOCAL-00073" summary="enableDbClickClose">
|
|
418
|
-
<created>1657539900044</created>
|
|
419
|
-
<option name="number" value="00073" />
|
|
420
|
-
<option name="presentableId" value="LOCAL-00073" />
|
|
421
|
-
<option name="project" value="LOCAL" />
|
|
422
|
-
<updated>1657539900044</updated>
|
|
423
|
-
</task>
|
|
424
|
-
<task id="LOCAL-00074" summary="2.1.20">
|
|
425
|
-
<created>1657539914133</created>
|
|
426
|
-
<option name="number" value="00074" />
|
|
427
|
-
<option name="presentableId" value="LOCAL-00074" />
|
|
428
|
-
<option name="project" value="LOCAL" />
|
|
429
|
-
<updated>1657539914133</updated>
|
|
398
|
+
<workItem from="1675902452322" duration="1711000" />
|
|
399
|
+
<workItem from="1675909040416" duration="1850000" />
|
|
400
|
+
<workItem from="1675923421168" duration="14000" />
|
|
401
|
+
<workItem from="1676430334861" duration="2002000" />
|
|
402
|
+
<workItem from="1676507825692" duration="1801000" />
|
|
403
|
+
<workItem from="1676515560281" duration="597000" />
|
|
404
|
+
<workItem from="1676530835986" duration="1197000" />
|
|
405
|
+
<workItem from="1676621760411" duration="596000" />
|
|
406
|
+
<workItem from="1676679228746" duration="561000" />
|
|
407
|
+
<workItem from="1676680577748" duration="1197000" />
|
|
408
|
+
<workItem from="1676690227544" duration="597000" />
|
|
409
|
+
<workItem from="1676722969064" duration="565000" />
|
|
410
|
+
<workItem from="1678926296962" duration="2385000" />
|
|
411
|
+
<workItem from="1679708561519" duration="550000" />
|
|
412
|
+
<workItem from="1679728741473" duration="161000" />
|
|
413
|
+
<workItem from="1680268962874" duration="184000" />
|
|
430
414
|
</task>
|
|
431
415
|
<task id="LOCAL-00075" summary="view.js">
|
|
432
416
|
<created>1657540107150</created>
|
|
@@ -743,7 +727,35 @@
|
|
|
743
727
|
<option name="project" value="LOCAL" />
|
|
744
728
|
<updated>1675327616880</updated>
|
|
745
729
|
</task>
|
|
746
|
-
<
|
|
730
|
+
<task id="LOCAL-00120" summary="升级openseadragon插件">
|
|
731
|
+
<created>1675919992646</created>
|
|
732
|
+
<option name="number" value="00120" />
|
|
733
|
+
<option name="presentableId" value="LOCAL-00120" />
|
|
734
|
+
<option name="project" value="LOCAL" />
|
|
735
|
+
<updated>1675919992646</updated>
|
|
736
|
+
</task>
|
|
737
|
+
<task id="LOCAL-00121" summary="feat:增加停止绘画事件">
|
|
738
|
+
<created>1678929016258</created>
|
|
739
|
+
<option name="number" value="00121" />
|
|
740
|
+
<option name="presentableId" value="LOCAL-00121" />
|
|
741
|
+
<option name="project" value="LOCAL" />
|
|
742
|
+
<updated>1678929016258</updated>
|
|
743
|
+
</task>
|
|
744
|
+
<task id="LOCAL-00122" summary="feat:截图生成的图片保留标注信息">
|
|
745
|
+
<created>1678929084617</created>
|
|
746
|
+
<option name="number" value="00122" />
|
|
747
|
+
<option name="presentableId" value="LOCAL-00122" />
|
|
748
|
+
<option name="project" value="LOCAL" />
|
|
749
|
+
<updated>1678929084617</updated>
|
|
750
|
+
</task>
|
|
751
|
+
<task id="LOCAL-00123" summary="build:3.0.1">
|
|
752
|
+
<created>1678929156803</created>
|
|
753
|
+
<option name="number" value="00123" />
|
|
754
|
+
<option name="presentableId" value="LOCAL-00123" />
|
|
755
|
+
<option name="project" value="LOCAL" />
|
|
756
|
+
<updated>1678929156803</updated>
|
|
757
|
+
</task>
|
|
758
|
+
<option name="localTasksCounter" value="124" />
|
|
747
759
|
<servers />
|
|
748
760
|
</component>
|
|
749
761
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -786,10 +798,6 @@
|
|
|
786
798
|
<component name="VcsManagerConfiguration">
|
|
787
799
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
788
800
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
789
|
-
<MESSAGE value="2.2.8" />
|
|
790
|
-
<MESSAGE value="优化标注信息显示" />
|
|
791
|
-
<MESSAGE value="标注事件回调" />
|
|
792
|
-
<MESSAGE value="defaultShow" />
|
|
793
801
|
<MESSAGE value="2.2.9" />
|
|
794
802
|
<MESSAGE value="矩形框的选中点变成线" />
|
|
795
803
|
<MESSAGE value="2.3.0" />
|
|
@@ -811,7 +819,11 @@
|
|
|
811
819
|
<MESSAGE value="截图区域范围数值保留2位小数" />
|
|
812
820
|
<MESSAGE value="标注位置跳转增加参数,是否显示跳转动画" />
|
|
813
821
|
<MESSAGE value="2.4.1" />
|
|
814
|
-
<
|
|
822
|
+
<MESSAGE value="升级openseadragon插件" />
|
|
823
|
+
<MESSAGE value="feat:增加停止绘画事件" />
|
|
824
|
+
<MESSAGE value="feat:截图生成的图片保留标注信息" />
|
|
825
|
+
<MESSAGE value="build:3.0.1" />
|
|
826
|
+
<option name="LAST_COMMIT_MESSAGE" value="build:3.0.1" />
|
|
815
827
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
816
828
|
</component>
|
|
817
829
|
<component name="XSLT-Support.FileAssociations.UIState">
|
|
@@ -66,8 +66,8 @@ module.exports = function() {
|
|
|
66
66
|
// target: 'http://gastric.label.hzztai.com/',
|
|
67
67
|
// target: 'http://192.168.1.91:7007',
|
|
68
68
|
// target: 'http://192.168.1.91',
|
|
69
|
-
|
|
70
|
-
target: 'https://vai.hzztai.com',
|
|
69
|
+
target: 'http://192.168.1.22',
|
|
70
|
+
// target: 'https://vai.hzztai.com',
|
|
71
71
|
// target: 'https://tct.hzztai.com',
|
|
72
72
|
// target: 'https://pis-ningbo.hzztai.com',
|
|
73
73
|
// target: 'https://pis-test.hzztai.com',
|
package/example/index.js
CHANGED
|
@@ -396,8 +396,16 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
396
396
|
});
|
|
397
397
|
const {width, height} = kv.$options;
|
|
398
398
|
kv.$on(KfbView.events.EVENT_TAILORING_SCREENSHOT, (e) => {
|
|
399
|
-
|
|
399
|
+
const blob = dataURLtoBlob(e.detail);
|
|
400
|
+
if (window.ClipboardItem && navigator?.clipboard) {
|
|
401
|
+
navigator.clipboard.write([
|
|
402
|
+
new window.ClipboardItem({
|
|
403
|
+
[blob.type]: blob,
|
|
404
|
+
}),
|
|
405
|
+
]);
|
|
406
|
+
}
|
|
400
407
|
});
|
|
408
|
+
|
|
401
409
|
/* kv.tailoring.init(
|
|
402
410
|
{
|
|
403
411
|
left: width / 2 - 100,
|
|
@@ -450,6 +458,15 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
450
458
|
document.querySelector('#g').value = 0;
|
|
451
459
|
document.querySelector('#b').value = 0;
|
|
452
460
|
kv.viewer.forceRedraw();
|
|
461
|
+
/* const { width, height } = kv.$options;
|
|
462
|
+
kv.tailoring.init(
|
|
463
|
+
{
|
|
464
|
+
left: width / 2 - 100,
|
|
465
|
+
top: height / 2 - 100,
|
|
466
|
+
height: 200,
|
|
467
|
+
width: 200,
|
|
468
|
+
color: '#ff0000',
|
|
469
|
+
});*/
|
|
453
470
|
});
|
|
454
471
|
|
|
455
472
|
/*
|
|
@@ -530,6 +547,18 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
530
547
|
});*/
|
|
531
548
|
});
|
|
532
549
|
|
|
550
|
+
function dataURLtoBlob(dataurl) {
|
|
551
|
+
const arr = dataurl.split(',');
|
|
552
|
+
const mime = arr[0].match(/:(.*?);/)[1];
|
|
553
|
+
const bstr = atob(arr[1]);
|
|
554
|
+
let n = bstr.length;
|
|
555
|
+
const u8arr = new Uint8Array(n);
|
|
556
|
+
while (n--) {
|
|
557
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
558
|
+
}
|
|
559
|
+
return new Blob([u8arr], {type: mime});
|
|
560
|
+
}
|
|
561
|
+
|
|
533
562
|
/**
|
|
534
563
|
* 解析参数,生成对应的请求参数字符串
|
|
535
564
|
* @param {Object} data
|