Make own Snap feature

Which product are you using?
PDF.js Express Plus

PDF.js Express Version

Detailed description of issue

As we know PDFJS doesn’t have snap feature. So I’m thinking of making my own. let say i have the coordinates should be snapped. What steps or any example to achieve this ? right now I’m thinking of to override PolylineCreateTool

Thank guys :grin:

Hi there,

Thank you for contacting pdf.js express forums,

As you mentioned, snapping is not supported for pdf.js but our sister product WebViewer has this feature.
An example documentation can be found here, but you will need to define your own snapToNearest method

Best regards,
Kevin Kim