The repository is responsible for bundling the SVG lithology patterns. The patterns themselves should be able to be used by any project. Initially only an npm module is published to be consumed by a variety of Javascript projects, however modules for other languages (such as NuGet) will also be placed inside this repo.
The project is licensed under the MIT license following the open source strategy of Equinor.
This repository hosts the lithology patterns inside the assets/
folder. If
more patterns need to be added, these should be placed inside the figma/
folder and pre-process them by running npm run patterns:process
.
The package.json
describes that these raw folders should be bundled within the
NPM package whenever the bundle gets published.
The library doesn't define how you need to bundle your application in order to use the SVG's. The SVG's can simply be imported and it's up to the application to decide how to handle the SVG's.
import choosePatternName from 'lithology-patterns/assets/svg/30000.svg
- Place new pattern in
assets/svg
- Run
npm patterns:process
- Commit
- Create PR or Push to Main
TODO
TODO