From 9f2d1d1c40cb61c5761ad51b079b11e8e325ae84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niilo=20Kein=C3=A4nen?= Date: Mon, 5 Aug 2024 09:53:21 +0300 Subject: [PATCH] v6.0.0 --- README.md | 20 +++---- package.json | 4 +- src/index.js | 5 +- webpack.config.js | 130 +++++++++++++++++++++++----------------------- 4 files changed, 79 insertions(+), 80 deletions(-) diff --git a/README.md b/README.md index 7328e12..6c1bfae 100644 --- a/README.md +++ b/README.md @@ -61,14 +61,14 @@ Direct developer email support can be purchased through a [Support Plan][4] or b © LightningChart Ltd 2009-2022. All rights reserved. -[Dashboard]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/Dashboard.html -[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/ChartXY.html -[Heatmap Grid Series Intensity]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/HeatmapGridSeriesIntensityValues.html -[Line Series]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/LineSeries.html -[Axis scroll strategies]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/variables/AxisScrollStrategies.html -[Paletted Fill]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/PalettedFill.html -[LUT]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/LUT.html -[Empty line style]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/variables/emptyLine.html -[Legend Box]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/Chart.html#addLegendBox -[Legend Box builders]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/variables/LegendBoxBuilders.html +[Dashboard]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/Dashboard.html +[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/ChartXY.html +[Heatmap Grid Series Intensity]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/HeatmapGridSeriesIntensityValues.html +[Line Series]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/LineSeries.html +[Axis scroll strategies]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/variables/AxisScrollStrategies.html +[Paletted Fill]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/PalettedFill.html +[LUT]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/LUT.html +[Empty line style]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/variables/emptyLine.html +[Legend Box]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/Chart.html#addLegendBox +[Legend Box builders]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/variables/LegendBoxBuilders.html diff --git a/package.json b/package.json index 58e3e6f..5a84212 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "webpack-stream": "^7.0.0" }, "dependencies": { - "@arction/xydata": "^1.4.0", - "@arction/lcjs": "^5.2.0" + "@lightningchart/lcjs": "^6.0.0", + "@lightningchart/xydata": "^1.4.0" }, "lightningChart": { "eID": "0805" diff --git a/src/index.js b/src/index.js index 400f507..25c056c 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ * LightningChartJS example for Chart with 2D spectrogram + dynamic projections on mouse interaction. */ // Import LightningChartJS -const lcjs = require('@arction/lcjs') +const lcjs = require('@lightningchart/lcjs') // Extract required parts from LightningChartJS. const { @@ -18,7 +18,7 @@ const { Themes, } = lcjs -const { createSpectrumDataGenerator } = require('@arction/xydata') +const { createSpectrumDataGenerator } = require('@lightningchart/xydata') const spectrogramColumns = 1024 const spectrogramRows = 1024 @@ -102,7 +102,6 @@ const seriesProjectionY = chartProjectionY }, }) .setName('Projection (Y)') - .setCursorSolveBasis('nearest-y') const chartProjectionX = dashboard .createChartXY({ diff --git a/webpack.config.js b/webpack.config.js index d7c6b04..1d3835b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,70 +1,70 @@ -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const { CleanWebpackPlugin } = require("clean-webpack-plugin"); -const CopyWebpackPlugin = require("copy-webpack-plugin"); -const path = require("path"); -const webpack = require('webpack'); +const HtmlWebpackPlugin = require('html-webpack-plugin') +const { CleanWebpackPlugin } = require('clean-webpack-plugin') +const CopyWebpackPlugin = require('copy-webpack-plugin') +const path = require('path') +const webpack = require('webpack') -const targetFolderName = "dist"; -const outputPath = path.resolve(__dirname, targetFolderName); -const packageJSON = require("./package.json"); +const targetFolderName = 'dist' +const outputPath = path.resolve(__dirname, targetFolderName) +const packageJSON = require('./package.json') module.exports = { - mode: "development", - entry: { - app: packageJSON.main, - }, - devServer: { - static: outputPath, - compress: true, - }, - resolve: { - modules: [path.resolve("./src"), path.resolve("./node_modules")], - extensions: [".js"], - }, - output: { - filename: "js/[name].[contenthash].bundle.js", - chunkFilename: "js/[name].[contenthash].bundle.js", - path: outputPath, - }, - optimization: { - splitChunks: { - chunks: "all", - cacheGroups: { - // make separate 'vendor' chunk that contains any dependencies - // allows for smaller file sizes and faster builds - vendor: { - test: /[\\/]node_modules[\\/]/, - chunks: "initial", - name: "vendor", - priority: -10, - reuseExistingChunk: true, - }, - }, + mode: 'development', + entry: { + app: packageJSON.main, }, - runtimeChunk: "single", - }, - plugins: [ - new CleanWebpackPlugin(), - new HtmlWebpackPlugin({ - title: "app", - filename: path.resolve(__dirname, "dist", "index.html"), - }), - new CopyWebpackPlugin({ - patterns: [ - { - from: "./assets/**/*", - to: `./examples/assets/${packageJSON.lightningChart.eID}/[name][ext]`, - noErrorOnMissing: true, - }, - { - from: "./node_modules/@arction/lcjs/dist/resources", - to: "resources", - noErrorOnMissing: true, + devServer: { + static: outputPath, + compress: true, + }, + resolve: { + modules: [path.resolve('./src'), path.resolve('./node_modules')], + extensions: ['.js'], + }, + output: { + filename: 'js/[name].[contenthash].bundle.js', + chunkFilename: 'js/[name].[contenthash].bundle.js', + path: outputPath, + }, + optimization: { + splitChunks: { + chunks: 'all', + cacheGroups: { + // make separate 'vendor' chunk that contains any dependencies + // allows for smaller file sizes and faster builds + vendor: { + test: /[\\/]node_modules[\\/]/, + chunks: 'initial', + name: 'vendor', + priority: -10, + reuseExistingChunk: true, + }, + }, }, - ], - }), - new webpack.DefinePlugin({ - LCJS_LICENSE: "'" + process.env.LCJS_LICENSE + "'", - }), - ], -}; + runtimeChunk: 'single', + }, + plugins: [ + new CleanWebpackPlugin(), + new HtmlWebpackPlugin({ + title: 'app', + filename: path.resolve(__dirname, 'dist', 'index.html'), + }), + new CopyWebpackPlugin({ + patterns: [ + { + from: './assets/**/*', + to: `./examples/assets/${packageJSON.lightningChart.eID}/[name][ext]`, + noErrorOnMissing: true, + }, + { + from: './node_modules/@lightningchart/lcjs/dist/resources', + to: 'resources', + noErrorOnMissing: true, + }, + ], + }), + new webpack.DefinePlugin({ + LCJS_LICENSE: "'" + process.env.LCJS_LICENSE + "'", + }), + ], +}