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,64 @@
|
|
1
|
+
import "../../math/abs";
|
2
|
+
|
3
|
+
function d3_geom_voronoiCell(site) {
|
4
|
+
this.site = site;
|
5
|
+
this.edges = [];
|
6
|
+
}
|
7
|
+
|
8
|
+
d3_geom_voronoiCell.prototype.prepare = function() {
|
9
|
+
var halfEdges = this.edges,
|
10
|
+
iHalfEdge = halfEdges.length,
|
11
|
+
edge;
|
12
|
+
|
13
|
+
while (iHalfEdge--) {
|
14
|
+
edge = halfEdges[iHalfEdge].edge;
|
15
|
+
if (!edge.b || !edge.a) halfEdges.splice(iHalfEdge, 1);
|
16
|
+
}
|
17
|
+
|
18
|
+
halfEdges.sort(d3_geom_voronoiHalfEdgeOrder);
|
19
|
+
return halfEdges.length;
|
20
|
+
};
|
21
|
+
|
22
|
+
function d3_geom_voronoiCloseCells(extent) {
|
23
|
+
var x0 = extent[0][0],
|
24
|
+
x1 = extent[1][0],
|
25
|
+
y0 = extent[0][1],
|
26
|
+
y1 = extent[1][1],
|
27
|
+
x2,
|
28
|
+
y2,
|
29
|
+
x3,
|
30
|
+
y3,
|
31
|
+
cells = d3_geom_voronoiCells,
|
32
|
+
iCell = cells.length,
|
33
|
+
cell,
|
34
|
+
iHalfEdge,
|
35
|
+
halfEdges,
|
36
|
+
nHalfEdges,
|
37
|
+
start,
|
38
|
+
end;
|
39
|
+
|
40
|
+
while (iCell--) {
|
41
|
+
cell = cells[iCell];
|
42
|
+
if (!cell || !cell.prepare()) continue;
|
43
|
+
halfEdges = cell.edges;
|
44
|
+
nHalfEdges = halfEdges.length;
|
45
|
+
iHalfEdge = 0;
|
46
|
+
while (iHalfEdge < nHalfEdges) {
|
47
|
+
end = halfEdges[iHalfEdge].end(), x3 = end.x, y3 = end.y;
|
48
|
+
start = halfEdges[++iHalfEdge % nHalfEdges].start(), x2 = start.x, y2 = start.y;
|
49
|
+
if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {
|
50
|
+
halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end,
|
51
|
+
abs(x3 - x0) < ε && y1 - y3 > ε ? {x: x0, y: abs(x2 - x0) < ε ? y2 : y1}
|
52
|
+
: abs(y3 - y1) < ε && x1 - x3 > ε ? {x: abs(y2 - y1) < ε ? x2 : x1, y: y1}
|
53
|
+
: abs(x3 - x1) < ε && y3 - y0 > ε ? {x: x1, y: abs(x2 - x1) < ε ? y2 : y0}
|
54
|
+
: abs(y3 - y0) < ε && x3 - x0 > ε ? {x: abs(y2 - y0) < ε ? x2 : x0, y: y0}
|
55
|
+
: null), cell.site, null));
|
56
|
+
++nHalfEdges;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
function d3_geom_voronoiHalfEdgeOrder(a, b) {
|
63
|
+
return b.angle - a.angle;
|
64
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
function d3_geom_voronoiCircle() {
|
2
|
+
d3_geom_voronoiRedBlackNode(this);
|
3
|
+
this.x =
|
4
|
+
this.y =
|
5
|
+
this.arc =
|
6
|
+
this.site =
|
7
|
+
this.cy = null;
|
8
|
+
}
|
9
|
+
|
10
|
+
function d3_geom_voronoiAttachCircle(arc) {
|
11
|
+
var lArc = arc.P,
|
12
|
+
rArc = arc.N;
|
13
|
+
|
14
|
+
if (!lArc || !rArc) return;
|
15
|
+
|
16
|
+
var lSite = lArc.site,
|
17
|
+
cSite = arc.site,
|
18
|
+
rSite = rArc.site;
|
19
|
+
|
20
|
+
if (lSite === rSite) return;
|
21
|
+
|
22
|
+
var bx = cSite.x,
|
23
|
+
by = cSite.y,
|
24
|
+
ax = lSite.x - bx,
|
25
|
+
ay = lSite.y - by,
|
26
|
+
cx = rSite.x - bx,
|
27
|
+
cy = rSite.y - by;
|
28
|
+
|
29
|
+
var d = 2 * (ax * cy - ay * cx);
|
30
|
+
if (d >= -ε2) return;
|
31
|
+
|
32
|
+
var ha = ax * ax + ay * ay,
|
33
|
+
hc = cx * cx + cy * cy,
|
34
|
+
x = (cy * ha - ay * hc) / d,
|
35
|
+
y = (ax * hc - cx * ha) / d,
|
36
|
+
cy = y + by;
|
37
|
+
|
38
|
+
var circle = d3_geom_voronoiCirclePool.pop() || new d3_geom_voronoiCircle;
|
39
|
+
circle.arc = arc;
|
40
|
+
circle.site = cSite;
|
41
|
+
circle.x = x + bx;
|
42
|
+
circle.y = cy + Math.sqrt(x * x + y * y); // y bottom
|
43
|
+
circle.cy = cy;
|
44
|
+
|
45
|
+
arc.circle = circle;
|
46
|
+
|
47
|
+
var before = null,
|
48
|
+
node = d3_geom_voronoiCircles._;
|
49
|
+
|
50
|
+
while (node) {
|
51
|
+
if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {
|
52
|
+
if (node.L) node = node.L;
|
53
|
+
else { before = node.P; break; }
|
54
|
+
} else {
|
55
|
+
if (node.R) node = node.R;
|
56
|
+
else { before = node; break; }
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
d3_geom_voronoiCircles.insert(before, circle);
|
61
|
+
if (!before) d3_geom_voronoiFirstCircle = circle;
|
62
|
+
}
|
63
|
+
|
64
|
+
function d3_geom_voronoiDetachCircle(arc) {
|
65
|
+
var circle = arc.circle;
|
66
|
+
if (circle) {
|
67
|
+
if (!circle.P) d3_geom_voronoiFirstCircle = circle.N;
|
68
|
+
d3_geom_voronoiCircles.remove(circle);
|
69
|
+
d3_geom_voronoiCirclePool.push(circle);
|
70
|
+
d3_geom_voronoiRedBlackNode(circle);
|
71
|
+
arc.circle = null;
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import "../../math/abs";
|
2
|
+
import "../clip-line";
|
3
|
+
|
4
|
+
function d3_geom_voronoiClipEdges(extent) {
|
5
|
+
var edges = d3_geom_voronoiEdges,
|
6
|
+
clip = d3_geom_clipLine(extent[0][0], extent[0][1], extent[1][0], extent[1][1]),
|
7
|
+
i = edges.length,
|
8
|
+
e;
|
9
|
+
while (i--) {
|
10
|
+
e = edges[i];
|
11
|
+
if (!d3_geom_voronoiConnectEdge(e, extent)
|
12
|
+
|| !clip(e)
|
13
|
+
|| (abs(e.a.x - e.b.x) < ε && abs(e.a.y - e.b.y) < ε)) {
|
14
|
+
e.a = e.b = null;
|
15
|
+
edges.splice(i, 1);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
function d3_geom_voronoiConnectEdge(edge, extent) {
|
21
|
+
var vb = edge.b;
|
22
|
+
if (vb) return true;
|
23
|
+
|
24
|
+
var va = edge.a,
|
25
|
+
x0 = extent[0][0],
|
26
|
+
x1 = extent[1][0],
|
27
|
+
y0 = extent[0][1],
|
28
|
+
y1 = extent[1][1],
|
29
|
+
lSite = edge.l,
|
30
|
+
rSite = edge.r,
|
31
|
+
lx = lSite.x,
|
32
|
+
ly = lSite.y,
|
33
|
+
rx = rSite.x,
|
34
|
+
ry = rSite.y,
|
35
|
+
fx = (lx + rx) / 2,
|
36
|
+
fy = (ly + ry) / 2,
|
37
|
+
fm,
|
38
|
+
fb;
|
39
|
+
|
40
|
+
if (ry === ly) {
|
41
|
+
if (fx < x0 || fx >= x1) return;
|
42
|
+
if (lx > rx) {
|
43
|
+
if (!va) va = {x: fx, y: y0};
|
44
|
+
else if (va.y >= y1) return;
|
45
|
+
vb = {x: fx, y: y1};
|
46
|
+
} else {
|
47
|
+
if (!va) va = {x: fx, y: y1};
|
48
|
+
else if (va.y < y0) return;
|
49
|
+
vb = {x: fx, y: y0};
|
50
|
+
}
|
51
|
+
} else {
|
52
|
+
fm = (lx - rx) / (ry - ly);
|
53
|
+
fb = fy - fm * fx;
|
54
|
+
if (fm < -1 || fm > 1) {
|
55
|
+
if (lx > rx) {
|
56
|
+
if (!va) va = {x: (y0 - fb) / fm, y: y0};
|
57
|
+
else if (va.y >= y1) return;
|
58
|
+
vb = {x: (y1 - fb) / fm, y: y1};
|
59
|
+
} else {
|
60
|
+
if (!va) va = {x: (y1 - fb) / fm, y: y1};
|
61
|
+
else if (va.y < y0) return;
|
62
|
+
vb = {x: (y0 - fb) / fm, y: y0};
|
63
|
+
}
|
64
|
+
} else {
|
65
|
+
if (ly < ry) {
|
66
|
+
if (!va) va = {x: x0, y: fm * x0 + fb};
|
67
|
+
else if (va.x >= x1) return;
|
68
|
+
vb = {x: x1, y: fm * x1 + fb};
|
69
|
+
} else {
|
70
|
+
if (!va) va = {x: x1, y: fm * x1 + fb};
|
71
|
+
else if (va.x < x0) return;
|
72
|
+
vb = {x: x0, y: fm * x0 + fb};
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
edge.a = va;
|
78
|
+
edge.b = vb;
|
79
|
+
return true;
|
80
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
function d3_geom_voronoiEdge(lSite, rSite) {
|
2
|
+
this.l = lSite;
|
3
|
+
this.r = rSite;
|
4
|
+
this.a = this.b = null; // for border edges
|
5
|
+
}
|
6
|
+
|
7
|
+
function d3_geom_voronoiCreateEdge(lSite, rSite, va, vb) {
|
8
|
+
var edge = new d3_geom_voronoiEdge(lSite, rSite);
|
9
|
+
d3_geom_voronoiEdges.push(edge);
|
10
|
+
if (va) d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, va);
|
11
|
+
if (vb) d3_geom_voronoiSetEdgeEnd(edge, rSite, lSite, vb);
|
12
|
+
d3_geom_voronoiCells[lSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, lSite, rSite));
|
13
|
+
d3_geom_voronoiCells[rSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, rSite, lSite));
|
14
|
+
return edge;
|
15
|
+
}
|
16
|
+
|
17
|
+
function d3_geom_voronoiCreateBorderEdge(lSite, va, vb) {
|
18
|
+
var edge = new d3_geom_voronoiEdge(lSite, null);
|
19
|
+
edge.a = va;
|
20
|
+
edge.b = vb;
|
21
|
+
d3_geom_voronoiEdges.push(edge);
|
22
|
+
return edge;
|
23
|
+
}
|
24
|
+
|
25
|
+
function d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, vertex) {
|
26
|
+
if (!edge.a && !edge.b) {
|
27
|
+
edge.a = vertex;
|
28
|
+
edge.l = lSite;
|
29
|
+
edge.r = rSite;
|
30
|
+
} else if (edge.l === rSite) {
|
31
|
+
edge.b = vertex;
|
32
|
+
} else {
|
33
|
+
edge.a = vertex;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
function d3_geom_voronoiHalfEdge(edge, lSite, rSite) {
|
38
|
+
var va = edge.a,
|
39
|
+
vb = edge.b;
|
40
|
+
this.edge = edge;
|
41
|
+
this.site = lSite;
|
42
|
+
this.angle = rSite ? Math.atan2(rSite.y - lSite.y, rSite.x - lSite.x)
|
43
|
+
: edge.l === lSite ? Math.atan2(vb.x - va.x, va.y - vb.y)
|
44
|
+
: Math.atan2(va.x - vb.x, vb.y - va.y);
|
45
|
+
};
|
46
|
+
|
47
|
+
d3_geom_voronoiHalfEdge.prototype = {
|
48
|
+
start: function() { return this.edge.l === this.site ? this.edge.a : this.edge.b; },
|
49
|
+
end: function() { return this.edge.l === this.site ? this.edge.b : this.edge.a; }
|
50
|
+
};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import "../../math/trigonometry";
|
2
|
+
|
3
|
+
var d3_geom_voronoiEdges,
|
4
|
+
d3_geom_voronoiCells,
|
5
|
+
d3_geom_voronoiBeaches,
|
6
|
+
d3_geom_voronoiBeachPool = [],
|
7
|
+
d3_geom_voronoiFirstCircle,
|
8
|
+
d3_geom_voronoiCircles,
|
9
|
+
d3_geom_voronoiCirclePool = [];
|
10
|
+
|
11
|
+
import "beach";
|
12
|
+
import "cell";
|
13
|
+
import "circle";
|
14
|
+
import "clip";
|
15
|
+
import "edge";
|
16
|
+
import "red-black";
|
17
|
+
|
18
|
+
function d3_geom_voronoi(sites, bbox) {
|
19
|
+
var site = sites.sort(d3_geom_voronoiVertexOrder).pop(),
|
20
|
+
x0,
|
21
|
+
y0,
|
22
|
+
circle;
|
23
|
+
|
24
|
+
d3_geom_voronoiEdges = [];
|
25
|
+
d3_geom_voronoiCells = new Array(sites.length);
|
26
|
+
d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree;
|
27
|
+
d3_geom_voronoiCircles = new d3_geom_voronoiRedBlackTree;
|
28
|
+
|
29
|
+
while (true) {
|
30
|
+
circle = d3_geom_voronoiFirstCircle;
|
31
|
+
if (site && (!circle || site.y < circle.y || (site.y === circle.y && site.x < circle.x))) {
|
32
|
+
if (site.x !== x0 || site.y !== y0) {
|
33
|
+
d3_geom_voronoiCells[site.i] = new d3_geom_voronoiCell(site);
|
34
|
+
d3_geom_voronoiAddBeach(site);
|
35
|
+
x0 = site.x, y0 = site.y;
|
36
|
+
}
|
37
|
+
site = sites.pop();
|
38
|
+
} else if (circle) {
|
39
|
+
d3_geom_voronoiRemoveBeach(circle.arc);
|
40
|
+
} else {
|
41
|
+
break;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
if (bbox) d3_geom_voronoiClipEdges(bbox), d3_geom_voronoiCloseCells(bbox);
|
46
|
+
|
47
|
+
var diagram = {cells: d3_geom_voronoiCells, edges: d3_geom_voronoiEdges};
|
48
|
+
|
49
|
+
d3_geom_voronoiBeaches =
|
50
|
+
d3_geom_voronoiCircles =
|
51
|
+
d3_geom_voronoiEdges =
|
52
|
+
d3_geom_voronoiCells = null;
|
53
|
+
|
54
|
+
return diagram;
|
55
|
+
};
|
56
|
+
|
57
|
+
function d3_geom_voronoiVertexOrder(a, b) {
|
58
|
+
return b.y - a.y || b.x - a.x;
|
59
|
+
}
|
@@ -0,0 +1,235 @@
|
|
1
|
+
function d3_geom_voronoiRedBlackTree() {
|
2
|
+
this._ = null; // root node
|
3
|
+
}
|
4
|
+
|
5
|
+
function d3_geom_voronoiRedBlackNode(node) {
|
6
|
+
node.U = // parent node
|
7
|
+
node.C = // color - true for red, false for black
|
8
|
+
node.L = // left node
|
9
|
+
node.R = // right node
|
10
|
+
node.P = // previous node
|
11
|
+
node.N = null; // next node
|
12
|
+
}
|
13
|
+
|
14
|
+
d3_geom_voronoiRedBlackTree.prototype = {
|
15
|
+
|
16
|
+
insert: function(after, node) {
|
17
|
+
var parent, grandpa, uncle;
|
18
|
+
|
19
|
+
if (after) {
|
20
|
+
node.P = after;
|
21
|
+
node.N = after.N;
|
22
|
+
if (after.N) after.N.P = node;
|
23
|
+
after.N = node;
|
24
|
+
if (after.R) {
|
25
|
+
after = after.R;
|
26
|
+
while (after.L) after = after.L;
|
27
|
+
after.L = node;
|
28
|
+
} else {
|
29
|
+
after.R = node;
|
30
|
+
}
|
31
|
+
parent = after;
|
32
|
+
} else if (this._) {
|
33
|
+
after = d3_geom_voronoiRedBlackFirst(this._);
|
34
|
+
node.P = null;
|
35
|
+
node.N = after;
|
36
|
+
after.P = after.L = node;
|
37
|
+
parent = after;
|
38
|
+
} else {
|
39
|
+
node.P = node.N = null;
|
40
|
+
this._ = node;
|
41
|
+
parent = null;
|
42
|
+
}
|
43
|
+
node.L = node.R = null;
|
44
|
+
node.U = parent;
|
45
|
+
node.C = true;
|
46
|
+
|
47
|
+
after = node;
|
48
|
+
while (parent && parent.C) {
|
49
|
+
grandpa = parent.U;
|
50
|
+
if (parent === grandpa.L) {
|
51
|
+
uncle = grandpa.R;
|
52
|
+
if (uncle && uncle.C) {
|
53
|
+
parent.C = uncle.C = false;
|
54
|
+
grandpa.C = true;
|
55
|
+
after = grandpa;
|
56
|
+
} else {
|
57
|
+
if (after === parent.R) {
|
58
|
+
d3_geom_voronoiRedBlackRotateLeft(this, parent);
|
59
|
+
after = parent;
|
60
|
+
parent = after.U;
|
61
|
+
}
|
62
|
+
parent.C = false;
|
63
|
+
grandpa.C = true;
|
64
|
+
d3_geom_voronoiRedBlackRotateRight(this, grandpa);
|
65
|
+
}
|
66
|
+
} else {
|
67
|
+
uncle = grandpa.L;
|
68
|
+
if (uncle && uncle.C) {
|
69
|
+
parent.C = uncle.C = false;
|
70
|
+
grandpa.C = true;
|
71
|
+
after = grandpa;
|
72
|
+
} else {
|
73
|
+
if (after === parent.L) {
|
74
|
+
d3_geom_voronoiRedBlackRotateRight(this, parent);
|
75
|
+
after = parent;
|
76
|
+
parent = after.U;
|
77
|
+
}
|
78
|
+
parent.C = false;
|
79
|
+
grandpa.C = true;
|
80
|
+
d3_geom_voronoiRedBlackRotateLeft(this, grandpa);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
parent = after.U;
|
84
|
+
}
|
85
|
+
this._.C = false;
|
86
|
+
},
|
87
|
+
|
88
|
+
remove: function(node) {
|
89
|
+
if (node.N) node.N.P = node.P;
|
90
|
+
if (node.P) node.P.N = node.N;
|
91
|
+
node.N = node.P = null;
|
92
|
+
|
93
|
+
var parent = node.U,
|
94
|
+
sibling,
|
95
|
+
left = node.L,
|
96
|
+
right = node.R,
|
97
|
+
next,
|
98
|
+
red;
|
99
|
+
|
100
|
+
if (!left) next = right;
|
101
|
+
else if (!right) next = left;
|
102
|
+
else next = d3_geom_voronoiRedBlackFirst(right);
|
103
|
+
|
104
|
+
if (parent) {
|
105
|
+
if (parent.L === node) parent.L = next;
|
106
|
+
else parent.R = next;
|
107
|
+
} else {
|
108
|
+
this._ = next;
|
109
|
+
}
|
110
|
+
|
111
|
+
if (left && right) {
|
112
|
+
red = next.C;
|
113
|
+
next.C = node.C;
|
114
|
+
next.L = left;
|
115
|
+
left.U = next;
|
116
|
+
if (next !== right) {
|
117
|
+
parent = next.U;
|
118
|
+
next.U = node.U;
|
119
|
+
node = next.R;
|
120
|
+
parent.L = node;
|
121
|
+
next.R = right;
|
122
|
+
right.U = next;
|
123
|
+
} else {
|
124
|
+
next.U = parent;
|
125
|
+
parent = next;
|
126
|
+
node = next.R;
|
127
|
+
}
|
128
|
+
} else {
|
129
|
+
red = node.C;
|
130
|
+
node = next;
|
131
|
+
}
|
132
|
+
|
133
|
+
if (node) node.U = parent;
|
134
|
+
if (red) return;
|
135
|
+
if (node && node.C) { node.C = false; return; }
|
136
|
+
|
137
|
+
do {
|
138
|
+
if (node === this._) break;
|
139
|
+
if (node === parent.L) {
|
140
|
+
sibling = parent.R;
|
141
|
+
if (sibling.C) {
|
142
|
+
sibling.C = false;
|
143
|
+
parent.C = true;
|
144
|
+
d3_geom_voronoiRedBlackRotateLeft(this, parent);
|
145
|
+
sibling = parent.R;
|
146
|
+
}
|
147
|
+
if ((sibling.L && sibling.L.C)
|
148
|
+
|| (sibling.R && sibling.R.C)) {
|
149
|
+
if (!sibling.R || !sibling.R.C) {
|
150
|
+
sibling.L.C = false;
|
151
|
+
sibling.C = true;
|
152
|
+
d3_geom_voronoiRedBlackRotateRight(this, sibling);
|
153
|
+
sibling = parent.R;
|
154
|
+
}
|
155
|
+
sibling.C = parent.C;
|
156
|
+
parent.C = sibling.R.C = false;
|
157
|
+
d3_geom_voronoiRedBlackRotateLeft(this, parent);
|
158
|
+
node = this._;
|
159
|
+
break;
|
160
|
+
}
|
161
|
+
} else {
|
162
|
+
sibling = parent.L;
|
163
|
+
if (sibling.C) {
|
164
|
+
sibling.C = false;
|
165
|
+
parent.C = true;
|
166
|
+
d3_geom_voronoiRedBlackRotateRight(this, parent);
|
167
|
+
sibling = parent.L;
|
168
|
+
}
|
169
|
+
if ((sibling.L && sibling.L.C)
|
170
|
+
|| (sibling.R && sibling.R.C)) {
|
171
|
+
if (!sibling.L || !sibling.L.C) {
|
172
|
+
sibling.R.C = false;
|
173
|
+
sibling.C = true;
|
174
|
+
d3_geom_voronoiRedBlackRotateLeft(this, sibling);
|
175
|
+
sibling = parent.L;
|
176
|
+
}
|
177
|
+
sibling.C = parent.C;
|
178
|
+
parent.C = sibling.L.C = false;
|
179
|
+
d3_geom_voronoiRedBlackRotateRight(this, parent);
|
180
|
+
node = this._;
|
181
|
+
break;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
sibling.C = true;
|
185
|
+
node = parent;
|
186
|
+
parent = parent.U;
|
187
|
+
} while (!node.C);
|
188
|
+
|
189
|
+
if (node) node.C = false;
|
190
|
+
}
|
191
|
+
|
192
|
+
};
|
193
|
+
|
194
|
+
function d3_geom_voronoiRedBlackRotateLeft(tree, node) {
|
195
|
+
var p = node,
|
196
|
+
q = node.R,
|
197
|
+
parent = p.U;
|
198
|
+
|
199
|
+
if (parent) {
|
200
|
+
if (parent.L === p) parent.L = q;
|
201
|
+
else parent.R = q;
|
202
|
+
} else {
|
203
|
+
tree._ = q;
|
204
|
+
}
|
205
|
+
|
206
|
+
q.U = parent;
|
207
|
+
p.U = q;
|
208
|
+
p.R = q.L;
|
209
|
+
if (p.R) p.R.U = p;
|
210
|
+
q.L = p;
|
211
|
+
}
|
212
|
+
|
213
|
+
function d3_geom_voronoiRedBlackRotateRight(tree, node) {
|
214
|
+
var p = node,
|
215
|
+
q = node.L,
|
216
|
+
parent = p.U;
|
217
|
+
|
218
|
+
if (parent) {
|
219
|
+
if (parent.L === p) parent.L = q;
|
220
|
+
else parent.R = q;
|
221
|
+
} else {
|
222
|
+
tree._ = q;
|
223
|
+
}
|
224
|
+
|
225
|
+
q.U = parent;
|
226
|
+
p.U = q;
|
227
|
+
p.L = q.R;
|
228
|
+
if (p.L) p.L.U = p;
|
229
|
+
q.R = p;
|
230
|
+
}
|
231
|
+
|
232
|
+
function d3_geom_voronoiRedBlackFirst(node) {
|
233
|
+
while (node.L) node = node.L;
|
234
|
+
return node;
|
235
|
+
}
|