Skip to content

webviewer-barcode sample is working as expected with webviewer v12#112

Merged
Mohammed-AbdulRahman-Apryse merged 10 commits into
v12-holdingfrom
AS-385-V12-Barcode-GitHub-Sample-Update-Dependencies
Jul 8, 2026
Merged

webviewer-barcode sample is working as expected with webviewer v12#112
Mohammed-AbdulRahman-Apryse merged 10 commits into
v12-holdingfrom
AS-385-V12-Barcode-GitHub-Sample-Update-Dependencies

Conversation

@Mohammed-AbdulRahman-Apryse

Copy link
Copy Markdown
Collaborator

Description

WebViewer v12.0 installation should work the dependencies updates

Recording.2026-07-07.091854.mp4

Resources

https://apryse.atlassian.net/browse/AS-385

Checklist

  • [✓] I understand that this is a public repo and my changes will be publicly visible

If you are adding a new sample

  • I have added an entry to the root level README
  • The name of my sample is consistent with the other samples
  • I have added a README to my sample
  • The sample is fully functional
  • I have updated lerna.json with the new sample name

If you are removing an old sample

  • I have removed the entry from the root level README
  • I have removed the sample from lerna.json

…annot be invoked without new

Replaced legacy function/prototype inheritance:
A. Tools.RectangleCreateTool.apply(this, arguments)
B. SnipTool.prototype = new Tools.RectangleCreateTool()
With proper ES6 class inheritance:
A. class SnipTool extends Tools.RectangleCreateTool
B. super(...args) in constructor
cropToolGroupButton -> cropToolButton
snippingToolGroupButton -> snippingToolButton
Replacing the old way of having custom tool buttons that is ineffective in webviewer v12
- Nested functions more that 4 levels deep
- Stateless functional components should not use this
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

@AminDodin-Apryse AminDodin-Apryse left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested and the upgrade to v12 is OK, so I'm approving this PR.
However, the sample itself needs re-writing because the non-Apryse barcode libraries it uses are inferior and do not work properly in some cases.

Image

@Mohammed-AbdulRahman-Apryse
Mohammed-AbdulRahman-Apryse removed the request for review from DavidEGutierrez July 8, 2026 11:24
@Mohammed-AbdulRahman-Apryse
Mohammed-AbdulRahman-Apryse merged commit 613ba2d into v12-holding Jul 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants