Skip to content

Commit acda4e7

Browse files
committed
Merge branch 'ik/lcjs-3.1.0-support' into 'master'
Add support for LCJS 3.1.0 See merge request arction/lcjs/lcjs-headless!1
2 parents ee425df + 5744cf3 commit acda4e7

File tree

4 files changed

+346
-346
lines changed

4 files changed

+346
-346
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This package uses [JSDOM][jsdom], [node-canvas][node-canvas] and [headless-gl][g
88
- [Linux](#linux)
99
- [Windows](#windows)
1010
- [Getting Started](#getting-started)
11+
- [Local Resources](#local-resources)
1112
- [Headless in Linux machine](#headless-in-linux-machine)
1213
- [Using Helpers](#using-helpers)
1314
- [`renderToSharp`](#rendertosharp)
@@ -90,6 +91,16 @@ const outputBuff = PNG.sync.write(chartOutput)
9091
fs.writeFileSync('./chartOutput.png', outputBuff)
9192
```
9293

94+
### Local Resources
95+
96+
When using Map Chart with in Node JS you need to provide the path to the LCJS resource files. To do this provide `resourcesBaseUrl` with `fs:` prefix.
97+
98+
```js
99+
const lcjs = lightningChart({
100+
resourcesBaseUrl: `fs:${path.resolve(__dirname, 'node_modules', '@arction', 'lcjs', 'dist', 'resources')}`
101+
})
102+
```
103+
93104
### Headless in Linux machine
94105

95106
When running lcjs-headless in a Linux environment that doesn't provide a X11 or OpenGL environment you will need two more packages to make the environment ready for lcjs-headless.

0 commit comments

Comments
 (0)