blob: 2677a504b054e97af0affca6c957807665e927ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# JavaScript polyfills
This directory contains JavaScript "Polyfills" to support rendering of SVG 2
features that are not well supported by browsers, but appeared in the 2016
[specification](https://www.w3.org/TR/2016/CR-SVG2-20160915/pservers.html#MeshGradients)
The included files are:
- `mesh.js` mesh gradients supporting bicubic meshes and mesh on strokes.
- `mesh_compressed.include` mesh.js minified and wrapped as a C++11 raw string literal.
- `hatch.js` hatch paint server supporting linear and absolute paths hatches
(relative paths are not fully supported)
- `hatch_tests` folder with tests used for `hatch.js` rendering
## Details
The coding standard used is [semistandard](https://github.com/Flet/semistandard),
a more permissive (allows endrow semicolons) over the famous, open-source
[standardjs](https://standardjs.com/).
The minifier used for the compressed version is [JavaScript minifier](https://javascript-minifier.com/).
|