mdarray-sol 0.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +35 -0
- data/LICENSE.txt~ +73 -0
- data/README.md +140 -0
- data/README.md~ +290 -0
- data/Rakefile +80 -0
- data/config.rb +223 -0
- data/doc/Nashorn.html +1406 -0
- data/doc/Sol.html +692 -0
- data/doc/Sol/BarChart.html +181 -0
- data/doc/Sol/BaseChart.html +799 -0
- data/doc/Sol/Bootstrap.html +1134 -0
- data/doc/Sol/Bridge.html +448 -0
- data/doc/Sol/Chart.html +1162 -0
- data/doc/Sol/CoordinateChart.html +673 -0
- data/doc/Sol/DCFX.html +807 -0
- data/doc/Sol/Dashboard.html +1967 -0
- data/doc/Sol/ExecMessages.html +332 -0
- data/doc/Sol/GuiCommunication.html +230 -0
- data/doc/Sol/Interval.html +1213 -0
- data/doc/Sol/JS.html +448 -0
- data/doc/Sol/LineChart.html +344 -0
- data/doc/Sol/LinearScale.html +334 -0
- data/doc/Sol/Margins.html +219 -0
- data/doc/Sol/OrdinalScale.html +263 -0
- data/doc/Sol/ReadBuffer.html +302 -0
- data/doc/Sol/Scale.html +462 -0
- data/doc/Sol/Stack.html +199 -0
- data/doc/Sol/TimeScale.html +396 -0
- data/doc/_index.html +362 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +95 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +95 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +849 -0
- data/doc/top-level-namespace.html +135 -0
- data/examples/bar_chart/bar_chart.rb +268 -0
- data/examples/bar_plot.rb +96 -0
- data/examples/charts/area.rb +25 -0
- data/examples/charts/area_script.rb +69 -0
- data/examples/charts/env.rb +8 -0
- data/examples/charts/monthly-move.csv +6725 -0
- data/examples/charts/morley.csv +101 -0
- data/examples/charts/morley2.csv +81 -0
- data/examples/charts/morley3.csv +121 -0
- data/examples/d3_tutorial.rb +98 -0
- data/examples/sc_plot.rb +57 -0
- data/examples/scatterplot/axes.rb +111 -0
- data/examples/scatterplot/scatterplot.rb +221 -0
- data/examples/us_states/map.rb +90 -0
- data/examples/us_states/us-ag-productivity2004.csv +49 -0
- data/examples/us_states/us-cities.csv +51 -0
- data/examples/util/linear_scale.rb +83 -0
- data/examples/util/ordinal_scale.rb +72 -0
- data/init.rb +39 -0
- data/lib/jx/array_handler.js +70 -0
- data/lib/jx/callback.rb +255 -0
- data/lib/jx/hash_handler.js +87 -0
- data/lib/jx/irbobject.rb +121 -0
- data/lib/jx/js.rb +442 -0
- data/lib/jx/js_array.rb +31 -0
- data/lib/jx/js_hash.rb +76 -0
- data/lib/jx/js_init.rb +62 -0
- data/lib/jx/jsarray.rb +66 -0
- data/lib/jx/jsfunction.rb +73 -0
- data/lib/jx/jsobject.rb +188 -0
- data/lib/jx/jsstyle_sheet.rb +231 -0
- data/lib/jx/jsundefined.rb +46 -0
- data/lib/jx/proxy_array.rb +62 -0
- data/lib/jx/rbobject.rb +80 -0
- data/lib/jx/ruby_proxy.js +176 -0
- data/lib/jx/ruby_rich.js +70 -0
- data/lib/jx/sol.rb +109 -0
- data/lib/mdarray-sol.rb +34 -0
- data/lib/mdarray/jsmdarray.rb +39 -0
- data/lib/ruby_rich/bootstrap.rb +230 -0
- data/lib/ruby_rich/config.html +22 -0
- data/lib/ruby_rich/dashboard.rb +299 -0
- data/lib/ruby_rich/ruby_rich.rb +120 -0
- data/lib/sol/bar_chart.rb +35 -0
- data/lib/sol/base_chart.rb +148 -0
- data/lib/sol/chart.rb +138 -0
- data/lib/sol/coordinate_chart.rb +128 -0
- data/lib/sol/interval.rb +156 -0
- data/lib/sol/line_chart.rb +58 -0
- data/lib/sol/margins.rb +52 -0
- data/lib/sol/scale.rb +212 -0
- data/lib/sol/stack.rb +44 -0
- data/node_modules/bootstrap/Gruntfile.js +533 -0
- data/node_modules/bootstrap/dist/js/bootstrap.js +2363 -0
- data/node_modules/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/node_modules/bootstrap/dist/js/npm.js +13 -0
- data/node_modules/bootstrap/grunt/bs-commonjs-generator.js +30 -0
- data/node_modules/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
- data/node_modules/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
- data/node_modules/bootstrap/grunt/bs-raw-files-generator.js +44 -0
- data/node_modules/bootstrap/js/affix.js +162 -0
- data/node_modules/bootstrap/js/alert.js +94 -0
- data/node_modules/bootstrap/js/button.js +120 -0
- data/node_modules/bootstrap/js/carousel.js +237 -0
- data/node_modules/bootstrap/js/collapse.js +211 -0
- data/node_modules/bootstrap/js/dropdown.js +165 -0
- data/node_modules/bootstrap/js/modal.js +337 -0
- data/node_modules/bootstrap/js/popover.js +108 -0
- data/node_modules/bootstrap/js/scrollspy.js +172 -0
- data/node_modules/bootstrap/js/tab.js +155 -0
- data/node_modules/bootstrap/js/tooltip.js +514 -0
- data/node_modules/bootstrap/js/transition.js +59 -0
- data/node_modules/chai/chai.js +6142 -0
- data/node_modules/chai/index.js +1 -0
- data/node_modules/chai/karma.conf.js +28 -0
- data/node_modules/chai/karma.sauce.js +41 -0
- data/node_modules/chai/lib/chai.js +93 -0
- data/node_modules/chai/lib/chai/assertion.js +131 -0
- data/node_modules/chai/lib/chai/config.js +55 -0
- data/node_modules/chai/lib/chai/core/assertions.js +1860 -0
- data/node_modules/chai/lib/chai/interface/assert.js +1645 -0
- data/node_modules/chai/lib/chai/interface/expect.js +34 -0
- data/node_modules/chai/lib/chai/interface/should.js +201 -0
- data/node_modules/chai/lib/chai/utils/addChainableMethod.js +112 -0
- data/node_modules/chai/lib/chai/utils/addMethod.js +44 -0
- data/node_modules/chai/lib/chai/utils/addProperty.js +48 -0
- data/node_modules/chai/lib/chai/utils/expectTypes.js +42 -0
- data/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/node_modules/chai/lib/chai/utils/getMessage.js +51 -0
- data/node_modules/chai/lib/chai/utils/getName.js +22 -0
- data/node_modules/chai/lib/chai/utils/getPathInfo.js +111 -0
- data/node_modules/chai/lib/chai/utils/getPathValue.js +43 -0
- data/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/node_modules/chai/lib/chai/utils/hasProperty.js +64 -0
- data/node_modules/chai/lib/chai/utils/index.js +130 -0
- data/node_modules/chai/lib/chai/utils/inspect.js +335 -0
- data/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +54 -0
- data/node_modules/chai/lib/chai/utils/overwriteMethod.js +52 -0
- data/node_modules/chai/lib/chai/utils/overwriteProperty.js +55 -0
- data/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/node_modules/chai/node_modules/assertion-error/index.js +116 -0
- data/node_modules/chai/node_modules/deep-eql/index.js +1 -0
- data/node_modules/chai/node_modules/deep-eql/karma.conf.js +20 -0
- data/node_modules/chai/node_modules/deep-eql/lib/eql.js +257 -0
- data/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/index.js +1 -0
- data/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/lib/type.js +142 -0
- data/node_modules/chai/node_modules/type-detect/index.js +1 -0
- data/node_modules/chai/node_modules/type-detect/lib/type.js +134 -0
- data/node_modules/chai/sauce.browsers.js +128 -0
- data/node_modules/dc/Gruntfile.js +437 -0
- data/node_modules/dc/dc.js +10477 -0
- data/node_modules/dc/dc.min.js +23 -0
- data/node_modules/dc/docs/coverage.js +203 -0
- data/node_modules/dc/grunt/format-file-list.js +33 -0
- data/node_modules/dc/index.js +5 -0
- data/node_modules/dc/node_modules/crossfilter2/crossfilter.js +1401 -0
- data/node_modules/dc/node_modules/crossfilter2/crossfilter.min.js +1 -0
- data/node_modules/dc/node_modules/crossfilter2/index.js +1 -0
- data/node_modules/dc/node_modules/crossfilter2/src/array.js +46 -0
- data/node_modules/dc/node_modules/crossfilter2/src/bisect.js +44 -0
- data/node_modules/dc/node_modules/crossfilter2/src/crossfilter.js +872 -0
- data/node_modules/dc/node_modules/crossfilter2/src/filter.js +19 -0
- data/node_modules/dc/node_modules/crossfilter2/src/heap.js +44 -0
- data/node_modules/dc/node_modules/crossfilter2/src/heapselect.js +36 -0
- data/node_modules/dc/node_modules/crossfilter2/src/identity.js +3 -0
- data/node_modules/dc/node_modules/crossfilter2/src/insertionsort.js +18 -0
- data/node_modules/dc/node_modules/crossfilter2/src/null.js +3 -0
- data/node_modules/dc/node_modules/crossfilter2/src/permute.js +8 -0
- data/node_modules/dc/node_modules/crossfilter2/src/quicksort.js +283 -0
- data/node_modules/dc/node_modules/crossfilter2/src/reduce.js +19 -0
- data/node_modules/dc/node_modules/crossfilter2/src/zero.js +3 -0
- data/node_modules/dc/node_modules/d3/d3.js +9554 -0
- data/node_modules/dc/node_modules/d3/d3.min.js +5 -0
- data/node_modules/dc/node_modules/d3/package.js +13 -0
- data/node_modules/dc/node_modules/d3/src/arrays/ascending.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/bisect.js +36 -0
- data/node_modules/dc/node_modules/d3/src/arrays/descending.js +3 -0
- data/node_modules/dc/node_modules/d3/src/arrays/deviation.js +6 -0
- data/node_modules/dc/node_modules/d3/src/arrays/entries.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/extent.js +21 -0
- data/node_modules/dc/node_modules/d3/src/arrays/index.js +25 -0
- data/node_modules/dc/node_modules/d3/src/arrays/keys.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/map.js +84 -0
- data/node_modules/dc/node_modules/d3/src/arrays/max.js +14 -0
- data/node_modules/dc/node_modules/d3/src/arrays/mean.js +15 -0
- data/node_modules/dc/node_modules/d3/src/arrays/median.js +16 -0
- data/node_modules/dc/node_modules/d3/src/arrays/merge.js +21 -0
- data/node_modules/dc/node_modules/d3/src/arrays/min.js +14 -0
- data/node_modules/dc/node_modules/d3/src/arrays/nest.js +97 -0
- data/node_modules/dc/node_modules/d3/src/arrays/pairs.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/permute.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/quantile.js +8 -0
- data/node_modules/dc/node_modules/d3/src/arrays/range.js +26 -0
- data/node_modules/dc/node_modules/d3/src/arrays/set.js +27 -0
- data/node_modules/dc/node_modules/d3/src/arrays/shuffle.js +9 -0
- data/node_modules/dc/node_modules/d3/src/arrays/sum.js +14 -0
- data/node_modules/dc/node_modules/d3/src/arrays/transpose.js +15 -0
- data/node_modules/dc/node_modules/d3/src/arrays/values.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/variance.js +29 -0
- data/node_modules/dc/node_modules/d3/src/arrays/zip.js +5 -0
- data/node_modules/dc/node_modules/d3/src/behavior/behavior.js +1 -0
- data/node_modules/dc/node_modules/d3/src/behavior/drag.js +88 -0
- data/node_modules/dc/node_modules/d3/src/behavior/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/behavior/zoom.js +348 -0
- data/node_modules/dc/node_modules/d3/src/color/color.js +7 -0
- data/node_modules/dc/node_modules/d3/src/color/hcl.js +34 -0
- data/node_modules/dc/node_modules/d3/src/color/hsl.js +56 -0
- data/node_modules/dc/node_modules/d3/src/color/index.js +6 -0
- data/node_modules/dc/node_modules/d3/src/color/lab.js +60 -0
- data/node_modules/dc/node_modules/d3/src/color/rgb.js +301 -0
- data/node_modules/dc/node_modules/d3/src/color/xyz.js +7 -0
- data/node_modules/dc/node_modules/d3/src/compat/array.js +15 -0
- data/node_modules/dc/node_modules/d3/src/compat/date.js +3 -0
- data/node_modules/dc/node_modules/d3/src/compat/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/compat/style.js +23 -0
- data/node_modules/dc/node_modules/d3/src/core/array.js +2 -0
- data/node_modules/dc/node_modules/d3/src/core/class.js +8 -0
- data/node_modules/dc/node_modules/d3/src/core/document.js +15 -0
- data/node_modules/dc/node_modules/d3/src/core/functor.js +5 -0
- data/node_modules/dc/node_modules/d3/src/core/identity.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/noop.js +1 -0
- data/node_modules/dc/node_modules/d3/src/core/ns.js +18 -0
- data/node_modules/dc/node_modules/d3/src/core/rebind.js +16 -0
- data/node_modules/dc/node_modules/d3/src/core/source.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/subclass.js +11 -0
- data/node_modules/dc/node_modules/d3/src/core/target.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/true.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/vendor.js +10 -0
- data/node_modules/dc/node_modules/d3/src/core/zero.js +3 -0
- data/node_modules/dc/node_modules/d3/src/d3.js +23 -0
- data/node_modules/dc/node_modules/d3/src/dsv/csv.js +3 -0
- data/node_modules/dc/node_modules/d3/src/dsv/dsv.js +136 -0
- data/node_modules/dc/node_modules/d3/src/dsv/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/dsv/tsv.js +3 -0
- data/node_modules/dc/node_modules/d3/src/end.js +4 -0
- data/node_modules/dc/node_modules/d3/src/event/dispatch.js +69 -0
- data/node_modules/dc/node_modules/d3/src/event/drag.js +36 -0
- data/node_modules/dc/node_modules/d3/src/event/event.js +50 -0
- data/node_modules/dc/node_modules/d3/src/event/index.js +6 -0
- data/node_modules/dc/node_modules/d3/src/event/mouse.js +39 -0
- data/node_modules/dc/node_modules/d3/src/event/timer.js +82 -0
- data/node_modules/dc/node_modules/d3/src/event/touch.js +11 -0
- data/node_modules/dc/node_modules/d3/src/event/touches.js +12 -0
- data/node_modules/dc/node_modules/d3/src/format/collapse.js +3 -0
- data/node_modules/dc/node_modules/d3/src/format/format.js +3 -0
- data/node_modules/dc/node_modules/d3/src/format/formatPrefix.js +24 -0
- data/node_modules/dc/node_modules/d3/src/format/index.js +4 -0
- data/node_modules/dc/node_modules/d3/src/format/precision.js +3 -0
- data/node_modules/dc/node_modules/d3/src/format/requote.js +5 -0
- data/node_modules/dc/node_modules/d3/src/format/round.js +5 -0
- data/node_modules/dc/node_modules/d3/src/geo/albers-usa.js +129 -0
- data/node_modules/dc/node_modules/d3/src/geo/albers.js +11 -0
- data/node_modules/dc/node_modules/d3/src/geo/area.js +69 -0
- data/node_modules/dc/node_modules/d3/src/geo/azimuthal-equal-area.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/azimuthal-equidistant.js +13 -0
- data/node_modules/dc/node_modules/d3/src/geo/azimuthal.js +25 -0
- data/node_modules/dc/node_modules/d3/src/geo/bounds.js +168 -0
- data/node_modules/dc/node_modules/d3/src/geo/cartesian.js +47 -0
- data/node_modules/dc/node_modules/d3/src/geo/centroid.js +149 -0
- data/node_modules/dc/node_modules/d3/src/geo/circle.js +81 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-antimeridian.js +95 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-circle.js +178 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-extent.js +196 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-polygon.js +104 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip.js +149 -0
- data/node_modules/dc/node_modules/d3/src/geo/compose.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic-conformal.js +39 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic-equal-area.js +33 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic-equidistant.js +36 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic.js +16 -0
- data/node_modules/dc/node_modules/d3/src/geo/distance.js +13 -0
- data/node_modules/dc/node_modules/d3/src/geo/equirectangular.js +10 -0
- data/node_modules/dc/node_modules/d3/src/geo/geo.js +1 -0
- data/node_modules/dc/node_modules/d3/src/geo/gnomonic.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/graticule.js +103 -0
- data/node_modules/dc/node_modules/d3/src/geo/greatArc.js +42 -0
- data/node_modules/dc/node_modules/d3/src/geo/index.js +33 -0
- data/node_modules/dc/node_modules/d3/src/geo/interpolate.js +38 -0
- data/node_modules/dc/node_modules/d3/src/geo/length.js +44 -0
- data/node_modules/dc/node_modules/d3/src/geo/mercator.js +48 -0
- data/node_modules/dc/node_modules/d3/src/geo/orthographic.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-area.js +41 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-bounds.js +21 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-buffer.js +59 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-centroid.js +78 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-context.js +49 -0
- data/node_modules/dc/node_modules/d3/src/geo/path.js +87 -0
- data/node_modules/dc/node_modules/d3/src/geo/point-in-polygon.js +71 -0
- data/node_modules/dc/node_modules/d3/src/geo/projection.js +121 -0
- data/node_modules/dc/node_modules/d3/src/geo/resample.js +109 -0
- data/node_modules/dc/node_modules/d3/src/geo/rotation.js +79 -0
- data/node_modules/dc/node_modules/d3/src/geo/spherical.js +13 -0
- data/node_modules/dc/node_modules/d3/src/geo/stereographic.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/stream.js +71 -0
- data/node_modules/dc/node_modules/d3/src/geo/transform.js +36 -0
- data/node_modules/dc/node_modules/d3/src/geo/transverse-mercator.js +31 -0
- data/node_modules/dc/node_modules/d3/src/geom/clip-line.js +66 -0
- data/node_modules/dc/node_modules/d3/src/geom/delaunay.js +6 -0
- data/node_modules/dc/node_modules/d3/src/geom/geom.js +1 -0
- data/node_modules/dc/node_modules/d3/src/geom/hull.js +91 -0
- data/node_modules/dc/node_modules/d3/src/geom/index.js +6 -0
- data/node_modules/dc/node_modules/d3/src/geom/point.js +7 -0
- data/node_modules/dc/node_modules/d3/src/geom/polygon.js +105 -0
- data/node_modules/dc/node_modules/d3/src/geom/quadtree.js +243 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi.js +110 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/beach.js +186 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/cell.js +64 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/circle.js +73 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/clip.js +80 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/edge.js +50 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/index.js +59 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/red-black.js +235 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/array.js +19 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/ease.js +111 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/hcl.js +20 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/hsl.js +20 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/index.js +14 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/interpolate.js +26 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/lab.js +17 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/number.js +6 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/object.js +25 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/rgb.js +20 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/round.js +6 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/string.js +54 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/transform.js +59 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/uninterpolate.js +9 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/zoom.js +53 -0
- data/node_modules/dc/node_modules/d3/src/layout/bundle.js +59 -0
- data/node_modules/dc/node_modules/d3/src/layout/chord.js +157 -0
- data/node_modules/dc/node_modules/d3/src/layout/cluster.js +92 -0
- data/node_modules/dc/node_modules/d3/src/layout/force.js +372 -0
- data/node_modules/dc/node_modules/d3/src/layout/hierarchy.js +136 -0
- data/node_modules/dc/node_modules/d3/src/layout/histogram.js +110 -0
- data/node_modules/dc/node_modules/d3/src/layout/index.js +13 -0
- data/node_modules/dc/node_modules/d3/src/layout/layout.js +1 -0
- data/node_modules/dc/node_modules/d3/src/layout/pack.js +211 -0
- data/node_modules/dc/node_modules/d3/src/layout/partition.js +51 -0
- data/node_modules/dc/node_modules/d3/src/layout/pie.js +78 -0
- data/node_modules/dc/node_modules/d3/src/layout/stack.js +247 -0
- data/node_modules/dc/node_modules/d3/src/layout/tree.js +240 -0
- data/node_modules/dc/node_modules/d3/src/layout/treemap.js +229 -0
- data/node_modules/dc/node_modules/d3/src/locale/ca-ES.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/de-CH.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/de-DE.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/en-CA.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/en-GB.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/en-US.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/es-ES.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/fi-FI.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/fr-CA.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/fr-FR.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/he-IL.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/hu-HU.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/it-IT.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/ja-JP.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/ko-KR.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/locale.js +9 -0
- data/node_modules/dc/node_modules/d3/src/locale/mk-MK.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/nl-NL.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/number-format.js +155 -0
- data/node_modules/dc/node_modules/d3/src/locale/pl-PL.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/pt-BR.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/ru-RU.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/sv-SE.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/time-format.js +370 -0
- data/node_modules/dc/node_modules/d3/src/locale/time-scale.js +0 -0
- data/node_modules/dc/node_modules/d3/src/locale/zh-CN.js +16 -0
- data/node_modules/dc/node_modules/d3/src/math/abs.js +1 -0
- data/node_modules/dc/node_modules/d3/src/math/adder.js +34 -0
- data/node_modules/dc/node_modules/d3/src/math/index.js +2 -0
- data/node_modules/dc/node_modules/d3/src/math/number.js +7 -0
- data/node_modules/dc/node_modules/d3/src/math/random.js +34 -0
- data/node_modules/dc/node_modules/d3/src/math/transform.js +64 -0
- data/node_modules/dc/node_modules/d3/src/math/trigonometry.js +44 -0
- data/node_modules/dc/node_modules/d3/src/scale/bilinear.js +7 -0
- data/node_modules/dc/node_modules/d3/src/scale/category.js +58 -0
- data/node_modules/dc/node_modules/d3/src/scale/identity.js +33 -0
- data/node_modules/dc/node_modules/d3/src/scale/index.js +11 -0
- data/node_modules/dc/node_modules/d3/src/scale/linear.js +160 -0
- data/node_modules/dc/node_modules/d3/src/scale/log.js +92 -0
- data/node_modules/dc/node_modules/d3/src/scale/nice.js +30 -0
- data/node_modules/dc/node_modules/d3/src/scale/ordinal.js +102 -0
- data/node_modules/dc/node_modules/d3/src/scale/polylinear.js +24 -0
- data/node_modules/dc/node_modules/d3/src/scale/pow.js +57 -0
- data/node_modules/dc/node_modules/d3/src/scale/quantile.js +55 -0
- data/node_modules/dc/node_modules/d3/src/scale/quantize.js +44 -0
- data/node_modules/dc/node_modules/d3/src/scale/scale.js +10 -0
- data/node_modules/dc/node_modules/d3/src/scale/sqrt.js +6 -0
- data/node_modules/dc/node_modules/d3/src/scale/threshold.js +36 -0
- data/node_modules/dc/node_modules/d3/src/selection/append.js +28 -0
- data/node_modules/dc/node_modules/d3/src/selection/attr.js +62 -0
- data/node_modules/dc/node_modules/d3/src/selection/call.js +8 -0
- data/node_modules/dc/node_modules/d3/src/selection/classed.js +76 -0
- data/node_modules/dc/node_modules/d3/src/selection/data.js +117 -0
- data/node_modules/dc/node_modules/d3/src/selection/datum.js +7 -0
- data/node_modules/dc/node_modules/d3/src/selection/each.js +16 -0
- data/node_modules/dc/node_modules/d3/src/selection/empty.js +5 -0
- data/node_modules/dc/node_modules/d3/src/selection/enter-insert.js +20 -0
- data/node_modules/dc/node_modules/d3/src/selection/enter-select.js +27 -0
- data/node_modules/dc/node_modules/d3/src/selection/enter.js +21 -0
- data/node_modules/dc/node_modules/d3/src/selection/filter.js +28 -0
- data/node_modules/dc/node_modules/d3/src/selection/html.js +10 -0
- data/node_modules/dc/node_modules/d3/src/selection/index.js +1 -0
- data/node_modules/dc/node_modules/d3/src/selection/insert.js +9 -0
- data/node_modules/dc/node_modules/d3/src/selection/interrupt.js +27 -0
- data/node_modules/dc/node_modules/d3/src/selection/node.js +11 -0
- data/node_modules/dc/node_modules/d3/src/selection/on.js +106 -0
- data/node_modules/dc/node_modules/d3/src/selection/order.js +13 -0
- data/node_modules/dc/node_modules/d3/src/selection/property.js +43 -0
- data/node_modules/dc/node_modules/d3/src/selection/remove.js +13 -0
- data/node_modules/dc/node_modules/d3/src/selection/select.js +32 -0
- data/node_modules/dc/node_modules/d3/src/selection/selectAll.js +27 -0
- data/node_modules/dc/node_modules/d3/src/selection/selection.js +81 -0
- data/node_modules/dc/node_modules/d3/src/selection/size.js +7 -0
- data/node_modules/dc/node_modules/d3/src/selection/sort.js +15 -0
- data/node_modules/dc/node_modules/d3/src/selection/style.js +59 -0
- data/node_modules/dc/node_modules/d3/src/selection/text.js +10 -0
- data/node_modules/dc/node_modules/d3/src/selection/transition.js +21 -0
- data/node_modules/dc/node_modules/d3/src/start.js +2 -0
- data/node_modules/dc/node_modules/d3/src/svg/arc.js +292 -0
- data/node_modules/dc/node_modules/d3/src/svg/area-radial.js +14 -0
- data/node_modules/dc/node_modules/d3/src/svg/area.js +121 -0
- data/node_modules/dc/node_modules/d3/src/svg/axis.js +160 -0
- data/node_modules/dc/node_modules/d3/src/svg/brush.js +429 -0
- data/node_modules/dc/node_modules/d3/src/svg/chord.js +90 -0
- data/node_modules/dc/node_modules/d3/src/svg/diagonal-radial.js +27 -0
- data/node_modules/dc/node_modules/d3/src/svg/diagonal.js +43 -0
- data/node_modules/dc/node_modules/d3/src/svg/index.js +12 -0
- data/node_modules/dc/node_modules/d3/src/svg/line-radial.js +27 -0
- data/node_modules/dc/node_modules/d3/src/svg/line.js +432 -0
- data/node_modules/dc/node_modules/d3/src/svg/svg.js +1 -0
- data/node_modules/dc/node_modules/d3/src/svg/symbol.js +105 -0
- data/node_modules/dc/node_modules/d3/src/time/day.js +21 -0
- data/node_modules/dc/node_modules/d3/src/time/format-iso.js +19 -0
- data/node_modules/dc/node_modules/d3/src/time/format-utc.js +3 -0
- data/node_modules/dc/node_modules/d3/src/time/format.js +4 -0
- data/node_modules/dc/node_modules/d3/src/time/hour.js +14 -0
- data/node_modules/dc/node_modules/d3/src/time/index.js +14 -0
- data/node_modules/dc/node_modules/d3/src/time/interval.js +71 -0
- data/node_modules/dc/node_modules/d3/src/time/minute.js +13 -0
- data/node_modules/dc/node_modules/d3/src/time/month.js +16 -0
- data/node_modules/dc/node_modules/d3/src/time/scale-utc.js +25 -0
- data/node_modules/dc/node_modules/d3/src/time/scale.js +155 -0
- data/node_modules/dc/node_modules/d3/src/time/second.js +13 -0
- data/node_modules/dc/node_modules/d3/src/time/time.js +33 -0
- data/node_modules/dc/node_modules/d3/src/time/week.js +31 -0
- data/node_modules/dc/node_modules/d3/src/time/year.js +16 -0
- data/node_modules/dc/node_modules/d3/src/transition/attr.js +58 -0
- data/node_modules/dc/node_modules/d3/src/transition/delay.js +10 -0
- data/node_modules/dc/node_modules/d3/src/transition/duration.js +10 -0
- data/node_modules/dc/node_modules/d3/src/transition/each.js +26 -0
- data/node_modules/dc/node_modules/d3/src/transition/ease.js +10 -0
- data/node_modules/dc/node_modules/d3/src/transition/filter.js +22 -0
- data/node_modules/dc/node_modules/d3/src/transition/index.js +1 -0
- data/node_modules/dc/node_modules/d3/src/transition/remove.js +9 -0
- data/node_modules/dc/node_modules/d3/src/transition/select.js +28 -0
- data/node_modules/dc/node_modules/d3/src/transition/selectAll.js +31 -0
- data/node_modules/dc/node_modules/d3/src/transition/style.js +53 -0
- data/node_modules/dc/node_modules/d3/src/transition/subtransition.js +25 -0
- data/node_modules/dc/node_modules/d3/src/transition/text.js +11 -0
- data/node_modules/dc/node_modules/d3/src/transition/transition.js +161 -0
- data/node_modules/dc/node_modules/d3/src/transition/tween.js +17 -0
- data/node_modules/dc/node_modules/d3/src/xhr/html.js +12 -0
- data/node_modules/dc/node_modules/d3/src/xhr/index.js +5 -0
- data/node_modules/dc/node_modules/d3/src/xhr/json.js +9 -0
- data/node_modules/dc/node_modules/d3/src/xhr/text.js +5 -0
- data/node_modules/dc/node_modules/d3/src/xhr/xhr.js +126 -0
- data/node_modules/dc/node_modules/d3/src/xhr/xml.js +5 -0
- data/node_modules/dc/regression/inject-serializer.js +6 -0
- data/node_modules/dc/regression/stock-regression-test.js +140 -0
- data/node_modules/dc/spec/bar-chart-spec.js +1230 -0
- data/node_modules/dc/spec/base-mixin-spec.js +611 -0
- data/node_modules/dc/spec/biggish-data-spec.js +136 -0
- data/node_modules/dc/spec/box-plot-spec.js +211 -0
- data/node_modules/dc/spec/bubble-chart-spec.js +450 -0
- data/node_modules/dc/spec/bubble-overlay-spec.js +102 -0
- data/node_modules/dc/spec/color-spec.js +89 -0
- data/node_modules/dc/spec/composite-chart-spec.js +691 -0
- data/node_modules/dc/spec/coordinate-grid-chart-spec.js +962 -0
- data/node_modules/dc/spec/core-spec.js +301 -0
- data/node_modules/dc/spec/data-addition-spec.js +122 -0
- data/node_modules/dc/spec/data-count-spec.js +180 -0
- data/node_modules/dc/spec/data-grid-spec.js +124 -0
- data/node_modules/dc/spec/data-table-spec.js +251 -0
- data/node_modules/dc/spec/event-spec.js +41 -0
- data/node_modules/dc/spec/filter-dates-spec.js +92 -0
- data/node_modules/dc/spec/filters-spec.js +140 -0
- data/node_modules/dc/spec/geo-choropleth-chart-spec.js +225 -0
- data/node_modules/dc/spec/heatmap-spec.js +363 -0
- data/node_modules/dc/spec/helpers/custom_matchers.js +213 -0
- data/node_modules/dc/spec/helpers/fixtures.js +81 -0
- data/node_modules/dc/spec/helpers/geoFixtures.js +113 -0
- data/node_modules/dc/spec/helpers/load-jsreporter.js +37 -0
- data/node_modules/dc/spec/helpers/spec-helper.js +53 -0
- data/node_modules/dc/spec/legend-spec.js +266 -0
- data/node_modules/dc/spec/line-chart-spec.js +709 -0
- data/node_modules/dc/spec/logger-spec.js +80 -0
- data/node_modules/dc/spec/number-display-spec.js +168 -0
- data/node_modules/dc/spec/pie-chart-spec.js +677 -0
- data/node_modules/dc/spec/row-chart-spec.js +362 -0
- data/node_modules/dc/spec/scatter-plot-spec.js +336 -0
- data/node_modules/dc/spec/series-chart-spec.js +133 -0
- data/node_modules/dc/spec/utils-spec.js +110 -0
- data/node_modules/dc/src/banner.js +2 -0
- data/node_modules/dc/src/bar-chart.js +374 -0
- data/node_modules/dc/src/base-mixin.js +1478 -0
- data/node_modules/dc/src/box-plot.js +240 -0
- data/node_modules/dc/src/bubble-chart.js +177 -0
- data/node_modules/dc/src/bubble-mixin.js +244 -0
- data/node_modules/dc/src/bubble-overlay.js +207 -0
- data/node_modules/dc/src/cap-mixin.js +151 -0
- data/node_modules/dc/src/color-mixin.js +172 -0
- data/node_modules/dc/src/composite-chart.js +544 -0
- data/node_modules/dc/src/coordinate-grid-mixin.js +1300 -0
- data/node_modules/dc/src/core.js +425 -0
- data/node_modules/dc/src/d3.box.js +317 -0
- data/node_modules/dc/src/data-count.js +110 -0
- data/node_modules/dc/src/data-grid.js +243 -0
- data/node_modules/dc/src/data-table.js +419 -0
- data/node_modules/dc/src/errors.js +28 -0
- data/node_modules/dc/src/events.js +37 -0
- data/node_modules/dc/src/filters.js +124 -0
- data/node_modules/dc/src/footer.js +35 -0
- data/node_modules/dc/src/geo-choropleth-chart.js +279 -0
- data/node_modules/dc/src/heatmap.js +378 -0
- data/node_modules/dc/src/legend.js +277 -0
- data/node_modules/dc/src/line-chart.js +504 -0
- data/node_modules/dc/src/logger.js +40 -0
- data/node_modules/dc/src/margin-mixin.js +44 -0
- data/node_modules/dc/src/number-display.js +141 -0
- data/node_modules/dc/src/pie-chart.js +571 -0
- data/node_modules/dc/src/row-chart.js +425 -0
- data/node_modules/dc/src/scatter-plot.js +338 -0
- data/node_modules/dc/src/series-chart.js +192 -0
- data/node_modules/dc/src/stack-mixin.js +319 -0
- data/node_modules/dc/src/utils.js +290 -0
- data/node_modules/dc/web/docs/html/scripts/docstrap.lib.js +11 -0
- data/node_modules/dc/web/docs/html/scripts/fulltext-search-ui.js +89 -0
- data/node_modules/dc/web/docs/html/scripts/fulltext-search.js +36 -0
- data/node_modules/dc/web/docs/html/scripts/lunr.min.js +7 -0
- data/node_modules/dc/web/docs/html/scripts/prettify/jquery.min.js +6 -0
- data/node_modules/dc/web/docs/html/scripts/prettify/lang-css.js +21 -0
- data/node_modules/dc/web/docs/html/scripts/prettify/prettify.js +496 -0
- data/node_modules/dc/web/docs/html/scripts/sunlight.js +1157 -0
- data/node_modules/dc/web/docs/html/scripts/toc.js +203 -0
- data/node_modules/dc/web/ep/list.js +106 -0
- data/node_modules/dc/web/examples/lysenko-interval-tree.js +447 -0
- data/node_modules/dc/web/highlighter/shAutoloader.js +17 -0
- data/node_modules/dc/web/highlighter/shBrushJScript.js +52 -0
- data/node_modules/dc/web/highlighter/shBrushXml.js +69 -0
- data/node_modules/dc/web/highlighter/shCore.js +17 -0
- data/node_modules/dc/web/js/colorbrewer.js +1 -0
- data/node_modules/dc/web/js/crossfilter.js +1401 -0
- data/node_modules/dc/web/js/d3.js +9554 -0
- data/node_modules/dc/web/js/dc.js +10477 -0
- data/node_modules/dc/web/js/dc.min.js +23 -0
- data/node_modules/dc/web/js/env-data.js +218 -0
- data/node_modules/dc/web/js/jasmine-jsreporter.js +394 -0
- data/node_modules/dc/web/stock.js +685 -0
- data/node_modules/dc/web/transitions/transition-test.js +45 -0
- data/node_modules/jquery/dist/jquery.js +9814 -0
- data/node_modules/jquery/dist/jquery.min.js +4 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/node_modules/jquery/src/ajax.js +845 -0
- data/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/node_modules/jquery/src/ajax/load.js +83 -0
- data/node_modules/jquery/src/ajax/parseJSON.js +13 -0
- data/node_modules/jquery/src/ajax/parseXML.js +27 -0
- data/node_modules/jquery/src/ajax/script.js +68 -0
- data/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/node_modules/jquery/src/ajax/xhr.js +167 -0
- data/node_modules/jquery/src/attributes.js +11 -0
- data/node_modules/jquery/src/attributes/attr.js +142 -0
- data/node_modules/jquery/src/attributes/classes.js +177 -0
- data/node_modules/jquery/src/attributes/prop.js +125 -0
- data/node_modules/jquery/src/attributes/support.js +36 -0
- data/node_modules/jquery/src/attributes/val.js +177 -0
- data/node_modules/jquery/src/callbacks.js +232 -0
- data/node_modules/jquery/src/core.js +494 -0
- data/node_modules/jquery/src/core/access.js +65 -0
- data/node_modules/jquery/src/core/init.js +134 -0
- data/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/node_modules/jquery/src/core/ready.js +103 -0
- data/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/node_modules/jquery/src/css.js +502 -0
- data/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/node_modules/jquery/src/css/curCSS.js +60 -0
- data/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/node_modules/jquery/src/css/showHide.js +48 -0
- data/node_modules/jquery/src/css/support.js +121 -0
- data/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/node_modules/jquery/src/css/var/getStyles.js +15 -0
- data/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/node_modules/jquery/src/css/var/swap.js +24 -0
- data/node_modules/jquery/src/data.js +187 -0
- data/node_modules/jquery/src/data/Data.js +200 -0
- data/node_modules/jquery/src/data/var/acceptData.js +18 -0
- data/node_modules/jquery/src/data/var/dataPriv.js +5 -0
- data/node_modules/jquery/src/data/var/dataUser.js +5 -0
- data/node_modules/jquery/src/deferred.js +158 -0
- data/node_modules/jquery/src/deprecated.js +32 -0
- data/node_modules/jquery/src/dimensions.js +54 -0
- data/node_modules/jquery/src/effects.js +629 -0
- data/node_modules/jquery/src/effects/Tween.js +121 -0
- data/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/node_modules/jquery/src/event.js +711 -0
- data/node_modules/jquery/src/event/ajax.js +20 -0
- data/node_modules/jquery/src/event/alias.js +27 -0
- data/node_modules/jquery/src/event/focusin.js +53 -0
- data/node_modules/jquery/src/event/support.js +9 -0
- data/node_modules/jquery/src/event/trigger.js +183 -0
- data/node_modules/jquery/src/exports/amd.js +24 -0
- data/node_modules/jquery/src/exports/global.js +26 -0
- data/node_modules/jquery/src/intro.js +44 -0
- data/node_modules/jquery/src/jquery.js +37 -0
- data/node_modules/jquery/src/manipulation.js +481 -0
- data/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
- data/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
- data/node_modules/jquery/src/manipulation/getAll.js +21 -0
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/node_modules/jquery/src/manipulation/support.js +33 -0
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
- data/node_modules/jquery/src/offset.js +218 -0
- data/node_modules/jquery/src/outro.js +2 -0
- data/node_modules/jquery/src/queue.js +143 -0
- data/node_modules/jquery/src/queue/delay.js +22 -0
- data/node_modules/jquery/src/selector-native.js +211 -0
- data/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/node_modules/jquery/src/selector.js +1 -0
- data/node_modules/jquery/src/serialize.js +125 -0
- data/node_modules/jquery/src/traversing.js +175 -0
- data/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/node_modules/jquery/src/var/arr.js +3 -0
- data/node_modules/jquery/src/var/class2type.js +5 -0
- data/node_modules/jquery/src/var/concat.js +5 -0
- data/node_modules/jquery/src/var/document.js +3 -0
- data/node_modules/jquery/src/var/documentElement.js +5 -0
- data/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/node_modules/jquery/src/var/indexOf.js +5 -0
- data/node_modules/jquery/src/var/pnum.js +3 -0
- data/node_modules/jquery/src/var/push.js +5 -0
- data/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/node_modules/jquery/src/var/slice.js +5 -0
- data/node_modules/jquery/src/var/support.js +5 -0
- data/node_modules/jquery/src/var/toString.js +5 -0
- data/node_modules/jquery/src/wrap.js +79 -0
- data/target/mdarray_sol.jar +0 -0
- data/test/jx/test_complete.rb +35 -0
- data/test/jx/test_js.rb +543 -0
- data/test/jx/test_proxy_array.rb +239 -0
- data/test/jx/test_proxy_hash.rb +160 -0
- data/test/jx/test_proxy_lambda.rb +80 -0
- data/test/jx/test_rb_js_compat.rb +135 -0
- data/test/jx/test_style_sheets.rb +90 -0
- data/test/mdarray/test_mdarray.rb +75 -0
- data/util/cacert.pem +4095 -0
- data/util/download.rb +256 -0
- data/vendor/jxbrowser-6.8.jar +0 -0
- data/vendor/licence.jar +0 -0
- data/version.rb +2 -0
- metadata +817 -0
@@ -0,0 +1,160 @@
|
|
1
|
+
import "../core/array";
|
2
|
+
import "../core/identity";
|
3
|
+
import "../math/trigonometry";
|
4
|
+
import "../scale/linear";
|
5
|
+
import "../scale/scale";
|
6
|
+
import "../selection/selection";
|
7
|
+
import "../transition/transition";
|
8
|
+
import "svg";
|
9
|
+
|
10
|
+
d3.svg.axis = function() {
|
11
|
+
var scale = d3.scale.linear(),
|
12
|
+
orient = d3_svg_axisDefaultOrient,
|
13
|
+
innerTickSize = 6,
|
14
|
+
outerTickSize = 6,
|
15
|
+
tickPadding = 3,
|
16
|
+
tickArguments_ = [10],
|
17
|
+
tickValues = null,
|
18
|
+
tickFormat_;
|
19
|
+
|
20
|
+
function axis(g) {
|
21
|
+
g.each(function() {
|
22
|
+
var g = d3.select(this);
|
23
|
+
|
24
|
+
// Stash a snapshot of the new scale, and retrieve the old snapshot.
|
25
|
+
var scale0 = this.__chart__ || scale,
|
26
|
+
scale1 = this.__chart__ = scale.copy();
|
27
|
+
|
28
|
+
// Ticks, or domain values for ordinal scales.
|
29
|
+
var ticks = tickValues == null ? (scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain()) : tickValues,
|
30
|
+
tickFormat = tickFormat_ == null ? (scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity) : tickFormat_,
|
31
|
+
tick = g.selectAll(".tick").data(ticks, scale1),
|
32
|
+
tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", ε),
|
33
|
+
tickExit = d3.transition(tick.exit()).style("opacity", ε).remove(),
|
34
|
+
tickUpdate = d3.transition(tick.order()).style("opacity", 1),
|
35
|
+
tickSpacing = Math.max(innerTickSize, 0) + tickPadding,
|
36
|
+
tickTransform;
|
37
|
+
|
38
|
+
// Domain.
|
39
|
+
var range = d3_scaleRange(scale1),
|
40
|
+
path = g.selectAll(".domain").data([0]),
|
41
|
+
pathUpdate = (path.enter().append("path").attr("class", "domain"), d3.transition(path));
|
42
|
+
|
43
|
+
tickEnter.append("line");
|
44
|
+
tickEnter.append("text");
|
45
|
+
|
46
|
+
var lineEnter = tickEnter.select("line"),
|
47
|
+
lineUpdate = tickUpdate.select("line"),
|
48
|
+
text = tick.select("text").text(tickFormat),
|
49
|
+
textEnter = tickEnter.select("text"),
|
50
|
+
textUpdate = tickUpdate.select("text"),
|
51
|
+
sign = orient === "top" || orient === "left" ? -1 : 1,
|
52
|
+
x1, x2, y1, y2;
|
53
|
+
|
54
|
+
if (orient === "bottom" || orient === "top") {
|
55
|
+
tickTransform = d3_svg_axisX, x1 = "x", y1 = "y", x2 = "x2", y2 = "y2";
|
56
|
+
text.attr("dy", sign < 0 ? "0em" : ".71em").style("text-anchor", "middle");
|
57
|
+
pathUpdate.attr("d", "M" + range[0] + "," + sign * outerTickSize + "V0H" + range[1] + "V" + sign * outerTickSize);
|
58
|
+
} else {
|
59
|
+
tickTransform = d3_svg_axisY, x1 = "y", y1 = "x", x2 = "y2", y2 = "x2";
|
60
|
+
text.attr("dy", ".32em").style("text-anchor", sign < 0 ? "end" : "start");
|
61
|
+
pathUpdate.attr("d", "M" + sign * outerTickSize + "," + range[0] + "H0V" + range[1] + "H" + sign * outerTickSize);
|
62
|
+
}
|
63
|
+
|
64
|
+
lineEnter.attr(y2, sign * innerTickSize);
|
65
|
+
textEnter.attr(y1, sign * tickSpacing);
|
66
|
+
lineUpdate.attr(x2, 0).attr(y2, sign * innerTickSize);
|
67
|
+
textUpdate.attr(x1, 0).attr(y1, sign * tickSpacing);
|
68
|
+
|
69
|
+
// If either the new or old scale is ordinal,
|
70
|
+
// entering ticks are undefined in the old scale,
|
71
|
+
// and so can fade-in in the new scale’s position.
|
72
|
+
// Exiting ticks are likewise undefined in the new scale,
|
73
|
+
// and so can fade-out in the old scale’s position.
|
74
|
+
if (scale1.rangeBand) {
|
75
|
+
var x = scale1, dx = x.rangeBand() / 2;
|
76
|
+
scale0 = scale1 = function(d) { return x(d) + dx; };
|
77
|
+
} else if (scale0.rangeBand) {
|
78
|
+
scale0 = scale1;
|
79
|
+
} else {
|
80
|
+
tickExit.call(tickTransform, scale1, scale0);
|
81
|
+
}
|
82
|
+
|
83
|
+
tickEnter.call(tickTransform, scale0, scale1);
|
84
|
+
tickUpdate.call(tickTransform, scale1, scale1);
|
85
|
+
});
|
86
|
+
}
|
87
|
+
|
88
|
+
axis.scale = function(x) {
|
89
|
+
if (!arguments.length) return scale;
|
90
|
+
scale = x;
|
91
|
+
return axis;
|
92
|
+
};
|
93
|
+
|
94
|
+
axis.orient = function(x) {
|
95
|
+
if (!arguments.length) return orient;
|
96
|
+
orient = x in d3_svg_axisOrients ? x + "" : d3_svg_axisDefaultOrient;
|
97
|
+
return axis;
|
98
|
+
};
|
99
|
+
|
100
|
+
axis.ticks = function() {
|
101
|
+
if (!arguments.length) return tickArguments_;
|
102
|
+
tickArguments_ = d3_array(arguments);
|
103
|
+
return axis;
|
104
|
+
};
|
105
|
+
|
106
|
+
axis.tickValues = function(x) {
|
107
|
+
if (!arguments.length) return tickValues;
|
108
|
+
tickValues = x;
|
109
|
+
return axis;
|
110
|
+
};
|
111
|
+
|
112
|
+
axis.tickFormat = function(x) {
|
113
|
+
if (!arguments.length) return tickFormat_;
|
114
|
+
tickFormat_ = x;
|
115
|
+
return axis;
|
116
|
+
};
|
117
|
+
|
118
|
+
axis.tickSize = function(x) {
|
119
|
+
var n = arguments.length;
|
120
|
+
if (!n) return innerTickSize;
|
121
|
+
innerTickSize = +x;
|
122
|
+
outerTickSize = +arguments[n - 1];
|
123
|
+
return axis;
|
124
|
+
};
|
125
|
+
|
126
|
+
axis.innerTickSize = function(x) {
|
127
|
+
if (!arguments.length) return innerTickSize;
|
128
|
+
innerTickSize = +x;
|
129
|
+
return axis;
|
130
|
+
};
|
131
|
+
|
132
|
+
axis.outerTickSize = function(x) {
|
133
|
+
if (!arguments.length) return outerTickSize;
|
134
|
+
outerTickSize = +x;
|
135
|
+
return axis;
|
136
|
+
};
|
137
|
+
|
138
|
+
axis.tickPadding = function(x) {
|
139
|
+
if (!arguments.length) return tickPadding;
|
140
|
+
tickPadding = +x;
|
141
|
+
return axis;
|
142
|
+
};
|
143
|
+
|
144
|
+
axis.tickSubdivide = function() {
|
145
|
+
return arguments.length && axis;
|
146
|
+
};
|
147
|
+
|
148
|
+
return axis;
|
149
|
+
};
|
150
|
+
|
151
|
+
var d3_svg_axisDefaultOrient = "bottom",
|
152
|
+
d3_svg_axisOrients = {top: 1, right: 1, bottom: 1, left: 1};
|
153
|
+
|
154
|
+
function d3_svg_axisX(selection, x0, x1) {
|
155
|
+
selection.attr("transform", function(d) { var v0 = x0(d); return "translate(" + (isFinite(v0) ? v0 : x1(d)) + ",0)"; });
|
156
|
+
}
|
157
|
+
|
158
|
+
function d3_svg_axisY(selection, y0, y1) {
|
159
|
+
selection.attr("transform", function(d) { var v0 = y0(d); return "translate(0," + (isFinite(v0) ? v0 : y1(d)) + ")"; });
|
160
|
+
}
|
@@ -0,0 +1,429 @@
|
|
1
|
+
import "../core/identity";
|
2
|
+
import "../core/document";
|
3
|
+
import "../core/rebind";
|
4
|
+
import "../event/drag";
|
5
|
+
import "../event/event";
|
6
|
+
import "../event/mouse";
|
7
|
+
import "../scale/scale";
|
8
|
+
import "../selection/selection";
|
9
|
+
import "svg";
|
10
|
+
|
11
|
+
d3.svg.brush = function() {
|
12
|
+
var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"),
|
13
|
+
x = null, // x-scale, optional
|
14
|
+
y = null, // y-scale, optional
|
15
|
+
xExtent = [0, 0], // [x0, x1] in integer pixels
|
16
|
+
yExtent = [0, 0], // [y0, y1] in integer pixels
|
17
|
+
xExtentDomain, // x-extent in data space
|
18
|
+
yExtentDomain, // y-extent in data space
|
19
|
+
xClamp = true, // whether to clamp the x-extent to the range
|
20
|
+
yClamp = true, // whether to clamp the y-extent to the range
|
21
|
+
resizes = d3_svg_brushResizes[0];
|
22
|
+
|
23
|
+
function brush(g) {
|
24
|
+
g.each(function() {
|
25
|
+
|
26
|
+
// Prepare the brush container for events.
|
27
|
+
var g = d3.select(this)
|
28
|
+
.style("pointer-events", "all")
|
29
|
+
.style("-webkit-tap-highlight-color", "rgba(0,0,0,0)")
|
30
|
+
.on("mousedown.brush", brushstart)
|
31
|
+
.on("touchstart.brush", brushstart);
|
32
|
+
|
33
|
+
// An invisible, mouseable area for starting a new brush.
|
34
|
+
var background = g.selectAll(".background")
|
35
|
+
.data([0]);
|
36
|
+
|
37
|
+
background.enter().append("rect")
|
38
|
+
.attr("class", "background")
|
39
|
+
.style("visibility", "hidden")
|
40
|
+
.style("cursor", "crosshair");
|
41
|
+
|
42
|
+
// The visible brush extent; style this as you like!
|
43
|
+
g.selectAll(".extent")
|
44
|
+
.data([0])
|
45
|
+
.enter().append("rect")
|
46
|
+
.attr("class", "extent")
|
47
|
+
.style("cursor", "move");
|
48
|
+
|
49
|
+
// More invisible rects for resizing the extent.
|
50
|
+
var resize = g.selectAll(".resize")
|
51
|
+
.data(resizes, d3_identity);
|
52
|
+
|
53
|
+
// Remove any superfluous resizers.
|
54
|
+
resize.exit().remove();
|
55
|
+
|
56
|
+
resize.enter().append("g")
|
57
|
+
.attr("class", function(d) { return "resize " + d; })
|
58
|
+
.style("cursor", function(d) { return d3_svg_brushCursor[d]; })
|
59
|
+
.append("rect")
|
60
|
+
.attr("x", function(d) { return /[ew]$/.test(d) ? -3 : null; })
|
61
|
+
.attr("y", function(d) { return /^[ns]/.test(d) ? -3 : null; })
|
62
|
+
.attr("width", 6)
|
63
|
+
.attr("height", 6)
|
64
|
+
.style("visibility", "hidden");
|
65
|
+
|
66
|
+
// Show or hide the resizers.
|
67
|
+
resize.style("display", brush.empty() ? "none" : null);
|
68
|
+
|
69
|
+
// When called on a transition, use a transition to update.
|
70
|
+
var gUpdate = d3.transition(g),
|
71
|
+
backgroundUpdate = d3.transition(background),
|
72
|
+
range;
|
73
|
+
|
74
|
+
// Initialize the background to fill the defined range.
|
75
|
+
// If the range isn't defined, you can post-process.
|
76
|
+
if (x) {
|
77
|
+
range = d3_scaleRange(x);
|
78
|
+
backgroundUpdate.attr("x", range[0]).attr("width", range[1] - range[0]);
|
79
|
+
redrawX(gUpdate);
|
80
|
+
}
|
81
|
+
if (y) {
|
82
|
+
range = d3_scaleRange(y);
|
83
|
+
backgroundUpdate.attr("y", range[0]).attr("height", range[1] - range[0]);
|
84
|
+
redrawY(gUpdate);
|
85
|
+
}
|
86
|
+
redraw(gUpdate);
|
87
|
+
});
|
88
|
+
}
|
89
|
+
|
90
|
+
brush.event = function(g) {
|
91
|
+
g.each(function() {
|
92
|
+
var event_ = event.of(this, arguments),
|
93
|
+
extent1 = {x: xExtent, y: yExtent, i: xExtentDomain, j: yExtentDomain},
|
94
|
+
extent0 = this.__chart__ || extent1;
|
95
|
+
this.__chart__ = extent1;
|
96
|
+
if (d3_transitionInheritId) {
|
97
|
+
d3.select(this).transition()
|
98
|
+
.each("start.brush", function() {
|
99
|
+
xExtentDomain = extent0.i; // pre-transition state
|
100
|
+
yExtentDomain = extent0.j;
|
101
|
+
xExtent = extent0.x;
|
102
|
+
yExtent = extent0.y;
|
103
|
+
event_({type: "brushstart"});
|
104
|
+
})
|
105
|
+
.tween("brush:brush", function() {
|
106
|
+
var xi = d3_interpolateArray(xExtent, extent1.x),
|
107
|
+
yi = d3_interpolateArray(yExtent, extent1.y);
|
108
|
+
xExtentDomain = yExtentDomain = null; // transition state
|
109
|
+
return function(t) {
|
110
|
+
xExtent = extent1.x = xi(t);
|
111
|
+
yExtent = extent1.y = yi(t);
|
112
|
+
event_({type: "brush", mode: "resize"});
|
113
|
+
};
|
114
|
+
})
|
115
|
+
.each("end.brush", function() {
|
116
|
+
xExtentDomain = extent1.i; // post-transition state
|
117
|
+
yExtentDomain = extent1.j;
|
118
|
+
event_({type: "brush", mode: "resize"});
|
119
|
+
event_({type: "brushend"});
|
120
|
+
});
|
121
|
+
} else {
|
122
|
+
event_({type: "brushstart"});
|
123
|
+
event_({type: "brush", mode: "resize"});
|
124
|
+
event_({type: "brushend"});
|
125
|
+
}
|
126
|
+
});
|
127
|
+
};
|
128
|
+
|
129
|
+
function redraw(g) {
|
130
|
+
g.selectAll(".resize").attr("transform", function(d) {
|
131
|
+
return "translate(" + xExtent[+/e$/.test(d)] + "," + yExtent[+/^s/.test(d)] + ")";
|
132
|
+
});
|
133
|
+
}
|
134
|
+
|
135
|
+
function redrawX(g) {
|
136
|
+
g.select(".extent").attr("x", xExtent[0]);
|
137
|
+
g.selectAll(".extent,.n>rect,.s>rect").attr("width", xExtent[1] - xExtent[0]);
|
138
|
+
}
|
139
|
+
|
140
|
+
function redrawY(g) {
|
141
|
+
g.select(".extent").attr("y", yExtent[0]);
|
142
|
+
g.selectAll(".extent,.e>rect,.w>rect").attr("height", yExtent[1] - yExtent[0]);
|
143
|
+
}
|
144
|
+
|
145
|
+
function brushstart() {
|
146
|
+
var target = this,
|
147
|
+
eventTarget = d3.select(d3.event.target),
|
148
|
+
event_ = event.of(target, arguments),
|
149
|
+
g = d3.select(target),
|
150
|
+
resizing = eventTarget.datum(),
|
151
|
+
resizingX = !/^(n|s)$/.test(resizing) && x,
|
152
|
+
resizingY = !/^(e|w)$/.test(resizing) && y,
|
153
|
+
dragging = eventTarget.classed("extent"),
|
154
|
+
dragRestore = d3_event_dragSuppress(target),
|
155
|
+
center,
|
156
|
+
origin = d3.mouse(target),
|
157
|
+
offset;
|
158
|
+
|
159
|
+
var w = d3.select(d3_window(target))
|
160
|
+
.on("keydown.brush", keydown)
|
161
|
+
.on("keyup.brush", keyup);
|
162
|
+
|
163
|
+
if (d3.event.changedTouches) {
|
164
|
+
w.on("touchmove.brush", brushmove).on("touchend.brush", brushend);
|
165
|
+
} else {
|
166
|
+
w.on("mousemove.brush", brushmove).on("mouseup.brush", brushend);
|
167
|
+
}
|
168
|
+
|
169
|
+
// Interrupt the transition, if any.
|
170
|
+
g.interrupt().selectAll("*").interrupt();
|
171
|
+
|
172
|
+
// If the extent was clicked on, drag rather than brush;
|
173
|
+
// store the point between the mouse and extent origin instead.
|
174
|
+
if (dragging) {
|
175
|
+
origin[0] = xExtent[0] - origin[0];
|
176
|
+
origin[1] = yExtent[0] - origin[1];
|
177
|
+
}
|
178
|
+
|
179
|
+
// If a resizer was clicked on, record which side is to be resized.
|
180
|
+
// Also, set the origin to the opposite side.
|
181
|
+
else if (resizing) {
|
182
|
+
var ex = +/w$/.test(resizing),
|
183
|
+
ey = +/^n/.test(resizing);
|
184
|
+
offset = [xExtent[1 - ex] - origin[0], yExtent[1 - ey] - origin[1]];
|
185
|
+
origin[0] = xExtent[ex];
|
186
|
+
origin[1] = yExtent[ey];
|
187
|
+
}
|
188
|
+
|
189
|
+
// If the ALT key is down when starting a brush, the center is at the mouse.
|
190
|
+
else if (d3.event.altKey) center = origin.slice();
|
191
|
+
|
192
|
+
// Propagate the active cursor to the body for the drag duration.
|
193
|
+
g.style("pointer-events", "none").selectAll(".resize").style("display", null);
|
194
|
+
d3.select("body").style("cursor", eventTarget.style("cursor"));
|
195
|
+
|
196
|
+
// Notify listeners.
|
197
|
+
event_({type: "brushstart"});
|
198
|
+
brushmove();
|
199
|
+
|
200
|
+
function keydown() {
|
201
|
+
if (d3.event.keyCode == 32) {
|
202
|
+
if (!dragging) {
|
203
|
+
center = null;
|
204
|
+
origin[0] -= xExtent[1];
|
205
|
+
origin[1] -= yExtent[1];
|
206
|
+
dragging = 2;
|
207
|
+
}
|
208
|
+
d3_eventPreventDefault();
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
function keyup() {
|
213
|
+
if (d3.event.keyCode == 32 && dragging == 2) {
|
214
|
+
origin[0] += xExtent[1];
|
215
|
+
origin[1] += yExtent[1];
|
216
|
+
dragging = 0;
|
217
|
+
d3_eventPreventDefault();
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
function brushmove() {
|
222
|
+
var point = d3.mouse(target),
|
223
|
+
moved = false;
|
224
|
+
|
225
|
+
// Preserve the offset for thick resizers.
|
226
|
+
if (offset) {
|
227
|
+
point[0] += offset[0];
|
228
|
+
point[1] += offset[1];
|
229
|
+
}
|
230
|
+
|
231
|
+
if (!dragging) {
|
232
|
+
|
233
|
+
// If needed, determine the center from the current extent.
|
234
|
+
if (d3.event.altKey) {
|
235
|
+
if (!center) center = [(xExtent[0] + xExtent[1]) / 2, (yExtent[0] + yExtent[1]) / 2];
|
236
|
+
|
237
|
+
// Update the origin, for when the ALT key is released.
|
238
|
+
origin[0] = xExtent[+(point[0] < center[0])];
|
239
|
+
origin[1] = yExtent[+(point[1] < center[1])];
|
240
|
+
}
|
241
|
+
|
242
|
+
// When the ALT key is released, we clear the center.
|
243
|
+
else center = null;
|
244
|
+
}
|
245
|
+
|
246
|
+
// Update the brush extent for each dimension.
|
247
|
+
if (resizingX && move1(point, x, 0)) {
|
248
|
+
redrawX(g);
|
249
|
+
moved = true;
|
250
|
+
}
|
251
|
+
if (resizingY && move1(point, y, 1)) {
|
252
|
+
redrawY(g);
|
253
|
+
moved = true;
|
254
|
+
}
|
255
|
+
|
256
|
+
// Final redraw and notify listeners.
|
257
|
+
if (moved) {
|
258
|
+
redraw(g);
|
259
|
+
event_({type: "brush", mode: dragging ? "move" : "resize"});
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
function move1(point, scale, i) {
|
264
|
+
var range = d3_scaleRange(scale),
|
265
|
+
r0 = range[0],
|
266
|
+
r1 = range[1],
|
267
|
+
position = origin[i],
|
268
|
+
extent = i ? yExtent : xExtent,
|
269
|
+
size = extent[1] - extent[0],
|
270
|
+
min,
|
271
|
+
max;
|
272
|
+
|
273
|
+
// When dragging, reduce the range by the extent size and position.
|
274
|
+
if (dragging) {
|
275
|
+
r0 -= position;
|
276
|
+
r1 -= size + position;
|
277
|
+
}
|
278
|
+
|
279
|
+
// Clamp the point (unless clamp set to false) so that the extent fits within the range extent.
|
280
|
+
min = (i ? yClamp : xClamp) ? Math.max(r0, Math.min(r1, point[i])) : point[i];
|
281
|
+
|
282
|
+
// Compute the new extent bounds.
|
283
|
+
if (dragging) {
|
284
|
+
max = (min += position) + size;
|
285
|
+
} else {
|
286
|
+
|
287
|
+
// If the ALT key is pressed, then preserve the center of the extent.
|
288
|
+
if (center) position = Math.max(r0, Math.min(r1, 2 * center[i] - min));
|
289
|
+
|
290
|
+
// Compute the min and max of the position and point.
|
291
|
+
if (position < min) {
|
292
|
+
max = min;
|
293
|
+
min = position;
|
294
|
+
} else {
|
295
|
+
max = position;
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
// Update the stored bounds.
|
300
|
+
if (extent[0] != min || extent[1] != max) {
|
301
|
+
if (i) yExtentDomain = null;
|
302
|
+
else xExtentDomain = null;
|
303
|
+
extent[0] = min;
|
304
|
+
extent[1] = max;
|
305
|
+
return true;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
|
309
|
+
function brushend() {
|
310
|
+
brushmove();
|
311
|
+
|
312
|
+
// reset the cursor styles
|
313
|
+
g.style("pointer-events", "all").selectAll(".resize").style("display", brush.empty() ? "none" : null);
|
314
|
+
d3.select("body").style("cursor", null);
|
315
|
+
|
316
|
+
w .on("mousemove.brush", null)
|
317
|
+
.on("mouseup.brush", null)
|
318
|
+
.on("touchmove.brush", null)
|
319
|
+
.on("touchend.brush", null)
|
320
|
+
.on("keydown.brush", null)
|
321
|
+
.on("keyup.brush", null);
|
322
|
+
|
323
|
+
dragRestore();
|
324
|
+
event_({type: "brushend"});
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
brush.x = function(z) {
|
329
|
+
if (!arguments.length) return x;
|
330
|
+
x = z;
|
331
|
+
resizes = d3_svg_brushResizes[!x << 1 | !y]; // fore!
|
332
|
+
return brush;
|
333
|
+
};
|
334
|
+
|
335
|
+
brush.y = function(z) {
|
336
|
+
if (!arguments.length) return y;
|
337
|
+
y = z;
|
338
|
+
resizes = d3_svg_brushResizes[!x << 1 | !y]; // fore!
|
339
|
+
return brush;
|
340
|
+
};
|
341
|
+
|
342
|
+
brush.clamp = function(z) {
|
343
|
+
if (!arguments.length) return x && y ? [xClamp, yClamp] : x ? xClamp : y ? yClamp : null;
|
344
|
+
if (x && y) xClamp = !!z[0], yClamp = !!z[1];
|
345
|
+
else if (x) xClamp = !!z;
|
346
|
+
else if (y) yClamp = !!z;
|
347
|
+
return brush;
|
348
|
+
};
|
349
|
+
|
350
|
+
brush.extent = function(z) {
|
351
|
+
var x0, x1, y0, y1, t;
|
352
|
+
|
353
|
+
// Invert the pixel extent to data-space.
|
354
|
+
if (!arguments.length) {
|
355
|
+
if (x) {
|
356
|
+
if (xExtentDomain) {
|
357
|
+
x0 = xExtentDomain[0], x1 = xExtentDomain[1];
|
358
|
+
} else {
|
359
|
+
x0 = xExtent[0], x1 = xExtent[1];
|
360
|
+
if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);
|
361
|
+
if (x1 < x0) t = x0, x0 = x1, x1 = t;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
if (y) {
|
365
|
+
if (yExtentDomain) {
|
366
|
+
y0 = yExtentDomain[0], y1 = yExtentDomain[1];
|
367
|
+
} else {
|
368
|
+
y0 = yExtent[0], y1 = yExtent[1];
|
369
|
+
if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);
|
370
|
+
if (y1 < y0) t = y0, y0 = y1, y1 = t;
|
371
|
+
}
|
372
|
+
}
|
373
|
+
return x && y ? [[x0, y0], [x1, y1]] : x ? [x0, x1] : y && [y0, y1];
|
374
|
+
}
|
375
|
+
|
376
|
+
// Scale the data-space extent to pixels.
|
377
|
+
if (x) {
|
378
|
+
x0 = z[0], x1 = z[1];
|
379
|
+
if (y) x0 = x0[0], x1 = x1[0];
|
380
|
+
xExtentDomain = [x0, x1];
|
381
|
+
if (x.invert) x0 = x(x0), x1 = x(x1);
|
382
|
+
if (x1 < x0) t = x0, x0 = x1, x1 = t;
|
383
|
+
if (x0 != xExtent[0] || x1 != xExtent[1]) xExtent = [x0, x1]; // copy-on-write
|
384
|
+
}
|
385
|
+
if (y) {
|
386
|
+
y0 = z[0], y1 = z[1];
|
387
|
+
if (x) y0 = y0[1], y1 = y1[1];
|
388
|
+
yExtentDomain = [y0, y1];
|
389
|
+
if (y.invert) y0 = y(y0), y1 = y(y1);
|
390
|
+
if (y1 < y0) t = y0, y0 = y1, y1 = t;
|
391
|
+
if (y0 != yExtent[0] || y1 != yExtent[1]) yExtent = [y0, y1]; // copy-on-write
|
392
|
+
}
|
393
|
+
|
394
|
+
return brush;
|
395
|
+
};
|
396
|
+
|
397
|
+
brush.clear = function() {
|
398
|
+
if (!brush.empty()) {
|
399
|
+
xExtent = [0, 0], yExtent = [0, 0]; // copy-on-write
|
400
|
+
xExtentDomain = yExtentDomain = null;
|
401
|
+
}
|
402
|
+
return brush;
|
403
|
+
};
|
404
|
+
|
405
|
+
brush.empty = function() {
|
406
|
+
return !!x && xExtent[0] == xExtent[1]
|
407
|
+
|| !!y && yExtent[0] == yExtent[1];
|
408
|
+
};
|
409
|
+
|
410
|
+
return d3.rebind(brush, event, "on");
|
411
|
+
};
|
412
|
+
|
413
|
+
var d3_svg_brushCursor = {
|
414
|
+
n: "ns-resize",
|
415
|
+
e: "ew-resize",
|
416
|
+
s: "ns-resize",
|
417
|
+
w: "ew-resize",
|
418
|
+
nw: "nwse-resize",
|
419
|
+
ne: "nesw-resize",
|
420
|
+
se: "nwse-resize",
|
421
|
+
sw: "nesw-resize"
|
422
|
+
};
|
423
|
+
|
424
|
+
var d3_svg_brushResizes = [
|
425
|
+
["n", "e", "s", "w", "nw", "ne", "se", "sw"],
|
426
|
+
["e", "w"],
|
427
|
+
["n", "s"],
|
428
|
+
[]
|
429
|
+
];
|