├── .editorconfig ├── .eslintrc.json ├── .gitattributes ├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── .npmrc ├── docs ├── index.html └── index.js ├── example ├── example.js └── westminster.svg ├── license ├── package.json ├── readme.md ├── src └── index.js ├── test ├── data │ ├── simple.js │ ├── uk-2017-virtual-dom.js │ └── uk-2017.js ├── simple.js ├── uk-2017-virtual-dom.js ├── uk-2017.js └── util.js └── webpack.config.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = tab 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.{yml,yaml}] 12 | indent_style = space 13 | indent_size = 2 14 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "standard", 3 | "rules": { 4 | "comma-dangle": [ 5 | "error", 6 | "always-multiline" 7 | ], 8 | "indent": ["error", "tab"], 9 | "no-tabs": "off" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: 3 | [push, pull_request] 4 | jobs: 5 | test: 6 | runs-on: ubuntu-latest 7 | strategy: 8 | matrix: 9 | node-version: [14.x, 16.x] 10 | steps: 11 | - uses: actions/checkout@v2 12 | - name: Use Node.js ${{ matrix.node-version }} 13 | uses: actions/setup-node@v1 14 | with: 15 | node-version: ${{ matrix.node-version }} 16 | - run: npm i 17 | - run: npm test 18 | env: 19 | CI: true 20 | build-and-deploy: 21 | runs-on: ubuntu-latest 22 | needs: test 23 | if: github.ref == 'refs/heads/main' 24 | steps: 25 | - name: Checkout main 26 | uses: actions/checkout@v2 27 | - name: Use Node.js 14 28 | uses: actions/setup-node@v1 29 | with: 30 | node-version: 14 31 | - run: npm i 32 | - run: npm run build 33 | - run: touch docs/.nojekyll 34 | - name: Deploy 35 | uses: JamesIves/github-pages-deploy-action@4.1.3 36 | with: 37 | branch: gh-pages 38 | folder: docs 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # general 2 | .DS_Store 3 | *.log 4 | 5 | # node-specific 6 | node_modules 7 | package-lock.json 8 | yarn.lock 9 | shrinkwrap.yaml 10 | pnpm-lock.yaml 11 | dist 12 | 13 | /docs/bundle 14 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |Create SVG patterns programmatically to visualize data.
119 |