gpt4 book ai didi

javascript - Wacom stu-430 签名采集速度太慢

转载 作者:行者123 更新时间:2023-11-29 21:26:47 25 4
gpt4 key购买 nike

我在配置 Wacom 数位板签名时遇到问题。我没有问题地做了这个例子,但是当我把它集成到我的程序中时,它坏了。

问题是,当我单击“签名”按钮时,需要 5-10 秒才能显示签名捕获。在此之后,它运行正常。

我没有对示例做太多更改;这是我修改的代码的一部分:

(function($) {
$(function() {
var boton_firma = $('.captura_wacom');
boton_firma.prop('disabled', false);
boton_firma.on('click', init_firma);
});
})(jQuery);

function init_firma() {
var signatureForm = new SignatureForm($(this).parent().find('.fichero_firma').get(0), $(this));
signatureForm.connect();
}

当我暂停进程时,它总是在来自 wacom 的名为 BigInt.js 的 js 包含中停止。

最佳答案

最后我把demobuttons.js的一部分注释掉了(wacom 示例),无需等待,现在运行正常

在下面的示例中,该行被标记为 ( <---):

try {
if (m_usingEncryption) {
//m_tablet.startCapture(0xc0ffee); <---
}
} catch (e) {
m_usingEncryption = false;
}
// Enable the pen data on the screen (if not already)
m_tablet.setInkingMode(0x01);

关于javascript - Wacom stu-430 签名采集速度太慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37297621/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com