Skip to content

Commit 6d8c206

Browse files
author
Niilo Keinänen
committed
LCJS v7.0.1
1 parent fd86e0d commit 6d8c206

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Direct developer email support can be purchased through a [Support Plan][4] or b
5252
© LightningChart Ltd 2009-2022. All rights reserved.
5353

5454

55-
[3D chart]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/classes/Chart3D.html
56-
[Paletted Fill Style]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/classes/PalettedFill.html
57-
[LUT]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/classes/LUT.html
55+
[3D chart]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/Chart3D.html
56+
[Paletted Fill Style]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/PalettedFill.html
57+
[LUT]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/LUT.html
5858

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"webpack-stream": "^7.0.0"
1818
},
1919
"dependencies": {
20-
"@lightningchart/lcjs": "^6.1.1",
20+
"@lightningchart/lcjs": "^6.1.2",
2121
"@lightningchart/xydata": "^1.4.0"
2222
},
2323
"lightningChart": {

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ const addOption = (label, onEnabled, defaultSelection = false) => {
146146
onEnabled()
147147
}
148148

149-
checkBox.onSwitch((_, state) => {
150-
if (state) {
149+
checkBox.addEventListener('switch', (event) => {
150+
if (event.state) {
151151
onEnabled()
152-
checkBox.setMouseInteractions(false)
152+
checkBox.setPointerEvents(false)
153153
// Set all other check boxes off.
154-
options.forEach((option) => option.checkBox !== checkBox && option.checkBox.setOn(false).setMouseInteractions(true))
154+
options.forEach((option) => option.checkBox !== checkBox && option.checkBox.setOn(false).setPointerEvents(true))
155155
}
156156
})
157157

@@ -189,7 +189,7 @@ const handleWireframeToggled = (state) => {
189189
wireframeCheckbox.setText(state ? 'Hide wireframe' : 'Show wireframe')
190190
}
191191
const wireframeCheckbox = group.addElement(UIElementBuilders.CheckBox)
192-
wireframeCheckbox.onSwitch((_, state) => handleWireframeToggled(state))
192+
wireframeCheckbox.addEventListener('switch', (event) => handleWireframeToggled(event.state))
193193
wireframeCheckbox.setOn(true)
194194

195195
// Add UI control for toggling camera animation.
@@ -200,9 +200,9 @@ const handleCameraAnimationToggled = (state) => {
200200
}
201201
}
202202
const cameraAnimationEnabledCheckbox = group.addElement(UIElementBuilders.CheckBox)
203-
cameraAnimationEnabledCheckbox.onSwitch((_, state) => handleCameraAnimationToggled(state))
203+
cameraAnimationEnabledCheckbox.addEventListener('switch', (event) => handleCameraAnimationToggled(event.state))
204204
handleCameraAnimationToggled(true)
205-
chart3D.onBackgroundMouseDrag(() => {
205+
chart3D.background.addEventListener('pointerdown', () => {
206206
handleCameraAnimationToggled(false)
207207
})
208208

0 commit comments

Comments
 (0)