@macallumharvey/first-test-wet 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/first-test-wet.cjs.development.js.map +1 -1
- package/dist/first-test-wet.cjs.production.min.js.map +1 -1
- package/dist/first-test-wet.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/WetModal.tsx +1 -0
- package/src/theme-wet-boew/assets/favicon-mobile.png +0 -0
- package/src/theme-wet-boew/assets/favicon.ico +0 -0
- package/src/theme-wet-boew/assets/logo.png +0 -0
- package/src/theme-wet-boew/assets/logo.svg +14 -0
- package/src/theme-wet-boew/css/ie8-theme.css +17370 -0
- package/src/theme-wet-boew/css/ie8-theme.min.css +193 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js → theme-wet-boew/css/ie8-wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js → theme-wet-boew/css/ie8-wet-boew.min.css} +7 -7
- package/src/theme-wet-boew/css/theme.css +11357 -0
- package/src/theme-wet-boew/css/theme.min.css +6 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js → theme-wet-boew/css/wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js → theme-wet-boew/css/wet-boew.min.css} +6 -7
- package/src/theme-wet-boew/payload.json +66 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/mediacontrols.html +32 -33
- package/src/wet-boew/assets/sprites_share.png +0 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.css +112 -112
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.min.css +5 -5
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.css +32 -32
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.css +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.css +28 -28
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.css +16 -16
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.css +24 -24
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.css +8 -8
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.css +229 -229
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/additional-methods.js +1511 -1511
- package/src/wet-boew/js/deps/additional-methods.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/geomap-lib.js +3758 -3770
- package/src/wet-boew/js/deps/geomap-lib.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.dataTables.js +15345 -15733
- package/src/wet-boew/js/deps/jquery.dataTables.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.canvas.js +345 -345
- package/src/wet-boew/js/deps/jquery.flot.canvas.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.js +3168 -3168
- package/src/wet-boew/js/deps/jquery.flot.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.orderBars.js +282 -282
- package/src/wet-boew/js/deps/jquery.flot.orderBars.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.pie.js +820 -820
- package/src/wet-boew/js/deps/jquery.flot.pie.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.magnific-popup.js +2060 -2060
- package/src/wet-boew/js/deps/jquery.magnific-popup.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.validate.js +1660 -1660
- package/src/wet-boew/js/deps/jquery.validate.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/json-patch.js +314 -314
- package/src/wet-boew/js/deps/json-patch.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jsonpointer.js +349 -349
- package/src/wet-boew/js/deps/jsonpointer.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.js +53 -53
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.js +64 -64
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.js +160 -160
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.js +92 -92
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.js +94 -94
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.js +102 -102
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.js +95 -95
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.js +183 -183
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.min.js +1 -1
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.js +57 -57
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.js +140 -140
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.js +37 -37
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.js +81 -81
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.js +56 -56
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.js +51 -51
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.js +55 -55
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.js +71 -71
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.js +45 -45
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/ol.js +1008 -1008
- package/src/wet-boew/js/deps/ol.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/prettify.js +1742 -1742
- package/src/wet-boew/js/deps/prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/proj4.js +2 -2
- package/src/wet-boew/js/deps/proj4.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/run_prettify.js +1998 -1998
- package/src/wet-boew/js/deps/run_prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/tableparser.js +2216 -2216
- package/src/wet-boew/js/deps/tableparser.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/unorm.js +452 -452
- package/src/wet-boew/js/deps/unorm.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/af.js +246 -254
- package/src/wet-boew/js/i18n/af.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ar.js +284 -292
- package/src/wet-boew/js/i18n/ar.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/bg.js +284 -292
- package/src/wet-boew/js/i18n/bg.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/cs.js +285 -293
- package/src/wet-boew/js/i18n/cs.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/de.js +354 -362
- package/src/wet-boew/js/i18n/de.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/el.js +284 -292
- package/src/wet-boew/js/i18n/el.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/en.js +246 -254
- package/src/wet-boew/js/i18n/en.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/es.js +287 -295
- package/src/wet-boew/js/i18n/es.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/et.js +282 -290
- package/src/wet-boew/js/i18n/et.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/fr.js +313 -321
- package/src/wet-boew/js/i18n/fr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hi.js +246 -254
- package/src/wet-boew/js/i18n/hi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hu.js +284 -292
- package/src/wet-boew/js/i18n/hu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hy.js +246 -254
- package/src/wet-boew/js/i18n/hy.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/id.js +283 -291
- package/src/wet-boew/js/i18n/id.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/is.js +282 -290
- package/src/wet-boew/js/i18n/is.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/it.js +311 -319
- package/src/wet-boew/js/i18n/it.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/iu.js +246 -254
- package/src/wet-boew/js/i18n/iu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ja.js +285 -293
- package/src/wet-boew/js/i18n/ja.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ko.js +284 -292
- package/src/wet-boew/js/i18n/ko.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lt.js +284 -292
- package/src/wet-boew/js/i18n/lt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lv.js +284 -292
- package/src/wet-boew/js/i18n/lv.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/nl.js +318 -326
- package/src/wet-boew/js/i18n/nl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pl.js +287 -295
- package/src/wet-boew/js/i18n/pl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt-BR.js +246 -254
- package/src/wet-boew/js/i18n/pt-BR.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt.js +270 -278
- package/src/wet-boew/js/i18n/pt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ru.js +284 -292
- package/src/wet-boew/js/i18n/ru.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sk.js +282 -290
- package/src/wet-boew/js/i18n/sk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sq.js +246 -254
- package/src/wet-boew/js/i18n/sq.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/th.js +284 -292
- package/src/wet-boew/js/i18n/th.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/tr.js +286 -294
- package/src/wet-boew/js/i18n/tr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/uk.js +284 -292
- package/src/wet-boew/js/i18n/uk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/vi.js +284 -292
- package/src/wet-boew/js/i18n/vi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh-Hans.js +246 -254
- package/src/wet-boew/js/i18n/zh-Hans.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh.js +285 -293
- package/src/wet-boew/js/i18n/zh.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew.js +3992 -0
- package/src/wet-boew/js/ie8-wet-boew.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew2.js +15294 -0
- package/src/wet-boew/js/ie8-wet-boew2.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.js +9814 -9814
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.js +4 -4
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist.js +423 -419
- package/src/wet-boew/js/polyfills/datalist.min.js +8 -0
- package/src/wet-boew/js/polyfills/datalist.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.min.js +7 -7
- package/src/wet-boew/js/polyfills/datalist_dynamic.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datepicker.js +338 -338
- package/src/wet-boew/js/polyfills/datepicker.min.js +8 -0
- package/src/wet-boew/js/polyfills/datepicker.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/details.js +126 -126
- package/src/wet-boew/js/polyfills/details.min.js +8 -0
- package/src/wet-boew/js/polyfills/details.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.js +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.min.js +15 -15
- package/src/wet-boew/js/polyfills/jawsariafixes.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/meter.js +140 -140
- package/src/wet-boew/js/polyfills/meter.min.js +8 -0
- package/src/wet-boew/js/polyfills/meter.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/mobile.js +783 -784
- package/src/wet-boew/js/polyfills/mobile.min.js +8 -0
- package/src/wet-boew/js/polyfills/mobile.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/progress.js +107 -107
- package/src/wet-boew/js/polyfills/progress.min.js +8 -0
- package/src/wet-boew/js/polyfills/progress.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider.js +1343 -1343
- package/src/wet-boew/js/polyfills/slider.min.js +9 -0
- package/src/wet-boew/js/polyfills/slider.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.js +73 -73
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.min.js +7 -7
- package/src/wet-boew/js/polyfills/slider_wrapper.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.js +29 -29
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.min.js +7 -7
- package/src/wet-boew/js/polyfills/svg.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.js +603 -603
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.min.js +7 -7
- package/src/wet-boew/js/polyfills/test.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/wet-boew.js +17714 -20264
- package/src/wet-boew/js/wet-boew.min.js +9 -0
- package/src/wet-boew/js/wet-boew.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/payload.json +1721 -1721
- package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/License-en.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/package.json +0 -15
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/cloud-popup-relative.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/fd-slider-sprite.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/loading.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-minus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-plus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-world-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/mml-chtml.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.map +0 -0
@@ -1,282 +1,282 @@
|
|
1
|
-
/*
|
2
|
-
* Flot plugin to order bars side by side. This is improved version of Benjamin BUFFET work
|
3
|
-
* originally from http://en.benjaminbuffet.com/labs/flot/.
|
4
|
-
*
|
5
|
-
* Released under the MIT license by Przemyslaw Koltermann, 12-Feb-2013.
|
6
|
-
*
|
7
|
-
* This plugin is an alpha version.
|
8
|
-
*
|
9
|
-
* To activate the plugin you must specify the parameter "order" for the specific serie :
|
10
|
-
*
|
11
|
-
* $.plot($("#placeholder"), [{ data: [ ... ], bars :{ order = null or integer }])
|
12
|
-
*
|
13
|
-
* If 2 series have the same order param, they are displayed in the same position;
|
14
|
-
*
|
15
|
-
* The plugin adjust the point by adding a value depanding of the barwidth
|
16
|
-
* Exemple for 3 series (barwidth : 0.1) :
|
17
|
-
*
|
18
|
-
* first bar décalage : -0.15
|
19
|
-
* second bar décalage : -0.05
|
20
|
-
* third bar décalage : 0.05
|
21
|
-
*
|
22
|
-
*/
|
23
|
-
|
24
|
-
(function($){
|
25
|
-
function init(plot){
|
26
|
-
var orderedBarSeries;
|
27
|
-
var nbOfBarsToOrder;
|
28
|
-
var seriesPos = new Array();
|
29
|
-
var sameSeries = new Array();
|
30
|
-
var borderWidth;
|
31
|
-
var borderWidthInXabsWidth;
|
32
|
-
var pixelInXWidthEquivalent = 1;
|
33
|
-
var isHorizontal = false;
|
34
|
-
|
35
|
-
/*
|
36
|
-
* This method add shift to x values
|
37
|
-
*/
|
38
|
-
function reOrderBars(plot, serie, datapoints){
|
39
|
-
var shiftedPoints = null;
|
40
|
-
|
41
|
-
if(serieNeedToBeReordered(serie)){
|
42
|
-
checkIfGraphIsHorizontal(serie);
|
43
|
-
calculPixel2XWidthConvert(plot);
|
44
|
-
retrieveBarSeries(plot);
|
45
|
-
calculBorderAndBarWidth(serie);
|
46
|
-
|
47
|
-
if(nbOfBarsToOrder >= 2){
|
48
|
-
var position = findPosition(serie);
|
49
|
-
var decallage = 0;
|
50
|
-
|
51
|
-
var centerBarShift = calculCenterBarShift();
|
52
|
-
|
53
|
-
if (isBarAtLeftOfCenter(position)){
|
54
|
-
decallage = -1*(sumWidth(orderedBarSeries,position-1,Math.floor(nbOfBarsToOrder / 2)-1)) - centerBarShift;
|
55
|
-
}else{
|
56
|
-
decallage = sumWidth(orderedBarSeries,Math.ceil(nbOfBarsToOrder / 2),position-2) + centerBarShift + borderWidthInXabsWidth*2;
|
57
|
-
}
|
58
|
-
|
59
|
-
shiftedPoints = shiftPoints(datapoints,serie,decallage);
|
60
|
-
datapoints.points = shiftedPoints;
|
61
|
-
} else if (nbOfBarsToOrder == 1){
|
62
|
-
// To be consistent with the barshift at other uneven numbers of bars, where
|
63
|
-
// the center bar is centered around the point, we also need to shift a single bar
|
64
|
-
// left by half its width
|
65
|
-
var centerBarShift = -1*calculCenterBarShift();
|
66
|
-
shiftedPoints = shiftPoints(datapoints,serie,centerBarShift);
|
67
|
-
datapoints.points = shiftedPoints;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
return shiftedPoints;
|
71
|
-
}
|
72
|
-
|
73
|
-
function serieNeedToBeReordered(serie){
|
74
|
-
return serie.bars != null
|
75
|
-
&& serie.bars.show
|
76
|
-
&& serie.bars.order != null;
|
77
|
-
}
|
78
|
-
|
79
|
-
function calculPixel2XWidthConvert(plot){
|
80
|
-
var gridDimSize = isHorizontal ? plot.getPlaceholder().innerHeight() : plot.getPlaceholder().innerWidth();
|
81
|
-
var minMaxValues = isHorizontal ? getAxeMinMaxValues(plot.getData(),1) : getAxeMinMaxValues(plot.getData(),0);
|
82
|
-
var AxeSize = minMaxValues[1] - minMaxValues[0];
|
83
|
-
pixelInXWidthEquivalent = AxeSize / gridDimSize;
|
84
|
-
}
|
85
|
-
|
86
|
-
function getAxeMinMaxValues(series,AxeIdx){
|
87
|
-
var minMaxValues = new Array();
|
88
|
-
for(var i = 0; i < series.length; i++){
|
89
|
-
minMaxValues[0] = series[i].data[0][AxeIdx];
|
90
|
-
minMaxValues[1] = series[i].data[series[i].data.length - 1][AxeIdx];
|
91
|
-
}
|
92
|
-
if(typeof minMaxValues[0] == 'string'){
|
93
|
-
minMaxValues[0] = 0;
|
94
|
-
minMaxValues[1] = series[0].data.length - 1;
|
95
|
-
}
|
96
|
-
return minMaxValues;
|
97
|
-
}
|
98
|
-
|
99
|
-
function retrieveBarSeries(plot){
|
100
|
-
orderedBarSeries = findOthersBarsToReOrders(plot.getData());
|
101
|
-
nbOfBarsToOrder = orderedBarSeries.length;
|
102
|
-
}
|
103
|
-
|
104
|
-
function findOthersBarsToReOrders(series){
|
105
|
-
var retSeries = new Array();
|
106
|
-
|
107
|
-
for(var i = 0; i < series.length; i++){
|
108
|
-
if(series[i].bars.order != null && series[i].bars.show){
|
109
|
-
retSeries.push(series[i]);
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
return sortByOrder(retSeries);
|
114
|
-
}
|
115
|
-
|
116
|
-
function sortByOrder(series){
|
117
|
-
var n = series.length;
|
118
|
-
do {
|
119
|
-
for (var i=0; i < n - 1; i++) {
|
120
|
-
if (series[i].bars.order > series[i + 1].bars.order) {
|
121
|
-
var tmp = series[i];
|
122
|
-
series[i] = series[i + 1];
|
123
|
-
series[i + 1] = tmp;
|
124
|
-
}
|
125
|
-
else if (series[i].bars.order == series[i + 1].bars.order) {
|
126
|
-
|
127
|
-
//check if any of the series has set sameSeriesArrayIndex
|
128
|
-
var sameSeriesIndex;
|
129
|
-
if (series[i].sameSeriesArrayIndex) {
|
130
|
-
if(series[i + 1].sameSeriesArrayIndex !== undefined) {
|
131
|
-
sameSeriesIndex = series[i].sameSeriesArrayIndex;
|
132
|
-
series[i + 1].sameSeriesArrayIndex = sameSeriesIndex;
|
133
|
-
sameSeries[sameSeriesIndex].push(series[i + 1]);
|
134
|
-
sameSeries[sameSeriesIndex].sort(sortByWidth);
|
135
|
-
|
136
|
-
series[i] = sameSeries[sameSeriesIndex][0];
|
137
|
-
removeElement(series, i + 1);
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
else if (series[i + 1].sameSeriesArrayIndex) {
|
142
|
-
if(series[i].sameSeriesArrayIndex !== undefined) {
|
143
|
-
sameSeriesIndex = series[i + 1].sameSeriesArrayIndex;
|
144
|
-
series[i].sameSeriesArrayIndex = sameSeriesIndex;
|
145
|
-
sameSeries[sameSeriesIndex].push(series[i]);
|
146
|
-
sameSeries[sameSeriesIndex].sort(sortByWidth);
|
147
|
-
|
148
|
-
series[i] = sameSeries[sameSeriesIndex][0];
|
149
|
-
removeElement(series, i + 1);
|
150
|
-
|
151
|
-
}
|
152
|
-
}
|
153
|
-
|
154
|
-
else {
|
155
|
-
sameSeriesIndex = sameSeries.length;
|
156
|
-
sameSeries[sameSeriesIndex] = new Array();
|
157
|
-
series[i].sameSeriesArrayIndex = sameSeriesIndex;
|
158
|
-
series[i + 1].sameSeriesArrayIndex = sameSeriesIndex;
|
159
|
-
sameSeries[sameSeriesIndex].push(series[i]);
|
160
|
-
sameSeries[sameSeriesIndex].push(series[i + 1]);
|
161
|
-
sameSeries[sameSeriesIndex].sort(sortByWidth);
|
162
|
-
|
163
|
-
series[i] = sameSeries[sameSeriesIndex][0];
|
164
|
-
removeElement(series, i + 1);
|
165
|
-
}
|
166
|
-
i--;
|
167
|
-
n--;
|
168
|
-
|
169
|
-
|
170
|
-
//leave the wider serie and the other one move to
|
171
|
-
}
|
172
|
-
}
|
173
|
-
n = n-1;
|
174
|
-
}
|
175
|
-
while (n>1);
|
176
|
-
for (var i=0; i < series.length; i++) {
|
177
|
-
if (series[i].sameSeriesArrayIndex) {
|
178
|
-
seriesPos[series[i].sameSeriesArrayIndex] = i;
|
179
|
-
}
|
180
|
-
}
|
181
|
-
return series;
|
182
|
-
}
|
183
|
-
|
184
|
-
function sortByWidth(serie1,serie2){
|
185
|
-
var x = serie1.bars.barWidth ? serie1.bars.barWidth : 1;
|
186
|
-
var y = serie2.bars.barWidth ? serie2.bars.barWidth : 1;
|
187
|
-
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
188
|
-
}
|
189
|
-
function removeElement(arr, from, to) {
|
190
|
-
var rest = arr.slice((to || from) + 1 || arr.length);
|
191
|
-
arr.length = from < 0 ? arr.length + from : from;
|
192
|
-
arr.push.apply(arr, rest);
|
193
|
-
return arr;
|
194
|
-
}
|
195
|
-
|
196
|
-
function calculBorderAndBarWidth(serie){
|
197
|
-
borderWidth = typeof serie.bars.lineWidth === "number" ? serie.bars.lineWidth : 2;
|
198
|
-
borderWidthInXabsWidth = borderWidth * pixelInXWidthEquivalent;
|
199
|
-
}
|
200
|
-
|
201
|
-
function checkIfGraphIsHorizontal(serie){
|
202
|
-
if(serie.bars.horizontal){
|
203
|
-
isHorizontal = true;
|
204
|
-
}
|
205
|
-
}
|
206
|
-
|
207
|
-
function findPosition(serie){
|
208
|
-
var ss = sameSeries;
|
209
|
-
var pos = 0;
|
210
|
-
if (serie.sameSeriesArrayIndex) {
|
211
|
-
pos = seriesPos[serie.sameSeriesArrayIndex];
|
212
|
-
}
|
213
|
-
else {
|
214
|
-
for (var i = 0; i < orderedBarSeries.length; ++i) {
|
215
|
-
if (serie == orderedBarSeries[i]){
|
216
|
-
pos = i;
|
217
|
-
break;
|
218
|
-
}
|
219
|
-
}
|
220
|
-
}
|
221
|
-
return pos+1;
|
222
|
-
}
|
223
|
-
|
224
|
-
function calculCenterBarShift(){
|
225
|
-
var width = 0;
|
226
|
-
|
227
|
-
if(nbOfBarsToOrder%2 != 0)
|
228
|
-
// Since the array indexing starts at 0, we need to use Math.floor instead of
|
229
|
-
// Math.ceil otherwise we will get an error if there is only one bar
|
230
|
-
width = (orderedBarSeries[Math.floor(nbOfBarsToOrder / 2)].bars.barWidth)/2;
|
231
|
-
|
232
|
-
return width;
|
233
|
-
}
|
234
|
-
|
235
|
-
function isBarAtLeftOfCenter(position){
|
236
|
-
return position <= Math.ceil(nbOfBarsToOrder / 2);
|
237
|
-
}
|
238
|
-
|
239
|
-
function sumWidth(series,start,end){
|
240
|
-
var totalWidth = 0;
|
241
|
-
|
242
|
-
for(var i = start; i <= end; i++){
|
243
|
-
totalWidth += series[i].bars.barWidth+borderWidthInXabsWidth*2;
|
244
|
-
}
|
245
|
-
|
246
|
-
return totalWidth;
|
247
|
-
}
|
248
|
-
|
249
|
-
function shiftPoints(datapoints,serie,dx){
|
250
|
-
var ps = datapoints.pointsize;
|
251
|
-
var points = datapoints.points;
|
252
|
-
var j = 0;
|
253
|
-
for(var i = isHorizontal ? 1 : 0;i < points.length; i += ps){
|
254
|
-
points[i] += dx;
|
255
|
-
//Adding the new x value in the serie to be abble to display the right tooltip value,
|
256
|
-
//using the index 3 to not overide the third index.
|
257
|
-
serie.data[j][3] = points[i];
|
258
|
-
j++;
|
259
|
-
}
|
260
|
-
|
261
|
-
return points;
|
262
|
-
}
|
263
|
-
|
264
|
-
plot.hooks.processDatapoints.push(reOrderBars);
|
265
|
-
|
266
|
-
}
|
267
|
-
|
268
|
-
var options = {
|
269
|
-
series : {
|
270
|
-
bars: {order: null} // or number/string
|
271
|
-
}
|
272
|
-
};
|
273
|
-
|
274
|
-
$.plot.plugins.push({
|
275
|
-
init: init,
|
276
|
-
options: options,
|
277
|
-
name: "orderBars",
|
278
|
-
version: "0.2"
|
279
|
-
});
|
280
|
-
|
281
|
-
})(jQuery);
|
282
|
-
|
1
|
+
/*
|
2
|
+
* Flot plugin to order bars side by side. This is improved version of Benjamin BUFFET work
|
3
|
+
* originally from http://en.benjaminbuffet.com/labs/flot/.
|
4
|
+
*
|
5
|
+
* Released under the MIT license by Przemyslaw Koltermann, 12-Feb-2013.
|
6
|
+
*
|
7
|
+
* This plugin is an alpha version.
|
8
|
+
*
|
9
|
+
* To activate the plugin you must specify the parameter "order" for the specific serie :
|
10
|
+
*
|
11
|
+
* $.plot($("#placeholder"), [{ data: [ ... ], bars :{ order = null or integer }])
|
12
|
+
*
|
13
|
+
* If 2 series have the same order param, they are displayed in the same position;
|
14
|
+
*
|
15
|
+
* The plugin adjust the point by adding a value depanding of the barwidth
|
16
|
+
* Exemple for 3 series (barwidth : 0.1) :
|
17
|
+
*
|
18
|
+
* first bar décalage : -0.15
|
19
|
+
* second bar décalage : -0.05
|
20
|
+
* third bar décalage : 0.05
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
|
24
|
+
(function($){
|
25
|
+
function init(plot){
|
26
|
+
var orderedBarSeries;
|
27
|
+
var nbOfBarsToOrder;
|
28
|
+
var seriesPos = new Array();
|
29
|
+
var sameSeries = new Array();
|
30
|
+
var borderWidth;
|
31
|
+
var borderWidthInXabsWidth;
|
32
|
+
var pixelInXWidthEquivalent = 1;
|
33
|
+
var isHorizontal = false;
|
34
|
+
|
35
|
+
/*
|
36
|
+
* This method add shift to x values
|
37
|
+
*/
|
38
|
+
function reOrderBars(plot, serie, datapoints){
|
39
|
+
var shiftedPoints = null;
|
40
|
+
|
41
|
+
if(serieNeedToBeReordered(serie)){
|
42
|
+
checkIfGraphIsHorizontal(serie);
|
43
|
+
calculPixel2XWidthConvert(plot);
|
44
|
+
retrieveBarSeries(plot);
|
45
|
+
calculBorderAndBarWidth(serie);
|
46
|
+
|
47
|
+
if(nbOfBarsToOrder >= 2){
|
48
|
+
var position = findPosition(serie);
|
49
|
+
var decallage = 0;
|
50
|
+
|
51
|
+
var centerBarShift = calculCenterBarShift();
|
52
|
+
|
53
|
+
if (isBarAtLeftOfCenter(position)){
|
54
|
+
decallage = -1*(sumWidth(orderedBarSeries,position-1,Math.floor(nbOfBarsToOrder / 2)-1)) - centerBarShift;
|
55
|
+
}else{
|
56
|
+
decallage = sumWidth(orderedBarSeries,Math.ceil(nbOfBarsToOrder / 2),position-2) + centerBarShift + borderWidthInXabsWidth*2;
|
57
|
+
}
|
58
|
+
|
59
|
+
shiftedPoints = shiftPoints(datapoints,serie,decallage);
|
60
|
+
datapoints.points = shiftedPoints;
|
61
|
+
} else if (nbOfBarsToOrder == 1){
|
62
|
+
// To be consistent with the barshift at other uneven numbers of bars, where
|
63
|
+
// the center bar is centered around the point, we also need to shift a single bar
|
64
|
+
// left by half its width
|
65
|
+
var centerBarShift = -1*calculCenterBarShift();
|
66
|
+
shiftedPoints = shiftPoints(datapoints,serie,centerBarShift);
|
67
|
+
datapoints.points = shiftedPoints;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
return shiftedPoints;
|
71
|
+
}
|
72
|
+
|
73
|
+
function serieNeedToBeReordered(serie){
|
74
|
+
return serie.bars != null
|
75
|
+
&& serie.bars.show
|
76
|
+
&& serie.bars.order != null;
|
77
|
+
}
|
78
|
+
|
79
|
+
function calculPixel2XWidthConvert(plot){
|
80
|
+
var gridDimSize = isHorizontal ? plot.getPlaceholder().innerHeight() : plot.getPlaceholder().innerWidth();
|
81
|
+
var minMaxValues = isHorizontal ? getAxeMinMaxValues(plot.getData(),1) : getAxeMinMaxValues(plot.getData(),0);
|
82
|
+
var AxeSize = minMaxValues[1] - minMaxValues[0];
|
83
|
+
pixelInXWidthEquivalent = AxeSize / gridDimSize;
|
84
|
+
}
|
85
|
+
|
86
|
+
function getAxeMinMaxValues(series,AxeIdx){
|
87
|
+
var minMaxValues = new Array();
|
88
|
+
for(var i = 0; i < series.length; i++){
|
89
|
+
minMaxValues[0] = series[i].data[0][AxeIdx];
|
90
|
+
minMaxValues[1] = series[i].data[series[i].data.length - 1][AxeIdx];
|
91
|
+
}
|
92
|
+
if(typeof minMaxValues[0] == 'string'){
|
93
|
+
minMaxValues[0] = 0;
|
94
|
+
minMaxValues[1] = series[0].data.length - 1;
|
95
|
+
}
|
96
|
+
return minMaxValues;
|
97
|
+
}
|
98
|
+
|
99
|
+
function retrieveBarSeries(plot){
|
100
|
+
orderedBarSeries = findOthersBarsToReOrders(plot.getData());
|
101
|
+
nbOfBarsToOrder = orderedBarSeries.length;
|
102
|
+
}
|
103
|
+
|
104
|
+
function findOthersBarsToReOrders(series){
|
105
|
+
var retSeries = new Array();
|
106
|
+
|
107
|
+
for(var i = 0; i < series.length; i++){
|
108
|
+
if(series[i].bars.order != null && series[i].bars.show){
|
109
|
+
retSeries.push(series[i]);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
return sortByOrder(retSeries);
|
114
|
+
}
|
115
|
+
|
116
|
+
function sortByOrder(series){
|
117
|
+
var n = series.length;
|
118
|
+
do {
|
119
|
+
for (var i=0; i < n - 1; i++) {
|
120
|
+
if (series[i].bars.order > series[i + 1].bars.order) {
|
121
|
+
var tmp = series[i];
|
122
|
+
series[i] = series[i + 1];
|
123
|
+
series[i + 1] = tmp;
|
124
|
+
}
|
125
|
+
else if (series[i].bars.order == series[i + 1].bars.order) {
|
126
|
+
|
127
|
+
//check if any of the series has set sameSeriesArrayIndex
|
128
|
+
var sameSeriesIndex;
|
129
|
+
if (series[i].sameSeriesArrayIndex) {
|
130
|
+
if(series[i + 1].sameSeriesArrayIndex !== undefined) {
|
131
|
+
sameSeriesIndex = series[i].sameSeriesArrayIndex;
|
132
|
+
series[i + 1].sameSeriesArrayIndex = sameSeriesIndex;
|
133
|
+
sameSeries[sameSeriesIndex].push(series[i + 1]);
|
134
|
+
sameSeries[sameSeriesIndex].sort(sortByWidth);
|
135
|
+
|
136
|
+
series[i] = sameSeries[sameSeriesIndex][0];
|
137
|
+
removeElement(series, i + 1);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
else if (series[i + 1].sameSeriesArrayIndex) {
|
142
|
+
if(series[i].sameSeriesArrayIndex !== undefined) {
|
143
|
+
sameSeriesIndex = series[i + 1].sameSeriesArrayIndex;
|
144
|
+
series[i].sameSeriesArrayIndex = sameSeriesIndex;
|
145
|
+
sameSeries[sameSeriesIndex].push(series[i]);
|
146
|
+
sameSeries[sameSeriesIndex].sort(sortByWidth);
|
147
|
+
|
148
|
+
series[i] = sameSeries[sameSeriesIndex][0];
|
149
|
+
removeElement(series, i + 1);
|
150
|
+
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
else {
|
155
|
+
sameSeriesIndex = sameSeries.length;
|
156
|
+
sameSeries[sameSeriesIndex] = new Array();
|
157
|
+
series[i].sameSeriesArrayIndex = sameSeriesIndex;
|
158
|
+
series[i + 1].sameSeriesArrayIndex = sameSeriesIndex;
|
159
|
+
sameSeries[sameSeriesIndex].push(series[i]);
|
160
|
+
sameSeries[sameSeriesIndex].push(series[i + 1]);
|
161
|
+
sameSeries[sameSeriesIndex].sort(sortByWidth);
|
162
|
+
|
163
|
+
series[i] = sameSeries[sameSeriesIndex][0];
|
164
|
+
removeElement(series, i + 1);
|
165
|
+
}
|
166
|
+
i--;
|
167
|
+
n--;
|
168
|
+
|
169
|
+
|
170
|
+
//leave the wider serie and the other one move to
|
171
|
+
}
|
172
|
+
}
|
173
|
+
n = n-1;
|
174
|
+
}
|
175
|
+
while (n>1);
|
176
|
+
for (var i=0; i < series.length; i++) {
|
177
|
+
if (series[i].sameSeriesArrayIndex) {
|
178
|
+
seriesPos[series[i].sameSeriesArrayIndex] = i;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
return series;
|
182
|
+
}
|
183
|
+
|
184
|
+
function sortByWidth(serie1,serie2){
|
185
|
+
var x = serie1.bars.barWidth ? serie1.bars.barWidth : 1;
|
186
|
+
var y = serie2.bars.barWidth ? serie2.bars.barWidth : 1;
|
187
|
+
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
188
|
+
}
|
189
|
+
function removeElement(arr, from, to) {
|
190
|
+
var rest = arr.slice((to || from) + 1 || arr.length);
|
191
|
+
arr.length = from < 0 ? arr.length + from : from;
|
192
|
+
arr.push.apply(arr, rest);
|
193
|
+
return arr;
|
194
|
+
}
|
195
|
+
|
196
|
+
function calculBorderAndBarWidth(serie){
|
197
|
+
borderWidth = typeof serie.bars.lineWidth === "number" ? serie.bars.lineWidth : 2;
|
198
|
+
borderWidthInXabsWidth = borderWidth * pixelInXWidthEquivalent;
|
199
|
+
}
|
200
|
+
|
201
|
+
function checkIfGraphIsHorizontal(serie){
|
202
|
+
if(serie.bars.horizontal){
|
203
|
+
isHorizontal = true;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
function findPosition(serie){
|
208
|
+
var ss = sameSeries;
|
209
|
+
var pos = 0;
|
210
|
+
if (serie.sameSeriesArrayIndex) {
|
211
|
+
pos = seriesPos[serie.sameSeriesArrayIndex];
|
212
|
+
}
|
213
|
+
else {
|
214
|
+
for (var i = 0; i < orderedBarSeries.length; ++i) {
|
215
|
+
if (serie == orderedBarSeries[i]){
|
216
|
+
pos = i;
|
217
|
+
break;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
return pos+1;
|
222
|
+
}
|
223
|
+
|
224
|
+
function calculCenterBarShift(){
|
225
|
+
var width = 0;
|
226
|
+
|
227
|
+
if(nbOfBarsToOrder%2 != 0)
|
228
|
+
// Since the array indexing starts at 0, we need to use Math.floor instead of
|
229
|
+
// Math.ceil otherwise we will get an error if there is only one bar
|
230
|
+
width = (orderedBarSeries[Math.floor(nbOfBarsToOrder / 2)].bars.barWidth)/2;
|
231
|
+
|
232
|
+
return width;
|
233
|
+
}
|
234
|
+
|
235
|
+
function isBarAtLeftOfCenter(position){
|
236
|
+
return position <= Math.ceil(nbOfBarsToOrder / 2);
|
237
|
+
}
|
238
|
+
|
239
|
+
function sumWidth(series,start,end){
|
240
|
+
var totalWidth = 0;
|
241
|
+
|
242
|
+
for(var i = start; i <= end; i++){
|
243
|
+
totalWidth += series[i].bars.barWidth+borderWidthInXabsWidth*2;
|
244
|
+
}
|
245
|
+
|
246
|
+
return totalWidth;
|
247
|
+
}
|
248
|
+
|
249
|
+
function shiftPoints(datapoints,serie,dx){
|
250
|
+
var ps = datapoints.pointsize;
|
251
|
+
var points = datapoints.points;
|
252
|
+
var j = 0;
|
253
|
+
for(var i = isHorizontal ? 1 : 0;i < points.length; i += ps){
|
254
|
+
points[i] += dx;
|
255
|
+
//Adding the new x value in the serie to be abble to display the right tooltip value,
|
256
|
+
//using the index 3 to not overide the third index.
|
257
|
+
serie.data[j][3] = points[i];
|
258
|
+
j++;
|
259
|
+
}
|
260
|
+
|
261
|
+
return points;
|
262
|
+
}
|
263
|
+
|
264
|
+
plot.hooks.processDatapoints.push(reOrderBars);
|
265
|
+
|
266
|
+
}
|
267
|
+
|
268
|
+
var options = {
|
269
|
+
series : {
|
270
|
+
bars: {order: null} // or number/string
|
271
|
+
}
|
272
|
+
};
|
273
|
+
|
274
|
+
$.plot.plugins.push({
|
275
|
+
init: init,
|
276
|
+
options: options,
|
277
|
+
name: "orderBars",
|
278
|
+
version: "0.2"
|
279
|
+
});
|
280
|
+
|
281
|
+
})(jQuery);
|
282
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
jQuery.plot.plugins.push({init:function(r){var o,h,l,d,u=new Array,f=new Array,b=1,y=!1;function p(r,e){for(var a=new Array,n=0;n<r.length;n++)a[0]=r[n].data[0][e],a[1]=r[n].data[r[n].data.length-1][e];return"string"==typeof a[0]&&(a[0]=0,a[1]=r[0].data.length-1),a}function g(r,e){r=r.bars.barWidth||1,e=e.bars.barWidth||1;return r<e?-1:e<r?1:0}function A(r,e,a){a=r.slice((a||e)+1||r.length);return r.length=e<0?r.length+e:e,r.push.apply(r,a),r}function c(){var r=0;return h%2!=0&&(r=o[Math.floor(h/2)].bars.barWidth/2),r}function m(r,e,a){for(var n=0,s=e;s<=a;s++)n+=r[s].bars.barWidth+2*d;return n}function v(r,e,a){for(var n=r.pointsize,s=r.points,t=0,i=y?1:0;i<s.length;i+=n)s[i]+=a,e.data[t][3]=s[i],t++;return s}r.hooks.processDatapoints.push(function(r,e,a){var n,s,t,i=null;return null!=(t=e).bars&&t.bars.show&&null!=t.bars.order&&(e.bars.horizontal&&(y=!0),s=r,t=y?s.getPlaceholder().innerHeight():s.getPlaceholder().innerWidth(),s=(s=p(s.getData(),y?1:0))[1]-s[0],b=s/t,o=function(r){for(var e=new Array,a=0;a<r.length;a++)null!=r[a].bars.order&&r[a].bars.show&&e.push(r[a]);return function(r){var e,a=r.length;do{for(var n,s=0;s<a-1;s++)r[s].bars.order>r[s+1].bars.order?(n=r[s],r[s]=r[s+1],r[s+1]=n):r[s].bars.order==r[s+1].bars.order&&(r[s].sameSeriesArrayIndex?void 0!==r[s+1].sameSeriesArrayIndex&&(e=r[s].sameSeriesArrayIndex,r[s+1].sameSeriesArrayIndex=e,f[e].push(r[s+1]),f[e].sort(g),r[s]=f[e][0],A(r,s+1)):r[s+1].sameSeriesArrayIndex?void 0!==r[s].sameSeriesArrayIndex&&(e=r[s+1].sameSeriesArrayIndex,r[s].sameSeriesArrayIndex=e,f[e].push(r[s]),f[e].sort(g),r[s]=f[e][0],A(r,s+1)):(e=f.length,f[e]=new Array,r[s].sameSeriesArrayIndex=e,r[s+1].sameSeriesArrayIndex=e,f[e].push(r[s]),f[e].push(r[s+1]),f[e].sort(g),r[s]=f[e][0],A(r,s+1)),s--,a--)}while(--a,1<a);for(s=0;s<r.length;s++)r[s].sameSeriesArrayIndex&&(u[r[s].sameSeriesArrayIndex]=s);return r}(e)}(r.getData()),h=o.length,l="number"==typeof(r=e).bars.lineWidth?r.bars.lineWidth:2,d=l*b,2<=h?(r=function(r){var e=0;if(r.sameSeriesArrayIndex)e=u[r.sameSeriesArrayIndex];else for(var a=0;a<o.length;++a)if(r==o[a]){e=a;break}return e+1}(e),n=c(),i=v(a,e,r<=Math.ceil(h/2)?-1*m(o,r-1,Math.floor(h/2)-1)-n:m(o,Math.ceil(h/2),r-2)+n+2*d),a.points=i):1==h&&(i=v(a,e,n=-1*c()),a.points=i)),i})},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"});
|