Ze-Zheng Wu

Results 75 comments of Ze-Zheng Wu

do you have animations when moving the handles?

I developed a plugin called [`prettier-plugin-embed`](https://github.com/Sec-ant/prettier-plugin-embed), and I override the `embed` method of `estree` printer using this approach (typescript code 👇): ```ts import type { Comment, Node as EsTreeNode }...

~~I created a PR(#771) to fix this problem.~~ The fix has some issues. Closing for now. Need more confirmation from the maintainer.

见 #372,需要有需求的开发者贡献代码,并参考 https://github.com/gruhn/vue-qrcode-reader/issues/406#issuecomment-1882875138 提交 PR。

如果在[这个 demo 页面](https://vue-qrcode-reader.netlify.app/demos/CustomTrackingWithFormats.html)中 `data_matrix` 是能够正常工作的,那么问题就不是出在 `BarcodeDetector` 中,而是可能出在你实现方式上。建议先用最小的可复现 demo 来定位问题出现的位置和原因,并参考 5.x 版本的代码调整 3.x 的结构。

> 我不太确定是否BarcodeDetector 的版本问题,这个demo版本是可以的,但这个demo是5.x版本,由于5.x版本中的BarcodeDetector与3.x版本的不一样,3.x版本的BarcodeDetector 版本是1.0.3在npm官网上搜索不到 你需要更新 BarcodeDetector 版本。实际上 BarcodeDetector 1.x 是另外一个包,现在已经不维护了,它也不支持其他 formats。目前继续维护的版本是 2.x,所以这个依赖需要升级到 2.x。

> 是的,升级后是可以识别了,我是否 可以推送到3.x分支上? ok,不过我并不是本仓库的维护者,提交 PR 时建议用英文写明做了哪些修改,然后让仓库拥有者 @gruhn 审查修改并合并。

像是命令行参数有些问题,搜了一下可能和这个问题有关,应该要先正确安装一下 husky:https://github.com/pnpm/pnpm/issues/4790

你不能直接在本仓库创建分支,简单的 PR 提交步骤是: 1. fork 一份本仓库到你的账户下; 2. 将你 fork 的仓库克隆到本地; 3. 本地切换到 "3.x" 分支; 4. 基于 "3.x" 分支新建一个新的分支,名字可以为 "support-formats",反映你做的修改内容; 5. 将你做的修改提交(commit)到这个新的分支; 6. 将这个新的分支 push 到你 fork 的仓库中; 7. 在 GitHub...

I wrote myself a polyfill using ZXing cpp wasm: https://github.com/Sec-ant/barcode-detector