Compare commits

..

18 Commits

Author SHA1 Message Date
Tobias Åström
58e89efbb0 chore: add network-next 2021-09-08 14:06:59 +02:00
caele
4baadc1157 chore: update lockfile 2021-09-01 13:05:12 +02:00
Tobias Åström
e467da6b46 Merge pull request #26 from mountaindude/master
Updated dependencies
2021-09-01 13:03:21 +02:00
Göran Sander
7f4c6af61d Reverting to previous version number 2021-08-26 13:03:04 +02:00
Göran Sander
3e199979fd Add contributors section to README 2021-08-22 21:23:24 +02:00
Göran Sander
3e1384c900 Fix linting errors 2021-08-22 21:17:33 +02:00
Göran Sander
3ecaf3de42 Updated dependencies to latest versions. 2021-08-22 21:14:58 +02:00
Purwa Shrivastava
d95c0f572e Merge pull request #24 from qlik-oss/QLIK-98564/sourceMaps
Removing source maps from production mode.
2020-02-12 14:22:31 +01:00
Purwa Shrivastava
fd2f9fa277 Removing source maps from production mode. 2020-02-12 13:39:48 +01:00
Shiben Dutta
e2aac7a294 Merge pull request #23 from qlik-oss/QB886-fix-noInteraction-options
fix: fix noInteraction option in network chart QB-885
2020-02-07 15:28:20 +05:30
Shiben Dutta
b6bcbe7f75 fix: fix noInteraction option in embeded chart 2020-01-30 13:58:48 +05:30
sauravqlik
f4441ef683 Merge pull request #22 from qlik-oss/bugfix/QB-296-take-snapshot
fix: enabling take snapshot flag for Network and Radar chart
2019-12-16 12:28:31 +05:30
SAURAV
3a832e7d6a fix: enabling take snapshot flag for Network and Radar chart 2019-12-11 16:21:49 +05:30
Philip Olsén
22da42de9f Merge pull request #21 from qlik-oss/pol/bd
Update black duck link
2019-09-20 16:04:08 +02:00
Philip Olsén
fddf286a8e Update black duck link 2019-09-20 14:20:10 +02:00
Purwa Shrivastava
e6692b8779 Merge pull request #20 from qlik-oss/atq/AboutInfo
Atq/about info
2019-07-16 16:24:35 +02:00
Purwa Shrivastava
4341fdb5db Typos in About Info. 2019-07-16 10:13:39 +02:00
Purwa Shrivastava
d02852b2ed Added an About Info section to the properties panel. 2019-07-16 10:05:00 +02:00
7 changed files with 15925 additions and 7314 deletions

View File

@@ -20,7 +20,7 @@ jobs:
command: npm install
- run:
name: BlackDuck scan
command: curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh | bash -s -- \
command: curl -s https://detect.synopsys.com/detect.sh | bash -s -- \
--blackduck.url="https://qliktech.blackducksoftware.com" \
--blackduck.trust.cert=true \
--blackduck.username="svc-blackduck" \

23162
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -12,25 +12,25 @@
"eslint": "eslint src"
},
"devDependencies": {
"@babel/core": "7.1.5",
"@babel/polyfill": "7.0.0",
"@babel/preset-env": "7.1.5",
"babel-eslint": "10.0.1",
"babel-loader": "8.0.4",
"css-loader": "1.0.1",
"del": "3.0.0",
"eslint": "5.8.0",
"eslint-loader": "2.1.1",
"file-loader": "2.0.0",
"gulp": "4.0.0",
"@babel/core": "7.15.0",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.15.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.2.2",
"css-loader": "6.2.0",
"del": "6.0.0",
"eslint": "7.32.0",
"eslint-loader": "4.0.2",
"file-loader": "6.2.0",
"gulp": "4.0.2",
"gulp-util": "^3.0.7",
"gulp-zip": "4.2.0",
"less": "3.8.1",
"less-loader": "4.1.0",
"style-loader": "0.23.1",
"stylelint": "9.7.1",
"stylelint-webpack-plugin": "0.10.5",
"webpack": "4.25.1"
"gulp-zip": "5.1.0",
"less": "4.1.1",
"less-loader": "10.0.1",
"style-loader": "3.2.1",
"stylelint": "13.13.1",
"stylelint-webpack-plugin": "3.0.1",
"webpack": "5.51.1"
},
"dependencies": {
"vis": "4.21.0"

View File

@@ -1,4 +1,7 @@
# Qlik Network Chart
### **_The network chart is getting an overhaul with a conversion to Nebula and updated dependencies: see branch [network-next](https://github.com/qlik-oss/network-vis-chart/tree/network-next)_**
This extension is part of the extension bundles for Qlik Sense. The repository is maintained and moderated by Qlik RD.
Feel free to fork and suggest pull requests for improvements and bug fixes. Changes will be moderated and reviewed before inclusion in future bundle versions. Please note that emphasis is on backward compatibility, i.e. breaking changes will most likely not be approved.
@@ -18,3 +21,7 @@ If you want to do code changes to the extension follow these simple steps to get
# Original Author
**Michael Laenen**
* [github.com/miclae76](https://github.com/miclae76)
# Contributors
**Göran Sander**
* [github.com/mountaindude](https://github.com/mountaindude)

View File

@@ -194,15 +194,35 @@ const component = {
defaultValue: false
}
}
},
about: {
component: 'items',
label: 'About',
items: {
header: {
label: 'Network chart',
style: 'header',
component: 'text'
},
paragraph1: {
label: `Network chart is Qlik Sense chart which allows you to draw a network of connected nodes and edges from a data set to a sheet.`,
component: 'text'
},
paragraph2: {
label: 'Network chart is based upon an extension created by Michael Laenen.',
component: 'text'
}
}
}
}
},
support: {
export: true,
snapshot: false
snapshot: true,
exportData: true
},
snapshot: {
canTakeSnapshot: false
canTakeSnapshot: true
},
paint: paint
};

View File

@@ -12,9 +12,7 @@ function getColor (index, colors) {
}
function paint ( $element, layout, qTheme, component ) {
return new qlik.Promise(function(resolve) {
const colorScale = qTheme.properties.palettes.data[0];
const numDimensions = layout.qHyperCube.qDimensionInfo.length;
const numMeasures = layout.qHyperCube.qMeasureInfo.length;
@@ -179,7 +177,7 @@ function paint ( $element, layout, qTheme, component ) {
$("#"+containerId).css('cursor','default');
network.on('select', function (properties) {
if (properties.hasOwnProperty("nodes")) {
if (Object.prototype.hasOwnProperty.call(properties, "nodes") && component.options.noInteraction !== true) {
if (properties.nodes.length > 0) {
// find connected nodes to selection
var connectedNodes = network.getConnectedNodes(properties.nodes[0]);

View File

@@ -2,6 +2,8 @@ const StyleLintPlugin = require('stylelint-webpack-plugin');
const packageJSON = require('./package.json');
const path = require('path');
const webpack = require('webpack');
const SOURCE_MAP = 'sourec-map';
const DEVTOOL = (process.env.NODE_ENV === 'development') ? SOURCE_MAP : false;
const DIST = path.resolve("./dist");
const MODE = process.env.NODE_ENV || 'development';
@@ -9,7 +11,7 @@ const MODE = process.env.NODE_ENV || 'development';
console.log('Webpack mode:', MODE); // eslint-disable-line no-console
const config = {
devtool: 'source-map',
devtool: DEVTOOL,
entry: [
'./src/index.js'
],