unify-external-plugin-platform 0.0.3-95 → 0.0.3-96
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/.playwright-mcp/console-2026-11-27T07-14-01-087Z.log +3 -0
- package/.playwright-mcp/console-2026-11-27T07-22-19-636Z.log +2 -0
- package/.playwright-mcp/console-2026-11-27T07-34-06-262Z.log +2 -0
- package/.playwright-mcp/page-2026-11-27T07-14-01-513Z.yml +22 -0
- package/.playwright-mcp/page-2026-11-27T07-14-09-138Z.yml +22 -0
- package/.playwright-mcp/page-2026-11-27T07-14-17-314Z.yml +22 -0
- package/.playwright-mcp/page-2026-11-27T07-22-20-368Z.yml +28 -0
- package/.playwright-mcp/page-2026-11-27T07-22-25-243Z.yml +28 -0
- package/.playwright-mcp/page-2026-11-27T07-34-06-625Z.yml +35 -0
- package/.playwright-mcp/page-2026-11-27T07-34-16-953Z.yml +35 -0
- package/.playwright-mcp/page-2026-11-27T07-34-19-848Z.yml +35 -0
- package/dist/external-plugin.common.js +53 -10
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +53 -10
- package/dist/external-plugin.umd.min.js +3 -3
- package/package.json +1 -1
- package/.claude/scheduled_tasks.lock +0 -1
|
@@ -83190,8 +83190,8 @@ var scanner_cameravue_type_template_id_3a7e649c_scoped_true_render = function re
|
|
|
83190
83190
|
};
|
|
83191
83191
|
var scanner_cameravue_type_template_id_3a7e649c_scoped_true_staticRenderFns = [];
|
|
83192
83192
|
|
|
83193
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=template&id=
|
|
83194
|
-
var
|
|
83193
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=template&id=4949c242&scoped=true&
|
|
83194
|
+
var scanner_camera_componentvue_type_template_id_4949c242_scoped_true_render = function render() {
|
|
83195
83195
|
var _vm = this,
|
|
83196
83196
|
_c = _vm._self._c;
|
|
83197
83197
|
return _c('div', {
|
|
@@ -83341,7 +83341,7 @@ var scanner_camera_componentvue_type_template_id_532cfefa_scoped_true_render = f
|
|
|
83341
83341
|
}
|
|
83342
83342
|
}, [_vm._v("旋转180°")])], 1)], 1) : _vm._e(), _vm._t("action")], 2)])]);
|
|
83343
83343
|
};
|
|
83344
|
-
var
|
|
83344
|
+
var scanner_camera_componentvue_type_template_id_4949c242_scoped_true_staticRenderFns = [];
|
|
83345
83345
|
|
|
83346
83346
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
83347
83347
|
function _typeof(obj) {
|
|
@@ -83483,6 +83483,8 @@ var ELoamMethodCode;
|
|
|
83483
83483
|
ELoamMethodCode["StopSecondaryCamera"] = "stopSecondaryCamera";
|
|
83484
83484
|
/** 框选拍照 */
|
|
83485
83485
|
ELoamMethodCode["ScannerCameraSelectArea"] = "ScannerCameraSelectArea";
|
|
83486
|
+
/** 展平拍照(Windows 良田 HTTP 服务,仅主摄像头支持) */
|
|
83487
|
+
ELoamMethodCode["ScannerCameraFlatten"] = "ScannerCameraFlatten";
|
|
83486
83488
|
})(ELoamMethodCode || (ELoamMethodCode = {}));
|
|
83487
83489
|
const ELoamMethodDesc = {
|
|
83488
83490
|
[ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
|
|
@@ -83669,6 +83671,15 @@ class ELoamPassService {
|
|
|
83669
83671
|
requestType = 'post';
|
|
83670
83672
|
}
|
|
83671
83673
|
break;
|
|
83674
|
+
case ELoamMethodCode.ScannerCameraFlatten:
|
|
83675
|
+
// 展平拍照:filepath 为空时服务现场从摄像头取图展平(仅主摄像头支持)
|
|
83676
|
+
if (this._isLinux) {
|
|
83677
|
+
// 国产/Linux 服务暂无对应接口,未验证前不放行
|
|
83678
|
+
throw new Error('国产系统暂不支持展平拍照');
|
|
83679
|
+
}
|
|
83680
|
+
url = this.baseServiceUrl + '/video=autoflat?' + encodeURIComponent(JSON.stringify(data));
|
|
83681
|
+
requestType = 'get';
|
|
83682
|
+
break;
|
|
83672
83683
|
}
|
|
83673
83684
|
let res = await CustomAxios[requestType](url, param);
|
|
83674
83685
|
return res;
|
|
@@ -83828,6 +83839,26 @@ class ELoamPassService {
|
|
|
83828
83839
|
return res.base64 || res.photoBase64;
|
|
83829
83840
|
}
|
|
83830
83841
|
}
|
|
83842
|
+
/**
|
|
83843
|
+
* 展平拍照(针对摊开的书本/册页做曲面矫正压平;Windows 良田服务,仅主摄像头支持)
|
|
83844
|
+
* 单页展平、不去手指、彩色输出(与良田 demo 默认一致)
|
|
83845
|
+
* @returns 图片base64
|
|
83846
|
+
*/
|
|
83847
|
+
static async scanByFlatten() {
|
|
83848
|
+
const data = {
|
|
83849
|
+
filepath: "",
|
|
83850
|
+
autoflat: {
|
|
83851
|
+
leftfilepath: "",
|
|
83852
|
+
rightfilepath: "",
|
|
83853
|
+
removefinger: "0",
|
|
83854
|
+
doublepage: "0",
|
|
83855
|
+
colormode: "0" // 0:彩色
|
|
83856
|
+
}
|
|
83857
|
+
};
|
|
83858
|
+
|
|
83859
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerCameraFlatten, data);
|
|
83860
|
+
return res.photoBase64 || null;
|
|
83861
|
+
}
|
|
83831
83862
|
}
|
|
83832
83863
|
_defineProperty(ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
|
|
83833
83864
|
_defineProperty(ELoamPassService, "baseLinuxServiceUrl", 'http://127.0.0.1:6543');
|
|
@@ -87021,6 +87052,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87021
87052
|
}],
|
|
87022
87053
|
deskewStatus: 0,
|
|
87023
87054
|
rotateDeg: 0,
|
|
87055
|
+
// 良田 Windows:用户使用过左旋/右旋90°后置真,点"拍照"自动改走展平(autoflat)
|
|
87056
|
+
flattenByRotate: false,
|
|
87024
87057
|
buttonList: [{
|
|
87025
87058
|
label: '拍照',
|
|
87026
87059
|
name: 'take-pictures'
|
|
@@ -87108,6 +87141,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87108
87141
|
// 重置框选模式
|
|
87109
87142
|
this.isSelectAreaMode = false;
|
|
87110
87143
|
this.isSelecting = false;
|
|
87144
|
+
// 重置旋转触发展平标记
|
|
87145
|
+
this.flattenByRotate = false;
|
|
87111
87146
|
let handleName = this.camera === 1 ? 'start-vice' : 'start-main';
|
|
87112
87147
|
this.handleAction(handleName);
|
|
87113
87148
|
}
|
|
@@ -87214,9 +87249,13 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87214
87249
|
}
|
|
87215
87250
|
case 5:
|
|
87216
87251
|
{
|
|
87217
|
-
//
|
|
87252
|
+
// 良田:主头旋转过(左旋/右旋90°)时,拍照自动走展平(autoflat),册页场景无需单独展平按钮
|
|
87218
87253
|
let type = this.camera === 0 ? 'main' : 'vice';
|
|
87219
|
-
const
|
|
87254
|
+
const useFlatten = this.flattenByRotate && this.camera === 0;
|
|
87255
|
+
if (useFlatten) {
|
|
87256
|
+
this.$message.info('已旋转,本次拍照使用展平模式');
|
|
87257
|
+
}
|
|
87258
|
+
const res = useFlatten ? await ELoamPassService.scanByFlatten() : await ELoamPassService.scanByCamera(type, this.deskewStatus);
|
|
87220
87259
|
if (res) {
|
|
87221
87260
|
let path = res;
|
|
87222
87261
|
this.$emit('send-scanner-result', `${BEGIN_DATA}${path}`);
|
|
@@ -87735,6 +87774,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87735
87774
|
} else {
|
|
87736
87775
|
// Windows系统:直接设置角度
|
|
87737
87776
|
this.rotateDeg = 270;
|
|
87777
|
+
// 良田 Windows:旋转过左/右90°后,拍照自动改走展平(autoflat)
|
|
87778
|
+
if (this.machineType === 5) this.flattenByRotate = true;
|
|
87738
87779
|
ELoamPassService.read(ELoamMethodCode.ScannerCameraRotate, this.rotateDeg);
|
|
87739
87780
|
}
|
|
87740
87781
|
break;
|
|
@@ -87748,6 +87789,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87748
87789
|
} else {
|
|
87749
87790
|
// Windows系统:直接设置角度
|
|
87750
87791
|
this.rotateDeg = 90;
|
|
87792
|
+
// 良田 Windows:旋转过左/右90°后,拍照自动改走展平(autoflat)
|
|
87793
|
+
if (this.machineType === 5) this.flattenByRotate = true;
|
|
87751
87794
|
ELoamPassService.read(ELoamMethodCode.ScannerCameraRotate, this.rotateDeg);
|
|
87752
87795
|
}
|
|
87753
87796
|
break;
|
|
@@ -87955,10 +87998,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87955
87998
|
});
|
|
87956
87999
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
|
87957
88000
|
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
|
87958
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
|
88001
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=4949c242&prod&lang=scss&scoped=true&
|
|
87959
88002
|
// extracted by mini-css-extract-plugin
|
|
87960
88003
|
|
|
87961
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
|
88004
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=4949c242&prod&lang=scss&scoped=true&
|
|
87962
88005
|
|
|
87963
88006
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
|
87964
88007
|
|
|
@@ -87971,11 +88014,11 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
87971
88014
|
|
|
87972
88015
|
var scanner_camera_component_component = normalizeComponent(
|
|
87973
88016
|
component_scanner_camera_componentvue_type_script_lang_js_,
|
|
87974
|
-
|
|
87975
|
-
|
|
88017
|
+
scanner_camera_componentvue_type_template_id_4949c242_scoped_true_render,
|
|
88018
|
+
scanner_camera_componentvue_type_template_id_4949c242_scoped_true_staticRenderFns,
|
|
87976
88019
|
false,
|
|
87977
88020
|
null,
|
|
87978
|
-
"
|
|
88021
|
+
"4949c242",
|
|
87979
88022
|
null
|
|
87980
88023
|
|
|
87981
88024
|
)
|