d3plus / d3plus-common Goto Github PK
View Code? Open in Web Editor NEWCommon functions and methods used across D3plus modules.
License: MIT License
Common functions and methods used across D3plus modules.
License: MIT License
Currently, the color functions like colorAssign
and colorContrast
used for labels and fill colors use the default color object from d3plus-color
, but have the ability to be overridden. When using these functions in Viz
and Shape
classes, there should be a method to allow the user to override the defaults.
There currently is no way to overwrite them!
for example:
accessor("height", 200);
would return:
function(d) {
return d.height || 200;
}
Localization is something that we've supported in the past that has not been properly addressed in the new version of d3plus. D3 contains some great time formatters, so let's implement a solution that combines any built-ins we can find with more specific word localizations (like the text for the "back" button).
My current idea is to have a global locale
object exported by this module, and that object would contain keys for each language, which then in turn contain keys for specific types of localizations. An example format is here:
export default {
"en-US": {
time: {...}, // object imported from d3-time-format
text: {
back: "Back",
...
}
},
"es-ES": {
time: {...}, // object imported from d3-time-format
text: {
back: "Volver",
...
}
}
}
This object would be created in src/locale/index.js
, importing all of the d3-time-format language modules, and importing our own modules from files like src/locale/text/es-ES.js
. We would then add a .locale("es-ES")
method to BaseClass
so that every component can support localization.
@cnavarreteliz, @nbond211, thoughts?
We updated to version 0.6.53
and noticed that the new dependency of locale-codes
is ES6.
This is causing problems similar to #100 with ES5 compatibility.
Not a problem as we have pinned to an older version but wanted to make you aware.
Many thanks :)
1.1.3
to 1.2.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
d3-transition is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 9 commits.
a447cef
1.2.0
c972b7c
Update README.
d66e0c3
Update dependencies.
7285f51
Use anonymous listeners.
e7494d7
Add transition.end. Fixes #77.
d6024da
Cancel events.
5a939e1
Various improvements.
35cb09a
Remove errant console.log.
fa94c9f
String coercion and comparison fixes.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
things like .estlintrc and .travis.yml could be created/updated using a script like:
npm run env
Branch | Build failing π¨ |
---|---|
Dependency | d3plus-dev |
Current Version | 0.4.8 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As d3plus-dev is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 4 commits0.
b2a5eb5
adds namespace to locale parser
f9c543c
fix(package): update uglify-js to version 3.0.0 (#31)
d108eaf
potentially implements coveralls code coverage
3163d24
compiles v0.4.8
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
1.3.2
to 1.4.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
d3-selection is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 12 commits.
fee76b1
1.4.0
57373d4
Shorten.
adfb77c
Rename for style.
777bd69
Update README.
553d261
Update README.
9dad3a0
Update README.
986c6f1
Update README.
1ca4ed0
Update README.
146af5d
Add selection.join. Fixes #194.
2f33090
corrected 'the numbers' in documentation
37e2c80
Remove vendor fallback.
9ffa69f
Fix #113.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Would be great if when setting a config method that is not supported, a console message should be displayed warning the user. Would be a modification of the logic here regarding k in this
.
Non-supported config keys silently fail.
Branch | Build failing π¨ |
---|---|
Dependency | d3-array |
Current Version | 1.0.2 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As d3-array is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
The new version differs by 6 commits .
94e197a
1.0.3
ee02e72
Update Rollup.
80ccbce
Merge branch 'patch-1' of https://github.com/dyst5422/d3-array
adb0901
Fix formatting.
035c3dd
Fix italics.
b4a9a9b
Update README.md
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | d3-selection |
Current Version | 1.0.4 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As d3-selection is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Hi,
Thanks for all of the work on this, we're having a slight issue with 0.6.50.
The latest release of d3plus-common (0.6.50) has not been babelified (or whatever you are using to make it es5 compatible?).
https://registry.npmjs.org/d3plus-common/-/d3plus-common-0.6.50.tgz
Version 0.6.49 was.
https://registry.npmjs.org/d3plus-common/-/d3plus-common-0.6.49.tgz
If you unzip them both you can see the difference.
We have pinned to 0.6.49 for now but just to let you know :)
This locale method would be stored internally as this._locale
, and accept either a fully-constructed lanaguage object (referenced here) or a string that would be used to look up the default object the master list exported from that reference issue.
1.2.4
to 1.3.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
d3-array is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
0.6.9
to 0.6.10
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
d3plus-dev is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I get this message with or without updated deps
$ npm run-script build
> [email protected] build /home/pacha/github/d3plus-common
> d3plus-build
d3plus-common v0.6.44
build compile
[ done ] transpiling ES6 for modules
[ done ] bundling build/d3plus-common.js
[ fail ] CompileError: for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing (7:4)
3 : let delta;
4 : let mean = 0;
5 : let sum = 0;
6 : if (valueof === undefined) {
7 : for (let value of values) {
Branch | Build failing π¨ |
---|---|
Dependency | d3-transition |
Current Version | 1.0.4 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
d3-transition is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
The new version differs by 6 commits0.
328cc9a
1.1.0
8c3f41c
Update JSDOM.
7273522
Update package-preamble.
6e37366
Update d3-selection dependency.
f3415d8
Use inline style value, if present.
9ef6562
Update README; fix #70.
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Hi,
Would it be possible to move dependencies that the end npm package user doesn't need to devDependencies. Now this package is forcing to install Electron (over 250 MB), Browserify, Babelify, ESLint, LiveServer, Faucet, Rollup, Tape, UglifyJS etc. for nothing.
Or is it that d3plus-common
and d3plus-text
should not be used via npm?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.