Reusable React environment and components for creating visualization engines.
GPL-3.0 License
Published by davelandry over 6 years ago
Published by davelandry over 6 years ago
With this release, CanonComponent
has been renamed to CanonProfile
, and d3plus and data contexts are now passed automatically to any children requesting them by using the new Canon
component that should wrap your entire project. CanonProfile
only remains for those sites that are currently using the "topic" logic for subnav. Check out the example App.jsx
that is used in the parent route:
import React, {Component} from "react";
import {Canon} from "datawheel-canon";
export default class App extends Component {
render() {
return (
<Canon>
{ this.props.children }
</Canon>
);
}
}
The new Canon
component requires default d3plus config to be located at app/d3plus.js
.
datawheel-canon now comes with a script to initialize a new project. After creating a package.json file and installing datawheel-canon, setup is invoked like this:
node node_modules/datawheel-canon/bin/setup.js
It currently does the following:
app/
directory,static/
directory with a starter faviconpackage.json
.gitignore
.eslintrc
If this script is run on an older project, it will not overwrite any files, only add any necessary ones that are missing (probably a good idea to run this script when upgrading to this version of canon).
Turns out, when we implemented tree-shaking, I totally borked the dev server build. It seems that it would run the webpack, but not actually output the file anywhere. Things should now be working alright (it was an issue with hot-module-reload being enabled on the server).
Published by davelandry over 6 years ago
Published by davelandry over 6 years ago
Published by davelandry over 6 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago
Published by davelandry almost 7 years ago