Is there any example on how we may get lasso from this library
Is there any example on how we may get lasso from this library
When you say "lasso" I assume you mean the lasso tool in immerse, correct? This library is used for drawing and styling 2d shapes for the lasso tool. The lasso tool itself is more of a UI component at a higher level.
You can see how the draw tool is used in immerse raster charts with these two mixins:
https://github.com/mapd/mapd-charting/blob/master/src/mixins/raster-draw-mixin.js https://github.com/mapd/mapd-charting/blob/master/src/mixins/ui/lasso-tool-ui.js
raster-draw-mixin handles initialization of the draw tool and applies the appropriate filters for the shapes. The function that handles initialization is here: https://github.com/mapd/mapd-charting/blob/master/src/mixins/raster-draw-mixin.js#L333
lasso-tool-ui handles all the lasso shape drawing (circle, polyline, and lasso).
The trickiest part of the lasso tool is properly handling events and the propagation thereof.
Sorry, there isn't much documentation here, so you'll have to resort to reading code/asking questions.