Skip to content

Commit caffeda

Browse files
author
Niilo Keinänen
committed
Initial
0 parents  commit caffeda

14 files changed

Lines changed: 711 additions & 0 deletions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Use Node.js 16.x
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: "16.x"
18+
19+
- name: Build
20+
env:
21+
LCJS_LICENSE: ${{ secrets.LCJS_DEPLOY_LICENSE }}
22+
run: |
23+
npm install
24+
npm run build
25+
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./dist
31+
publish_branch: gh-pages

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+

3dSlicer-cyberSpace.png

703 KB
Loading

3dSlicer-darkGold.png

575 KB
Loading

3dSlicer-light.png

314 KB
Loading

3dSlicer-lightNature.png

298 KB
Loading

3dSlicer-turquoiseHexagon.png

719 KB
Loading

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 LightningChart Ltd.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# JavaScript 3D Slicer
2+
3+
![JavaScript 3D Slicer ](3dSlicer-darkGold.png)
4+
5+
This demo application belongs to the set of examples for LightningChart JS, data visualization library for JavaScript.
6+
7+
LightningChart JS is entirely GPU accelerated and performance optimized charting library for presenting massive amounts of data. It offers an easy way of creating sophisticated and interactive charts and adding them to your website or web application.
8+
9+
The demo can be used as an example or a seed project. Local execution requires the following steps:
10+
11+
- Make sure that relevant version of [Node.js](https://nodejs.org/en/download/) is installed
12+
- Open the project folder in a terminal:
13+
14+
npm install # fetches dependencies
15+
npm start # builds an application and starts the development server
16+
17+
- The application is available at _http://localhost:8080_ in your browser, webpack-dev-server provides hot reload functionality.
18+
19+
20+
## Description
21+
22+
Example of interactive 3D point-cloud slicing with linked 2D views. Click a point in the 3D Chart or drag slice lines in the 2D Charts to inspect the data from multiple perspectives.
23+
24+
The 3D crosshair is rendered using three *Line Series*, and the draggable slice markers in the 2D charts are created with `axis.addConstantLine()`.
25+
26+
When the selection changes (either by clicking in 3D or dragging a 2D line), the slice series are refreshed by clearing the previous points and adding the newly computed slice. Slice line positions are synchronized using `constantLine.setValue()`.
27+
```js
28+
// 2D Series
29+
seriesWH.clear()
30+
seriesWH.appendJSON(sliceData)
31+
32+
// 3D Series
33+
lineSeriesX.clear()
34+
lineSeriesX.add([{ x: minX, y: yPoint, z: zPoint }, { x: maxX, y: yPoint, z: zPoint }])
35+
36+
// Constant line
37+
xAxisWHLine.setValue(value)
38+
```
39+
40+
When using real-time or frequently updated charts, defining a maximum sample count is strongly recommended.
41+
Preallocating memory in this way is essential for stable performance and helps prevent rendering issues or crashes when large volumes of data are added.
42+
43+
44+
LiDAR data source: [Philipp Urech](https://sketchfab.com/3d-models/parque-copan-ddfa8cf8aafa4d619e429d9e653ffe81) - Licensed under Creative Commons Attribute.
45+
46+
The same LiDAR data is also used in this example: [3D LiDAR Park Visualization](https://lightningchart.com/js-charts/interactive-examples/examples/lcjs-example-0910-3dLiDARPark.html).
47+
48+
## API Links
49+
50+
* [3D chart]
51+
* [3D axis]
52+
* [3D point cloud series]
53+
* [3D line series]
54+
* [XY chart]
55+
* [Point series]
56+
* [Constant lines]
57+
58+
59+
## Support
60+
61+
If you notice an error in the example code, please open an issue on [GitHub][0] repository of the entire example.
62+
63+
Official [API documentation][1] can be found on [LightningChart][2] website.
64+
65+
If the docs and other materials do not solve your problem as well as implementation help is needed, ask on [StackOverflow][3] (tagged lightningchart).
66+
67+
If you think you found a bug in the LightningChart JavaScript library, please contact sales@lightningchart.com.
68+
69+
Direct developer email support can be purchased through a [Support Plan][4] or by contacting sales@lightningchart.com.
70+
71+
[0]: https://github.com/Arction/
72+
[1]: https://lightningchart.com/lightningchart-js-api-documentation/
73+
[2]: https://lightningchart.com
74+
[3]: https://stackoverflow.com/questions/tagged/lightningchart
75+
[4]: https://lightningchart.com/support-services/
76+
77+
© LightningChart Ltd 2009-2025. All rights reserved.
78+
79+
80+
[3D chart]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/Chart3D.html
81+
[3D axis]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/Axis3D.html
82+
[3D point cloud series]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/PointCloudSeries3D.html
83+
[3D line series]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/LineSeries3D.html
84+
[XY chart]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/ChartXY.html
85+
[Point series]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/PointLineAreaSeries.html
86+
[Constant lines]: https://lightningchart.com/js-charts/api-documentation/v8.1.0/classes/ConstantLine.html
87+

assets/buildings.bin

3.34 MB
Binary file not shown.

0 commit comments

Comments
 (0)