@domoritz/vega
Advanced tools
Comparing version 0.1.8 to 5.0.0
103
index.js
@@ -1,27 +0,78 @@ | ||
define(["vega-embed@3"], function(VegaEmbed) { | ||
var ID = 'vega-embed-style'; | ||
if (!document.getElementById(ID)) { | ||
var style = document.createElement("style") | ||
style.id = ID | ||
style.innerHTML = ".vega-embed .vega-actions > a { opacity: 0.2; font-size: 0.9em; margin-right: 0.6em; } " + | ||
".vega-embed:hover .vega-actions > a { opacity: 1; }" | ||
document.getElementsByTagName("head")[0].appendChild(style) | ||
} | ||
// -- Transforms ----- | ||
return function vegalite(spec, options) { | ||
var div = document.createElement("div"); | ||
return VegaEmbed.default(div, spec, Object.assign( | ||
options || {}, | ||
{ | ||
mode: "vega", | ||
actions: Object.assign( | ||
{source: false}, | ||
options ? options.actions || {} : {}) | ||
}) | ||
) | ||
.then(function(result) { | ||
div.value = result.view; | ||
return div; | ||
}); | ||
}; | ||
}); | ||
import {extend} from 'vega-util'; | ||
import {transforms} from 'vega-dataflow'; | ||
import * as tx from 'vega-transforms'; | ||
import * as vtx from 'vega-view-transforms'; | ||
import * as encode from 'vega-encode'; | ||
import * as geo from 'vega-geo'; | ||
import * as force from 'vega-force'; | ||
import * as tree from 'vega-hierarchy'; | ||
import * as voronoi from 'vega-voronoi'; | ||
import * as wordcloud from 'vega-wordcloud'; | ||
import * as xf from 'vega-crossfilter'; | ||
extend(transforms, tx, vtx, encode, geo, force, tree, voronoi, wordcloud, xf); | ||
// -- Exports ----- | ||
export { | ||
version | ||
} from './package.json'; | ||
export * from 'vega-statistics'; | ||
export * from 'vega-util'; | ||
export * from 'vega-loader'; | ||
export * from 'vega-scenegraph'; | ||
export { | ||
Dataflow, | ||
EventStream, | ||
Parameters, | ||
Pulse, | ||
MultiPulse, | ||
Operator, | ||
Transform, | ||
changeset, | ||
ingest, | ||
isTuple, | ||
definition, | ||
transform, | ||
transforms, | ||
tupleid | ||
} from 'vega-dataflow'; | ||
export { | ||
scale, | ||
scheme, | ||
schemeDiscretized, | ||
interpolate, | ||
interpolateRange, | ||
timeInterval | ||
} from 'vega-scale'; | ||
export { | ||
projection | ||
} from 'vega-projection'; | ||
export { | ||
View | ||
} from 'vega-view'; | ||
export { | ||
expressionFunction, | ||
formatLocale, | ||
timeFormatLocale | ||
} from 'vega-functions'; | ||
export { | ||
parse | ||
} from 'vega-parser'; | ||
export { | ||
parse as runtime, | ||
context as runtimeContext | ||
} from 'vega-runtime'; |
{ | ||
"name": "@domoritz/vega", | ||
"version": "0.1.8", | ||
"description": "A convenience method for using Vega.", | ||
"version": "5.0.0", | ||
"description": "The Vega visualization grammar.", | ||
"keywords": [ | ||
"vega" | ||
"vega", | ||
"visualization", | ||
"interaction", | ||
"dataflow", | ||
"library", | ||
"data", | ||
"d3" | ||
], | ||
"homepage": "https://github.com/observablehq/vega", | ||
"repository": "https://github.com/observablehq/vega", | ||
"license": "ISC", | ||
"author": { | ||
"name": "Observable, Inc." | ||
"license": "BSD-3-Clause", | ||
"author": "UW Interactive Data Lab (http://idl.cs.washington.edu)", | ||
"main": "build/vega-node.js", | ||
"module": "build/vega-core.mjs", | ||
"unpkg": "build/vega.min.js", | ||
"jsdelivr": "build/vega.min.js", | ||
"repository": "vega/vega", | ||
"scripts": { | ||
"rollup": "node rollup-node && node schema-copy", | ||
"prebuild": "rimraf build && mkdirp build", | ||
"build": "yarn rollup && node rollup && node rollup -e && node rollup -e -m", | ||
"postbuild": "terser build/vega.js -c -m -o build/vega.min.js && terser build/vega-core.js -c -m -o build/vega-core.min.js", | ||
"pretest": "yarn prebuild && yarn rollup", | ||
"test": "TZ=America/Los_Angeles tape 'test/**/*-test.js' && eslint index.js test" | ||
}, | ||
"publishConfig": { | ||
"tag": "next" | ||
"dependencies": { | ||
"vega-crossfilter": "^4.0.0", | ||
"vega-dataflow": "^5.0.0", | ||
"vega-encode": "^4.0.0", | ||
"vega-event-selector": "^2.0.0", | ||
"vega-expression": "^2.5.0", | ||
"vega-functions": "^5.0.0", | ||
"vega-force": "^4.0.0", | ||
"vega-geo": "^4.0.0", | ||
"vega-hierarchy": "^4.0.0", | ||
"vega-loader": "^4.0.0", | ||
"vega-parser": "^5.0.0", | ||
"vega-projection": "^1.2.1", | ||
"vega-runtime": "^5.0.0", | ||
"vega-scale": "^3.0.0", | ||
"vega-scenegraph": "^4.0.0", | ||
"vega-statistics": "^1.2.4", | ||
"vega-transforms": "^4.0.0", | ||
"vega-typings": "*", | ||
"vega-util": "^1.8.0", | ||
"vega-view": "^5.0.0", | ||
"vega-view-transforms": "^4.0.0", | ||
"vega-voronoi": "^4.0.0", | ||
"vega-wordcloud": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"vega-schema": "*" | ||
} | ||
} |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
333907
10
13103
43
23
1
2
1
+ Addedvega-crossfilter@^4.0.0
+ Addedvega-dataflow@^5.0.0
+ Addedvega-encode@^4.0.0
+ Addedvega-event-selector@^2.0.0
+ Addedvega-expression@^2.5.0
+ Addedvega-force@^4.0.0
+ Addedvega-functions@^5.0.0
+ Addedvega-geo@^4.0.0
+ Addedvega-hierarchy@^4.0.0
+ Addedvega-loader@^4.0.0
+ Addedvega-parser@^5.0.0
+ Addedvega-projection@^1.2.1
+ Addedvega-runtime@^5.0.0
+ Addedvega-scale@^3.0.0
+ Addedvega-scenegraph@^4.0.0
+ Addedvega-statistics@^1.2.4
+ Addedvega-transforms@^4.0.0
+ Addedvega-typings@*
+ Addedvega-util@^1.8.0
+ Addedvega-view@^5.0.0
+ Addedvega-view-transforms@^4.0.0
+ Addedvega-voronoi@^4.0.0
+ Addedvega-wordcloud@^4.0.0
+ Added@types/estree@1.0.6(transitive)
+ Added@types/geojson@7946.0.4(transitive)
+ Addedcommander@2.20.37.2.0(transitive)
+ Addedd3-array@1.2.42.12.13.2.4(transitive)
+ Addedd3-collection@1.0.7(transitive)
+ Addedd3-color@1.4.13.1.0(transitive)
+ Addedd3-delaunay@6.0.4(transitive)
+ Addedd3-dispatch@3.0.1(transitive)
+ Addedd3-dsv@3.0.1(transitive)
+ Addedd3-force@3.0.0(transitive)
+ Addedd3-format@1.4.53.1.0(transitive)
+ Addedd3-geo@3.1.1(transitive)
+ Addedd3-geo-projection@4.0.0(transitive)
+ Addedd3-hierarchy@3.1.2(transitive)
+ Addedd3-interpolate@1.4.03.0.1(transitive)
+ Addedd3-path@3.1.0(transitive)
+ Addedd3-quadtree@3.0.1(transitive)
+ Addedd3-scale@2.2.23.3.04.0.2(transitive)
+ Addedd3-scale-chromatic@1.5.03.1.0(transitive)
+ Addedd3-shape@3.2.0(transitive)
+ Addedd3-time@1.1.02.1.13.1.0(transitive)
+ Addedd3-time-format@2.3.03.0.04.1.0(transitive)
+ Addedd3-timer@3.0.1(transitive)
+ Addeddelaunator@5.0.1(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedinternmap@1.0.12.0.3(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedrobust-predicates@3.0.2(transitive)
+ Addedrw@1.3.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedtopojson-client@3.1.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedvega-canvas@1.2.7(transitive)
+ Addedvega-crossfilter@4.1.2(transitive)
+ Addedvega-dataflow@5.7.6(transitive)
+ Addedvega-encode@4.10.1(transitive)
+ Addedvega-event-selector@2.0.63.0.1(transitive)
+ Addedvega-expression@2.7.05.1.1(transitive)
+ Addedvega-force@4.2.1(transitive)
+ Addedvega-format@1.1.2(transitive)
+ Addedvega-functions@5.15.0(transitive)
+ Addedvega-geo@4.4.2(transitive)
+ Addedvega-hierarchy@4.1.2(transitive)
+ Addedvega-loader@4.5.2(transitive)
+ Addedvega-parser@5.14.0(transitive)
+ Addedvega-projection@1.6.1(transitive)
+ Addedvega-runtime@5.0.36.2.0(transitive)
+ Addedvega-scale@3.0.06.1.07.4.1(transitive)
+ Addedvega-scenegraph@4.13.0(transitive)
+ Addedvega-selections@5.4.2(transitive)
+ Addedvega-statistics@1.9.0(transitive)
+ Addedvega-time@1.1.02.1.2(transitive)
+ Addedvega-transforms@4.12.0(transitive)
+ Addedvega-typings@1.3.1(transitive)
+ Addedvega-util@1.17.2(transitive)
+ Addedvega-view@5.13.0(transitive)
+ Addedvega-view-transforms@4.6.0(transitive)
+ Addedvega-voronoi@4.2.3(transitive)
+ Addedvega-wordcloud@4.1.5(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)