powerdlz23 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pto/yaamp/README.md +70 -0
- package/pto/yaamp/blocknotify/blocknotify.cpp +90 -0
- package/pto/yaamp/config/blake.conf +16 -0
- package/pto/yaamp/config/fresh.conf +16 -0
- package/pto/yaamp/config/groestl.conf +16 -0
- package/pto/yaamp/config/keccak.conf +16 -0
- package/pto/yaamp/config/lyra2.conf +16 -0
- package/pto/yaamp/config/neo.conf +16 -0
- package/pto/yaamp/config/nist5.conf +16 -0
- package/pto/yaamp/config/quark.conf +16 -0
- package/pto/yaamp/config/qubit.conf +16 -0
- package/pto/yaamp/config/run.sh +12 -0
- package/pto/yaamp/config/scrypt.conf +16 -0
- package/pto/yaamp/config/scryptn.conf +16 -0
- package/pto/yaamp/config/sha.conf +17 -0
- package/pto/yaamp/config/skein.conf +16 -0
- package/pto/yaamp/config/x11.conf +16 -0
- package/pto/yaamp/config/x13.conf +16 -0
- package/pto/yaamp/config/x14.conf +16 -0
- package/pto/yaamp/config/x15.conf +16 -0
- package/pto/yaamp/rc.local +30 -0
- package/pto/yaamp/stratum/algos/Lyra2.c +208 -0
- package/pto/yaamp/stratum/algos/Lyra2.h +50 -0
- package/pto/yaamp/stratum/algos/Lyra2RE.c +70 -0
- package/pto/yaamp/stratum/algos/Lyra2RE.h +16 -0
- package/pto/yaamp/stratum/algos/Sponge.c +745 -0
- package/pto/yaamp/stratum/algos/Sponge.h +115 -0
- package/pto/yaamp/stratum/algos/blake.c +16 -0
- package/pto/yaamp/stratum/algos/blake.h +16 -0
- package/pto/yaamp/stratum/algos/fresh.c +44 -0
- package/pto/yaamp/stratum/algos/fresh.h +16 -0
- package/pto/yaamp/stratum/algos/groestl.c +41 -0
- package/pto/yaamp/stratum/algos/groestl.h +18 -0
- package/pto/yaamp/stratum/algos/jha.c +135 -0
- package/pto/yaamp/stratum/algos/jha.h +16 -0
- package/pto/yaamp/stratum/algos/keccak.c +32 -0
- package/pto/yaamp/stratum/algos/keccak.h +16 -0
- package/pto/yaamp/stratum/algos/makefile +32 -0
- package/pto/yaamp/stratum/algos/neoscrypt.c +962 -0
- package/pto/yaamp/stratum/algos/neoscrypt.h +33 -0
- package/pto/yaamp/stratum/algos/nist5.c +47 -0
- package/pto/yaamp/stratum/algos/nist5.h +16 -0
- package/pto/yaamp/stratum/algos/quark.c +210 -0
- package/pto/yaamp/stratum/algos/quark.h +16 -0
- package/pto/yaamp/stratum/algos/qubit.c +44 -0
- package/pto/yaamp/stratum/algos/qubit.h +17 -0
- package/pto/yaamp/stratum/algos/scrypt.c +681 -0
- package/pto/yaamp/stratum/algos/scryptn.c +257 -0
- package/pto/yaamp/stratum/algos/scryptn.h +16 -0
- package/pto/yaamp/stratum/algos/sha256.c +287 -0
- package/pto/yaamp/stratum/algos/sha256.h +440 -0
- package/pto/yaamp/stratum/algos/skein.c +27 -0
- package/pto/yaamp/stratum/algos/skein.h +16 -0
- package/pto/yaamp/stratum/algos/whirlpoolx.c +44 -0
- package/pto/yaamp/stratum/algos/whirlpoolx.h +16 -0
- package/pto/yaamp/stratum/algos/x11.c +85 -0
- package/pto/yaamp/stratum/algos/x11.h +16 -0
- package/pto/yaamp/stratum/algos/x13.c +98 -0
- package/pto/yaamp/stratum/algos/x13.h +16 -0
- package/pto/yaamp/stratum/algos/x14.c +102 -0
- package/pto/yaamp/stratum/algos/x14.h +16 -0
- package/pto/yaamp/stratum/algos/x15.c +106 -0
- package/pto/yaamp/stratum/algos/x15.h +16 -0
- package/pto/yaamp/stratum/algos/zr5.c +104 -0
- package/pto/yaamp/stratum/algos/zr5.h +17 -0
- package/pto/yaamp/stratum/base58.cpp +99 -0
- package/pto/yaamp/stratum/client.cpp +432 -0
- package/pto/yaamp/stratum/client.h +142 -0
- package/pto/yaamp/stratum/client_core.cpp +312 -0
- package/pto/yaamp/stratum/client_difficulty.cpp +105 -0
- package/pto/yaamp/stratum/client_submit.cpp +304 -0
- package/pto/yaamp/stratum/coinbase.cpp +139 -0
- package/pto/yaamp/stratum/coind.cpp +188 -0
- package/pto/yaamp/stratum/coind.h +97 -0
- package/pto/yaamp/stratum/coind_aux.cpp +107 -0
- package/pto/yaamp/stratum/coind_submit.cpp +113 -0
- package/pto/yaamp/stratum/coind_template.cpp +309 -0
- package/pto/yaamp/stratum/db.cpp +418 -0
- package/pto/yaamp/stratum/db.h +32 -0
- package/pto/yaamp/stratum/iniparser/AUTHORS +6 -0
- package/pto/yaamp/stratum/iniparser/INSTALL +15 -0
- package/pto/yaamp/stratum/iniparser/LICENSE +21 -0
- package/pto/yaamp/stratum/iniparser/Makefile +72 -0
- package/pto/yaamp/stratum/iniparser/README +12 -0
- package/pto/yaamp/stratum/iniparser/doc/Makefile +16 -0
- package/pto/yaamp/stratum/iniparser/doc/iniparser.dox +81 -0
- package/pto/yaamp/stratum/iniparser/doc/iniparser.main +207 -0
- package/pto/yaamp/stratum/iniparser/html/doxygen.css +545 -0
- package/pto/yaamp/stratum/iniparser/html/doxygen.png +0 -0
- package/pto/yaamp/stratum/iniparser/html/globals_func.html +64 -0
- package/pto/yaamp/stratum/iniparser/html/index.html +101 -0
- package/pto/yaamp/stratum/iniparser/html/iniparser_8h.html +583 -0
- package/pto/yaamp/stratum/iniparser/html/iniparser_8main.html +19 -0
- package/pto/yaamp/stratum/iniparser/html/tab_b.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tab_l.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tab_r.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tabs.css +105 -0
- package/pto/yaamp/stratum/iniparser/src/dictionary.c +402 -0
- package/pto/yaamp/stratum/iniparser/src/dictionary.h +185 -0
- package/pto/yaamp/stratum/iniparser/src/iniparser.c +904 -0
- package/pto/yaamp/stratum/iniparser/src/iniparser.h +315 -0
- package/pto/yaamp/stratum/iniparser/test/Makefile +27 -0
- package/pto/yaamp/stratum/iniparser/test/iniexample.c +100 -0
- package/pto/yaamp/stratum/iniparser/test/parse.c +24 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-errors.ini +9 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-genhuge.py +12 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-ofkey.ini +66 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-ofval.ini +56 -0
- package/pto/yaamp/stratum/iniparser/test/twisted.ini +131 -0
- package/pto/yaamp/stratum/job.cpp +324 -0
- package/pto/yaamp/stratum/job.h +120 -0
- package/pto/yaamp/stratum/job_core.cpp +132 -0
- package/pto/yaamp/stratum/job_send.cpp +162 -0
- package/pto/yaamp/stratum/json.cpp +980 -0
- package/pto/yaamp/stratum/json.h +271 -0
- package/pto/yaamp/stratum/list.cpp +165 -0
- package/pto/yaamp/stratum/makefile +53 -0
- package/pto/yaamp/stratum/merkle.cpp +86 -0
- package/pto/yaamp/stratum/object.cpp +73 -0
- package/pto/yaamp/stratum/object.h +25 -0
- package/pto/yaamp/stratum/remote.cpp +301 -0
- package/pto/yaamp/stratum/remote.h +96 -0
- package/pto/yaamp/stratum/remote_template.cpp +138 -0
- package/pto/yaamp/stratum/rpc.cpp +270 -0
- package/pto/yaamp/stratum/rpc.h +32 -0
- package/pto/yaamp/stratum/sha3/aes_helper.c +392 -0
- package/pto/yaamp/stratum/sha3/hamsi_helper.c +39648 -0
- package/pto/yaamp/stratum/sha3/libhash.a +0 -0
- package/pto/yaamp/stratum/sha3/makefile +34 -0
- package/pto/yaamp/stratum/sha3/md_helper.c +347 -0
- package/pto/yaamp/stratum/sha3/sph_blake.c +1127 -0
- package/pto/yaamp/stratum/sha3/sph_blake.h +327 -0
- package/pto/yaamp/stratum/sha3/sph_bmw.c +965 -0
- package/pto/yaamp/stratum/sha3/sph_bmw.h +328 -0
- package/pto/yaamp/stratum/sha3/sph_cubehash.c +723 -0
- package/pto/yaamp/stratum/sha3/sph_cubehash.h +292 -0
- package/pto/yaamp/stratum/sha3/sph_echo.c +1031 -0
- package/pto/yaamp/stratum/sha3/sph_echo.h +320 -0
- package/pto/yaamp/stratum/sha3/sph_fugue.c +1208 -0
- package/pto/yaamp/stratum/sha3/sph_fugue.h +81 -0
- package/pto/yaamp/stratum/sha3/sph_groestl.c +3119 -0
- package/pto/yaamp/stratum/sha3/sph_groestl.h +329 -0
- package/pto/yaamp/stratum/sha3/sph_hamsi.c +867 -0
- package/pto/yaamp/stratum/sha3/sph_hamsi.h +322 -0
- package/pto/yaamp/stratum/sha3/sph_hefty1.c +378 -0
- package/pto/yaamp/stratum/sha3/sph_hefty1.h +66 -0
- package/pto/yaamp/stratum/sha3/sph_jh.c +1116 -0
- package/pto/yaamp/stratum/sha3/sph_jh.h +298 -0
- package/pto/yaamp/stratum/sha3/sph_keccak.c +1824 -0
- package/pto/yaamp/stratum/sha3/sph_keccak.h +293 -0
- package/pto/yaamp/stratum/sha3/sph_luffa.c +1426 -0
- package/pto/yaamp/stratum/sha3/sph_luffa.h +296 -0
- package/pto/yaamp/stratum/sha3/sph_shabal.c +806 -0
- package/pto/yaamp/stratum/sha3/sph_shabal.h +344 -0
- package/pto/yaamp/stratum/sha3/sph_shavite.c +1764 -0
- package/pto/yaamp/stratum/sha3/sph_shavite.h +314 -0
- package/pto/yaamp/stratum/sha3/sph_simd.c +1799 -0
- package/pto/yaamp/stratum/sha3/sph_simd.h +309 -0
- package/pto/yaamp/stratum/sha3/sph_skein.c +1254 -0
- package/pto/yaamp/stratum/sha3/sph_skein.h +298 -0
- package/pto/yaamp/stratum/sha3/sph_types.h +1976 -0
- package/pto/yaamp/stratum/sha3/sph_whirlpool.c +3480 -0
- package/pto/yaamp/stratum/sha3/sph_whirlpool.h +209 -0
- package/pto/yaamp/stratum/share.cpp +279 -0
- package/pto/yaamp/stratum/share.h +106 -0
- package/pto/yaamp/stratum/socket.cpp +159 -0
- package/pto/yaamp/stratum/socket.h +28 -0
- package/pto/yaamp/stratum/stratum.cpp +321 -0
- package/pto/yaamp/stratum/stratum.h +141 -0
- package/pto/yaamp/stratum/user.cpp +104 -0
- package/pto/yaamp/stratum/util.cpp +666 -0
- package/pto/yaamp/stratum/util.h +127 -0
- package/pto/yaamp/web/.project +22 -0
- package/pto/yaamp/web/blocks.sh +10 -0
- package/pto/yaamp/web/extensions/jqplot/MIT-LICENSE.txt +21 -0
- package/pto/yaamp/web/extensions/jqplot/README.txt +77 -0
- package/pto/yaamp/web/extensions/jqplot/changes.txt +458 -0
- package/pto/yaamp/web/extensions/jqplot/copyright.txt +56 -0
- package/pto/yaamp/web/extensions/jqplot/excanvas.js +1438 -0
- package/pto/yaamp/web/extensions/jqplot/excanvas.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/gpl-2.0.txt +280 -0
- package/pto/yaamp/web/extensions/jqplot/jqPlotCssStyling.txt +53 -0
- package/pto/yaamp/web/extensions/jqplot/jqPlotOptions.txt +391 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.css +259 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.js +11411 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.min.css +1 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/optionsTutorial.txt +243 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.BezierCurveRenderer.js +314 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.BezierCurveRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.barRenderer.js +801 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.barRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.blockRenderer.js +235 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.blockRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.bubbleRenderer.js +759 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.bubbleRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js +203 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisTickRenderer.js +253 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasOverlay.js +1021 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasOverlay.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasTextRenderer.js +449 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasTextRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.categoryAxisRenderer.js +679 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.categoryAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ciParser.js +116 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ciParser.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.cursor.js +1108 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.cursor.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dateAxisRenderer.js +741 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dateAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.donutRenderer.js +805 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.donutRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dragable.js +225 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dragable.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.enhancedLegendRenderer.js +305 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.enhancedLegendRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.funnelRenderer.js +943 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.funnelRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.highlighter.js +465 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.highlighter.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.json2.js +475 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.json2.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.logAxisRenderer.js +534 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.logAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoAxisRenderer.js +611 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoRenderer.js +437 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.meterGaugeRenderer.js +1029 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.meterGaugeRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mobile.js +45 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mobile.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ohlcRenderer.js +373 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ohlcRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pieRenderer.js +904 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pieRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pointLabels.js +377 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pointLabels.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidAxisRenderer.js +728 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidGridRenderer.js +429 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidGridRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidRenderer.js +514 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.trendline.js +223 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.trendline.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/usage.txt +126 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-1.10.2.min.js +6 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-1.8.3-dev.js +9472 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-ui-1.10.3.custom.min.js +7 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-ui-1.9.1.custom.min.js +6 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/animated-overlay.gif +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery-ui.css +1178 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.accordion.css +38 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.all.css +12 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.autocomplete.css +16 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.base.css +25 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.button.css +114 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.core.css +93 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.datepicker.css +178 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.dialog.css +69 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.menu.css +79 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.progressbar.css +28 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.resizable.css +78 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.selectable.css +15 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.slider.css +73 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.spinner.css +65 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.tabs.css +52 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.theme.css +406 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.tooltip.css +19 -0
- package/pto/yaamp/web/favicon.ico +0 -0
- package/pto/yaamp/web/framework-1.0.8/.htaccess +1 -0
- package/pto/yaamp/web/framework-1.0.8/YiiBase.php +684 -0
- package/pto/yaamp/web/framework-1.0.8/base/CApplication.php +718 -0
- package/pto/yaamp/web/framework-1.0.8/base/CApplicationComponent.php +56 -0
- package/pto/yaamp/web/framework-1.0.8/base/CBehavior.php +87 -0
- package/pto/yaamp/web/framework-1.0.8/base/CComponent.php +599 -0
- package/pto/yaamp/web/framework-1.0.8/base/CErrorEvent.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/base/CErrorHandler.php +336 -0
- package/pto/yaamp/web/framework-1.0.8/base/CException.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/base/CExceptionEvent.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/base/CHttpException.php +40 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModel.php +634 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModelBehavior.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModelEvent.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModule.php +465 -0
- package/pto/yaamp/web/framework-1.0.8/base/CSecurityManager.php +245 -0
- package/pto/yaamp/web/framework-1.0.8/base/CStatePersister.php +102 -0
- package/pto/yaamp/web/framework-1.0.8/base/interfaces.php +534 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CApcCache.php +108 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CCache.php +312 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CDbCache.php +250 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CDummyCache.php +145 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CEAcceleratorCache.php +104 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CFileCache.php +217 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CMemCache.php +272 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CXCache.php +97 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CZendDataCache.php +98 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CCacheDependency.php +62 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CChainedCacheDependency.php +68 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CDbCacheDependency.php +87 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CDirectoryCacheDependency.php +134 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CExpressionDependency.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CFileCacheDependency.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CGlobalStateCacheDependency.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CAttributeCollection.php +187 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CConfiguration.php +121 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CList.php +341 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CListIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CMap.php +319 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CMapIterator.php +93 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CQueue.php +168 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CQueueIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CStack.php +169 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CStackIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CTypedList.php +52 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbCommand.php +326 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbConnection.php +645 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbDataReader.php +221 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbException.php +21 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbTransaction.php +108 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveFinder.php +1359 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveRecord.php +2212 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveRecordBehavior.php +96 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbColumnSchema.php +143 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbCommandBuilder.php +664 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbCriteria.php +166 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbExpression.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbSchema.php +203 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbTableSchema.php +76 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlColumnSchema.php +55 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlCommandBuilder.php +304 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlPdoAdapter.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlSchema.php +310 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlTableSchema.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlColumnSchema.php +46 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlSchema.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlTableSchema.php +26 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciColumnSchema.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciCommandBuilder.php +122 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciSchema.php +276 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciTableSchema.php +26 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlColumnSchema.php +56 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlSchema.php +282 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlTableSchema.php +25 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteColumnSchema.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteCommandBuilder.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteSchema.php +129 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CChoiceFormat.php +77 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CDateFormatter.php +507 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CDbMessageSource.php +114 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CGettextMessageSource.php +111 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CLocale.php +243 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CMessageSource.php +157 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CNumberFormatter.php +280 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CPhpMessageSource.php +96 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextFile.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextMoFile.php +269 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextPoFile.php +89 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CDbLogRoute.php +168 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CEmailLogRoute.php +122 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CFileLogRoute.php +162 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogFilter.php +103 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogRoute.php +107 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogRouter.php +107 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogger.php +237 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CProfileLogRoute.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CWebLogRoute.php +57 -0
- package/pto/yaamp/web/framework-1.0.8/messages/bg/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/config.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/messages/de/yii.php +221 -0
- package/pto/yaamp/web/framework-1.0.8/messages/el/yii.php +222 -0
- package/pto/yaamp/web/framework-1.0.8/messages/es/yii.php +231 -0
- package/pto/yaamp/web/framework-1.0.8/messages/fr/yii.php +210 -0
- package/pto/yaamp/web/framework-1.0.8/messages/he/yii.php +206 -0
- package/pto/yaamp/web/framework-1.0.8/messages/hu/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/id/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/it/yii.php +208 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ja/yii.php +230 -0
- package/pto/yaamp/web/framework-1.0.8/messages/nl/yii.php +206 -0
- package/pto/yaamp/web/framework-1.0.8/messages/no/yii.php +222 -0
- package/pto/yaamp/web/framework-1.0.8/messages/pl/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/pt/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ro/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ru/yii.php +214 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sr_sr/yii.php +205 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sr_yu/yii.php +205 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sv/yii.php +226 -0
- package/pto/yaamp/web/framework-1.0.8/messages/uk/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/vi/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/zh_cn/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/zh_tw/yii.php +207 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CDateTimeParser.php +230 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CFileHelper.php +228 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CMarkdownParser.php +179 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CPropertyValue.php +158 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CTimestamp.php +715 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CVarDumper.php +142 -0
- package/pto/yaamp/web/framework-1.0.8/utils/mimeTypes.php +178 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CCaptchaValidator.php +72 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CCompareValidator.php +151 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CDefaultValueValidator.php +51 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CEmailValidator.php +80 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CExistValidator.php +88 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CFileValidator.php +159 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CFilterValidator.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CInlineValidator.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CNumberValidator.php +86 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRangeValidator.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRegularExpressionValidator.php +51 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRequiredValidator.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CStringValidator.php +78 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CTypeValidator.php +99 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CUniqueValidator.php +106 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CUrlValidator.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CValidator.php +194 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/README.html +89 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/adodb/LICENSE.txt +182 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/cldr/LICENSE.txt +33 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/gettext/LICENSE.txt +22 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/json/LICENSE.txt +22 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/markdown/LICENSE.txt +36 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/markdown/markdown.php +2623 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error400.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-summary-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error400.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error500.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error503.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/exception.php +75 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error.php +25 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error400.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error403.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error404.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error500.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error503.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/exception.php +62 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/log-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/log.php +29 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-callstack-firebug.php +17 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-callstack.php +29 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-summary-firebug.php +20 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-callstack.php +28 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/web/CAssetManager.php +227 -0
- package/pto/yaamp/web/framework-1.0.8/web/CBaseController.php +283 -0
- package/pto/yaamp/web/framework-1.0.8/web/CCacheHttpSession.php +111 -0
- package/pto/yaamp/web/framework-1.0.8/web/CClientScript.php +562 -0
- package/pto/yaamp/web/framework-1.0.8/web/CController.php +1072 -0
- package/pto/yaamp/web/framework-1.0.8/web/CDbHttpSession.php +203 -0
- package/pto/yaamp/web/framework-1.0.8/web/CExtController.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/web/CFormModel.php +113 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpCookie.php +63 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpRequest.php +763 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpSession.php +522 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpSessionIterator.php +92 -0
- package/pto/yaamp/web/framework-1.0.8/web/COutputEvent.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/web/CPagination.php +161 -0
- package/pto/yaamp/web/framework-1.0.8/web/CSort.php +292 -0
- package/pto/yaamp/web/framework-1.0.8/web/CTheme.php +124 -0
- package/pto/yaamp/web/framework-1.0.8/web/CThemeManager.php +127 -0
- package/pto/yaamp/web/framework-1.0.8/web/CUploadedFile.php +210 -0
- package/pto/yaamp/web/framework-1.0.8/web/CUrlManager.php +613 -0
- package/pto/yaamp/web/framework-1.0.8/web/CWebApplication.php +608 -0
- package/pto/yaamp/web/framework-1.0.8/web/CWebModule.php +187 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CAction.php +58 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CInlineAction.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CViewAction.php +165 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAccessControlFilter.php +295 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthAssignment.php +102 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthItem.php +269 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthManager.php +157 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CBaseUserIdentity.php +116 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CDbAuthManager.php +584 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CPhpAuthManager.php +535 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CUserIdentity.php +79 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CWebUser.php +583 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/schema.sql +42 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CFilter.php +64 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CFilterChain.php +131 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CInlineFilter.php +61 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CGoogleApi.php +72 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CHtml.php +1801 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CJSON.php +698 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CJavaScript.php +128 -0
- package/pto/yaamp/web/framework-1.0.8/web/renderers/CPradoViewRenderer.php +245 -0
- package/pto/yaamp/web/framework-1.0.8/web/renderers/CViewRenderer.php +93 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWebService.php +271 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWebServiceAction.php +130 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWsdlGenerator.php +373 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CAutoComplete.php +285 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CClipWidget.php +55 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CContentDecorator.php +83 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CFilterWidget.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CFlexWidget.php +116 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CHtmlPurifier.php +64 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CInputWidget.php +80 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMarkdown.php +119 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMaskedTextField.php +106 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMultiFileUpload.php +115 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/COutputCache.php +336 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/COutputProcessor.php +77 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CStarRating.php +207 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTabView.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTextHighlighter.php +127 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTreeView.php +232 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CWidget.php +202 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/CCaptcha.php +132 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/CCaptchaAction.php +233 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/Duality.ttf +0 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CBasePager.php +129 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CLinkPager.php +194 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CListPager.php +85 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/pager.css +68 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/views/flexWidget.php +98 -0
- package/pto/yaamp/web/framework-1.0.8/yii.php +29 -0
- package/pto/yaamp/web/images/41.png +0 -0
- package/pto/yaamp/web/images/amc.jpg +0 -0
- package/pto/yaamp/web/images/base/action_refresh_blue.gif +0 -0
- package/pto/yaamp/web/images/base/action_save.gif +0 -0
- package/pto/yaamp/web/images/base/delete.png +0 -0
- package/pto/yaamp/web/images/base/dot.png +0 -0
- package/pto/yaamp/web/images/base/download.png +0 -0
- package/pto/yaamp/web/images/base/edit.png +0 -0
- package/pto/yaamp/web/images/base/enroll.png +0 -0
- package/pto/yaamp/web/images/base/favorite.png +0 -0
- package/pto/yaamp/web/images/base/folder_new.png +0 -0
- package/pto/yaamp/web/images/base/new.png +0 -0
- package/pto/yaamp/web/images/base/newcomment.png +0 -0
- package/pto/yaamp/web/images/base/newfile.png +0 -0
- package/pto/yaamp/web/images/base/newfolder.png +0 -0
- package/pto/yaamp/web/images/base/newuser.png +0 -0
- package/pto/yaamp/web/images/base/pause.png +0 -0
- package/pto/yaamp/web/images/base/play.png +0 -0
- package/pto/yaamp/web/images/base/tools.png +0 -0
- package/pto/yaamp/web/images/base/top.png +0 -0
- package/pto/yaamp/web/images/base/top_header.png +0 -0
- package/pto/yaamp/web/images/base/top_header_selected.png +0 -0
- package/pto/yaamp/web/images/base/video_play.png +0 -0
- package/pto/yaamp/web/images/beta_corner_banner.png +0 -0
- package/pto/yaamp/web/images/beta_corner_banner2.png +0 -0
- package/pto/yaamp/web/images/btc.png +0 -0
- package/pto/yaamp/web/images/coin-154.png +0 -0
- package/pto/yaamp/web/images/coin-22.png +0 -0
- package/pto/yaamp/web/images/coin-251.png +0 -0
- package/pto/yaamp/web/images/coin-30.png +0 -0
- package/pto/yaamp/web/images/coin-316.png +0 -0
- package/pto/yaamp/web/images/coin-33.png +0 -0
- package/pto/yaamp/web/images/coin-6.png +0 -0
- package/pto/yaamp/web/images/coin-834.png +0 -0
- package/pto/yaamp/web/images/gears.png +0 -0
- package/pto/yaamp/web/images/minus2-78.png +0 -0
- package/pto/yaamp/web/images/next.png +0 -0
- package/pto/yaamp/web/images/pause.png +0 -0
- package/pto/yaamp/web/images/play.png +0 -0
- package/pto/yaamp/web/images/plus2-78.png +0 -0
- package/pto/yaamp/web/images/sign-in-with-twitter-gray.png +0 -0
- package/pto/yaamp/web/images/sign-in-with-twitter-link.png +0 -0
- package/pto/yaamp/web/images/start.png +0 -0
- package/pto/yaamp/web/images/t_mini-a.png +0 -0
- package/pto/yaamp/web/images/tweet.jpg +0 -0
- package/pto/yaamp/web/images/twitter.jpg +0 -0
- package/pto/yaamp/web/images/ui/16x16_2leftarrow.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_2rightarrow.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_bottom.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_chat.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_delete.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_edit.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_email.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_fileclose.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_kcontrol.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_kuser.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_ledgreen.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_link.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_misc.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_package_edutainment.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_window_list.png +0 -0
- package/pto/yaamp/web/images/ui/22x22_bottom.png +0 -0
- package/pto/yaamp/web/images/ui/24x24_link.png +0 -0
- package/pto/yaamp/web/images/ui/32x32_link.png +0 -0
- package/pto/yaamp/web/images/ui/48x48_link.png +0 -0
- package/pto/yaamp/web/images/ui/arrow-down.gif +0 -0
- package/pto/yaamp/web/images/ui/arrow-right.gif +0 -0
- package/pto/yaamp/web/images/ui/asc.gif +0 -0
- package/pto/yaamp/web/images/ui/away.gif +0 -0
- package/pto/yaamp/web/images/ui/bg.gif +0 -0
- package/pto/yaamp/web/images/ui/control_play_blue.png +0 -0
- package/pto/yaamp/web/images/ui/desc.gif +0 -0
- package/pto/yaamp/web/images/ui/down_arrow.png +0 -0
- package/pto/yaamp/web/images/ui/empty.png +0 -0
- package/pto/yaamp/web/images/ui/expand_down.png +0 -0
- package/pto/yaamp/web/images/ui/expand_up.png +0 -0
- package/pto/yaamp/web/images/ui/green-check.png +0 -0
- package/pto/yaamp/web/images/ui/icon-check.gif +0 -0
- package/pto/yaamp/web/images/ui/install-flash.jpg +0 -0
- package/pto/yaamp/web/images/ui/linkout.png +0 -0
- package/pto/yaamp/web/images/ui/loading.gif +0 -0
- package/pto/yaamp/web/images/ui/loading_white.gif +0 -0
- package/pto/yaamp/web/images/ui/menudot.png +0 -0
- package/pto/yaamp/web/images/ui/menuo_bg.gif +0 -0
- package/pto/yaamp/web/images/ui/offline.gif +0 -0
- package/pto/yaamp/web/images/ui/online.gif +0 -0
- package/pto/yaamp/web/images/ui/shade.gif +0 -0
- package/pto/yaamp/web/images/ui/shadeactive.gif +0 -0
- package/pto/yaamp/web/images/ui/showactivity.png +0 -0
- package/pto/yaamp/web/images/ui/showcourse.png +0 -0
- package/pto/yaamp/web/images/ui/showdetail.png +0 -0
- package/pto/yaamp/web/images/ui/showfile.png +0 -0
- package/pto/yaamp/web/images/ui/showfolder.png +0 -0
- package/pto/yaamp/web/images/ui/showgraph.png +0 -0
- package/pto/yaamp/web/images/ui/showlink.png +0 -0
- package/pto/yaamp/web/images/ui/showmedium.png +0 -0
- package/pto/yaamp/web/images/ui/showsmall.png +0 -0
- package/pto/yaamp/web/images/ui/tintblue.gif +0 -0
- package/pto/yaamp/web/images/ui/tintbluedark.gif +0 -0
- package/pto/yaamp/web/images/vn_embed.png +0 -0
- package/pto/yaamp/web/index.php +30 -0
- package/pto/yaamp/web/loop2.sh +9 -0
- package/pto/yaamp/web/main.sh +9 -0
- package/pto/yaamp/web/robots.txt +2 -0
- package/pto/yaamp/web/run.php +25 -0
- package/pto/yaamp/web/serverconfig.php +26 -0
- package/pto/yaamp/web/yaamp/components/CUFHtml.php +136 -0
- package/pto/yaamp/web/yaamp/components/UniForm.php +25 -0
- package/pto/yaamp/web/yaamp/components/UserIdentity.php +25 -0
- package/pto/yaamp/web/yaamp/config.php +68 -0
- package/pto/yaamp/web/yaamp/core/backend/backend.php +17 -0
- package/pto/yaamp/web/yaamp/core/backend/blocks.php +243 -0
- package/pto/yaamp/web/yaamp/core/backend/clear.php +47 -0
- package/pto/yaamp/web/yaamp/core/backend/coins.php +245 -0
- package/pto/yaamp/web/yaamp/core/backend/markets.php +505 -0
- package/pto/yaamp/web/yaamp/core/backend/payment.php +153 -0
- package/pto/yaamp/web/yaamp/core/backend/rawcoins.php +144 -0
- package/pto/yaamp/web/yaamp/core/backend/renting.php +271 -0
- package/pto/yaamp/web/yaamp/core/backend/sell.php +126 -0
- package/pto/yaamp/web/yaamp/core/backend/services.php +210 -0
- package/pto/yaamp/web/yaamp/core/backend/stats.php +347 -0
- package/pto/yaamp/web/yaamp/core/backend/system.php +253 -0
- package/pto/yaamp/web/yaamp/core/backend/users.php +95 -0
- package/pto/yaamp/web/yaamp/core/common/Shortcuts.php +77 -0
- package/pto/yaamp/web/yaamp/core/common/common.php +10 -0
- package/pto/yaamp/web/yaamp/core/common/libUtil.php +305 -0
- package/pto/yaamp/web/yaamp/core/common/libdbo.php +91 -0
- package/pto/yaamp/web/yaamp/core/common/system.php +135 -0
- package/pto/yaamp/web/yaamp/core/common/util.php +317 -0
- package/pto/yaamp/web/yaamp/core/common/utilConversion.php +296 -0
- package/pto/yaamp/web/yaamp/core/core.php +11 -0
- package/pto/yaamp/web/yaamp/core/exchange/bittrex.php +28 -0
- package/pto/yaamp/web/yaamp/core/exchange/bleutrade.php +28 -0
- package/pto/yaamp/web/yaamp/core/exchange/ccexapi.php +106 -0
- package/pto/yaamp/web/yaamp/core/exchange/cryptsy.php +63 -0
- package/pto/yaamp/web/yaamp/core/exchange/exchange.php +12 -0
- package/pto/yaamp/web/yaamp/core/exchange/jubi.php +20 -0
- package/pto/yaamp/web/yaamp/core/exchange/poloniex.php +242 -0
- package/pto/yaamp/web/yaamp/core/exchange/yobit.php +77 -0
- package/pto/yaamp/web/yaamp/core/exchange2/CExchange.php +198 -0
- package/pto/yaamp/web/yaamp/core/exchange2/CExchangeCoin.php +84 -0
- package/pto/yaamp/web/yaamp/core/exchange2/exchange.php +7 -0
- package/pto/yaamp/web/yaamp/core/functions/curloauth.php +50 -0
- package/pto/yaamp/web/yaamp/core/functions/easybitcoin.php +220 -0
- package/pto/yaamp/web/yaamp/core/functions/functions.php +11 -0
- package/pto/yaamp/web/yaamp/core/functions/memcache.php +85 -0
- package/pto/yaamp/web/yaamp/core/functions/url.php +79 -0
- package/pto/yaamp/web/yaamp/core/functions/yaamp.php +365 -0
- package/pto/yaamp/web/yaamp/core/trading/bittrex_trading.php +221 -0
- package/pto/yaamp/web/yaamp/core/trading/bleutrade_trading.php +218 -0
- package/pto/yaamp/web/yaamp/core/trading/c-cex_trading.php +192 -0
- package/pto/yaamp/web/yaamp/core/trading/cryptsy_trading.php +231 -0
- package/pto/yaamp/web/yaamp/core/trading/poloniex_trading.php +179 -0
- package/pto/yaamp/web/yaamp/core/trading/trading.php +11 -0
- package/pto/yaamp/web/yaamp/core/trading/yobit_trading.php +205 -0
- package/pto/yaamp/web/yaamp/include.php +11 -0
- package/pto/yaamp/web/yaamp/models/db_accountsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_algosModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_balancesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_balanceuserModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_blocksModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_coinsModel.php +46 -0
- package/pto/yaamp/web/yaamp/models/db_connectionsModel.php +35 -0
- package/pto/yaamp/web/yaamp/models/db_earningsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_exchangeModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashrateModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashrenterModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashstatsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashuserModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_jobsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_jobsubmitsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_marketsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_miningModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_nicehashModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_ordersModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_payoutsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_rawcoinsModel.php +36 -0
- package/pto/yaamp/web/yaamp/models/db_rentersModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_rentertxsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_serversModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_servicesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_sharesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_shares_vipModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_statsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_stratumsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_withdrawsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_workersModel.php +33 -0
- package/pto/yaamp/web/yaamp/modules/api/ApiController.php +301 -0
- package/pto/yaamp/web/yaamp/modules/coin/CoinController.php +54 -0
- package/pto/yaamp/web/yaamp/modules/coin/_form.php +75 -0
- package/pto/yaamp/web/yaamp/modules/coin/index.php +134 -0
- package/pto/yaamp/web/yaamp/modules/common/CommonController.php +55 -0
- package/pto/yaamp/web/yaamp/modules/common/maintenance.php +25 -0
- package/pto/yaamp/web/yaamp/modules/common/yaamp.php +23 -0
- package/pto/yaamp/web/yaamp/modules/explorer/ExplorerController.php +56 -0
- package/pto/yaamp/web/yaamp/modules/explorer/block.php +122 -0
- package/pto/yaamp/web/yaamp/modules/explorer/coin.php +63 -0
- package/pto/yaamp/web/yaamp/modules/explorer/index.php +67 -0
- package/pto/yaamp/web/yaamp/modules/explorer/tx.php +73 -0
- package/pto/yaamp/web/yaamp/modules/explorer/util.php +146 -0
- package/pto/yaamp/web/yaamp/modules/market/MarketController.php +86 -0
- package/pto/yaamp/web/yaamp/modules/market/update.php +23 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/NicehashController.php +55 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/index.php +37 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/index_results.php +78 -0
- package/pto/yaamp/web/yaamp/modules/renting/RentingController.php +469 -0
- package/pto/yaamp/web/yaamp/modules/renting/admin.php +148 -0
- package/pto/yaamp/web/yaamp/modules/renting/all_orders_results.php +95 -0
- package/pto/yaamp/web/yaamp/modules/renting/balance_results.php +115 -0
- package/pto/yaamp/web/yaamp/modules/renting/create.php +52 -0
- package/pto/yaamp/web/yaamp/modules/renting/graph_job_results.php +74 -0
- package/pto/yaamp/web/yaamp/modules/renting/graph_price_results.php +54 -0
- package/pto/yaamp/web/yaamp/modules/renting/index.php +318 -0
- package/pto/yaamp/web/yaamp/modules/renting/login.php +239 -0
- package/pto/yaamp/web/yaamp/modules/renting/orders_results.php +130 -0
- package/pto/yaamp/web/yaamp/modules/renting/settings.php +156 -0
- package/pto/yaamp/web/yaamp/modules/renting/status_results.php +103 -0
- package/pto/yaamp/web/yaamp/modules/renting/tx.php +74 -0
- package/pto/yaamp/web/yaamp/modules/site/SiteController.php +772 -0
- package/pto/yaamp/web/yaamp/modules/site/about.php +59 -0
- package/pto/yaamp/web/yaamp/modules/site/admin.php +90 -0
- package/pto/yaamp/web/yaamp/modules/site/admin_results.php +171 -0
- package/pto/yaamp/web/yaamp/modules/site/api.php +136 -0
- package/pto/yaamp/web/yaamp/modules/site/backup.php +33 -0
- package/pto/yaamp/web/yaamp/modules/site/block.php +46 -0
- package/pto/yaamp/web/yaamp/modules/site/block_results.php +85 -0
- package/pto/yaamp/web/yaamp/modules/site/coin.php +145 -0
- package/pto/yaamp/web/yaamp/modules/site/coin_form.php +229 -0
- package/pto/yaamp/web/yaamp/modules/site/coin_results.php +242 -0
- package/pto/yaamp/web/yaamp/modules/site/common.php +231 -0
- package/pto/yaamp/web/yaamp/modules/site/common_results.php +576 -0
- package/pto/yaamp/web/yaamp/modules/site/connections.php +57 -0
- package/pto/yaamp/web/yaamp/modules/site/connections_results.php +48 -0
- package/pto/yaamp/web/yaamp/modules/site/diff.php +36 -0
- package/pto/yaamp/web/yaamp/modules/site/earning.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/earning_results.php +74 -0
- package/pto/yaamp/web/yaamp/modules/site/emptymarkets.php +34 -0
- package/pto/yaamp/web/yaamp/modules/site/eval.php +22 -0
- package/pto/yaamp/web/yaamp/modules/site/exchange.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/exchange_results.php +183 -0
- package/pto/yaamp/web/yaamp/modules/site/index.php +154 -0
- package/pto/yaamp/web/yaamp/modules/site/memcached.php +56 -0
- package/pto/yaamp/web/yaamp/modules/site/miners.php +88 -0
- package/pto/yaamp/web/yaamp/modules/site/mining.php +235 -0
- package/pto/yaamp/web/yaamp/modules/site/monsters.php +129 -0
- package/pto/yaamp/web/yaamp/modules/site/multialgo.php +84 -0
- package/pto/yaamp/web/yaamp/modules/site/payments.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/payments_results.php +56 -0
- package/pto/yaamp/web/yaamp/modules/site/results/current_results.php +158 -0
- package/pto/yaamp/web/yaamp/modules/site/results/found_results.php +94 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_assets_results.php +58 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_earnings_results.php +47 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_hashrate_results.php +68 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_negative_results.php +36 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_price_results.php +68 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_profit_results.php +25 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_user_results.php +81 -0
- package/pto/yaamp/web/yaamp/modules/site/results/history_results.php +156 -0
- package/pto/yaamp/web/yaamp/modules/site/results/miners_results.php +126 -0
- package/pto/yaamp/web/yaamp/modules/site/results/mining_results.php +216 -0
- package/pto/yaamp/web/yaamp/modules/site/results/user_earning_results.php +92 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_graphs_results.php +33 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_miners_results.php +117 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_results.php +263 -0
- package/pto/yaamp/web/yaamp/modules/site/terms.php +392 -0
- package/pto/yaamp/web/yaamp/modules/site/tx.php +64 -0
- package/pto/yaamp/web/yaamp/modules/site/user.php +80 -0
- package/pto/yaamp/web/yaamp/modules/site/user_results.php +136 -0
- package/pto/yaamp/web/yaamp/modules/site/version.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/version_results.php +48 -0
- package/pto/yaamp/web/yaamp/modules/site/wallet.php +390 -0
- package/pto/yaamp/web/yaamp/modules/site/worker.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/worker_results.php +55 -0
- package/pto/yaamp/web/yaamp/modules/stats/StatsController.php +65 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_1.php +20 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_2.php +19 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_3.php +20 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_4.php +34 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_5.php +33 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_6.php +40 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_7.php +34 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_8.php +33 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_9.php +44 -0
- package/pto/yaamp/web/yaamp/modules/stats/index.php +502 -0
- package/pto/yaamp/web/yaamp/modules/thread/CronjobController.php +196 -0
- package/pto/yaamp/web/yaamp/modules/trading/TradingController.php +59 -0
- package/pto/yaamp/web/yaamp/modules/trading/index.php +270 -0
- package/pto/yaamp/web/yaamp/modules/trading/mining_results.php +245 -0
- package/pto/yaamp/web/yaamp/ui/app.php +8 -0
- package/pto/yaamp/web/yaamp/ui/css/editor.css +34 -0
- package/pto/yaamp/web/yaamp/ui/css/indicator.gif +0 -0
- package/pto/yaamp/web/yaamp/ui/css/jquery-ui-fixes.css +26 -0
- package/pto/yaamp/web/yaamp/ui/css/list.css +78 -0
- package/pto/yaamp/web/yaamp/ui/css/main.css +225 -0
- package/pto/yaamp/web/yaamp/ui/css/news.css +82 -0
- package/pto/yaamp/web/yaamp/ui/css/objectmenu.css +27 -0
- package/pto/yaamp/web/yaamp/ui/css/poll.css +194 -0
- package/pto/yaamp/web/yaamp/ui/css/table.css +124 -0
- package/pto/yaamp/web/yaamp/ui/css/tags.css +97 -0
- package/pto/yaamp/web/yaamp/ui/css/uni-form-generic.css +25 -0
- package/pto/yaamp/web/yaamp/ui/css/uni-form.css +94 -0
- package/pto/yaamp/web/yaamp/ui/js/auto_refresh.js +33 -0
- package/pto/yaamp/web/yaamp/ui/js/cookies.js +45 -0
- package/pto/yaamp/web/yaamp/ui/js/datetime.js +126 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.bgiframe.js +44 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.dialogextend.js +589 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.tablesorter.js +1031 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.yii.js +45 -0
- package/pto/yaamp/web/yaamp/ui/js/swfobject.js +780 -0
- package/pto/yaamp/web/yaamp/ui/js/texteditor.js +54 -0
- package/pto/yaamp/web/yaamp/ui/js/uni-form.jquery.js +38 -0
- package/pto/yaamp/web/yaamp/ui/js/util.js +108 -0
- package/pto/yaamp/web/yaamp/ui/lib/lib.php +4 -0
- package/pto/yaamp/web/yaamp/ui/lib/libview.php +59 -0
- package/pto/yaamp/web/yaamp/ui/lib/pageheader.php +26 -0
- package/pto/yaamp/web/yaamp/ui/main.php +131 -0
- package/pto/yaamp/web/yaamp/ui/misc.php +41 -0
- package/pto/yaamp/yaamp.sql +3098 -0
|
@@ -0,0 +1,1438 @@
|
|
|
1
|
+
// Memory Leaks patch from http://explorercanvas.googlecode.com/svn/trunk/
|
|
2
|
+
// svn : r73
|
|
3
|
+
// ------------------------------------------------------------------
|
|
4
|
+
// Copyright 2006 Google Inc.
|
|
5
|
+
//
|
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
// you may not use this file except in compliance with the License.
|
|
8
|
+
// You may obtain a copy of the License at
|
|
9
|
+
//
|
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
//
|
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
// See the License for the specific language governing permissions and
|
|
16
|
+
// limitations under the License.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// Known Issues:
|
|
20
|
+
//
|
|
21
|
+
// * Patterns only support repeat.
|
|
22
|
+
// * Radial gradient are not implemented. The VML version of these look very
|
|
23
|
+
// different from the canvas one.
|
|
24
|
+
// * Clipping paths are not implemented.
|
|
25
|
+
// * Coordsize. The width and height attribute have higher priority than the
|
|
26
|
+
// width and height style values which isn't correct.
|
|
27
|
+
// * Painting mode isn't implemented.
|
|
28
|
+
// * Canvas width/height should is using content-box by default. IE in
|
|
29
|
+
// Quirks mode will draw the canvas using border-box. Either change your
|
|
30
|
+
// doctype to HTML5
|
|
31
|
+
// (http://www.whatwg.org/specs/web-apps/current-work/#the-doctype)
|
|
32
|
+
// or use Box Sizing Behavior from WebFX
|
|
33
|
+
// (http://webfx.eae.net/dhtml/boxsizing/boxsizing.html)
|
|
34
|
+
// * Non uniform scaling does not correctly scale strokes.
|
|
35
|
+
// * Optimize. There is always room for speed improvements.
|
|
36
|
+
|
|
37
|
+
// Only add this code if we do not already have a canvas implementation
|
|
38
|
+
if (!document.createElement('canvas').getContext) {
|
|
39
|
+
|
|
40
|
+
(function() {
|
|
41
|
+
|
|
42
|
+
// alias some functions to make (compiled) code shorter
|
|
43
|
+
var m = Math;
|
|
44
|
+
var mr = m.round;
|
|
45
|
+
var ms = m.sin;
|
|
46
|
+
var mc = m.cos;
|
|
47
|
+
var abs = m.abs;
|
|
48
|
+
var sqrt = m.sqrt;
|
|
49
|
+
|
|
50
|
+
// this is used for sub pixel precision
|
|
51
|
+
var Z = 10;
|
|
52
|
+
var Z2 = Z / 2;
|
|
53
|
+
|
|
54
|
+
var IE_VERSION = +navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* This funtion is assigned to the <canvas> elements as element.getContext().
|
|
58
|
+
* @this {HTMLElement}
|
|
59
|
+
* @return {CanvasRenderingContext2D_}
|
|
60
|
+
*/
|
|
61
|
+
function getContext() {
|
|
62
|
+
return this.context_ ||
|
|
63
|
+
(this.context_ = new CanvasRenderingContext2D_(this));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var slice = Array.prototype.slice;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Binds a function to an object. The returned function will always use the
|
|
70
|
+
* passed in {@code obj} as {@code this}.
|
|
71
|
+
*
|
|
72
|
+
* Example:
|
|
73
|
+
*
|
|
74
|
+
* g = bind(f, obj, a, b)
|
|
75
|
+
* g(c, d) // will do f.call(obj, a, b, c, d)
|
|
76
|
+
*
|
|
77
|
+
* @param {Function} f The function to bind the object to
|
|
78
|
+
* @param {Object} obj The object that should act as this when the function
|
|
79
|
+
* is called
|
|
80
|
+
* @param {*} var_args Rest arguments that will be used as the initial
|
|
81
|
+
* arguments when the function is called
|
|
82
|
+
* @return {Function} A new function that has bound this
|
|
83
|
+
*/
|
|
84
|
+
function bind(f, obj, var_args) {
|
|
85
|
+
var a = slice.call(arguments, 2);
|
|
86
|
+
return function() {
|
|
87
|
+
return f.apply(obj, a.concat(slice.call(arguments)));
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function encodeHtmlAttribute(s) {
|
|
92
|
+
return String(s).replace(/&/g, '&').replace(/"/g, '"');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function addNamespace(doc, prefix, urn) {
|
|
96
|
+
if (!doc.namespaces[prefix]) {
|
|
97
|
+
doc.namespaces.add(prefix, urn, '#default#VML');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function addNamespacesAndStylesheet(doc) {
|
|
102
|
+
addNamespace(doc, 'g_vml_', 'urn:schemas-microsoft-com:vml');
|
|
103
|
+
addNamespace(doc, 'g_o_', 'urn:schemas-microsoft-com:office:office');
|
|
104
|
+
|
|
105
|
+
// Setup default CSS. Only add one style sheet per document
|
|
106
|
+
if (!doc.styleSheets['ex_canvas_']) {
|
|
107
|
+
var ss = doc.createStyleSheet();
|
|
108
|
+
ss.owningElement.id = 'ex_canvas_';
|
|
109
|
+
ss.cssText = 'canvas{display:inline-block;overflow:hidden;' +
|
|
110
|
+
// default size is 300x150 in Gecko and Opera
|
|
111
|
+
'text-align:left;width:300px;height:150px}';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Add namespaces and stylesheet at startup.
|
|
116
|
+
addNamespacesAndStylesheet(document);
|
|
117
|
+
|
|
118
|
+
var G_vmlCanvasManager_ = {
|
|
119
|
+
init: function(opt_doc) {
|
|
120
|
+
var doc = opt_doc || document;
|
|
121
|
+
// Create a dummy element so that IE will allow canvas elements to be
|
|
122
|
+
// recognized.
|
|
123
|
+
doc.createElement('canvas');
|
|
124
|
+
doc.attachEvent('onreadystatechange', bind(this.init_, this, doc));
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
init_: function(doc) {
|
|
128
|
+
// find all canvas elements
|
|
129
|
+
var els = doc.getElementsByTagName('canvas');
|
|
130
|
+
for (var i = 0; i < els.length; i++) {
|
|
131
|
+
this.initElement(els[i]);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Public initializes a canvas element so that it can be used as canvas
|
|
137
|
+
* element from now on. This is called automatically before the page is
|
|
138
|
+
* loaded but if you are creating elements using createElement you need to
|
|
139
|
+
* make sure this is called on the element.
|
|
140
|
+
* @param {HTMLElement} el The canvas element to initialize.
|
|
141
|
+
* @return {HTMLElement} the element that was created.
|
|
142
|
+
*/
|
|
143
|
+
initElement: function(el) {
|
|
144
|
+
if (!el.getContext) {
|
|
145
|
+
el.getContext = getContext;
|
|
146
|
+
|
|
147
|
+
// Add namespaces and stylesheet to document of the element.
|
|
148
|
+
addNamespacesAndStylesheet(el.ownerDocument);
|
|
149
|
+
|
|
150
|
+
// Remove fallback content. There is no way to hide text nodes so we
|
|
151
|
+
// just remove all childNodes. We could hide all elements and remove
|
|
152
|
+
// text nodes but who really cares about the fallback content.
|
|
153
|
+
el.innerHTML = '';
|
|
154
|
+
|
|
155
|
+
// do not use inline function because that will leak memory
|
|
156
|
+
el.attachEvent('onpropertychange', onPropertyChange);
|
|
157
|
+
el.attachEvent('onresize', onResize);
|
|
158
|
+
|
|
159
|
+
var attrs = el.attributes;
|
|
160
|
+
if (attrs.width && attrs.width.specified) {
|
|
161
|
+
// TODO: use runtimeStyle and coordsize
|
|
162
|
+
// el.getContext().setWidth_(attrs.width.nodeValue);
|
|
163
|
+
el.style.width = attrs.width.nodeValue + 'px';
|
|
164
|
+
} else {
|
|
165
|
+
el.width = el.clientWidth;
|
|
166
|
+
}
|
|
167
|
+
if (attrs.height && attrs.height.specified) {
|
|
168
|
+
// TODO: use runtimeStyle and coordsize
|
|
169
|
+
// el.getContext().setHeight_(attrs.height.nodeValue);
|
|
170
|
+
el.style.height = attrs.height.nodeValue + 'px';
|
|
171
|
+
} else {
|
|
172
|
+
el.height = el.clientHeight;
|
|
173
|
+
}
|
|
174
|
+
//el.getContext().setCoordsize_()
|
|
175
|
+
}
|
|
176
|
+
return el;
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
// Memory Leaks patch : see http://code.google.com/p/explorercanvas/issues/detail?id=82
|
|
180
|
+
uninitElement: function(el){
|
|
181
|
+
if (el.getContext) {
|
|
182
|
+
var ctx = el.getContext();
|
|
183
|
+
delete ctx.element_;
|
|
184
|
+
delete ctx.canvas;
|
|
185
|
+
el.innerHTML = "";
|
|
186
|
+
//el.outerHTML = "";
|
|
187
|
+
el.context_ = null;
|
|
188
|
+
el.getContext = null;
|
|
189
|
+
el.detachEvent("onpropertychange", onPropertyChange);
|
|
190
|
+
el.detachEvent("onresize", onResize);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
function onPropertyChange(e) {
|
|
196
|
+
var el = e.srcElement;
|
|
197
|
+
|
|
198
|
+
switch (e.propertyName) {
|
|
199
|
+
case 'width':
|
|
200
|
+
el.getContext().clearRect();
|
|
201
|
+
el.style.width = el.attributes.width.nodeValue + 'px';
|
|
202
|
+
// In IE8 this does not trigger onresize.
|
|
203
|
+
el.firstChild.style.width = el.clientWidth + 'px';
|
|
204
|
+
break;
|
|
205
|
+
case 'height':
|
|
206
|
+
el.getContext().clearRect();
|
|
207
|
+
el.style.height = el.attributes.height.nodeValue + 'px';
|
|
208
|
+
el.firstChild.style.height = el.clientHeight + 'px';
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function onResize(e) {
|
|
214
|
+
var el = e.srcElement;
|
|
215
|
+
if (el.firstChild) {
|
|
216
|
+
el.firstChild.style.width = el.clientWidth + 'px';
|
|
217
|
+
el.firstChild.style.height = el.clientHeight + 'px';
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
G_vmlCanvasManager_.init();
|
|
222
|
+
|
|
223
|
+
// precompute "00" to "FF"
|
|
224
|
+
var decToHex = [];
|
|
225
|
+
for (var i = 0; i < 16; i++) {
|
|
226
|
+
for (var j = 0; j < 16; j++) {
|
|
227
|
+
decToHex[i * 16 + j] = i.toString(16) + j.toString(16);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function createMatrixIdentity() {
|
|
232
|
+
return [
|
|
233
|
+
[1, 0, 0],
|
|
234
|
+
[0, 1, 0],
|
|
235
|
+
[0, 0, 1]
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function matrixMultiply(m1, m2) {
|
|
240
|
+
var result = createMatrixIdentity();
|
|
241
|
+
|
|
242
|
+
for (var x = 0; x < 3; x++) {
|
|
243
|
+
for (var y = 0; y < 3; y++) {
|
|
244
|
+
var sum = 0;
|
|
245
|
+
|
|
246
|
+
for (var z = 0; z < 3; z++) {
|
|
247
|
+
sum += m1[x][z] * m2[z][y];
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
result[x][y] = sum;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return result;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function copyState(o1, o2) {
|
|
257
|
+
o2.fillStyle = o1.fillStyle;
|
|
258
|
+
o2.lineCap = o1.lineCap;
|
|
259
|
+
o2.lineJoin = o1.lineJoin;
|
|
260
|
+
o2.lineWidth = o1.lineWidth;
|
|
261
|
+
o2.miterLimit = o1.miterLimit;
|
|
262
|
+
o2.shadowBlur = o1.shadowBlur;
|
|
263
|
+
o2.shadowColor = o1.shadowColor;
|
|
264
|
+
o2.shadowOffsetX = o1.shadowOffsetX;
|
|
265
|
+
o2.shadowOffsetY = o1.shadowOffsetY;
|
|
266
|
+
o2.strokeStyle = o1.strokeStyle;
|
|
267
|
+
o2.globalAlpha = o1.globalAlpha;
|
|
268
|
+
o2.font = o1.font;
|
|
269
|
+
o2.textAlign = o1.textAlign;
|
|
270
|
+
o2.textBaseline = o1.textBaseline;
|
|
271
|
+
o2.arcScaleX_ = o1.arcScaleX_;
|
|
272
|
+
o2.arcScaleY_ = o1.arcScaleY_;
|
|
273
|
+
o2.lineScale_ = o1.lineScale_;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
var colorData = {
|
|
277
|
+
aliceblue: '#F0F8FF',
|
|
278
|
+
antiquewhite: '#FAEBD7',
|
|
279
|
+
aquamarine: '#7FFFD4',
|
|
280
|
+
azure: '#F0FFFF',
|
|
281
|
+
beige: '#F5F5DC',
|
|
282
|
+
bisque: '#FFE4C4',
|
|
283
|
+
black: '#000000',
|
|
284
|
+
blanchedalmond: '#FFEBCD',
|
|
285
|
+
blueviolet: '#8A2BE2',
|
|
286
|
+
brown: '#A52A2A',
|
|
287
|
+
burlywood: '#DEB887',
|
|
288
|
+
cadetblue: '#5F9EA0',
|
|
289
|
+
chartreuse: '#7FFF00',
|
|
290
|
+
chocolate: '#D2691E',
|
|
291
|
+
coral: '#FF7F50',
|
|
292
|
+
cornflowerblue: '#6495ED',
|
|
293
|
+
cornsilk: '#FFF8DC',
|
|
294
|
+
crimson: '#DC143C',
|
|
295
|
+
cyan: '#00FFFF',
|
|
296
|
+
darkblue: '#00008B',
|
|
297
|
+
darkcyan: '#008B8B',
|
|
298
|
+
darkgoldenrod: '#B8860B',
|
|
299
|
+
darkgray: '#A9A9A9',
|
|
300
|
+
darkgreen: '#006400',
|
|
301
|
+
darkgrey: '#A9A9A9',
|
|
302
|
+
darkkhaki: '#BDB76B',
|
|
303
|
+
darkmagenta: '#8B008B',
|
|
304
|
+
darkolivegreen: '#556B2F',
|
|
305
|
+
darkorange: '#FF8C00',
|
|
306
|
+
darkorchid: '#9932CC',
|
|
307
|
+
darkred: '#8B0000',
|
|
308
|
+
darksalmon: '#E9967A',
|
|
309
|
+
darkseagreen: '#8FBC8F',
|
|
310
|
+
darkslateblue: '#483D8B',
|
|
311
|
+
darkslategray: '#2F4F4F',
|
|
312
|
+
darkslategrey: '#2F4F4F',
|
|
313
|
+
darkturquoise: '#00CED1',
|
|
314
|
+
darkviolet: '#9400D3',
|
|
315
|
+
deeppink: '#FF1493',
|
|
316
|
+
deepskyblue: '#00BFFF',
|
|
317
|
+
dimgray: '#696969',
|
|
318
|
+
dimgrey: '#696969',
|
|
319
|
+
dodgerblue: '#1E90FF',
|
|
320
|
+
firebrick: '#B22222',
|
|
321
|
+
floralwhite: '#FFFAF0',
|
|
322
|
+
forestgreen: '#228B22',
|
|
323
|
+
gainsboro: '#DCDCDC',
|
|
324
|
+
ghostwhite: '#F8F8FF',
|
|
325
|
+
gold: '#FFD700',
|
|
326
|
+
goldenrod: '#DAA520',
|
|
327
|
+
grey: '#808080',
|
|
328
|
+
greenyellow: '#ADFF2F',
|
|
329
|
+
honeydew: '#F0FFF0',
|
|
330
|
+
hotpink: '#FF69B4',
|
|
331
|
+
indianred: '#CD5C5C',
|
|
332
|
+
indigo: '#4B0082',
|
|
333
|
+
ivory: '#FFFFF0',
|
|
334
|
+
khaki: '#F0E68C',
|
|
335
|
+
lavender: '#E6E6FA',
|
|
336
|
+
lavenderblush: '#FFF0F5',
|
|
337
|
+
lawngreen: '#7CFC00',
|
|
338
|
+
lemonchiffon: '#FFFACD',
|
|
339
|
+
lightblue: '#ADD8E6',
|
|
340
|
+
lightcoral: '#F08080',
|
|
341
|
+
lightcyan: '#E0FFFF',
|
|
342
|
+
lightgoldenrodyellow: '#FAFAD2',
|
|
343
|
+
lightgreen: '#90EE90',
|
|
344
|
+
lightgrey: '#D3D3D3',
|
|
345
|
+
lightpink: '#FFB6C1',
|
|
346
|
+
lightsalmon: '#FFA07A',
|
|
347
|
+
lightseagreen: '#20B2AA',
|
|
348
|
+
lightskyblue: '#87CEFA',
|
|
349
|
+
lightslategray: '#778899',
|
|
350
|
+
lightslategrey: '#778899',
|
|
351
|
+
lightsteelblue: '#B0C4DE',
|
|
352
|
+
lightyellow: '#FFFFE0',
|
|
353
|
+
limegreen: '#32CD32',
|
|
354
|
+
linen: '#FAF0E6',
|
|
355
|
+
magenta: '#FF00FF',
|
|
356
|
+
mediumaquamarine: '#66CDAA',
|
|
357
|
+
mediumblue: '#0000CD',
|
|
358
|
+
mediumorchid: '#BA55D3',
|
|
359
|
+
mediumpurple: '#9370DB',
|
|
360
|
+
mediumseagreen: '#3CB371',
|
|
361
|
+
mediumslateblue: '#7B68EE',
|
|
362
|
+
mediumspringgreen: '#00FA9A',
|
|
363
|
+
mediumturquoise: '#48D1CC',
|
|
364
|
+
mediumvioletred: '#C71585',
|
|
365
|
+
midnightblue: '#191970',
|
|
366
|
+
mintcream: '#F5FFFA',
|
|
367
|
+
mistyrose: '#FFE4E1',
|
|
368
|
+
moccasin: '#FFE4B5',
|
|
369
|
+
navajowhite: '#FFDEAD',
|
|
370
|
+
oldlace: '#FDF5E6',
|
|
371
|
+
olivedrab: '#6B8E23',
|
|
372
|
+
orange: '#FFA500',
|
|
373
|
+
orangered: '#FF4500',
|
|
374
|
+
orchid: '#DA70D6',
|
|
375
|
+
palegoldenrod: '#EEE8AA',
|
|
376
|
+
palegreen: '#98FB98',
|
|
377
|
+
paleturquoise: '#AFEEEE',
|
|
378
|
+
palevioletred: '#DB7093',
|
|
379
|
+
papayawhip: '#FFEFD5',
|
|
380
|
+
peachpuff: '#FFDAB9',
|
|
381
|
+
peru: '#CD853F',
|
|
382
|
+
pink: '#FFC0CB',
|
|
383
|
+
plum: '#DDA0DD',
|
|
384
|
+
powderblue: '#B0E0E6',
|
|
385
|
+
rosybrown: '#BC8F8F',
|
|
386
|
+
royalblue: '#4169E1',
|
|
387
|
+
saddlebrown: '#8B4513',
|
|
388
|
+
salmon: '#FA8072',
|
|
389
|
+
sandybrown: '#F4A460',
|
|
390
|
+
seagreen: '#2E8B57',
|
|
391
|
+
seashell: '#FFF5EE',
|
|
392
|
+
sienna: '#A0522D',
|
|
393
|
+
skyblue: '#87CEEB',
|
|
394
|
+
slateblue: '#6A5ACD',
|
|
395
|
+
slategray: '#708090',
|
|
396
|
+
slategrey: '#708090',
|
|
397
|
+
snow: '#FFFAFA',
|
|
398
|
+
springgreen: '#00FF7F',
|
|
399
|
+
steelblue: '#4682B4',
|
|
400
|
+
tan: '#D2B48C',
|
|
401
|
+
thistle: '#D8BFD8',
|
|
402
|
+
tomato: '#FF6347',
|
|
403
|
+
turquoise: '#40E0D0',
|
|
404
|
+
violet: '#EE82EE',
|
|
405
|
+
wheat: '#F5DEB3',
|
|
406
|
+
whitesmoke: '#F5F5F5',
|
|
407
|
+
yellowgreen: '#9ACD32'
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
function getRgbHslContent(styleString) {
|
|
412
|
+
var start = styleString.indexOf('(', 3);
|
|
413
|
+
var end = styleString.indexOf(')', start + 1);
|
|
414
|
+
var parts = styleString.substring(start + 1, end).split(',');
|
|
415
|
+
// add alpha if needed
|
|
416
|
+
if (parts.length != 4 || styleString.charAt(3) != 'a') {
|
|
417
|
+
parts[3] = 1;
|
|
418
|
+
}
|
|
419
|
+
return parts;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
function percent(s) {
|
|
423
|
+
return parseFloat(s) / 100;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
function clamp(v, min, max) {
|
|
427
|
+
return Math.min(max, Math.max(min, v));
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
function hslToRgb(parts){
|
|
431
|
+
var r, g, b, h, s, l;
|
|
432
|
+
h = parseFloat(parts[0]) / 360 % 360;
|
|
433
|
+
if (h < 0)
|
|
434
|
+
h++;
|
|
435
|
+
s = clamp(percent(parts[1]), 0, 1);
|
|
436
|
+
l = clamp(percent(parts[2]), 0, 1);
|
|
437
|
+
if (s == 0) {
|
|
438
|
+
r = g = b = l; // achromatic
|
|
439
|
+
} else {
|
|
440
|
+
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
441
|
+
var p = 2 * l - q;
|
|
442
|
+
r = hueToRgb(p, q, h + 1 / 3);
|
|
443
|
+
g = hueToRgb(p, q, h);
|
|
444
|
+
b = hueToRgb(p, q, h - 1 / 3);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
return '#' + decToHex[Math.floor(r * 255)] +
|
|
448
|
+
decToHex[Math.floor(g * 255)] +
|
|
449
|
+
decToHex[Math.floor(b * 255)];
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
function hueToRgb(m1, m2, h) {
|
|
453
|
+
if (h < 0)
|
|
454
|
+
h++;
|
|
455
|
+
if (h > 1)
|
|
456
|
+
h--;
|
|
457
|
+
|
|
458
|
+
if (6 * h < 1)
|
|
459
|
+
return m1 + (m2 - m1) * 6 * h;
|
|
460
|
+
else if (2 * h < 1)
|
|
461
|
+
return m2;
|
|
462
|
+
else if (3 * h < 2)
|
|
463
|
+
return m1 + (m2 - m1) * (2 / 3 - h) * 6;
|
|
464
|
+
else
|
|
465
|
+
return m1;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
var processStyleCache = {};
|
|
469
|
+
|
|
470
|
+
function processStyle(styleString) {
|
|
471
|
+
if (styleString in processStyleCache) {
|
|
472
|
+
return processStyleCache[styleString];
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
var str, alpha = 1;
|
|
476
|
+
|
|
477
|
+
styleString = String(styleString);
|
|
478
|
+
if (styleString.charAt(0) == '#') {
|
|
479
|
+
str = styleString;
|
|
480
|
+
} else if (/^rgb/.test(styleString)) {
|
|
481
|
+
var parts = getRgbHslContent(styleString);
|
|
482
|
+
var str = '#', n;
|
|
483
|
+
for (var i = 0; i < 3; i++) {
|
|
484
|
+
if (parts[i].indexOf('%') != -1) {
|
|
485
|
+
n = Math.floor(percent(parts[i]) * 255);
|
|
486
|
+
} else {
|
|
487
|
+
n = +parts[i];
|
|
488
|
+
}
|
|
489
|
+
str += decToHex[clamp(n, 0, 255)];
|
|
490
|
+
}
|
|
491
|
+
alpha = +parts[3];
|
|
492
|
+
} else if (/^hsl/.test(styleString)) {
|
|
493
|
+
var parts = getRgbHslContent(styleString);
|
|
494
|
+
str = hslToRgb(parts);
|
|
495
|
+
alpha = parts[3];
|
|
496
|
+
} else {
|
|
497
|
+
str = colorData[styleString] || styleString;
|
|
498
|
+
}
|
|
499
|
+
return processStyleCache[styleString] = {color: str, alpha: alpha};
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
var DEFAULT_STYLE = {
|
|
503
|
+
style: 'normal',
|
|
504
|
+
variant: 'normal',
|
|
505
|
+
weight: 'normal',
|
|
506
|
+
size: 10,
|
|
507
|
+
family: 'sans-serif'
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
// Internal text style cache
|
|
511
|
+
var fontStyleCache = {};
|
|
512
|
+
|
|
513
|
+
function processFontStyle(styleString) {
|
|
514
|
+
if (fontStyleCache[styleString]) {
|
|
515
|
+
return fontStyleCache[styleString];
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
var el = document.createElement('div');
|
|
519
|
+
var style = el.style;
|
|
520
|
+
try {
|
|
521
|
+
style.font = styleString;
|
|
522
|
+
} catch (ex) {
|
|
523
|
+
// Ignore failures to set to invalid font.
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
return fontStyleCache[styleString] = {
|
|
527
|
+
style: style.fontStyle || DEFAULT_STYLE.style,
|
|
528
|
+
variant: style.fontVariant || DEFAULT_STYLE.variant,
|
|
529
|
+
weight: style.fontWeight || DEFAULT_STYLE.weight,
|
|
530
|
+
size: style.fontSize || DEFAULT_STYLE.size,
|
|
531
|
+
family: style.fontFamily || DEFAULT_STYLE.family
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
function getComputedStyle(style, element) {
|
|
536
|
+
var computedStyle = {};
|
|
537
|
+
|
|
538
|
+
for (var p in style) {
|
|
539
|
+
computedStyle[p] = style[p];
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// Compute the size
|
|
543
|
+
var canvasFontSize = parseFloat(element.currentStyle.fontSize),
|
|
544
|
+
fontSize = parseFloat(style.size);
|
|
545
|
+
|
|
546
|
+
if (typeof style.size == 'number') {
|
|
547
|
+
computedStyle.size = style.size;
|
|
548
|
+
} else if (style.size.indexOf('px') != -1) {
|
|
549
|
+
computedStyle.size = fontSize;
|
|
550
|
+
} else if (style.size.indexOf('em') != -1) {
|
|
551
|
+
computedStyle.size = canvasFontSize * fontSize;
|
|
552
|
+
} else if(style.size.indexOf('%') != -1) {
|
|
553
|
+
computedStyle.size = (canvasFontSize / 100) * fontSize;
|
|
554
|
+
} else if (style.size.indexOf('pt') != -1) {
|
|
555
|
+
computedStyle.size = fontSize / .75;
|
|
556
|
+
} else {
|
|
557
|
+
computedStyle.size = canvasFontSize;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// Different scaling between normal text and VML text. This was found using
|
|
561
|
+
// trial and error to get the same size as non VML text.
|
|
562
|
+
computedStyle.size *= 0.981;
|
|
563
|
+
|
|
564
|
+
// Fix for VML handling of bare font family names. Add a '' around font family names.
|
|
565
|
+
computedStyle.family = "'" + computedStyle.family.replace(/(\'|\")/g,'').replace(/\s*,\s*/g, "', '") + "'";
|
|
566
|
+
|
|
567
|
+
return computedStyle;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
function buildStyle(style) {
|
|
571
|
+
return style.style + ' ' + style.variant + ' ' + style.weight + ' ' +
|
|
572
|
+
style.size + 'px ' + style.family;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
var lineCapMap = {
|
|
576
|
+
'butt': 'flat',
|
|
577
|
+
'round': 'round'
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
function processLineCap(lineCap) {
|
|
581
|
+
return lineCapMap[lineCap] || 'square';
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* This class implements CanvasRenderingContext2D interface as described by
|
|
586
|
+
* the WHATWG.
|
|
587
|
+
* @param {HTMLElement} canvasElement The element that the 2D context should
|
|
588
|
+
* be associated with
|
|
589
|
+
*/
|
|
590
|
+
function CanvasRenderingContext2D_(canvasElement) {
|
|
591
|
+
this.m_ = createMatrixIdentity();
|
|
592
|
+
|
|
593
|
+
this.mStack_ = [];
|
|
594
|
+
this.aStack_ = [];
|
|
595
|
+
this.currentPath_ = [];
|
|
596
|
+
|
|
597
|
+
// Canvas context properties
|
|
598
|
+
this.strokeStyle = '#000';
|
|
599
|
+
this.fillStyle = '#000';
|
|
600
|
+
|
|
601
|
+
this.lineWidth = 1;
|
|
602
|
+
this.lineJoin = 'miter';
|
|
603
|
+
this.lineCap = 'butt';
|
|
604
|
+
this.miterLimit = Z * 1;
|
|
605
|
+
this.globalAlpha = 1;
|
|
606
|
+
this.font = '10px sans-serif';
|
|
607
|
+
this.textAlign = 'left';
|
|
608
|
+
this.textBaseline = 'alphabetic';
|
|
609
|
+
this.canvas = canvasElement;
|
|
610
|
+
|
|
611
|
+
var cssText = 'width:' + canvasElement.clientWidth + 'px;height:' +
|
|
612
|
+
canvasElement.clientHeight + 'px;overflow:hidden;position:absolute';
|
|
613
|
+
var el = canvasElement.ownerDocument.createElement('div');
|
|
614
|
+
el.style.cssText = cssText;
|
|
615
|
+
canvasElement.appendChild(el);
|
|
616
|
+
|
|
617
|
+
var overlayEl = el.cloneNode(false);
|
|
618
|
+
// Use a non transparent background.
|
|
619
|
+
overlayEl.style.backgroundColor = 'red';
|
|
620
|
+
overlayEl.style.filter = 'alpha(opacity=0)';
|
|
621
|
+
canvasElement.appendChild(overlayEl);
|
|
622
|
+
|
|
623
|
+
this.element_ = el;
|
|
624
|
+
this.arcScaleX_ = 1;
|
|
625
|
+
this.arcScaleY_ = 1;
|
|
626
|
+
this.lineScale_ = 1;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
var contextPrototype = CanvasRenderingContext2D_.prototype;
|
|
630
|
+
contextPrototype.clearRect = function() {
|
|
631
|
+
if (this.textMeasureEl_) {
|
|
632
|
+
this.textMeasureEl_.removeNode(true);
|
|
633
|
+
this.textMeasureEl_ = null;
|
|
634
|
+
}
|
|
635
|
+
this.element_.innerHTML = '';
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
contextPrototype.beginPath = function() {
|
|
639
|
+
// TODO: Branch current matrix so that save/restore has no effect
|
|
640
|
+
// as per safari docs.
|
|
641
|
+
this.currentPath_ = [];
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
contextPrototype.moveTo = function(aX, aY) {
|
|
645
|
+
var p = getCoords(this, aX, aY);
|
|
646
|
+
this.currentPath_.push({type: 'moveTo', x: p.x, y: p.y});
|
|
647
|
+
this.currentX_ = p.x;
|
|
648
|
+
this.currentY_ = p.y;
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
contextPrototype.lineTo = function(aX, aY) {
|
|
652
|
+
var p = getCoords(this, aX, aY);
|
|
653
|
+
this.currentPath_.push({type: 'lineTo', x: p.x, y: p.y});
|
|
654
|
+
|
|
655
|
+
this.currentX_ = p.x;
|
|
656
|
+
this.currentY_ = p.y;
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
contextPrototype.bezierCurveTo = function(aCP1x, aCP1y,
|
|
660
|
+
aCP2x, aCP2y,
|
|
661
|
+
aX, aY) {
|
|
662
|
+
var p = getCoords(this, aX, aY);
|
|
663
|
+
var cp1 = getCoords(this, aCP1x, aCP1y);
|
|
664
|
+
var cp2 = getCoords(this, aCP2x, aCP2y);
|
|
665
|
+
bezierCurveTo(this, cp1, cp2, p);
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
// Helper function that takes the already fixed cordinates.
|
|
669
|
+
function bezierCurveTo(self, cp1, cp2, p) {
|
|
670
|
+
self.currentPath_.push({
|
|
671
|
+
type: 'bezierCurveTo',
|
|
672
|
+
cp1x: cp1.x,
|
|
673
|
+
cp1y: cp1.y,
|
|
674
|
+
cp2x: cp2.x,
|
|
675
|
+
cp2y: cp2.y,
|
|
676
|
+
x: p.x,
|
|
677
|
+
y: p.y
|
|
678
|
+
});
|
|
679
|
+
self.currentX_ = p.x;
|
|
680
|
+
self.currentY_ = p.y;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
contextPrototype.quadraticCurveTo = function(aCPx, aCPy, aX, aY) {
|
|
684
|
+
// the following is lifted almost directly from
|
|
685
|
+
// http://developer.mozilla.org/en/docs/Canvas_tutorial:Drawing_shapes
|
|
686
|
+
|
|
687
|
+
var cp = getCoords(this, aCPx, aCPy);
|
|
688
|
+
var p = getCoords(this, aX, aY);
|
|
689
|
+
|
|
690
|
+
var cp1 = {
|
|
691
|
+
x: this.currentX_ + 2.0 / 3.0 * (cp.x - this.currentX_),
|
|
692
|
+
y: this.currentY_ + 2.0 / 3.0 * (cp.y - this.currentY_)
|
|
693
|
+
};
|
|
694
|
+
var cp2 = {
|
|
695
|
+
x: cp1.x + (p.x - this.currentX_) / 3.0,
|
|
696
|
+
y: cp1.y + (p.y - this.currentY_) / 3.0
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
bezierCurveTo(this, cp1, cp2, p);
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
contextPrototype.arc = function(aX, aY, aRadius,
|
|
703
|
+
aStartAngle, aEndAngle, aClockwise) {
|
|
704
|
+
aRadius *= Z;
|
|
705
|
+
var arcType = aClockwise ? 'at' : 'wa';
|
|
706
|
+
|
|
707
|
+
var xStart = aX + mc(aStartAngle) * aRadius - Z2;
|
|
708
|
+
var yStart = aY + ms(aStartAngle) * aRadius - Z2;
|
|
709
|
+
|
|
710
|
+
var xEnd = aX + mc(aEndAngle) * aRadius - Z2;
|
|
711
|
+
var yEnd = aY + ms(aEndAngle) * aRadius - Z2;
|
|
712
|
+
|
|
713
|
+
// IE won't render arches drawn counter clockwise if xStart == xEnd.
|
|
714
|
+
if (xStart == xEnd && !aClockwise) {
|
|
715
|
+
xStart += 0.125; // Offset xStart by 1/80 of a pixel. Use something
|
|
716
|
+
// that can be represented in binary
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
var p = getCoords(this, aX, aY);
|
|
720
|
+
var pStart = getCoords(this, xStart, yStart);
|
|
721
|
+
var pEnd = getCoords(this, xEnd, yEnd);
|
|
722
|
+
|
|
723
|
+
this.currentPath_.push({type: arcType,
|
|
724
|
+
x: p.x,
|
|
725
|
+
y: p.y,
|
|
726
|
+
radius: aRadius,
|
|
727
|
+
xStart: pStart.x,
|
|
728
|
+
yStart: pStart.y,
|
|
729
|
+
xEnd: pEnd.x,
|
|
730
|
+
yEnd: pEnd.y});
|
|
731
|
+
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
contextPrototype.rect = function(aX, aY, aWidth, aHeight) {
|
|
735
|
+
this.moveTo(aX, aY);
|
|
736
|
+
this.lineTo(aX + aWidth, aY);
|
|
737
|
+
this.lineTo(aX + aWidth, aY + aHeight);
|
|
738
|
+
this.lineTo(aX, aY + aHeight);
|
|
739
|
+
this.closePath();
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
contextPrototype.strokeRect = function(aX, aY, aWidth, aHeight) {
|
|
743
|
+
var oldPath = this.currentPath_;
|
|
744
|
+
this.beginPath();
|
|
745
|
+
|
|
746
|
+
this.moveTo(aX, aY);
|
|
747
|
+
this.lineTo(aX + aWidth, aY);
|
|
748
|
+
this.lineTo(aX + aWidth, aY + aHeight);
|
|
749
|
+
this.lineTo(aX, aY + aHeight);
|
|
750
|
+
this.closePath();
|
|
751
|
+
this.stroke();
|
|
752
|
+
|
|
753
|
+
this.currentPath_ = oldPath;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
contextPrototype.fillRect = function(aX, aY, aWidth, aHeight) {
|
|
757
|
+
var oldPath = this.currentPath_;
|
|
758
|
+
this.beginPath();
|
|
759
|
+
|
|
760
|
+
this.moveTo(aX, aY);
|
|
761
|
+
this.lineTo(aX + aWidth, aY);
|
|
762
|
+
this.lineTo(aX + aWidth, aY + aHeight);
|
|
763
|
+
this.lineTo(aX, aY + aHeight);
|
|
764
|
+
this.closePath();
|
|
765
|
+
this.fill();
|
|
766
|
+
|
|
767
|
+
this.currentPath_ = oldPath;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
contextPrototype.createLinearGradient = function(aX0, aY0, aX1, aY1) {
|
|
771
|
+
var gradient = new CanvasGradient_('gradient');
|
|
772
|
+
gradient.x0_ = aX0;
|
|
773
|
+
gradient.y0_ = aY0;
|
|
774
|
+
gradient.x1_ = aX1;
|
|
775
|
+
gradient.y1_ = aY1;
|
|
776
|
+
return gradient;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
contextPrototype.createRadialGradient = function(aX0, aY0, aR0,
|
|
780
|
+
aX1, aY1, aR1) {
|
|
781
|
+
var gradient = new CanvasGradient_('gradientradial');
|
|
782
|
+
gradient.x0_ = aX0;
|
|
783
|
+
gradient.y0_ = aY0;
|
|
784
|
+
gradient.r0_ = aR0;
|
|
785
|
+
gradient.x1_ = aX1;
|
|
786
|
+
gradient.y1_ = aY1;
|
|
787
|
+
gradient.r1_ = aR1;
|
|
788
|
+
return gradient;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
contextPrototype.drawImage = function(image, var_args) {
|
|
792
|
+
var dx, dy, dw, dh, sx, sy, sw, sh;
|
|
793
|
+
|
|
794
|
+
// to find the original width we overide the width and height
|
|
795
|
+
var oldRuntimeWidth = image.runtimeStyle.width;
|
|
796
|
+
var oldRuntimeHeight = image.runtimeStyle.height;
|
|
797
|
+
image.runtimeStyle.width = 'auto';
|
|
798
|
+
image.runtimeStyle.height = 'auto';
|
|
799
|
+
|
|
800
|
+
// get the original size
|
|
801
|
+
var w = image.width;
|
|
802
|
+
var h = image.height;
|
|
803
|
+
|
|
804
|
+
// and remove overides
|
|
805
|
+
image.runtimeStyle.width = oldRuntimeWidth;
|
|
806
|
+
image.runtimeStyle.height = oldRuntimeHeight;
|
|
807
|
+
|
|
808
|
+
if (arguments.length == 3) {
|
|
809
|
+
dx = arguments[1];
|
|
810
|
+
dy = arguments[2];
|
|
811
|
+
sx = sy = 0;
|
|
812
|
+
sw = dw = w;
|
|
813
|
+
sh = dh = h;
|
|
814
|
+
} else if (arguments.length == 5) {
|
|
815
|
+
dx = arguments[1];
|
|
816
|
+
dy = arguments[2];
|
|
817
|
+
dw = arguments[3];
|
|
818
|
+
dh = arguments[4];
|
|
819
|
+
sx = sy = 0;
|
|
820
|
+
sw = w;
|
|
821
|
+
sh = h;
|
|
822
|
+
} else if (arguments.length == 9) {
|
|
823
|
+
sx = arguments[1];
|
|
824
|
+
sy = arguments[2];
|
|
825
|
+
sw = arguments[3];
|
|
826
|
+
sh = arguments[4];
|
|
827
|
+
dx = arguments[5];
|
|
828
|
+
dy = arguments[6];
|
|
829
|
+
dw = arguments[7];
|
|
830
|
+
dh = arguments[8];
|
|
831
|
+
} else {
|
|
832
|
+
throw Error('Invalid number of arguments');
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
var d = getCoords(this, dx, dy);
|
|
836
|
+
|
|
837
|
+
var w2 = sw / 2;
|
|
838
|
+
var h2 = sh / 2;
|
|
839
|
+
|
|
840
|
+
var vmlStr = [];
|
|
841
|
+
|
|
842
|
+
var W = 10;
|
|
843
|
+
var H = 10;
|
|
844
|
+
|
|
845
|
+
// For some reason that I've now forgotten, using divs didn't work
|
|
846
|
+
vmlStr.push(' <g_vml_:group',
|
|
847
|
+
' coordsize="', Z * W, ',', Z * H, '"',
|
|
848
|
+
' coordorigin="0,0"' ,
|
|
849
|
+
' style="width:', W, 'px;height:', H, 'px;position:absolute;');
|
|
850
|
+
|
|
851
|
+
// If filters are necessary (rotation exists), create them
|
|
852
|
+
// filters are bog-slow, so only create them if abbsolutely necessary
|
|
853
|
+
// The following check doesn't account for skews (which don't exist
|
|
854
|
+
// in the canvas spec (yet) anyway.
|
|
855
|
+
|
|
856
|
+
if (this.m_[0][0] != 1 || this.m_[0][1] ||
|
|
857
|
+
this.m_[1][1] != 1 || this.m_[1][0]) {
|
|
858
|
+
var filter = [];
|
|
859
|
+
|
|
860
|
+
// Note the 12/21 reversal
|
|
861
|
+
filter.push('M11=', this.m_[0][0], ',',
|
|
862
|
+
'M12=', this.m_[1][0], ',',
|
|
863
|
+
'M21=', this.m_[0][1], ',',
|
|
864
|
+
'M22=', this.m_[1][1], ',',
|
|
865
|
+
'Dx=', mr(d.x / Z), ',',
|
|
866
|
+
'Dy=', mr(d.y / Z), '');
|
|
867
|
+
|
|
868
|
+
// Bounding box calculation (need to minimize displayed area so that
|
|
869
|
+
// filters don't waste time on unused pixels.
|
|
870
|
+
var max = d;
|
|
871
|
+
var c2 = getCoords(this, dx + dw, dy);
|
|
872
|
+
var c3 = getCoords(this, dx, dy + dh);
|
|
873
|
+
var c4 = getCoords(this, dx + dw, dy + dh);
|
|
874
|
+
|
|
875
|
+
max.x = m.max(max.x, c2.x, c3.x, c4.x);
|
|
876
|
+
max.y = m.max(max.y, c2.y, c3.y, c4.y);
|
|
877
|
+
|
|
878
|
+
vmlStr.push('padding:0 ', mr(max.x / Z), 'px ', mr(max.y / Z),
|
|
879
|
+
'px 0;filter:progid:DXImageTransform.Microsoft.Matrix(',
|
|
880
|
+
filter.join(''), ", sizingmethod='clip');");
|
|
881
|
+
|
|
882
|
+
} else {
|
|
883
|
+
vmlStr.push('top:', mr(d.y / Z), 'px;left:', mr(d.x / Z), 'px;');
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
vmlStr.push(' ">' ,
|
|
887
|
+
'<g_vml_:image src="', image.src, '"',
|
|
888
|
+
' style="width:', Z * dw, 'px;',
|
|
889
|
+
' height:', Z * dh, 'px"',
|
|
890
|
+
' cropleft="', sx / w, '"',
|
|
891
|
+
' croptop="', sy / h, '"',
|
|
892
|
+
' cropright="', (w - sx - sw) / w, '"',
|
|
893
|
+
' cropbottom="', (h - sy - sh) / h, '"',
|
|
894
|
+
' />',
|
|
895
|
+
'</g_vml_:group>');
|
|
896
|
+
|
|
897
|
+
this.element_.insertAdjacentHTML('BeforeEnd', vmlStr.join(''));
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
contextPrototype.stroke = function(aFill) {
|
|
901
|
+
var lineStr = [];
|
|
902
|
+
var lineOpen = false;
|
|
903
|
+
|
|
904
|
+
var W = 10;
|
|
905
|
+
var H = 10;
|
|
906
|
+
|
|
907
|
+
lineStr.push('<g_vml_:shape',
|
|
908
|
+
' filled="', !!aFill, '"',
|
|
909
|
+
' style="position:absolute;width:', W, 'px;height:', H, 'px;"',
|
|
910
|
+
' coordorigin="0,0"',
|
|
911
|
+
' coordsize="', Z * W, ',', Z * H, '"',
|
|
912
|
+
' stroked="', !aFill, '"',
|
|
913
|
+
' path="');
|
|
914
|
+
|
|
915
|
+
var newSeq = false;
|
|
916
|
+
var min = {x: null, y: null};
|
|
917
|
+
var max = {x: null, y: null};
|
|
918
|
+
|
|
919
|
+
for (var i = 0; i < this.currentPath_.length; i++) {
|
|
920
|
+
var p = this.currentPath_[i];
|
|
921
|
+
var c;
|
|
922
|
+
|
|
923
|
+
switch (p.type) {
|
|
924
|
+
case 'moveTo':
|
|
925
|
+
c = p;
|
|
926
|
+
lineStr.push(' m ', mr(p.x), ',', mr(p.y));
|
|
927
|
+
break;
|
|
928
|
+
case 'lineTo':
|
|
929
|
+
lineStr.push(' l ', mr(p.x), ',', mr(p.y));
|
|
930
|
+
break;
|
|
931
|
+
case 'close':
|
|
932
|
+
lineStr.push(' x ');
|
|
933
|
+
p = null;
|
|
934
|
+
break;
|
|
935
|
+
case 'bezierCurveTo':
|
|
936
|
+
lineStr.push(' c ',
|
|
937
|
+
mr(p.cp1x), ',', mr(p.cp1y), ',',
|
|
938
|
+
mr(p.cp2x), ',', mr(p.cp2y), ',',
|
|
939
|
+
mr(p.x), ',', mr(p.y));
|
|
940
|
+
break;
|
|
941
|
+
case 'at':
|
|
942
|
+
case 'wa':
|
|
943
|
+
lineStr.push(' ', p.type, ' ',
|
|
944
|
+
mr(p.x - this.arcScaleX_ * p.radius), ',',
|
|
945
|
+
mr(p.y - this.arcScaleY_ * p.radius), ' ',
|
|
946
|
+
mr(p.x + this.arcScaleX_ * p.radius), ',',
|
|
947
|
+
mr(p.y + this.arcScaleY_ * p.radius), ' ',
|
|
948
|
+
mr(p.xStart), ',', mr(p.yStart), ' ',
|
|
949
|
+
mr(p.xEnd), ',', mr(p.yEnd));
|
|
950
|
+
break;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
// TODO: Following is broken for curves due to
|
|
955
|
+
// move to proper paths.
|
|
956
|
+
|
|
957
|
+
// Figure out dimensions so we can do gradient fills
|
|
958
|
+
// properly
|
|
959
|
+
if (p) {
|
|
960
|
+
if (min.x == null || p.x < min.x) {
|
|
961
|
+
min.x = p.x;
|
|
962
|
+
}
|
|
963
|
+
if (max.x == null || p.x > max.x) {
|
|
964
|
+
max.x = p.x;
|
|
965
|
+
}
|
|
966
|
+
if (min.y == null || p.y < min.y) {
|
|
967
|
+
min.y = p.y;
|
|
968
|
+
}
|
|
969
|
+
if (max.y == null || p.y > max.y) {
|
|
970
|
+
max.y = p.y;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
lineStr.push(' ">');
|
|
975
|
+
|
|
976
|
+
if (!aFill) {
|
|
977
|
+
appendStroke(this, lineStr);
|
|
978
|
+
} else {
|
|
979
|
+
appendFill(this, lineStr, min, max);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
lineStr.push('</g_vml_:shape>');
|
|
983
|
+
|
|
984
|
+
this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
function appendStroke(ctx, lineStr) {
|
|
988
|
+
var a = processStyle(ctx.strokeStyle);
|
|
989
|
+
var color = a.color;
|
|
990
|
+
var opacity = a.alpha * ctx.globalAlpha;
|
|
991
|
+
var lineWidth = ctx.lineScale_ * ctx.lineWidth;
|
|
992
|
+
|
|
993
|
+
// VML cannot correctly render a line if the width is less than 1px.
|
|
994
|
+
// In that case, we dilute the color to make the line look thinner.
|
|
995
|
+
if (lineWidth < 1) {
|
|
996
|
+
opacity *= lineWidth;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
lineStr.push(
|
|
1000
|
+
'<g_vml_:stroke',
|
|
1001
|
+
' opacity="', opacity, '"',
|
|
1002
|
+
' joinstyle="', ctx.lineJoin, '"',
|
|
1003
|
+
' miterlimit="', ctx.miterLimit, '"',
|
|
1004
|
+
' endcap="', processLineCap(ctx.lineCap), '"',
|
|
1005
|
+
' weight="', lineWidth, 'px"',
|
|
1006
|
+
' color="', color, '" />'
|
|
1007
|
+
);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
function appendFill(ctx, lineStr, min, max) {
|
|
1011
|
+
var fillStyle = ctx.fillStyle;
|
|
1012
|
+
var arcScaleX = ctx.arcScaleX_;
|
|
1013
|
+
var arcScaleY = ctx.arcScaleY_;
|
|
1014
|
+
var width = max.x - min.x;
|
|
1015
|
+
var height = max.y - min.y;
|
|
1016
|
+
if (fillStyle instanceof CanvasGradient_) {
|
|
1017
|
+
// TODO: Gradients transformed with the transformation matrix.
|
|
1018
|
+
var angle = 0;
|
|
1019
|
+
var focus = {x: 0, y: 0};
|
|
1020
|
+
|
|
1021
|
+
// additional offset
|
|
1022
|
+
var shift = 0;
|
|
1023
|
+
// scale factor for offset
|
|
1024
|
+
var expansion = 1;
|
|
1025
|
+
|
|
1026
|
+
if (fillStyle.type_ == 'gradient') {
|
|
1027
|
+
var x0 = fillStyle.x0_ / arcScaleX;
|
|
1028
|
+
var y0 = fillStyle.y0_ / arcScaleY;
|
|
1029
|
+
var x1 = fillStyle.x1_ / arcScaleX;
|
|
1030
|
+
var y1 = fillStyle.y1_ / arcScaleY;
|
|
1031
|
+
var p0 = getCoords(ctx, x0, y0);
|
|
1032
|
+
var p1 = getCoords(ctx, x1, y1);
|
|
1033
|
+
var dx = p1.x - p0.x;
|
|
1034
|
+
var dy = p1.y - p0.y;
|
|
1035
|
+
angle = Math.atan2(dx, dy) * 180 / Math.PI;
|
|
1036
|
+
|
|
1037
|
+
// The angle should be a non-negative number.
|
|
1038
|
+
if (angle < 0) {
|
|
1039
|
+
angle += 360;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// Very small angles produce an unexpected result because they are
|
|
1043
|
+
// converted to a scientific notation string.
|
|
1044
|
+
if (angle < 1e-6) {
|
|
1045
|
+
angle = 0;
|
|
1046
|
+
}
|
|
1047
|
+
} else {
|
|
1048
|
+
var p0 = getCoords(ctx, fillStyle.x0_, fillStyle.y0_);
|
|
1049
|
+
focus = {
|
|
1050
|
+
x: (p0.x - min.x) / width,
|
|
1051
|
+
y: (p0.y - min.y) / height
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
width /= arcScaleX * Z;
|
|
1055
|
+
height /= arcScaleY * Z;
|
|
1056
|
+
var dimension = m.max(width, height);
|
|
1057
|
+
shift = 2 * fillStyle.r0_ / dimension;
|
|
1058
|
+
expansion = 2 * fillStyle.r1_ / dimension - shift;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
// We need to sort the color stops in ascending order by offset,
|
|
1062
|
+
// otherwise IE won't interpret it correctly.
|
|
1063
|
+
var stops = fillStyle.colors_;
|
|
1064
|
+
stops.sort(function(cs1, cs2) {
|
|
1065
|
+
return cs1.offset - cs2.offset;
|
|
1066
|
+
});
|
|
1067
|
+
|
|
1068
|
+
var length = stops.length;
|
|
1069
|
+
var color1 = stops[0].color;
|
|
1070
|
+
var color2 = stops[length - 1].color;
|
|
1071
|
+
var opacity1 = stops[0].alpha * ctx.globalAlpha;
|
|
1072
|
+
var opacity2 = stops[length - 1].alpha * ctx.globalAlpha;
|
|
1073
|
+
|
|
1074
|
+
var colors = [];
|
|
1075
|
+
for (var i = 0; i < length; i++) {
|
|
1076
|
+
var stop = stops[i];
|
|
1077
|
+
colors.push(stop.offset * expansion + shift + ' ' + stop.color);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
// When colors attribute is used, the meanings of opacity and o:opacity2
|
|
1081
|
+
// are reversed.
|
|
1082
|
+
lineStr.push('<g_vml_:fill type="', fillStyle.type_, '"',
|
|
1083
|
+
' method="none" focus="100%"',
|
|
1084
|
+
' color="', color1, '"',
|
|
1085
|
+
' color2="', color2, '"',
|
|
1086
|
+
' colors="', colors.join(','), '"',
|
|
1087
|
+
' opacity="', opacity2, '"',
|
|
1088
|
+
' g_o_:opacity2="', opacity1, '"',
|
|
1089
|
+
' angle="', angle, '"',
|
|
1090
|
+
' focusposition="', focus.x, ',', focus.y, '" />');
|
|
1091
|
+
} else if (fillStyle instanceof CanvasPattern_) {
|
|
1092
|
+
if (width && height) {
|
|
1093
|
+
var deltaLeft = -min.x;
|
|
1094
|
+
var deltaTop = -min.y;
|
|
1095
|
+
lineStr.push('<g_vml_:fill',
|
|
1096
|
+
' position="',
|
|
1097
|
+
deltaLeft / width * arcScaleX * arcScaleX, ',',
|
|
1098
|
+
deltaTop / height * arcScaleY * arcScaleY, '"',
|
|
1099
|
+
' type="tile"',
|
|
1100
|
+
// TODO: Figure out the correct size to fit the scale.
|
|
1101
|
+
//' size="', w, 'px ', h, 'px"',
|
|
1102
|
+
' src="', fillStyle.src_, '" />');
|
|
1103
|
+
}
|
|
1104
|
+
} else {
|
|
1105
|
+
var a = processStyle(ctx.fillStyle);
|
|
1106
|
+
var color = a.color;
|
|
1107
|
+
var opacity = a.alpha * ctx.globalAlpha;
|
|
1108
|
+
lineStr.push('<g_vml_:fill color="', color, '" opacity="', opacity,
|
|
1109
|
+
'" />');
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
contextPrototype.fill = function() {
|
|
1114
|
+
this.stroke(true);
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
contextPrototype.closePath = function() {
|
|
1118
|
+
this.currentPath_.push({type: 'close'});
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
function getCoords(ctx, aX, aY) {
|
|
1122
|
+
var m = ctx.m_;
|
|
1123
|
+
return {
|
|
1124
|
+
x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,
|
|
1125
|
+
y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
contextPrototype.save = function() {
|
|
1130
|
+
var o = {};
|
|
1131
|
+
copyState(this, o);
|
|
1132
|
+
this.aStack_.push(o);
|
|
1133
|
+
this.mStack_.push(this.m_);
|
|
1134
|
+
this.m_ = matrixMultiply(createMatrixIdentity(), this.m_);
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
contextPrototype.restore = function() {
|
|
1138
|
+
if (this.aStack_.length) {
|
|
1139
|
+
copyState(this.aStack_.pop(), this);
|
|
1140
|
+
this.m_ = this.mStack_.pop();
|
|
1141
|
+
}
|
|
1142
|
+
};
|
|
1143
|
+
|
|
1144
|
+
function matrixIsFinite(m) {
|
|
1145
|
+
return isFinite(m[0][0]) && isFinite(m[0][1]) &&
|
|
1146
|
+
isFinite(m[1][0]) && isFinite(m[1][1]) &&
|
|
1147
|
+
isFinite(m[2][0]) && isFinite(m[2][1]);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
function setM(ctx, m, updateLineScale) {
|
|
1151
|
+
if (!matrixIsFinite(m)) {
|
|
1152
|
+
return;
|
|
1153
|
+
}
|
|
1154
|
+
ctx.m_ = m;
|
|
1155
|
+
|
|
1156
|
+
if (updateLineScale) {
|
|
1157
|
+
// Get the line scale.
|
|
1158
|
+
// Determinant of this.m_ means how much the area is enlarged by the
|
|
1159
|
+
// transformation. So its square root can be used as a scale factor
|
|
1160
|
+
// for width.
|
|
1161
|
+
var det = m[0][0] * m[1][1] - m[0][1] * m[1][0];
|
|
1162
|
+
ctx.lineScale_ = sqrt(abs(det));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
contextPrototype.translate = function(aX, aY) {
|
|
1167
|
+
var m1 = [
|
|
1168
|
+
[1, 0, 0],
|
|
1169
|
+
[0, 1, 0],
|
|
1170
|
+
[aX, aY, 1]
|
|
1171
|
+
];
|
|
1172
|
+
|
|
1173
|
+
setM(this, matrixMultiply(m1, this.m_), false);
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
contextPrototype.rotate = function(aRot) {
|
|
1177
|
+
var c = mc(aRot);
|
|
1178
|
+
var s = ms(aRot);
|
|
1179
|
+
|
|
1180
|
+
var m1 = [
|
|
1181
|
+
[c, s, 0],
|
|
1182
|
+
[-s, c, 0],
|
|
1183
|
+
[0, 0, 1]
|
|
1184
|
+
];
|
|
1185
|
+
|
|
1186
|
+
setM(this, matrixMultiply(m1, this.m_), false);
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
contextPrototype.scale = function(aX, aY) {
|
|
1190
|
+
this.arcScaleX_ *= aX;
|
|
1191
|
+
this.arcScaleY_ *= aY;
|
|
1192
|
+
var m1 = [
|
|
1193
|
+
[aX, 0, 0],
|
|
1194
|
+
[0, aY, 0],
|
|
1195
|
+
[0, 0, 1]
|
|
1196
|
+
];
|
|
1197
|
+
|
|
1198
|
+
setM(this, matrixMultiply(m1, this.m_), true);
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
contextPrototype.transform = function(m11, m12, m21, m22, dx, dy) {
|
|
1202
|
+
var m1 = [
|
|
1203
|
+
[m11, m12, 0],
|
|
1204
|
+
[m21, m22, 0],
|
|
1205
|
+
[dx, dy, 1]
|
|
1206
|
+
];
|
|
1207
|
+
|
|
1208
|
+
setM(this, matrixMultiply(m1, this.m_), true);
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
contextPrototype.setTransform = function(m11, m12, m21, m22, dx, dy) {
|
|
1212
|
+
var m = [
|
|
1213
|
+
[m11, m12, 0],
|
|
1214
|
+
[m21, m22, 0],
|
|
1215
|
+
[dx, dy, 1]
|
|
1216
|
+
];
|
|
1217
|
+
|
|
1218
|
+
setM(this, m, true);
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* The text drawing function.
|
|
1223
|
+
* The maxWidth argument isn't taken in account, since no browser supports
|
|
1224
|
+
* it yet.
|
|
1225
|
+
*/
|
|
1226
|
+
contextPrototype.drawText_ = function(text, x, y, maxWidth, stroke) {
|
|
1227
|
+
var m = this.m_,
|
|
1228
|
+
delta = 1000,
|
|
1229
|
+
left = 0,
|
|
1230
|
+
right = delta,
|
|
1231
|
+
offset = {x: 0, y: 0},
|
|
1232
|
+
lineStr = [];
|
|
1233
|
+
|
|
1234
|
+
var fontStyle = getComputedStyle(processFontStyle(this.font), this.element_);
|
|
1235
|
+
|
|
1236
|
+
var fontStyleString = buildStyle(fontStyle);
|
|
1237
|
+
|
|
1238
|
+
var elementStyle = this.element_.currentStyle;
|
|
1239
|
+
var textAlign = this.textAlign.toLowerCase();
|
|
1240
|
+
switch (textAlign) {
|
|
1241
|
+
case 'left':
|
|
1242
|
+
case 'center':
|
|
1243
|
+
case 'right':
|
|
1244
|
+
break;
|
|
1245
|
+
case 'end':
|
|
1246
|
+
textAlign = elementStyle.direction == 'ltr' ? 'right' : 'left';
|
|
1247
|
+
break;
|
|
1248
|
+
case 'start':
|
|
1249
|
+
textAlign = elementStyle.direction == 'rtl' ? 'right' : 'left';
|
|
1250
|
+
break;
|
|
1251
|
+
default:
|
|
1252
|
+
textAlign = 'left';
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
// 1.75 is an arbitrary number, as there is no info about the text baseline
|
|
1256
|
+
switch (this.textBaseline) {
|
|
1257
|
+
case 'hanging':
|
|
1258
|
+
case 'top':
|
|
1259
|
+
offset.y = fontStyle.size / 1.75;
|
|
1260
|
+
break;
|
|
1261
|
+
case 'middle':
|
|
1262
|
+
break;
|
|
1263
|
+
default:
|
|
1264
|
+
case null:
|
|
1265
|
+
case 'alphabetic':
|
|
1266
|
+
case 'ideographic':
|
|
1267
|
+
case 'bottom':
|
|
1268
|
+
offset.y = -fontStyle.size / 2.25;
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
switch(textAlign) {
|
|
1273
|
+
case 'right':
|
|
1274
|
+
left = delta;
|
|
1275
|
+
right = 0.05;
|
|
1276
|
+
break;
|
|
1277
|
+
case 'center':
|
|
1278
|
+
left = right = delta / 2;
|
|
1279
|
+
break;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
var d = getCoords(this, x + offset.x, y + offset.y);
|
|
1283
|
+
|
|
1284
|
+
lineStr.push('<g_vml_:line from="', -left ,' 0" to="', right ,' 0.05" ',
|
|
1285
|
+
' coordsize="100 100" coordorigin="0 0"',
|
|
1286
|
+
' filled="', !stroke, '" stroked="', !!stroke,
|
|
1287
|
+
'" style="position:absolute;width:1px;height:1px;">');
|
|
1288
|
+
|
|
1289
|
+
if (stroke) {
|
|
1290
|
+
appendStroke(this, lineStr);
|
|
1291
|
+
} else {
|
|
1292
|
+
// TODO: Fix the min and max params.
|
|
1293
|
+
appendFill(this, lineStr, {x: -left, y: 0},
|
|
1294
|
+
{x: right, y: fontStyle.size});
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
var skewM = m[0][0].toFixed(3) + ',' + m[1][0].toFixed(3) + ',' +
|
|
1298
|
+
m[0][1].toFixed(3) + ',' + m[1][1].toFixed(3) + ',0,0';
|
|
1299
|
+
|
|
1300
|
+
var skewOffset = mr(d.x / Z + 1 - m[0][0]) + ',' + mr(d.y / Z - 2 * m[1][0]);
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
lineStr.push('<g_vml_:skew on="t" matrix="', skewM ,'" ',
|
|
1304
|
+
' offset="', skewOffset, '" origin="', left ,' 0" />',
|
|
1305
|
+
'<g_vml_:path textpathok="true" />',
|
|
1306
|
+
'<g_vml_:textpath on="true" string="',
|
|
1307
|
+
encodeHtmlAttribute(text),
|
|
1308
|
+
'" style="v-text-align:', textAlign,
|
|
1309
|
+
';font:', encodeHtmlAttribute(fontStyleString),
|
|
1310
|
+
'" /></g_vml_:line>');
|
|
1311
|
+
|
|
1312
|
+
this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
contextPrototype.fillText = function(text, x, y, maxWidth) {
|
|
1316
|
+
this.drawText_(text, x, y, maxWidth, false);
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
contextPrototype.strokeText = function(text, x, y, maxWidth) {
|
|
1320
|
+
this.drawText_(text, x, y, maxWidth, true);
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
contextPrototype.measureText = function(text) {
|
|
1324
|
+
if (!this.textMeasureEl_) {
|
|
1325
|
+
var s = '<span style="position:absolute;' +
|
|
1326
|
+
'top:-20000px;left:0;padding:0;margin:0;border:none;' +
|
|
1327
|
+
'white-space:pre;"></span>';
|
|
1328
|
+
this.element_.insertAdjacentHTML('beforeEnd', s);
|
|
1329
|
+
this.textMeasureEl_ = this.element_.lastChild;
|
|
1330
|
+
}
|
|
1331
|
+
var doc = this.element_.ownerDocument;
|
|
1332
|
+
this.textMeasureEl_.innerHTML = '';
|
|
1333
|
+
this.textMeasureEl_.style.font = this.font;
|
|
1334
|
+
// Don't use innerHTML or innerText because they allow markup/whitespace.
|
|
1335
|
+
this.textMeasureEl_.appendChild(doc.createTextNode(text));
|
|
1336
|
+
return {width: this.textMeasureEl_.offsetWidth};
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
/******** STUBS ********/
|
|
1340
|
+
contextPrototype.clip = function() {
|
|
1341
|
+
// TODO: Implement
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
contextPrototype.arcTo = function() {
|
|
1345
|
+
// TODO: Implement
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
contextPrototype.createPattern = function(image, repetition) {
|
|
1349
|
+
return new CanvasPattern_(image, repetition);
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
// Gradient / Pattern Stubs
|
|
1353
|
+
function CanvasGradient_(aType) {
|
|
1354
|
+
this.type_ = aType;
|
|
1355
|
+
this.x0_ = 0;
|
|
1356
|
+
this.y0_ = 0;
|
|
1357
|
+
this.r0_ = 0;
|
|
1358
|
+
this.x1_ = 0;
|
|
1359
|
+
this.y1_ = 0;
|
|
1360
|
+
this.r1_ = 0;
|
|
1361
|
+
this.colors_ = [];
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
CanvasGradient_.prototype.addColorStop = function(aOffset, aColor) {
|
|
1365
|
+
aColor = processStyle(aColor);
|
|
1366
|
+
this.colors_.push({offset: aOffset,
|
|
1367
|
+
color: aColor.color,
|
|
1368
|
+
alpha: aColor.alpha});
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
function CanvasPattern_(image, repetition) {
|
|
1372
|
+
assertImageIsValid(image);
|
|
1373
|
+
switch (repetition) {
|
|
1374
|
+
case 'repeat':
|
|
1375
|
+
case null:
|
|
1376
|
+
case '':
|
|
1377
|
+
this.repetition_ = 'repeat';
|
|
1378
|
+
break;
|
|
1379
|
+
case 'repeat-x':
|
|
1380
|
+
case 'repeat-y':
|
|
1381
|
+
case 'no-repeat':
|
|
1382
|
+
this.repetition_ = repetition;
|
|
1383
|
+
break;
|
|
1384
|
+
default:
|
|
1385
|
+
throwException('SYNTAX_ERR');
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
this.src_ = image.src;
|
|
1389
|
+
this.width_ = image.width;
|
|
1390
|
+
this.height_ = image.height;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
function throwException(s) {
|
|
1394
|
+
throw new DOMException_(s);
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
function assertImageIsValid(img) {
|
|
1398
|
+
if (!img || img.nodeType != 1 || img.tagName != 'IMG') {
|
|
1399
|
+
throwException('TYPE_MISMATCH_ERR');
|
|
1400
|
+
}
|
|
1401
|
+
if (img.readyState != 'complete') {
|
|
1402
|
+
throwException('INVALID_STATE_ERR');
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
function DOMException_(s) {
|
|
1407
|
+
this.code = this[s];
|
|
1408
|
+
this.message = s +': DOM Exception ' + this.code;
|
|
1409
|
+
}
|
|
1410
|
+
var p = DOMException_.prototype = new Error;
|
|
1411
|
+
p.INDEX_SIZE_ERR = 1;
|
|
1412
|
+
p.DOMSTRING_SIZE_ERR = 2;
|
|
1413
|
+
p.HIERARCHY_REQUEST_ERR = 3;
|
|
1414
|
+
p.WRONG_DOCUMENT_ERR = 4;
|
|
1415
|
+
p.INVALID_CHARACTER_ERR = 5;
|
|
1416
|
+
p.NO_DATA_ALLOWED_ERR = 6;
|
|
1417
|
+
p.NO_MODIFICATION_ALLOWED_ERR = 7;
|
|
1418
|
+
p.NOT_FOUND_ERR = 8;
|
|
1419
|
+
p.NOT_SUPPORTED_ERR = 9;
|
|
1420
|
+
p.INUSE_ATTRIBUTE_ERR = 10;
|
|
1421
|
+
p.INVALID_STATE_ERR = 11;
|
|
1422
|
+
p.SYNTAX_ERR = 12;
|
|
1423
|
+
p.INVALID_MODIFICATION_ERR = 13;
|
|
1424
|
+
p.NAMESPACE_ERR = 14;
|
|
1425
|
+
p.INVALID_ACCESS_ERR = 15;
|
|
1426
|
+
p.VALIDATION_ERR = 16;
|
|
1427
|
+
p.TYPE_MISMATCH_ERR = 17;
|
|
1428
|
+
|
|
1429
|
+
// set up externs
|
|
1430
|
+
G_vmlCanvasManager = G_vmlCanvasManager_;
|
|
1431
|
+
CanvasRenderingContext2D = CanvasRenderingContext2D_;
|
|
1432
|
+
CanvasGradient = CanvasGradient_;
|
|
1433
|
+
CanvasPattern = CanvasPattern_;
|
|
1434
|
+
DOMException = DOMException_;
|
|
1435
|
+
G_vmlCanvasManager._version = 888;
|
|
1436
|
+
})();
|
|
1437
|
+
|
|
1438
|
+
} // if
|