- Fix WebGL warning due to TypeScript inconsistency in Regl
- Migrated to TypeScript
- Fix miter line join
- Fix
miter
default value totrue
and harden code around it's internal usage
- Update regl dependency to v2
- Fix an issue with the line width
- Fix an issue of shifted
colorIndices
,opacities
, andwidths
.
- Expose opacities buffer via
getBuffer()
and the data viagetData()
- An issue that caused
opacity
to be set toundefined
- Add
opacity
andopacities
property. Theopacity
will override whatever you opacity have specified as the RGBA colors.opacities
will in turn overrideopacity
and allows you to adjust the opacity per line or line component.
- Pre-calculate
projection * view * model
for speed - Fix an issue with the pixel ratio-aware line width
- Add support for multi-colored lines
- Add support for drawing large number of lines (this assumes you enabled the
OES_element_index_uint
extension in Regl)
Breaking Changes:
setPoints(points, widths, is2d)
changed tosetPoints(points, options = { colorIndices, widths, is2d })
- Allow drawing multiple lines at once using
setPoints([[...],[...]])
- Either use the project and view matrix from the context or props
- Enable alpha blending
- Multiply line width by
window.devicePixelRatio
- Add missing shader files to the npm release
- First working version