paraviewweb
Advanced tools
Comparing version 3.1.7 to 3.1.8
144
package.json
{ | ||
"name": "paraviewweb", | ||
"version": "3.1.7", | ||
"description": "Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kitware/paraviewweb.git" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"bugs": { | ||
"url": "https://github.com/kitware/paraviewweb/issues" | ||
}, | ||
"homepage": "https://github.com/kitware/paraviewweb#readme", | ||
"main": "./dist/ParaViewWeb.js", | ||
"dependencies": { | ||
"base64-js": "1.2.1", | ||
"commander": "2.13.0", | ||
"jszip": "3.1.5", | ||
"pako": "1.0.6", | ||
"shelljs": "0.7.8" | ||
}, | ||
"devDependencies": { | ||
"plotly.js": "1.33.1", | ||
"vtk.js": "6.4.24", | ||
"wslink": "0.1.5", | ||
"monologue.js": "0.3.5", | ||
"mout": "1.1.0", | ||
"react": "16.2.0", | ||
"react-dom": "16.2.0", | ||
"d3": "3.5.17", | ||
"axios": "0.17.1", | ||
"gl-matrix": "2.5.1", | ||
"hammerjs": "2.0.8", | ||
"font-awesome": "4.7.0", | ||
"kw-web-suite": "6.0.2", | ||
"kw-doc": "1.1.1", | ||
"babel-plugin-istanbul": "4.1.5", | ||
"karma": "2.0.0", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-coverage": "1.1.1", | ||
"karma-tap": "4.1.0", | ||
"karma-tap-pretty-reporter": "3.0.5", | ||
"karma-webpack": "2.0.9", | ||
"resemblejs": "2.7.0", | ||
"tap-spec": "4.1.1", | ||
"tap-markdown": "1.2.1", | ||
"tape": "4.8.0", | ||
"tape-catch": "1.0.6", | ||
"tonic-arctic-sample-data": "http://www.paraview.org/files/dependencies/tonic-arctic-sample-data-1.2.2.tgz" | ||
}, | ||
"scripts": { | ||
"validate": "prettier --config ./prettier.config.js --list-different \"src/**/*.js\"", | ||
"reformat": "prettier --config ./prettier.config.js --write \"src/**/*.js\"", | ||
"reformat-only": "prettier --single-quote --trailing-comma es5 --print-width 80 --arrow-parens always --write", | ||
"install:global": "npm install -g commitizen@2.5.0", | ||
"doc": "kw-doc -c ./documentation/config.js", | ||
"doc:www": "kw-doc -c ./documentation/config.js -s", | ||
"predoc:publish": "./tools/install-data/install-sample-data-cli.js", | ||
"doc:publish": "kw-doc -c ./documentation/config.js -p", | ||
"build": "webpack --progress --colors --mode development", | ||
"build:release": "webpack --progress --colors --mode production", | ||
"test": "karma start karma.conf.js", | ||
"test:travis": "karma start karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run", | ||
"commit": "git cz", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
"name": "paraviewweb", | ||
"version": "3.1.8", | ||
"description": "Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kitware/paraviewweb.git" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"bugs": { | ||
"url": "https://github.com/kitware/paraviewweb/issues" | ||
}, | ||
"homepage": "https://github.com/kitware/paraviewweb#readme", | ||
"main": "./dist/ParaViewWeb.js", | ||
"dependencies": { | ||
"base64-js": "1.3.0", | ||
"commander": "2.15.1", | ||
"jszip": "3.1.5", | ||
"pako": "1.0.6", | ||
"shelljs": "0.8.2" | ||
}, | ||
"devDependencies": { | ||
"plotly.js": "1.37.1", | ||
"vtk.js": "6.5.0", | ||
"wslink": "0.1.5", | ||
"monologue.js": "0.3.5", | ||
"mout": "1.1.0", | ||
"react": "16.2.0", | ||
"react-dom": "16.2.0", | ||
"d3": "3.5.17", | ||
"axios": "0.17.1", | ||
"gl-matrix": "2.6.1", | ||
"hammerjs": "2.0.8", | ||
"font-awesome": "4.7.0", | ||
"kw-web-suite": "6.1.0", | ||
"kw-doc": "1.1.5", | ||
"babel-plugin-istanbul": "4.1.5", | ||
"karma": "2.0.2", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-coverage": "1.1.2", | ||
"karma-tap": "4.1.0", | ||
"karma-tap-pretty-reporter": "3.0.5", | ||
"karma-webpack": "2.0.9", | ||
"resemblejs": "2.10.3", | ||
"tap-spec": "4.1.1", | ||
"tap-markdown": "1.2.1", | ||
"tape": "4.8.0", | ||
"tape-catch": "1.0.6", | ||
"tonic-arctic-sample-data": "http://www.paraview.org/files/dependencies/tonic-arctic-sample-data-1.2.2.tgz" | ||
}, | ||
"scripts": { | ||
"validate": "prettier --config ./prettier.config.js --list-different \"src/**/*.js\"", | ||
"reformat": "prettier --config ./prettier.config.js --write \"src/**/*.js\"", | ||
"reformat-only": "prettier --single-quote --trailing-comma es5 --print-width 80 --arrow-parens always --write", | ||
"install:global": "npm install -g commitizen@2.5.0", | ||
"doc": "kw-doc -c ./documentation/config.js", | ||
"doc:www": "kw-doc -c ./documentation/config.js -s", | ||
"predoc:publish": "./tools/install-data/install-sample-data-cli.js", | ||
"doc:publish": "kw-doc -c ./documentation/config.js -p", | ||
"build": "webpack --progress --colors --mode development", | ||
"build:release": "webpack --progress --colors --mode production", | ||
"test": "karma start karma.conf.js", | ||
"test:travis": "karma start karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run", | ||
"commit": "git cz", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"bin": { | ||
"pvw-html-data-bundle": "./tools/html-web-resource/bundle-html-cli.js" | ||
} | ||
}, | ||
"bin": { | ||
"pvw-html-data-bundle": "./tools/html-web-resource/bundle-html-cli.js" | ||
} | ||
} |
@@ -215,4 +215,8 @@ import d3 from 'd3'; | ||
style.legendSvg | ||
}' width='${legendSize}' height='${legendSize}' | ||
fill='${color}' stroke='black'><use xlink:href='${shape}'/></svg>`); | ||
}' width='${legendSize}' height='${legendSize}' viewBox='${ | ||
shape.viewBox | ||
}' | ||
fill='${color}' stroke='black'><use xlink:href='#${ | ||
shape.id | ||
}'/></svg>`); | ||
} else { | ||
@@ -219,0 +223,0 @@ legendCell |
@@ -329,7 +329,14 @@ import d3 from 'd3'; | ||
const { color, shape } = model.provider.getLegend(model.singleModeName); | ||
d3.select(model.container).select(`.${style.jsHeaderSingleField}`) | ||
.html(`<svg class='${ | ||
style.legendSvg | ||
}' width='${legendSize}' height='${legendSize}' | ||
fill='${color}' stroke='black'><use xlink:href='${shape}'/></svg>`); | ||
d3 | ||
.select(model.container) | ||
.select(`.${style.jsHeaderSingleField}`) | ||
.html( | ||
`<svg class='${ | ||
style.legendSvg | ||
}' width='${legendSize}' height='${legendSize}' viewBox='${ | ||
shape.viewBox | ||
}' fill='${color}' stroke='black'><use xlink:href='#${ | ||
shape.id | ||
}'/></svg>` | ||
); | ||
} else { | ||
@@ -651,4 +658,8 @@ d3 | ||
style.legendSvg | ||
}' width='${legendSize}' height='${legendSize}' | ||
fill='${color}' stroke='black'><use xlink:href='${shape}'/></svg>`); | ||
}' width='${legendSize}' height='${legendSize}' viewBox='${ | ||
shape.viewBox | ||
}' | ||
fill='${color}' stroke='black'><use xlink:href='#${ | ||
shape.id | ||
}'/></svg>`); | ||
} else { | ||
@@ -655,0 +666,0 @@ legendCell.html('<i></i>').select('i'); |
@@ -409,2 +409,3 @@ /* global document */ | ||
.select('svg') | ||
.attr('viewBox', d.legend.shape.viewBox) | ||
.attr('fill', d.legend.color) | ||
@@ -419,3 +420,3 @@ .attr('stroke', 'black') | ||
.classed(style.blackStroke, true) | ||
.attr('xlink:href', d.legend.shape); | ||
.attr('xlink:href', `#${d.legend.shape.id}`); | ||
}); | ||
@@ -422,0 +423,0 @@ |
@@ -67,3 +67,5 @@ import React from 'react'; | ||
meshAvailable | ||
? meshVisible ? style.meshButtonOn : style.meshButtonOff | ||
? meshVisible | ||
? style.meshButtonOn | ||
: style.meshButtonOff | ||
: style.hidden | ||
@@ -70,0 +72,0 @@ } |
@@ -43,3 +43,5 @@ import React from 'react'; | ||
? style.deleteButtonOff | ||
: isActive ? style.activeButton : style.deleteButtonOn | ||
: isActive | ||
? style.activeButton | ||
: style.deleteButtonOn | ||
} | ||
@@ -46,0 +48,0 @@ onClick={this.toggleActiveLayer} |
@@ -53,6 +53,12 @@ import React from 'react'; | ||
idx === 0 | ||
? isActive ? 'activeFirst' : 'first' | ||
? isActive | ||
? 'activeFirst' | ||
: 'first' | ||
: idx === this.props.options.length - 1 | ||
? isActive ? 'activeLast' : 'last' | ||
: isActive ? 'activeMiddle' : 'middle'; | ||
? isActive | ||
? 'activeLast' | ||
: 'last' | ||
: isActive | ||
? 'activeMiddle' | ||
: 'middle'; | ||
if (obj.label) { | ||
@@ -59,0 +65,0 @@ return ( |
@@ -184,3 +184,5 @@ import React from 'react'; | ||
this.state.button | ||
? this.state.advanced ? style.lastButton : style.nextButton | ||
? this.state.advanced | ||
? style.lastButton | ||
: style.nextButton | ||
: style.hidden | ||
@@ -187,0 +189,0 @@ } |
@@ -6,2 +6,7 @@ import React from 'react'; | ||
export default function SvgIconWidget(props) { | ||
const { id, viewBox } = props.icon || {}; | ||
let xlink = id || props.icon; | ||
if (xlink[0] !== '#') { | ||
xlink = `#${xlink}`; | ||
} | ||
const style = Object.assign({}, props.style, { | ||
@@ -12,4 +17,9 @@ width: props.width, | ||
return ( | ||
<svg style={style} className={props.className} onClick={props.onClick}> | ||
<use xlinkHref={props.icon} /> | ||
<svg | ||
viewBox={viewBox || props.viewBox} | ||
style={style} | ||
className={props.className} | ||
onClick={props.onClick} | ||
> | ||
<use xlinkHref={xlink} /> | ||
</svg> | ||
@@ -22,6 +32,7 @@ ); | ||
height: PropTypes.string, | ||
icon: PropTypes.string, | ||
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), | ||
width: PropTypes.string, | ||
style: PropTypes.object, | ||
onClick: PropTypes.func, | ||
viewBox: PropTypes.string, | ||
}; | ||
@@ -36,2 +47,3 @@ | ||
onClick: undefined, | ||
viewBox: '0 0 20 20', | ||
}; |
@@ -52,3 +52,5 @@ /* global window */ | ||
? this.timeProbe.dataValues[this.timeProbe.tIdx] | ||
: this.timeProbe.pending ? 'Fetching...' : ''; | ||
: this.timeProbe.pending | ||
? 'Fetching...' | ||
: ''; | ||
}, | ||
@@ -340,3 +342,5 @@ triggerChange: () => { | ||
const light = layer.light | ||
? layer.light[flipedY] ? layer.light[flipedY] - this.light : 0 | ||
? layer.light[flipedY] | ||
? layer.light[flipedY] - this.light | ||
: 0 | ||
: 0; | ||
@@ -343,0 +347,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10099101
719
51884
+ Addedbase64-js@1.3.0(transitive)
+ Addedcommander@2.15.1(transitive)
+ Addedshelljs@0.8.2(transitive)
- Removedbase64-js@1.2.1(transitive)
- Removedcommander@2.13.0(transitive)
- Removedshelljs@0.7.8(transitive)
Updatedbase64-js@1.3.0
Updatedcommander@2.15.1
Updatedshelljs@0.8.2