-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace renderer folder metadatum with main property of package.json
- Loading branch information
Showing
15 changed files
with
483 additions
and
418 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
{ | ||
"name": "cat", | ||
"version": "0.8.5", | ||
"description": "The Charting Application Tester (CAT) lets users make and adjust web graphics on the fly.", | ||
"module": "./src/index.js", | ||
"main": "./build/cat.js", | ||
"scripts": { | ||
"build": "npm audit fix && npm run bundle && npm run format", | ||
"bundle": "rollup -c", | ||
"format": "npm run format-src && npm run format-bundle", | ||
"format-src": "prettier --print-width=100 --tab-width=4 --single-quote --write \"./src/**/*.js\"", | ||
"format-bundle": "prettier --print-width=100 --tab-width=4 --single-quote --write ./build/cat.js", | ||
"watch": "rollup -c -w", | ||
"start": "node server/app.js", | ||
"initServer": "node server/initServer.js" | ||
}, | ||
"author": "Rho, Inc.", | ||
"license": "MIT", | ||
"dependencies": { | ||
"d3": "^3.5.14", | ||
"webcharts": "~1", | ||
"jquery": "~3", | ||
"json5": "^0.5.1", | ||
"express": "~4", | ||
"body-parser": "~1" | ||
}, | ||
"devDependencies": { | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"jimp": "^0.2.27", | ||
"jsdom": "~7", | ||
"prettier": "^1.7.4", | ||
"rollup": "^0.66.6", | ||
"rollup-plugin-babel": "^2.7.1", | ||
"showdown": "~1" | ||
} | ||
"name": "cat", | ||
"version": "0.8.5", | ||
"description": "The Charting Application Tester (CAT) lets users make and adjust web graphics on the fly.", | ||
"module": "./src/index.js", | ||
"main": "./build/cat.js", | ||
"scripts": { | ||
"build": "npm audit fix && npm run bundle && npm run format", | ||
"bundle": "rollup -c", | ||
"format": "npm run format-src && npm run format-bundle", | ||
"format-src": "prettier --print-width=100 --tab-width=4 --single-quote --write \"./src/**/*.js\"", | ||
"format-bundle": "prettier --print-width=100 --tab-width=4 --single-quote --write ./build/cat.js", | ||
"watch": "rollup -c -w", | ||
"start": "node server/app.js", | ||
"initServer": "node server/initServer.js" | ||
}, | ||
"author": "Rho, Inc.", | ||
"license": "MIT", | ||
"dependencies": { | ||
"d3": "^3.5.14", | ||
"webcharts": "~1", | ||
"jquery": "~3", | ||
"json5": "^0.5.1", | ||
"express": "~4", | ||
"body-parser": "~1" | ||
}, | ||
"devDependencies": { | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"jimp": "^0.2.27", | ||
"jsdom": "~7", | ||
"prettier": "^1.7.4", | ||
"rollup": "^0.66.6", | ||
"rollup-plugin-babel": "^2.7.1", | ||
"showdown": "~1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default function updateRenderer(select) { | ||
this.current = d3 | ||
.select(select) | ||
.select('option:checked') | ||
.data()[0]; | ||
this.current.version = 'master'; | ||
|
||
//update the chart type configuration to the defaults for the selected renderer | ||
this.controls.mainFunction.node().value = this.current.main; | ||
this.controls.versionSelect.node().value = 'master'; | ||
this.controls.subFunction.node().value = this.current.sub; | ||
this.controls.schema.node().value = this.current.schema; | ||
|
||
//update the selected data set to the default for the new rendererSection | ||
this.controls.dataFileSelect | ||
.selectAll('option') | ||
.property('selected', d => this.current.defaultData === d.label); | ||
|
||
//Re-initialize the chart config section | ||
this.settings.set(this); | ||
} |
Oops, something went wrong.