k4compiler 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/k4compiler.gemspec +50 -0
- data/lib/k4compiler.rb +26 -0
- data/lib/k4compiler/compiler.rb +41 -0
- data/lib/k4compiler/compiler/base.rb +24 -0
- data/lib/k4compiler/compiler/closure.rb +96 -0
- data/lib/k4compiler/compiler/markdown.rb +78 -0
- data/lib/k4compiler/compiler/scss.rb +31 -0
- data/lib/k4compiler/config.rb +59 -0
- data/lib/k4compiler/version.rb +3 -0
- data/spec/k4compiler/compiler/base_spec.rb +40 -0
- data/spec/k4compiler/compiler/closure/compiled-src/hello-with-closure-compiled-script.js +18317 -0
- data/spec/k4compiler/compiler/closure/src/hello-compiled-script.js +15 -0
- data/spec/k4compiler/compiler/closure/src/hello-with-closure.js +15 -0
- data/spec/k4compiler/compiler/closure/src/hello.js +15 -0
- data/spec/k4compiler/compiler/closure_spec.rb +159 -0
- data/spec/k4compiler/compiler/markdown_spec.rb +153 -0
- data/spec/k4compiler/compiler/scss/_body.scss +5 -0
- data/spec/k4compiler/compiler/scss/sample.scss +9 -0
- data/spec/k4compiler/compiler/scss_spec.rb +70 -0
- data/spec/k4compiler/compiler_spec.rb +75 -0
- data/spec/k4compiler/config_spec.rb +116 -0
- data/spec/k4compiler_spec.rb +17 -0
- data/spec/spec_helper.rb +8 -0
- data/third_party/.gitkeep +1 -0
- data/third_party/closure-compiler-20130603/COPYING +202 -0
- data/third_party/closure-compiler-20130603/README +292 -0
- data/third_party/closure-compiler-20130603/compiler.jar +0 -0
- data/third_party/closure-library/.gitignore +12 -0
- data/third_party/closure-library/AUTHORS +17 -0
- data/third_party/closure-library/CONTRIBUTING +5 -0
- data/third_party/closure-library/LICENSE +176 -0
- data/third_party/closure-library/README +6 -0
- data/third_party/closure-library/all_tests.html +113 -0
- data/third_party/closure-library/alltests.js +16 -0
- data/third_party/closure-library/closure/bin/build/closurebuilder.py +262 -0
- data/third_party/closure-library/closure/bin/build/depstree.py +189 -0
- data/third_party/closure-library/closure/bin/build/depstree_test.py +127 -0
- data/third_party/closure-library/closure/bin/build/depswriter.py +202 -0
- data/third_party/closure-library/closure/bin/build/jscompiler.py +135 -0
- data/third_party/closure-library/closure/bin/build/jscompiler_test.py +120 -0
- data/third_party/closure-library/closure/bin/build/source.py +121 -0
- data/third_party/closure-library/closure/bin/build/source_test.py +134 -0
- data/third_party/closure-library/closure/bin/build/treescan.py +78 -0
- data/third_party/closure-library/closure/bin/calcdeps.py +590 -0
- data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc.py +171 -0
- data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc_test.py +167 -0
- data/third_party/closure-library/closure/bin/labs/code/run_py_tests.sh +28 -0
- data/third_party/closure-library/closure/bin/scopify.py +211 -0
- data/third_party/closure-library/closure/css/inlay/g-base.css +82 -0
- data/third_party/closure-library/closure/css/inlay/g-fixed.css +173 -0
- data/third_party/closure-library/closure/css/inlay/g-ratio.css +253 -0
- data/third_party/closure-library/closure/goog/a11y/aria/announcer.js +108 -0
- data/third_party/closure-library/closure/goog/a11y/aria/announcer_test.html +97 -0
- data/third_party/closure-library/closure/goog/a11y/aria/aria.js +362 -0
- data/third_party/closure-library/closure/goog/a11y/aria/aria_test.html +263 -0
- data/third_party/closure-library/closure/goog/a11y/aria/attributes.js +389 -0
- data/third_party/closure-library/closure/goog/a11y/aria/datatables.js +68 -0
- data/third_party/closure-library/closure/goog/a11y/aria/roles.js +216 -0
- data/third_party/closure-library/closure/goog/array/array.js +1507 -0
- data/third_party/closure-library/closure/goog/array/array_test.html +1674 -0
- data/third_party/closure-library/closure/goog/asserts/asserts.js +293 -0
- data/third_party/closure-library/closure/goog/asserts/asserts_test.html +178 -0
- data/third_party/closure-library/closure/goog/async/animationdelay.js +270 -0
- data/third_party/closure-library/closure/goog/async/animationdelay_test.html +93 -0
- data/third_party/closure-library/closure/goog/async/conditionaldelay.js +235 -0
- data/third_party/closure-library/closure/goog/async/conditionaldelay_test.html +227 -0
- data/third_party/closure-library/closure/goog/async/delay.js +177 -0
- data/third_party/closure-library/closure/goog/async/delay_test.html +148 -0
- data/third_party/closure-library/closure/goog/async/nexttick.js +174 -0
- data/third_party/closure-library/closure/goog/async/nexttick_test.html +137 -0
- data/third_party/closure-library/closure/goog/async/throttle.js +189 -0
- data/third_party/closure-library/closure/goog/async/throttle_test.html +102 -0
- data/third_party/closure-library/closure/goog/base.js +1593 -0
- data/third_party/closure-library/closure/goog/base_test.html +1206 -0
- data/third_party/closure-library/closure/goog/bootstrap/nodejs.js +91 -0
- data/third_party/closure-library/closure/goog/bootstrap/webworkers.js +37 -0
- data/third_party/closure-library/closure/goog/color/alpha.js +467 -0
- data/third_party/closure-library/closure/goog/color/alpha_test.html +301 -0
- data/third_party/closure-library/closure/goog/color/color.js +773 -0
- data/third_party/closure-library/closure/goog/color/color_test.html +661 -0
- data/third_party/closure-library/closure/goog/color/names.js +176 -0
- data/third_party/closure-library/closure/goog/crypt/aes.js +1027 -0
- data/third_party/closure-library/closure/goog/crypt/aes_test.html +593 -0
- data/third_party/closure-library/closure/goog/crypt/arc4.js +162 -0
- data/third_party/closure-library/closure/goog/crypt/arc4_test.html +63 -0
- data/third_party/closure-library/closure/goog/crypt/base64.js +272 -0
- data/third_party/closure-library/closure/goog/crypt/base64_test.html +117 -0
- data/third_party/closure-library/closure/goog/crypt/basen.js +242 -0
- data/third_party/closure-library/closure/goog/crypt/basen_test.html +167 -0
- data/third_party/closure-library/closure/goog/crypt/blobhasher.js +284 -0
- data/third_party/closure-library/closure/goog/crypt/blobhasher_test.html +385 -0
- data/third_party/closure-library/closure/goog/crypt/blockcipher.js +52 -0
- data/third_party/closure-library/closure/goog/crypt/cbc.js +150 -0
- data/third_party/closure-library/closure/goog/crypt/cbc_test.html +18 -0
- data/third_party/closure-library/closure/goog/crypt/cbc_test.js +100 -0
- data/third_party/closure-library/closure/goog/crypt/crypt.js +155 -0
- data/third_party/closure-library/closure/goog/crypt/crypt_perf.html +85 -0
- data/third_party/closure-library/closure/goog/crypt/crypt_test.html +98 -0
- data/third_party/closure-library/closure/goog/crypt/hash.js +62 -0
- data/third_party/closure-library/closure/goog/crypt/hash32.js +184 -0
- data/third_party/closure-library/closure/goog/crypt/hash32_test.html +287 -0
- data/third_party/closure-library/closure/goog/crypt/hashtester.js +243 -0
- data/third_party/closure-library/closure/goog/crypt/hmac.js +162 -0
- data/third_party/closure-library/closure/goog/crypt/hmac_test.html +113 -0
- data/third_party/closure-library/closure/goog/crypt/md5.js +429 -0
- data/third_party/closure-library/closure/goog/crypt/md5_perf.html +39 -0
- data/third_party/closure-library/closure/goog/crypt/md5_test.html +152 -0
- data/third_party/closure-library/closure/goog/crypt/pbkdf2.js +127 -0
- data/third_party/closure-library/closure/goog/crypt/pbkdf2_test.html +68 -0
- data/third_party/closure-library/closure/goog/crypt/sha1.js +275 -0
- data/third_party/closure-library/closure/goog/crypt/sha1_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha1_test.html +79 -0
- data/third_party/closure-library/closure/goog/crypt/sha2.js +275 -0
- data/third_party/closure-library/closure/goog/crypt/sha224.js +53 -0
- data/third_party/closure-library/closure/goog/crypt/sha224_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha224_test.html +57 -0
- data/third_party/closure-library/closure/goog/crypt/sha256.js +53 -0
- data/third_party/closure-library/closure/goog/crypt/sha256_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha256_test.html +66 -0
- data/third_party/closure-library/closure/goog/css/autocomplete.css +43 -0
- data/third_party/closure-library/closure/goog/css/bubble.css +84 -0
- data/third_party/closure-library/closure/goog/css/button.css +38 -0
- data/third_party/closure-library/closure/goog/css/charpicker.css +206 -0
- data/third_party/closure-library/closure/goog/css/checkbox.css +38 -0
- data/third_party/closure-library/closure/goog/css/colormenubutton.css +25 -0
- data/third_party/closure-library/closure/goog/css/colorpalette.css +54 -0
- data/third_party/closure-library/closure/goog/css/colorpicker-simplegrid.css +49 -0
- data/third_party/closure-library/closure/goog/css/combobox.css +54 -0
- data/third_party/closure-library/closure/goog/css/common.css +41 -0
- data/third_party/closure-library/closure/goog/css/css3button.css +77 -0
- data/third_party/closure-library/closure/goog/css/css3menubutton.css +23 -0
- data/third_party/closure-library/closure/goog/css/custombutton.css +164 -0
- data/third_party/closure-library/closure/goog/css/datepicker.css +148 -0
- data/third_party/closure-library/closure/goog/css/dialog.css +72 -0
- data/third_party/closure-library/closure/goog/css/dimensionpicker.css +47 -0
- data/third_party/closure-library/closure/goog/css/dragdropdetector.css +48 -0
- data/third_party/closure-library/closure/goog/css/editor/bubble.css +73 -0
- data/third_party/closure-library/closure/goog/css/editor/dialog.css +66 -0
- data/third_party/closure-library/closure/goog/css/editor/equationeditor.css +113 -0
- data/third_party/closure-library/closure/goog/css/editor/linkdialog.css +36 -0
- data/third_party/closure-library/closure/goog/css/editortoolbar.css +225 -0
- data/third_party/closure-library/closure/goog/css/filteredmenu.css +30 -0
- data/third_party/closure-library/closure/goog/css/filterobservingmenuitem.css +25 -0
- data/third_party/closure-library/closure/goog/css/flatbutton.css +64 -0
- data/third_party/closure-library/closure/goog/css/flatmenubutton.css +63 -0
- data/third_party/closure-library/closure/goog/css/hovercard.css +51 -0
- data/third_party/closure-library/closure/goog/css/hsvapalette.css +231 -0
- data/third_party/closure-library/closure/goog/css/hsvpalette.css +179 -0
- data/third_party/closure-library/closure/goog/css/imagelessbutton.css +160 -0
- data/third_party/closure-library/closure/goog/css/imagelessmenubutton.css +23 -0
- data/third_party/closure-library/closure/goog/css/inputdatepicker.css +12 -0
- data/third_party/closure-library/closure/goog/css/linkbutton.css +26 -0
- data/third_party/closure-library/closure/goog/css/menu.css +27 -0
- data/third_party/closure-library/closure/goog/css/menubar.css +57 -0
- data/third_party/closure-library/closure/goog/css/menubutton.css +169 -0
- data/third_party/closure-library/closure/goog/css/menuitem.css +148 -0
- data/third_party/closure-library/closure/goog/css/menuseparator.css +19 -0
- data/third_party/closure-library/closure/goog/css/multitestrunner.css +121 -0
- data/third_party/closure-library/closure/goog/css/offline.css +147 -0
- data/third_party/closure-library/closure/goog/css/palette.css +36 -0
- data/third_party/closure-library/closure/goog/css/popupdatepicker.css +17 -0
- data/third_party/closure-library/closure/goog/css/roundedpanel.css +29 -0
- data/third_party/closure-library/closure/goog/css/roundedtab.css +158 -0
- data/third_party/closure-library/closure/goog/css/submenu.css +38 -0
- data/third_party/closure-library/closure/goog/css/tab.css +105 -0
- data/third_party/closure-library/closure/goog/css/tabbar.css +52 -0
- data/third_party/closure-library/closure/goog/css/tablesorter.css +14 -0
- data/third_party/closure-library/closure/goog/css/toolbar.css +400 -0
- data/third_party/closure-library/closure/goog/css/tooltip.css +14 -0
- data/third_party/closure-library/closure/goog/css/tree.css +146 -0
- data/third_party/closure-library/closure/goog/css/tristatemenuitem.css +43 -0
- data/third_party/closure-library/closure/goog/cssom/cssom.js +449 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test.html +343 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_import_1.css +11 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_import_2.css +10 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_link_1.css +10 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style.js +1023 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style_test.html +391 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style_test_import.css +10 -0
- data/third_party/closure-library/closure/goog/datasource/datamanager.js +559 -0
- data/third_party/closure-library/closure/goog/datasource/datasource.js +656 -0
- data/third_party/closure-library/closure/goog/datasource/datasource_test.html +265 -0
- data/third_party/closure-library/closure/goog/datasource/expr.js +544 -0
- data/third_party/closure-library/closure/goog/datasource/expr_test.html +97 -0
- data/third_party/closure-library/closure/goog/datasource/fastdatanode.js +811 -0
- data/third_party/closure-library/closure/goog/datasource/fastdatanode_test.html +254 -0
- data/third_party/closure-library/closure/goog/datasource/jsdatasource.js +460 -0
- data/third_party/closure-library/closure/goog/datasource/jsondatasource.js +148 -0
- data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource.js +195 -0
- data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource_test.html +94 -0
- data/third_party/closure-library/closure/goog/datasource/xmldatasource.js +415 -0
- data/third_party/closure-library/closure/goog/date/date.js +1718 -0
- data/third_party/closure-library/closure/goog/date/date_test.html +1392 -0
- data/third_party/closure-library/closure/goog/date/datelike.js +27 -0
- data/third_party/closure-library/closure/goog/date/daterange.js +413 -0
- data/third_party/closure-library/closure/goog/date/daterange_test.html +253 -0
- data/third_party/closure-library/closure/goog/date/relative.js +465 -0
- data/third_party/closure-library/closure/goog/date/relative_test.html +267 -0
- data/third_party/closure-library/closure/goog/date/utcdatetime.js +179 -0
- data/third_party/closure-library/closure/goog/date/utcdatetime_test.html +124 -0
- data/third_party/closure-library/closure/goog/db/cursor.js +214 -0
- data/third_party/closure-library/closure/goog/db/db.js +182 -0
- data/third_party/closure-library/closure/goog/db/db_test.html +1657 -0
- data/third_party/closure-library/closure/goog/db/error.js +359 -0
- data/third_party/closure-library/closure/goog/db/index.js +245 -0
- data/third_party/closure-library/closure/goog/db/indexeddb.js +337 -0
- data/third_party/closure-library/closure/goog/db/keyrange.js +117 -0
- data/third_party/closure-library/closure/goog/db/objectstore.js +399 -0
- data/third_party/closure-library/closure/goog/db/old_db_test.html +1244 -0
- data/third_party/closure-library/closure/goog/db/transaction.js +218 -0
- data/third_party/closure-library/closure/goog/debug/console.js +207 -0
- data/third_party/closure-library/closure/goog/debug/console_test.html +195 -0
- data/third_party/closure-library/closure/goog/debug/debug.js +501 -0
- data/third_party/closure-library/closure/goog/debug/debug_test.html +68 -0
- data/third_party/closure-library/closure/goog/debug/debugwindow.js +615 -0
- data/third_party/closure-library/closure/goog/debug/debugwindow_test.html +29 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcss.js +444 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcss_test.html +365 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcssrunner.js +26 -0
- data/third_party/closure-library/closure/goog/debug/divconsole.js +141 -0
- data/third_party/closure-library/closure/goog/debug/enhanceerror_test.html +138 -0
- data/third_party/closure-library/closure/goog/debug/entrypointregistry.js +158 -0
- data/third_party/closure-library/closure/goog/debug/entrypointregistry_test.html +87 -0
- data/third_party/closure-library/closure/goog/debug/error.js +51 -0
- data/third_party/closure-library/closure/goog/debug/error_test.html +101 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler.js +363 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler_async_test.html +112 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler_test.html +292 -0
- data/third_party/closure-library/closure/goog/debug/errorhandlerweakdep.js +38 -0
- data/third_party/closure-library/closure/goog/debug/errorreporter.js +376 -0
- data/third_party/closure-library/closure/goog/debug/errorreporter_test.html +351 -0
- data/third_party/closure-library/closure/goog/debug/fancywindow.js +362 -0
- data/third_party/closure-library/closure/goog/debug/formatter.js +316 -0
- data/third_party/closure-library/closure/goog/debug/fpsdisplay.js +162 -0
- data/third_party/closure-library/closure/goog/debug/fpsdisplay_test.html +53 -0
- data/third_party/closure-library/closure/goog/debug/gcdiagnostics.js +143 -0
- data/third_party/closure-library/closure/goog/debug/logbuffer.js +147 -0
- data/third_party/closure-library/closure/goog/debug/logbuffer_test.html +105 -0
- data/third_party/closure-library/closure/goog/debug/logger.js +853 -0
- data/third_party/closure-library/closure/goog/debug/logger_test.html +208 -0
- data/third_party/closure-library/closure/goog/debug/logrecord.js +271 -0
- data/third_party/closure-library/closure/goog/debug/logrecordserializer.js +121 -0
- data/third_party/closure-library/closure/goog/debug/logrecordserializer_test.html +96 -0
- data/third_party/closure-library/closure/goog/debug/reflect.js +178 -0
- data/third_party/closure-library/closure/goog/debug/reflect_test.html +101 -0
- data/third_party/closure-library/closure/goog/debug/relativetimeprovider.js +83 -0
- data/third_party/closure-library/closure/goog/debug/tracer.js +724 -0
- data/third_party/closure-library/closure/goog/debug/tracer_test.html +57 -0
- data/third_party/closure-library/closure/goog/demos/advancedtooltip.html +78 -0
- data/third_party/closure-library/closure/goog/demos/animationqueue.html +149 -0
- data/third_party/closure-library/closure/goog/demos/autocomplete-basic.html +56 -0
- data/third_party/closure-library/closure/goog/demos/autocompleteremote.html +40 -0
- data/third_party/closure-library/closure/goog/demos/autocompleteremotedata.js +18 -0
- data/third_party/closure-library/closure/goog/demos/autocompleterichremote.html +137 -0
- data/third_party/closure-library/closure/goog/demos/autocompleterichremotedata.js +33 -0
- data/third_party/closure-library/closure/goog/demos/bidiinput.html +72 -0
- data/third_party/closure-library/closure/goog/demos/blobhasher.html +61 -0
- data/third_party/closure-library/closure/goog/demos/bubble.html +250 -0
- data/third_party/closure-library/closure/goog/demos/button.html +395 -0
- data/third_party/closure-library/closure/goog/demos/charcounter.html +57 -0
- data/third_party/closure-library/closure/goog/demos/charpicker.html +66 -0
- data/third_party/closure-library/closure/goog/demos/checkbox.html +122 -0
- data/third_party/closure-library/closure/goog/demos/color-contrast.html +60 -0
- data/third_party/closure-library/closure/goog/demos/colormenubutton.html +221 -0
- data/third_party/closure-library/closure/goog/demos/colorpicker.html +43 -0
- data/third_party/closure-library/closure/goog/demos/combobox.html +160 -0
- data/third_party/closure-library/closure/goog/demos/container.html +670 -0
- data/third_party/closure-library/closure/goog/demos/control.html +477 -0
- data/third_party/closure-library/closure/goog/demos/css/demo.css +75 -0
- data/third_party/closure-library/closure/goog/demos/css/emojipicker.css +36 -0
- data/third_party/closure-library/closure/goog/demos/css/emojisprite.css +92 -0
- data/third_party/closure-library/closure/goog/demos/css3button.html +166 -0
- data/third_party/closure-library/closure/goog/demos/css3menubutton.html +285 -0
- data/third_party/closure-library/closure/goog/demos/cssspriteanimation.html +80 -0
- data/third_party/closure-library/closure/goog/demos/datepicker.html +183 -0
- data/third_party/closure-library/closure/goog/demos/debug.html +118 -0
- data/third_party/closure-library/closure/goog/demos/depsgraph.html +220 -0
- data/third_party/closure-library/closure/goog/demos/dialog.html +156 -0
- data/third_party/closure-library/closure/goog/demos/dimensionpicker.html +108 -0
- data/third_party/closure-library/closure/goog/demos/dimensionpicker_rtl.html +123 -0
- data/third_party/closure-library/closure/goog/demos/dom_selection.html +88 -0
- data/third_party/closure-library/closure/goog/demos/drag.html +191 -0
- data/third_party/closure-library/closure/goog/demos/dragdrop.html +263 -0
- data/third_party/closure-library/closure/goog/demos/dragdropdetector.html +46 -0
- data/third_party/closure-library/closure/goog/demos/dragdropdetector_target.html +17 -0
- data/third_party/closure-library/closure/goog/demos/dragger.html +83 -0
- data/third_party/closure-library/closure/goog/demos/draglistgroup.html +273 -0
- data/third_party/closure-library/closure/goog/demos/dragscrollsupport.html +133 -0
- data/third_party/closure-library/closure/goog/demos/drilldownrow.html +78 -0
- data/third_party/closure-library/closure/goog/demos/editor/deps.js +21 -0
- data/third_party/closure-library/closure/goog/demos/editor/editor.html +139 -0
- data/third_party/closure-library/closure/goog/demos/editor/equationeditor.html +36 -0
- data/third_party/closure-library/closure/goog/demos/editor/equationeditor.js +40 -0
- data/third_party/closure-library/closure/goog/demos/editor/field_basic.html +74 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld.html +91 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld.js +81 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld_test.html +75 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog.js +171 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog_test.html +100 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin.js +116 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin_test.html +198 -0
- data/third_party/closure-library/closure/goog/demos/editor/seamlessfield.html +106 -0
- data/third_party/closure-library/closure/goog/demos/editor/tableeditor.html +93 -0
- data/third_party/closure-library/closure/goog/demos/effects.html +162 -0
- data/third_party/closure-library/closure/goog/demos/emoji/200.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/201.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/202.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/203.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/204.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/205.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/206.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2ED.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/none.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/sprite.png +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/sprite2.png +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/unknown.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/event-propagation.html +192 -0
- data/third_party/closure-library/closure/goog/demos/events.html +99 -0
- data/third_party/closure-library/closure/goog/demos/eventtarget.html +70 -0
- data/third_party/closure-library/closure/goog/demos/filedrophandler.html +65 -0
- data/third_party/closure-library/closure/goog/demos/filteredmenu.html +118 -0
- data/third_party/closure-library/closure/goog/demos/focushandler.html +58 -0
- data/third_party/closure-library/closure/goog/demos/fpsdisplay.html +50 -0
- data/third_party/closure-library/closure/goog/demos/fx/css3/transition.html +222 -0
- data/third_party/closure-library/closure/goog/demos/gauge.html +158 -0
- data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates.html +141 -0
- data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates2.html +130 -0
- data/third_party/closure-library/closure/goog/demos/graphics/basicelements.html +264 -0
- data/third_party/closure-library/closure/goog/demos/graphics/events.html +114 -0
- data/third_party/closure-library/closure/goog/demos/graphics/modifyelements.html +195 -0
- data/third_party/closure-library/closure/goog/demos/graphics/subpixel.html +80 -0
- data/third_party/closure-library/closure/goog/demos/graphics/tiger.html +105 -0
- data/third_party/closure-library/closure/goog/demos/graphics/tigerdata.js +2841 -0
- data/third_party/closure-library/closure/goog/demos/history1.html +132 -0
- data/third_party/closure-library/closure/goog/demos/history2.html +119 -0
- data/third_party/closure-library/closure/goog/demos/history3.html +116 -0
- data/third_party/closure-library/closure/goog/demos/history3js.html +48 -0
- data/third_party/closure-library/closure/goog/demos/history_blank.html +26 -0
- data/third_party/closure-library/closure/goog/demos/hovercard.html +177 -0
- data/third_party/closure-library/closure/goog/demos/hsvapalette.html +55 -0
- data/third_party/closure-library/closure/goog/demos/hsvpalette.html +56 -0
- data/third_party/closure-library/closure/goog/demos/html5history.html +87 -0
- data/third_party/closure-library/closure/goog/demos/imagelessbutton.html +221 -0
- data/third_party/closure-library/closure/goog/demos/imagelessmenubutton.html +285 -0
- data/third_party/closure-library/closure/goog/demos/index.html +20 -0
- data/third_party/closure-library/closure/goog/demos/index_nav.html +255 -0
- data/third_party/closure-library/closure/goog/demos/index_splash.html +27 -0
- data/third_party/closure-library/closure/goog/demos/inline_block_quirks.html +125 -0
- data/third_party/closure-library/closure/goog/demos/inline_block_standards.html +126 -0
- data/third_party/closure-library/closure/goog/demos/inputdatepicker.html +60 -0
- data/third_party/closure-library/closure/goog/demos/inputhandler.html +88 -0
- data/third_party/closure-library/closure/goog/demos/jsonprettyprinter.html +80 -0
- data/third_party/closure-library/closure/goog/demos/keyboardshortcuts.html +112 -0
- data/third_party/closure-library/closure/goog/demos/keyhandler.html +118 -0
- data/third_party/closure-library/closure/goog/demos/labelinput.html +42 -0
- data/third_party/closure-library/closure/goog/demos/menu.html +220 -0
- data/third_party/closure-library/closure/goog/demos/menubar.html +211 -0
- data/third_party/closure-library/closure/goog/demos/menubutton.html +380 -0
- data/third_party/closure-library/closure/goog/demos/menubutton_frame.html +27 -0
- data/third_party/closure-library/closure/goog/demos/menuitem.html +164 -0
- data/third_party/closure-library/closure/goog/demos/mousewheelhandler.html +109 -0
- data/third_party/closure-library/closure/goog/demos/offline.html +268 -0
- data/third_party/closure-library/closure/goog/demos/onlinehandler.html +79 -0
- data/third_party/closure-library/closure/goog/demos/palette.html +302 -0
- data/third_party/closure-library/closure/goog/demos/pastehandler.html +54 -0
- data/third_party/closure-library/closure/goog/demos/pixeldensitymonitor.html +51 -0
- data/third_party/closure-library/closure/goog/demos/plaintextspellchecker.html +106 -0
- data/third_party/closure-library/closure/goog/demos/popup.html +206 -0
- data/third_party/closure-library/closure/goog/demos/popupcolorpicker.html +49 -0
- data/third_party/closure-library/closure/goog/demos/popupdatepicker.html +53 -0
- data/third_party/closure-library/closure/goog/demos/popupemojipicker.html +407 -0
- data/third_party/closure-library/closure/goog/demos/popupmenu.html +116 -0
- data/third_party/closure-library/closure/goog/demos/progressbar.html +97 -0
- data/third_party/closure-library/closure/goog/demos/prompt.html +92 -0
- data/third_party/closure-library/closure/goog/demos/quadtree.html +107 -0
- data/third_party/closure-library/closure/goog/demos/ratings.html +121 -0
- data/third_party/closure-library/closure/goog/demos/richtextspellchecker.html +92 -0
- data/third_party/closure-library/closure/goog/demos/roundedpanel.html +139 -0
- data/third_party/closure-library/closure/goog/demos/samplecomponent.html +75 -0
- data/third_party/closure-library/closure/goog/demos/samplecomponent.js +197 -0
- data/third_party/closure-library/closure/goog/demos/scrollfloater.html +113 -0
- data/third_party/closure-library/closure/goog/demos/select.html +324 -0
- data/third_party/closure-library/closure/goog/demos/selectionmenubutton.html +186 -0
- data/third_party/closure-library/closure/goog/demos/serverchart.html +122 -0
- data/third_party/closure-library/closure/goog/demos/slider.html +128 -0
- data/third_party/closure-library/closure/goog/demos/splitbehavior.html +163 -0
- data/third_party/closure-library/closure/goog/demos/splitpane.html +243 -0
- data/third_party/closure-library/closure/goog/demos/stopevent.html +171 -0
- data/third_party/closure-library/closure/goog/demos/submenus.html +130 -0
- data/third_party/closure-library/closure/goog/demos/submenus2.html +150 -0
- data/third_party/closure-library/closure/goog/demos/tabbar.html +289 -0
- data/third_party/closure-library/closure/goog/demos/tablesorter.html +116 -0
- data/third_party/closure-library/closure/goog/demos/tabpane.html +302 -0
- data/third_party/closure-library/closure/goog/demos/textarea.html +128 -0
- data/third_party/closure-library/closure/goog/demos/timers.html +291 -0
- data/third_party/closure-library/closure/goog/demos/toolbar.html +703 -0
- data/third_party/closure-library/closure/goog/demos/tooltip.html +91 -0
- data/third_party/closure-library/closure/goog/demos/tracer.html +92 -0
- data/third_party/closure-library/closure/goog/demos/tree/demo.html +126 -0
- data/third_party/closure-library/closure/goog/demos/tree/testdata.js +260 -0
- data/third_party/closure-library/closure/goog/demos/tweakui.html +121 -0
- data/third_party/closure-library/closure/goog/demos/twothumbslider.html +121 -0
- data/third_party/closure-library/closure/goog/demos/useragent.html +214 -0
- data/third_party/closure-library/closure/goog/demos/viewportsizemonitor.html +71 -0
- data/third_party/closure-library/closure/goog/demos/xpc/blank.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/index.html +89 -0
- data/third_party/closure-library/closure/goog/demos/xpc/inner.html +58 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/blank.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/index.html +105 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/inner.html +75 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/relay.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/relay.html +16 -0
- data/third_party/closure-library/closure/goog/demos/xpc/xpcdemo.js +307 -0
- data/third_party/closure-library/closure/goog/demos/zippy.html +149 -0
- data/third_party/closure-library/closure/goog/deps.js +911 -0
- data/third_party/closure-library/closure/goog/disposable/disposable.js +294 -0
- data/third_party/closure-library/closure/goog/disposable/disposable_test.html +307 -0
- data/third_party/closure-library/closure/goog/disposable/idisposable.js +45 -0
- data/third_party/closure-library/closure/goog/dom/a11y.js +169 -0
- data/third_party/closure-library/closure/goog/dom/abstractmultirange.js +77 -0
- data/third_party/closure-library/closure/goog/dom/abstractrange.js +528 -0
- data/third_party/closure-library/closure/goog/dom/abstractrange_test.html +73 -0
- data/third_party/closure-library/closure/goog/dom/annotate.js +355 -0
- data/third_party/closure-library/closure/goog/dom/annotate_test.html +215 -0
- data/third_party/closure-library/closure/goog/dom/browserfeature.js +67 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/abstractrange.js +352 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/browserrange.js +150 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/browserrange_test.html +638 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/geckorange.js +86 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/ierange.js +952 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/operarange.js +83 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/w3crange.js +365 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/webkitrange.js +112 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor.js +202 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.html +17 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.js +130 -0
- data/third_party/closure-library/closure/goog/dom/classes.js +227 -0
- data/third_party/closure-library/closure/goog/dom/classes_quirks_test.html +63 -0
- data/third_party/closure-library/closure/goog/dom/classes_test.html +64 -0
- data/third_party/closure-library/closure/goog/dom/classes_test.js +231 -0
- data/third_party/closure-library/closure/goog/dom/classlist.js +271 -0
- data/third_party/closure-library/closure/goog/dom/classlist_test.html +26 -0
- data/third_party/closure-library/closure/goog/dom/classlist_test.js +244 -0
- data/third_party/closure-library/closure/goog/dom/controlrange.js +505 -0
- data/third_party/closure-library/closure/goog/dom/controlrange_test.html +246 -0
- data/third_party/closure-library/closure/goog/dom/dataset.js +135 -0
- data/third_party/closure-library/closure/goog/dom/dataset_test.html +117 -0
- data/third_party/closure-library/closure/goog/dom/dom.js +2700 -0
- data/third_party/closure-library/closure/goog/dom/dom_quirks_test.html +113 -0
- data/third_party/closure-library/closure/goog/dom/dom_test.html +113 -0
- data/third_party/closure-library/closure/goog/dom/dom_test.js +1421 -0
- data/third_party/closure-library/closure/goog/dom/fontsizemonitor.js +159 -0
- data/third_party/closure-library/closure/goog/dom/fontsizemonitor_test.html +284 -0
- data/third_party/closure-library/closure/goog/dom/forms.js +414 -0
- data/third_party/closure-library/closure/goog/dom/forms_test.html +501 -0
- data/third_party/closure-library/closure/goog/dom/fullscreen.js +124 -0
- data/third_party/closure-library/closure/goog/dom/iframe.js +163 -0
- data/third_party/closure-library/closure/goog/dom/iframe_test.html +88 -0
- data/third_party/closure-library/closure/goog/dom/iter.js +127 -0
- data/third_party/closure-library/closure/goog/dom/iter_test.html +97 -0
- data/third_party/closure-library/closure/goog/dom/multirange.js +519 -0
- data/third_party/closure-library/closure/goog/dom/multirange_test.html +67 -0
- data/third_party/closure-library/closure/goog/dom/nodeiterator.js +86 -0
- data/third_party/closure-library/closure/goog/dom/nodeiterator_test.html +49 -0
- data/third_party/closure-library/closure/goog/dom/nodeoffset.js +112 -0
- data/third_party/closure-library/closure/goog/dom/nodeoffset_test.html +88 -0
- data/third_party/closure-library/closure/goog/dom/pattern/abstractpattern.js +60 -0
- data/third_party/closure-library/closure/goog/dom/pattern/allchildren.js +75 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/callback.js +82 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/counter.js +72 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/test.js +77 -0
- data/third_party/closure-library/closure/goog/dom/pattern/childmatches.js +154 -0
- data/third_party/closure-library/closure/goog/dom/pattern/endtag.js +53 -0
- data/third_party/closure-library/closure/goog/dom/pattern/fulltag.js +93 -0
- data/third_party/closure-library/closure/goog/dom/pattern/matcher.js +150 -0
- data/third_party/closure-library/closure/goog/dom/pattern/matcher_test.html +204 -0
- data/third_party/closure-library/closure/goog/dom/pattern/nodetype.js +58 -0
- data/third_party/closure-library/closure/goog/dom/pattern/pattern.js +93 -0
- data/third_party/closure-library/closure/goog/dom/pattern/pattern_test.html +614 -0
- data/third_party/closure-library/closure/goog/dom/pattern/repeat.js +190 -0
- data/third_party/closure-library/closure/goog/dom/pattern/sequence.js +141 -0
- data/third_party/closure-library/closure/goog/dom/pattern/starttag.js +53 -0
- data/third_party/closure-library/closure/goog/dom/pattern/tag.js +150 -0
- data/third_party/closure-library/closure/goog/dom/pattern/text.js +70 -0
- data/third_party/closure-library/closure/goog/dom/range.js +226 -0
- data/third_party/closure-library/closure/goog/dom/range_test.html +735 -0
- data/third_party/closure-library/closure/goog/dom/rangeendpoint.js +32 -0
- data/third_party/closure-library/closure/goog/dom/savedcaretrange.js +215 -0
- data/third_party/closure-library/closure/goog/dom/savedcaretrange_test.html +257 -0
- data/third_party/closure-library/closure/goog/dom/savedrange.js +74 -0
- data/third_party/closure-library/closure/goog/dom/savedrange_test.html +61 -0
- data/third_party/closure-library/closure/goog/dom/selection.js +470 -0
- data/third_party/closure-library/closure/goog/dom/selection_test.html +329 -0
- data/third_party/closure-library/closure/goog/dom/tagiterator.js +367 -0
- data/third_party/closure-library/closure/goog/dom/tagiterator_test.html +589 -0
- data/third_party/closure-library/closure/goog/dom/tagname.js +159 -0
- data/third_party/closure-library/closure/goog/dom/tagname_test.html +37 -0
- data/third_party/closure-library/closure/goog/dom/textrange.js +630 -0
- data/third_party/closure-library/closure/goog/dom/textrange_test.html +342 -0
- data/third_party/closure-library/closure/goog/dom/textrangeiterator.js +244 -0
- data/third_party/closure-library/closure/goog/dom/textrangeiterator_test.html +142 -0
- data/third_party/closure-library/closure/goog/dom/vendor.js +62 -0
- data/third_party/closure-library/closure/goog/dom/vendor_test.html +202 -0
- data/third_party/closure-library/closure/goog/dom/viewportsizemonitor.js +180 -0
- data/third_party/closure-library/closure/goog/dom/viewportsizemonitor_test.html +138 -0
- data/third_party/closure-library/closure/goog/dom/xml.js +204 -0
- data/third_party/closure-library/closure/goog/dom/xml_test.html +103 -0
- data/third_party/closure-library/closure/goog/editor/browserfeature.js +273 -0
- data/third_party/closure-library/closure/goog/editor/browserfeature_test.html +124 -0
- data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper.js +435 -0
- data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper_test.html +137 -0
- data/third_party/closure-library/closure/goog/editor/command.js +76 -0
- data/third_party/closure-library/closure/goog/editor/contenteditablefield.js +110 -0
- data/third_party/closure-library/closure/goog/editor/contenteditablefield_test.html +62 -0
- data/third_party/closure-library/closure/goog/editor/defines.js +34 -0
- data/third_party/closure-library/closure/goog/editor/field.js +2725 -0
- data/third_party/closure-library/closure/goog/editor/field_test.html +32 -0
- data/third_party/closure-library/closure/goog/editor/field_test.js +1278 -0
- data/third_party/closure-library/closure/goog/editor/focus.js +32 -0
- data/third_party/closure-library/closure/goog/editor/focus_test.html +66 -0
- data/third_party/closure-library/closure/goog/editor/icontent.js +296 -0
- data/third_party/closure-library/closure/goog/editor/icontent_test.html +232 -0
- data/third_party/closure-library/closure/goog/editor/link.js +359 -0
- data/third_party/closure-library/closure/goog/editor/link_test.html +252 -0
- data/third_party/closure-library/closure/goog/editor/node.js +483 -0
- data/third_party/closure-library/closure/goog/editor/node_test.html +631 -0
- data/third_party/closure-library/closure/goog/editor/plugin.js +463 -0
- data/third_party/closure-library/closure/goog/editor/plugin_test.html +187 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js +630 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin_test.html +313 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin.js +334 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin_test.html +404 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler.js +78 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler_test.html +91 -0
- data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter.js +1750 -0
- data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter_test.html +1171 -0
- data/third_party/closure-library/closure/goog/editor/plugins/blockquote.js +479 -0
- data/third_party/closure-library/closure/goog/editor/plugins/blockquote_test.html +212 -0
- data/third_party/closure-library/closure/goog/editor/plugins/emoticons.js +88 -0
- data/third_party/closure-library/closure/goog/editor/plugins/emoticons_test.html +92 -0
- data/third_party/closure-library/closure/goog/editor/plugins/enterhandler.js +767 -0
- data/third_party/closure-library/closure/goog/editor/plugins/enterhandler_test.html +754 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorbubble.js +153 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin.js +215 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin_test.html +120 -0
- data/third_party/closure-library/closure/goog/editor/plugins/firststrong.js +326 -0
- data/third_party/closure-library/closure/goog/editor/plugins/firststrong_test.html +411 -0
- data/third_party/closure-library/closure/goog/editor/plugins/headerformatter.js +95 -0
- data/third_party/closure-library/closure/goog/editor/plugins/headerformatter_test.html +100 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkbubble.js +562 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkbubble_test.html +375 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin.js +437 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin_test.html +740 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin.js +63 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin_test.html +70 -0
- data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler.js +66 -0
- data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler_test.html +177 -0
- data/third_party/closure-library/closure/goog/editor/plugins/loremipsum.js +188 -0
- data/third_party/closure-library/closure/goog/editor/plugins/loremipsum_test.html +169 -0
- data/third_party/closure-library/closure/goog/editor/plugins/removeformatting.js +779 -0
- data/third_party/closure-library/closure/goog/editor/plugins/removeformatting_test.html +961 -0
- data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler.js +93 -0
- data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler_test.html +186 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tableeditor.js +472 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tableeditor_test.html +299 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler.js +742 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler_test.html +549 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredo.js +1015 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredo_test.html +525 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager.js +337 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager_test.html +394 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredostate.js +86 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredostate_test.html +44 -0
- data/third_party/closure-library/closure/goog/editor/range.js +632 -0
- data/third_party/closure-library/closure/goog/editor/range_test.html +1004 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield.js +738 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_quirks_test.html +28 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_test.html +32 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_test.js +472 -0
- data/third_party/closure-library/closure/goog/editor/style.js +222 -0
- data/third_party/closure-library/closure/goog/editor/style_test.html +177 -0
- data/third_party/closure-library/closure/goog/editor/table.js +567 -0
- data/third_party/closure-library/closure/goog/editor/table_test.html +529 -0
- data/third_party/closure-library/closure/goog/events/actioneventwrapper.js +136 -0
- data/third_party/closure-library/closure/goog/events/actioneventwrapper_test.html +211 -0
- data/third_party/closure-library/closure/goog/events/actionhandler.js +181 -0
- data/third_party/closure-library/closure/goog/events/actionhandler_test.html +82 -0
- data/third_party/closure-library/closure/goog/events/browserevent.js +411 -0
- data/third_party/closure-library/closure/goog/events/browserevent_test.html +161 -0
- data/third_party/closure-library/closure/goog/events/browserfeature.js +85 -0
- data/third_party/closure-library/closure/goog/events/event.js +154 -0
- data/third_party/closure-library/closure/goog/events/event_test.html +66 -0
- data/third_party/closure-library/closure/goog/events/eventhandler.js +291 -0
- data/third_party/closure-library/closure/goog/events/eventhandler_test.html +254 -0
- data/third_party/closure-library/closure/goog/events/events.js +1095 -0
- data/third_party/closure-library/closure/goog/events/events_test.html +659 -0
- data/third_party/closure-library/closure/goog/events/eventtarget.js +401 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_test.html +70 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_via_googevents_test.html +85 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_via_w3cinterface_test.html +49 -0
- data/third_party/closure-library/closure/goog/events/eventtargettester.js +1028 -0
- data/third_party/closure-library/closure/goog/events/eventtype.js +165 -0
- data/third_party/closure-library/closure/goog/events/eventwrapper.js +66 -0
- data/third_party/closure-library/closure/goog/events/filedrophandler.js +221 -0
- data/third_party/closure-library/closure/goog/events/filedrophandler_test.html +258 -0
- data/third_party/closure-library/closure/goog/events/focushandler.js +106 -0
- data/third_party/closure-library/closure/goog/events/imehandler.js +363 -0
- data/third_party/closure-library/closure/goog/events/imehandler_test.html +269 -0
- data/third_party/closure-library/closure/goog/events/inputhandler.js +213 -0
- data/third_party/closure-library/closure/goog/events/keycodes.js +377 -0
- data/third_party/closure-library/closure/goog/events/keycodes_test.html +125 -0
- data/third_party/closure-library/closure/goog/events/keyhandler.js +556 -0
- data/third_party/closure-library/closure/goog/events/keyhandler_test.html +727 -0
- data/third_party/closure-library/closure/goog/events/keynames.js +132 -0
- data/third_party/closure-library/closure/goog/events/listenable.js +323 -0
- data/third_party/closure-library/closure/goog/events/listenable_test.html +31 -0
- data/third_party/closure-library/closure/goog/events/listener.js +131 -0
- data/third_party/closure-library/closure/goog/events/listenermap.js +299 -0
- data/third_party/closure-library/closure/goog/events/listenermap_test.html +19 -0
- data/third_party/closure-library/closure/goog/events/listenermap_test.js +116 -0
- data/third_party/closure-library/closure/goog/events/mousewheelhandler.js +295 -0
- data/third_party/closure-library/closure/goog/events/mousewheelhandler_test.html +385 -0
- data/third_party/closure-library/closure/goog/events/onlinehandler.js +162 -0
- data/third_party/closure-library/closure/goog/events/onlinelistener_test.html +160 -0
- data/third_party/closure-library/closure/goog/events/pastehandler.js +515 -0
- data/third_party/closure-library/closure/goog/events/pastehandler_test.html +414 -0
- data/third_party/closure-library/closure/goog/format/emailaddress.js +332 -0
- data/third_party/closure-library/closure/goog/format/emailaddress_test.html +192 -0
- data/third_party/closure-library/closure/goog/format/format.js +491 -0
- data/third_party/closure-library/closure/goog/format/format_test.html +302 -0
- data/third_party/closure-library/closure/goog/format/htmlprettyprinter.js +407 -0
- data/third_party/closure-library/closure/goog/format/htmlprettyprinter_test.html +205 -0
- data/third_party/closure-library/closure/goog/format/jsonprettyprinter.js +413 -0
- data/third_party/closure-library/closure/goog/format/jsonprettyprinter_test.html +111 -0
- data/third_party/closure-library/closure/goog/fs/entry.js +272 -0
- data/third_party/closure-library/closure/goog/fs/entryimpl.js +399 -0
- data/third_party/closure-library/closure/goog/fs/error.js +102 -0
- data/third_party/closure-library/closure/goog/fs/filereader.js +288 -0
- data/third_party/closure-library/closure/goog/fs/filesaver.js +176 -0
- data/third_party/closure-library/closure/goog/fs/filesystem.js +41 -0
- data/third_party/closure-library/closure/goog/fs/filesystemimpl.js +64 -0
- data/third_party/closure-library/closure/goog/fs/filewriter.js +110 -0
- data/third_party/closure-library/closure/goog/fs/fs.js +253 -0
- data/third_party/closure-library/closure/goog/fs/fs_test.html +754 -0
- data/third_party/closure-library/closure/goog/fs/progressevent.js +68 -0
- data/third_party/closure-library/closure/goog/functions/functions.js +255 -0
- data/third_party/closure-library/closure/goog/functions/functions_test.html +223 -0
- data/third_party/closure-library/closure/goog/fx/abstractdragdrop.js +1517 -0
- data/third_party/closure-library/closure/goog/fx/abstractdragdrop_test.html +663 -0
- data/third_party/closure-library/closure/goog/fx/anim/anim.js +210 -0
- data/third_party/closure-library/closure/goog/fx/anim/anim_test.html +225 -0
- data/third_party/closure-library/closure/goog/fx/animation.js +530 -0
- data/third_party/closure-library/closure/goog/fx/animation_test.html +117 -0
- data/third_party/closure-library/closure/goog/fx/animationqueue.js +307 -0
- data/third_party/closure-library/closure/goog/fx/animationqueue_test.html +316 -0
- data/third_party/closure-library/closure/goog/fx/css3/fx.js +62 -0
- data/third_party/closure-library/closure/goog/fx/css3/transition.js +196 -0
- data/third_party/closure-library/closure/goog/fx/css3/transition_test.html +224 -0
- data/third_party/closure-library/closure/goog/fx/cssspriteanimation.js +113 -0
- data/third_party/closure-library/closure/goog/fx/cssspriteanimation_test.html +126 -0
- data/third_party/closure-library/closure/goog/fx/dom.js +653 -0
- data/third_party/closure-library/closure/goog/fx/dragdrop.js +50 -0
- data/third_party/closure-library/closure/goog/fx/dragdropgroup.js +109 -0
- data/third_party/closure-library/closure/goog/fx/dragdropgroup_test.html +234 -0
- data/third_party/closure-library/closure/goog/fx/dragger.js +795 -0
- data/third_party/closure-library/closure/goog/fx/dragger_test.html +449 -0
- data/third_party/closure-library/closure/goog/fx/draglistgroup.js +1301 -0
- data/third_party/closure-library/closure/goog/fx/draglistgroup_test.html +403 -0
- data/third_party/closure-library/closure/goog/fx/dragscrollsupport.js +299 -0
- data/third_party/closure-library/closure/goog/fx/dragscrollsupport_test.html +354 -0
- data/third_party/closure-library/closure/goog/fx/easing.js +50 -0
- data/third_party/closure-library/closure/goog/fx/fx.js +32 -0
- data/third_party/closure-library/closure/goog/fx/fx_test.html +100 -0
- data/third_party/closure-library/closure/goog/fx/transition.js +75 -0
- data/third_party/closure-library/closure/goog/fx/transitionbase.js +237 -0
- data/third_party/closure-library/closure/goog/gears/basestore.js +521 -0
- data/third_party/closure-library/closure/goog/gears/basestore_test.html +247 -0
- data/third_party/closure-library/closure/goog/gears/database.js +934 -0
- data/third_party/closure-library/closure/goog/gears/database_test.html +699 -0
- data/third_party/closure-library/closure/goog/gears/gears.js +228 -0
- data/third_party/closure-library/closure/goog/gears/gears_test.html +78 -0
- data/third_party/closure-library/closure/goog/gears/httprequest.js +80 -0
- data/third_party/closure-library/closure/goog/gears/loggerclient.js +130 -0
- data/third_party/closure-library/closure/goog/gears/loggerclient_test.html +172 -0
- data/third_party/closure-library/closure/goog/gears/loggerserver.js +157 -0
- data/third_party/closure-library/closure/goog/gears/loggerserver_test.html +119 -0
- data/third_party/closure-library/closure/goog/gears/logstore.js +478 -0
- data/third_party/closure-library/closure/goog/gears/logstore_test.html +600 -0
- data/third_party/closure-library/closure/goog/gears/managedresourcestore.js +555 -0
- data/third_party/closure-library/closure/goog/gears/managedresourcestore_test.html +453 -0
- data/third_party/closure-library/closure/goog/gears/multipartformdata.js +204 -0
- data/third_party/closure-library/closure/goog/gears/multipartformdata_test.html +221 -0
- data/third_party/closure-library/closure/goog/gears/statustype.js +37 -0
- data/third_party/closure-library/closure/goog/gears/urlcapture.js +370 -0
- data/third_party/closure-library/closure/goog/gears/urlcapture_test.html +392 -0
- data/third_party/closure-library/closure/goog/gears/worker.js +200 -0
- data/third_party/closure-library/closure/goog/gears/workerchannel.js +205 -0
- data/third_party/closure-library/closure/goog/gears/workerchannel_test.html +207 -0
- data/third_party/closure-library/closure/goog/gears/workerpool.js +240 -0
- data/third_party/closure-library/closure/goog/gears/workerpool_test.html +204 -0
- data/third_party/closure-library/closure/goog/graphics/abstractgraphics.js +441 -0
- data/third_party/closure-library/closure/goog/graphics/affinetransform.js +587 -0
- data/third_party/closure-library/closure/goog/graphics/affinetransform_test.html +360 -0
- data/third_party/closure-library/closure/goog/graphics/canvaselement.js +792 -0
- data/third_party/closure-library/closure/goog/graphics/canvasgraphics.js +665 -0
- data/third_party/closure-library/closure/goog/graphics/element.js +151 -0
- data/third_party/closure-library/closure/goog/graphics/ellipseelement.js +64 -0
- data/third_party/closure-library/closure/goog/graphics/ext/coordinates.js +159 -0
- data/third_party/closure-library/closure/goog/graphics/ext/coordinates_test.html +74 -0
- data/third_party/closure-library/closure/goog/graphics/ext/element.js +968 -0
- data/third_party/closure-library/closure/goog/graphics/ext/element_test.html +144 -0
- data/third_party/closure-library/closure/goog/graphics/ext/ellipse.js +59 -0
- data/third_party/closure-library/closure/goog/graphics/ext/ext.js +29 -0
- data/third_party/closure-library/closure/goog/graphics/ext/graphics.js +215 -0
- data/third_party/closure-library/closure/goog/graphics/ext/group.js +215 -0
- data/third_party/closure-library/closure/goog/graphics/ext/image.js +63 -0
- data/third_party/closure-library/closure/goog/graphics/ext/path.js +142 -0
- data/third_party/closure-library/closure/goog/graphics/ext/path_test.html +46 -0
- data/third_party/closure-library/closure/goog/graphics/ext/rectangle.js +54 -0
- data/third_party/closure-library/closure/goog/graphics/ext/shape.js +146 -0
- data/third_party/closure-library/closure/goog/graphics/ext/strokeandfillelement.js +70 -0
- data/third_party/closure-library/closure/goog/graphics/fill.js +46 -0
- data/third_party/closure-library/closure/goog/graphics/font.js +63 -0
- data/third_party/closure-library/closure/goog/graphics/graphics.js +135 -0
- data/third_party/closure-library/closure/goog/graphics/groupelement.js +59 -0
- data/third_party/closure-library/closure/goog/graphics/imageelement.js +70 -0
- data/third_party/closure-library/closure/goog/graphics/lineargradient.js +174 -0
- data/third_party/closure-library/closure/goog/graphics/path.js +512 -0
- data/third_party/closure-library/closure/goog/graphics/path_test.html +359 -0
- data/third_party/closure-library/closure/goog/graphics/pathelement.js +55 -0
- data/third_party/closure-library/closure/goog/graphics/paths.js +86 -0
- data/third_party/closure-library/closure/goog/graphics/paths_test.html +98 -0
- data/third_party/closure-library/closure/goog/graphics/rectelement.js +64 -0
- data/third_party/closure-library/closure/goog/graphics/solidfill.js +74 -0
- data/third_party/closure-library/closure/goog/graphics/solidfill_test.html +53 -0
- data/third_party/closure-library/closure/goog/graphics/stroke.js +67 -0
- data/third_party/closure-library/closure/goog/graphics/strokeandfillelement.js +115 -0
- data/third_party/closure-library/closure/goog/graphics/svgelement.js +279 -0
- data/third_party/closure-library/closure/goog/graphics/svggraphics.js +857 -0
- data/third_party/closure-library/closure/goog/graphics/svggraphics_test.html +83 -0
- data/third_party/closure-library/closure/goog/graphics/textelement.js +56 -0
- data/third_party/closure-library/closure/goog/graphics/vmlelement.js +433 -0
- data/third_party/closure-library/closure/goog/graphics/vmlgraphics.js +893 -0
- data/third_party/closure-library/closure/goog/history/event.js +54 -0
- data/third_party/closure-library/closure/goog/history/eventtype.js +30 -0
- data/third_party/closure-library/closure/goog/history/history.js +998 -0
- data/third_party/closure-library/closure/goog/history/history_test.html +19 -0
- data/third_party/closure-library/closure/goog/history/history_test.js +54 -0
- data/third_party/closure-library/closure/goog/history/html5history.js +303 -0
- data/third_party/closure-library/closure/goog/history/html5history_test.html +163 -0
- data/third_party/closure-library/closure/goog/i18n/bidi.js +806 -0
- data/third_party/closure-library/closure/goog/i18n/bidi_test.html +425 -0
- data/third_party/closure-library/closure/goog/i18n/bidiformatter.js +490 -0
- data/third_party/closure-library/closure/goog/i18n/bidiformatter_test.html +343 -0
- data/third_party/closure-library/closure/goog/i18n/charlistdecompressor.js +157 -0
- data/third_party/closure-library/closure/goog/i18n/charlistdecompressor_test.html +65 -0
- data/third_party/closure-library/closure/goog/i18n/charpickerdata.js +3185 -0
- data/third_party/closure-library/closure/goog/i18n/collation.js +58 -0
- data/third_party/closure-library/closure/goog/i18n/collation_test.html +63 -0
- data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols.js +7973 -0
- data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols_ext.js +27549 -0
- data/third_party/closure-library/closure/goog/i18n/currency.js +424 -0
- data/third_party/closure-library/closure/goog/i18n/currency_test.html +204 -0
- data/third_party/closure-library/closure/goog/i18n/currencycodemap.js +210 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeformat.js +673 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeformat_test.html +532 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeparse.js +1129 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeparse_test.html +766 -0
- data/third_party/closure-library/closure/goog/i18n/datetimepatterns.js +1854 -0
- data/third_party/closure-library/closure/goog/i18n/datetimepatternsext.js +10947 -0
- data/third_party/closure-library/closure/goog/i18n/datetimesymbols.js +3713 -0
- data/third_party/closure-library/closure/goog/i18n/datetimesymbolsext.js +21152 -0
- data/third_party/closure-library/closure/goog/i18n/graphemebreak.js +214 -0
- data/third_party/closure-library/closure/goog/i18n/graphemebreak_test.html +80 -0
- data/third_party/closure-library/closure/goog/i18n/messageformat.js +771 -0
- data/third_party/closure-library/closure/goog/i18n/messageformat_test.html +471 -0
- data/third_party/closure-library/closure/goog/i18n/mime.js +111 -0
- data/third_party/closure-library/closure/goog/i18n/mime_test.html +51 -0
- data/third_party/closure-library/closure/goog/i18n/numberformat.js +1228 -0
- data/third_party/closure-library/closure/goog/i18n/numberformat_test.html +985 -0
- data/third_party/closure-library/closure/goog/i18n/numberformatsymbols.js +3416 -0
- data/third_party/closure-library/closure/goog/i18n/numberformatsymbolsext.js +11887 -0
- data/third_party/closure-library/closure/goog/i18n/ordinalrules.js +589 -0
- data/third_party/closure-library/closure/goog/i18n/pluralrules.js +859 -0
- data/third_party/closure-library/closure/goog/i18n/timezone.js +340 -0
- data/third_party/closure-library/closure/goog/i18n/timezone_test.html +163 -0
- data/third_party/closure-library/closure/goog/i18n/uchar.js +1368 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher.js +73 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html +62 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/namefetcher.js +70 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher.js +281 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher_test.html +111 -0
- data/third_party/closure-library/closure/goog/i18n/uchar_test.html +133 -0
- data/third_party/closure-library/closure/goog/images/blank.gif +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_close.jpg +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_left.gif +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_right.gif +0 -0
- data/third_party/closure-library/closure/goog/images/button-bg.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check-outline.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check.gif +0 -0
- data/third_party/closure-library/closure/goog/images/close_box.gif +0 -0
- data/third_party/closure-library/closure/goog/images/color-swatch-tick.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dialog_close_box.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dimension-highlighted.png +0 -0
- data/third_party/closure-library/closure/goog/images/dimension-unhighlighted.png +0 -0
- data/third_party/closure-library/closure/goog/images/dropdn.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dropdn_disabled.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dropdown.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_bluedot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_offline.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_online.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_paused.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_syncing.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite.png +0 -0
- data/third_party/closure-library/closure/goog/images/left_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/left_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/menu-arrows.gif +0 -0
- data/third_party/closure-library/closure/goog/images/minus.png +0 -0
- data/third_party/closure-library/closure/goog/images/no_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/no_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/offlineicons.png +0 -0
- data/third_party/closure-library/closure/goog/images/plus.png +0 -0
- data/third_party/closure-library/closure/goog/images/ratingstars.gif +0 -0
- data/third_party/closure-library/closure/goog/images/right_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/right_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar-bg.png +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar-separator.gif +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar_icons.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/I.png +0 -0
- data/third_party/closure-library/closure/goog/images/tree/cleardot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/tree.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/tree.png +0 -0
- data/third_party/closure-library/closure/goog/images/ui_controls.jpg +0 -0
- data/third_party/closure-library/closure/goog/iter/iter.js +702 -0
- data/third_party/closure-library/closure/goog/iter/iter_test.html +479 -0
- data/third_party/closure-library/closure/goog/json/evaljsonprocessor.js +66 -0
- data/third_party/closure-library/closure/goog/json/json.js +349 -0
- data/third_party/closure-library/closure/goog/json/json_perf.html +116 -0
- data/third_party/closure-library/closure/goog/json/json_test.html +569 -0
- data/third_party/closure-library/closure/goog/json/nativejsonprocessor.js +73 -0
- data/third_party/closure-library/closure/goog/json/processor.js +33 -0
- data/third_party/closure-library/closure/goog/json/processor_test.html +89 -0
- data/third_party/closure-library/closure/goog/labs/classdef/classdef.js +162 -0
- data/third_party/closure-library/closure/goog/labs/classdef/classdef_test.html +103 -0
- data/third_party/closure-library/closure/goog/labs/events/touch.js +82 -0
- data/third_party/closure-library/closure/goog/labs/events/touch_test.html +19 -0
- data/third_party/closure-library/closure/goog/labs/events/touch_test.js +96 -0
- data/third_party/closure-library/closure/goog/labs/format/csv.js +391 -0
- data/third_party/closure-library/closure/goog/labs/format/csv_test.html +20 -0
- data/third_party/closure-library/closure/goog/labs/format/csv_test.js +169 -0
- data/third_party/closure-library/closure/goog/labs/mock/mock.js +733 -0
- data/third_party/closure-library/closure/goog/labs/mock/mock_test.html +416 -0
- data/third_party/closure-library/closure/goog/labs/net/image.js +93 -0
- data/third_party/closure-library/closure/goog/labs/net/image_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/net/image_test.js +128 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/cleardot.gif +0 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_json.data +2 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_text.data +1 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel.js +188 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/basetestchannel.js +639 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/channel.js +195 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/requeststats.js +391 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase.js +2171 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.html +22 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.js +1400 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport.js +274 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport_test.html +228 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchanneldebug.js +298 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest.js +1291 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest_test.html +287 -0
- data/third_party/closure-library/closure/goog/labs/net/webchanneltransport.js +74 -0
- data/third_party/closure-library/closure/goog/labs/net/webchanneltransportfactory.js +35 -0
- data/third_party/closure-library/closure/goog/labs/net/xhr.js +449 -0
- data/third_party/closure-library/closure/goog/labs/net/xhr_test.html +455 -0
- data/third_party/closure-library/closure/goog/labs/object/object.js +46 -0
- data/third_party/closure-library/closure/goog/labs/object/object_test.html +56 -0
- data/third_party/closure-library/closure/goog/labs/observe/notice.js +63 -0
- data/third_party/closure-library/closure/goog/labs/observe/observable.js +77 -0
- data/third_party/closure-library/closure/goog/labs/observe/observableset.js +180 -0
- data/third_party/closure-library/closure/goog/labs/observe/observableset_test.html +207 -0
- data/third_party/closure-library/closure/goog/labs/observe/observationset.js +156 -0
- data/third_party/closure-library/closure/goog/labs/observe/observationset_test.html +252 -0
- data/third_party/closure-library/closure/goog/labs/observe/observer.js +100 -0
- data/third_party/closure-library/closure/goog/labs/observe/observer_test.html +65 -0
- data/third_party/closure-library/closure/goog/labs/observe/simpleobservable.js +129 -0
- data/third_party/closure-library/closure/goog/labs/observe/simpleobservable_test.html +196 -0
- data/third_party/closure-library/closure/goog/labs/structs/map.js +339 -0
- data/third_party/closure-library/closure/goog/labs/structs/map_perf.js +201 -0
- data/third_party/closure-library/closure/goog/labs/structs/map_test.html +434 -0
- data/third_party/closure-library/closure/goog/labs/structs/multimap.js +279 -0
- data/third_party/closure-library/closure/goog/labs/structs/multimap_test.html +332 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor.js +178 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.html +17 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.js +146 -0
- data/third_party/closure-library/closure/goog/labs/testing/assertthat.js +59 -0
- data/third_party/closure-library/closure/goog/labs/testing/assertthat_test.html +73 -0
- data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher.js +94 -0
- data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher_test.html +43 -0
- data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher.js +266 -0
- data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher_test.html +70 -0
- data/third_party/closure-library/closure/goog/labs/testing/logicmatcher.js +206 -0
- data/third_party/closure-library/closure/goog/labs/testing/logicmatcher_test.html +59 -0
- data/third_party/closure-library/closure/goog/labs/testing/matcher.js +51 -0
- data/third_party/closure-library/closure/goog/labs/testing/numbermatcher.js +334 -0
- data/third_party/closure-library/closure/goog/labs/testing/numbermatcher_test.html +79 -0
- data/third_party/closure-library/closure/goog/labs/testing/objectmatcher.js +306 -0
- data/third_party/closure-library/closure/goog/labs/testing/objectmatcher_test.html +102 -0
- data/third_party/closure-library/closure/goog/labs/testing/stringmatcher.js +402 -0
- data/third_party/closure-library/closure/goog/labs/testing/stringmatcher_test.html +101 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser.js +189 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser_test.js +193 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device.js +64 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device_test.js +88 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine.js +144 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine_test.js +164 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform.js +193 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform_test.js +256 -0
- data/third_party/closure-library/closure/goog/labs/useragent/test_agents.js +272 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util.js +89 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util_test.html +22 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util_test.js +60 -0
- data/third_party/closure-library/closure/goog/locale/countries.js +291 -0
- data/third_party/closure-library/closure/goog/locale/countrylanguagenames_test.html +237 -0
- data/third_party/closure-library/closure/goog/locale/defaultlocalenameconstants.js +907 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnames.js +73 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnames_test.html +97 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnamesdata.js +327 -0
- data/third_party/closure-library/closure/goog/locale/locale.js +403 -0
- data/third_party/closure-library/closure/goog/locale/nativenameconstants.js +1354 -0
- data/third_party/closure-library/closure/goog/locale/scriptToLanguages.js +482 -0
- data/third_party/closure-library/closure/goog/locale/timezonedetection.js +117 -0
- data/third_party/closure-library/closure/goog/locale/timezonedetection_test.html +130 -0
- data/third_party/closure-library/closure/goog/locale/timezonefingerprint.js +248 -0
- data/third_party/closure-library/closure/goog/locale/timezonelist.js +131 -0
- data/third_party/closure-library/closure/goog/locale/timezonelist_test.html +165 -0
- data/third_party/closure-library/closure/goog/log/log.js +183 -0
- data/third_party/closure-library/closure/goog/log/log_test.js +169 -0
- data/third_party/closure-library/closure/goog/math/bezier.js +311 -0
- data/third_party/closure-library/closure/goog/math/bezier_test.html +112 -0
- data/third_party/closure-library/closure/goog/math/box.js +369 -0
- data/third_party/closure-library/closure/goog/math/box_test.html +298 -0
- data/third_party/closure-library/closure/goog/math/coordinate.js +233 -0
- data/third_party/closure-library/closure/goog/math/coordinate3.js +169 -0
- data/third_party/closure-library/closure/goog/math/coordinate3_test.html +204 -0
- data/third_party/closure-library/closure/goog/math/coordinate_test.html +159 -0
- data/third_party/closure-library/closure/goog/math/exponentialbackoff.js +103 -0
- data/third_party/closure-library/closure/goog/math/exponentialbackoff_test.html +67 -0
- data/third_party/closure-library/closure/goog/math/integer.js +737 -0
- data/third_party/closure-library/closure/goog/math/integer_test.html +1653 -0
- data/third_party/closure-library/closure/goog/math/interpolator/interpolator1.js +64 -0
- data/third_party/closure-library/closure/goog/math/interpolator/linear1.js +82 -0
- data/third_party/closure-library/closure/goog/math/interpolator/linear1_test.html +87 -0
- data/third_party/closure-library/closure/goog/math/interpolator/pchip1.js +81 -0
- data/third_party/closure-library/closure/goog/math/interpolator/pchip1_test.html +74 -0
- data/third_party/closure-library/closure/goog/math/interpolator/spline1.js +202 -0
- data/third_party/closure-library/closure/goog/math/interpolator/spline1_test.html +103 -0
- data/third_party/closure-library/closure/goog/math/line.js +177 -0
- data/third_party/closure-library/closure/goog/math/line_test.html +62 -0
- data/third_party/closure-library/closure/goog/math/long.js +802 -0
- data/third_party/closure-library/closure/goog/math/long_test.html +1571 -0
- data/third_party/closure-library/closure/goog/math/math.js +387 -0
- data/third_party/closure-library/closure/goog/math/math_test.html +292 -0
- data/third_party/closure-library/closure/goog/math/matrix.js +675 -0
- data/third_party/closure-library/closure/goog/math/matrix_test.html +434 -0
- data/third_party/closure-library/closure/goog/math/range.js +144 -0
- data/third_party/closure-library/closure/goog/math/range_test.html +103 -0
- data/third_party/closure-library/closure/goog/math/rangeset.js +394 -0
- data/third_party/closure-library/closure/goog/math/rangeset_test.html +664 -0
- data/third_party/closure-library/closure/goog/math/rect.js +463 -0
- data/third_party/closure-library/closure/goog/math/rect_test.html +444 -0
- data/third_party/closure-library/closure/goog/math/size.js +206 -0
- data/third_party/closure-library/closure/goog/math/size_test.html +180 -0
- data/third_party/closure-library/closure/goog/math/tdma.js +73 -0
- data/third_party/closure-library/closure/goog/math/tdma_test.html +33 -0
- data/third_party/closure-library/closure/goog/math/vec2.js +283 -0
- data/third_party/closure-library/closure/goog/math/vec2_test.html +225 -0
- data/third_party/closure-library/closure/goog/math/vec3.js +308 -0
- data/third_party/closure-library/closure/goog/math/vec3_test.html +221 -0
- data/third_party/closure-library/closure/goog/memoize/memoize.js +102 -0
- data/third_party/closure-library/closure/goog/memoize/memoize_test.html +157 -0
- data/third_party/closure-library/closure/goog/messaging/abstractchannel.js +210 -0
- data/third_party/closure-library/closure/goog/messaging/abstractchannel_test.html +89 -0
- data/third_party/closure-library/closure/goog/messaging/bufferedchannel.js +287 -0
- data/third_party/closure-library/closure/goog/messaging/bufferedchannel_test.html +283 -0
- data/third_party/closure-library/closure/goog/messaging/deferredchannel.js +98 -0
- data/third_party/closure-library/closure/goog/messaging/deferredchannel_test.html +113 -0
- data/third_party/closure-library/closure/goog/messaging/loggerclient.js +131 -0
- data/third_party/closure-library/closure/goog/messaging/loggerclient_test.html +102 -0
- data/third_party/closure-library/closure/goog/messaging/loggerserver.js +98 -0
- data/third_party/closure-library/closure/goog/messaging/loggerserver_test.html +101 -0
- data/third_party/closure-library/closure/goog/messaging/messagechannel.js +116 -0
- data/third_party/closure-library/closure/goog/messaging/messaging.js +34 -0
- data/third_party/closure-library/closure/goog/messaging/messaging_test.html +42 -0
- data/third_party/closure-library/closure/goog/messaging/multichannel.js +302 -0
- data/third_party/closure-library/closure/goog/messaging/multichannel_test.html +122 -0
- data/third_party/closure-library/closure/goog/messaging/portcaller.js +151 -0
- data/third_party/closure-library/closure/goog/messaging/portcaller_test.html +65 -0
- data/third_party/closure-library/closure/goog/messaging/portchannel.js +401 -0
- data/third_party/closure-library/closure/goog/messaging/portchannel_test.html +392 -0
- data/third_party/closure-library/closure/goog/messaging/portnetwork.js +78 -0
- data/third_party/closure-library/closure/goog/messaging/portnetwork_test.html +74 -0
- data/third_party/closure-library/closure/goog/messaging/portoperator.js +197 -0
- data/third_party/closure-library/closure/goog/messaging/portoperator_test.html +112 -0
- data/third_party/closure-library/closure/goog/messaging/respondingchannel.js +236 -0
- data/third_party/closure-library/closure/goog/messaging/respondingchannel_test.html +161 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_inner.html +28 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_worker.js +37 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_wrong_origin_inner.html +29 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_inner.html +34 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker1.js +32 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js +32 -0
- data/third_party/closure-library/closure/goog/module/abstractmoduleloader.js +56 -0
- data/third_party/closure-library/closure/goog/module/basemodule.js +45 -0
- data/third_party/closure-library/closure/goog/module/loader.js +269 -0
- data/third_party/closure-library/closure/goog/module/module.js +166 -0
- data/third_party/closure-library/closure/goog/module/moduleinfo.js +335 -0
- data/third_party/closure-library/closure/goog/module/moduleinfo_test.html +108 -0
- data/third_party/closure-library/closure/goog/module/moduleloadcallback.js +84 -0
- data/third_party/closure-library/closure/goog/module/moduleloadcallback_test.html +57 -0
- data/third_party/closure-library/closure/goog/module/moduleloader.js +462 -0
- data/third_party/closure-library/closure/goog/module/moduleloader_test.html +30 -0
- data/third_party/closure-library/closure/goog/module/moduleloader_test.js +438 -0
- data/third_party/closure-library/closure/goog/module/modulemanager.js +1370 -0
- data/third_party/closure-library/closure/goog/module/modulemanager_test.html +2143 -0
- data/third_party/closure-library/closure/goog/module/testdata/modA_1.js +23 -0
- data/third_party/closure-library/closure/goog/module/testdata/modA_2.js +27 -0
- data/third_party/closure-library/closure/goog/module/testdata/modB_1.js +31 -0
- data/third_party/closure-library/closure/goog/net/browserchannel.js +2757 -0
- data/third_party/closure-library/closure/goog/net/browserchannel_test.html +1328 -0
- data/third_party/closure-library/closure/goog/net/browsertestchannel.js +618 -0
- data/third_party/closure-library/closure/goog/net/bulkloader.js +181 -0
- data/third_party/closure-library/closure/goog/net/bulkloader_test.html +233 -0
- data/third_party/closure-library/closure/goog/net/bulkloaderhelper.js +127 -0
- data/third_party/closure-library/closure/goog/net/channeldebug.js +300 -0
- data/third_party/closure-library/closure/goog/net/channelrequest.js +1312 -0
- data/third_party/closure-library/closure/goog/net/channelrequest_test.html +280 -0
- data/third_party/closure-library/closure/goog/net/cookies.js +370 -0
- data/third_party/closure-library/closure/goog/net/cookies_test.html +266 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc.js +849 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.css +7 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.gif +0 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.html +120 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test_response.html +59 -0
- data/third_party/closure-library/closure/goog/net/errorcode.js +130 -0
- data/third_party/closure-library/closure/goog/net/eventtype.js +37 -0
- data/third_party/closure-library/closure/goog/net/filedownloader.js +743 -0
- data/third_party/closure-library/closure/goog/net/filedownloader_test.html +372 -0
- data/third_party/closure-library/closure/goog/net/httpstatus.js +111 -0
- data/third_party/closure-library/closure/goog/net/iframe_xhr_test.html +147 -0
- data/third_party/closure-library/closure/goog/net/iframe_xhr_test_response.html +17 -0
- data/third_party/closure-library/closure/goog/net/iframeio.js +1355 -0
- data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.data +2 -0
- data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.html +44 -0
- data/third_party/closure-library/closure/goog/net/iframeio_test.html +402 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor.js +200 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test.html +113 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame.html +12 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame2.html +12 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame3.html +12 -0
- data/third_party/closure-library/closure/goog/net/imageloader.js +292 -0
- data/third_party/closure-library/closure/goog/net/imageloader_test.html +302 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg1.gif +0 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg2.gif +0 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg3.gif +0 -0
- data/third_party/closure-library/closure/goog/net/ipaddress.js +511 -0
- data/third_party/closure-library/closure/goog/net/ipaddress_test.html +227 -0
- data/third_party/closure-library/closure/goog/net/jsloader.js +366 -0
- data/third_party/closure-library/closure/goog/net/jsloader_test.html +142 -0
- data/third_party/closure-library/closure/goog/net/jsonp.js +338 -0
- data/third_party/closure-library/closure/goog/net/jsonp_test.html +327 -0
- data/third_party/closure-library/closure/goog/net/mockiframeio.js +319 -0
- data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor.js +117 -0
- data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor_test.html +172 -0
- data/third_party/closure-library/closure/goog/net/networkstatusmonitor.js +47 -0
- data/third_party/closure-library/closure/goog/net/networktester.js +383 -0
- data/third_party/closure-library/closure/goog/net/networktester_test.html +227 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test1.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test2.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test3.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test4.js +23 -0
- data/third_party/closure-library/closure/goog/net/tmpnetwork.js +164 -0
- data/third_party/closure-library/closure/goog/net/websocket.js +505 -0
- data/third_party/closure-library/closure/goog/net/websocket_test.html +367 -0
- data/third_party/closure-library/closure/goog/net/wrapperxmlhttpfactory.js +68 -0
- data/third_party/closure-library/closure/goog/net/xhrio.js +1191 -0
- data/third_party/closure-library/closure/goog/net/xhrio_test.html +732 -0
- data/third_party/closure-library/closure/goog/net/xhriopool.js +80 -0
- data/third_party/closure-library/closure/goog/net/xhrmanager.js +787 -0
- data/third_party/closure-library/closure/goog/net/xhrmanager_test.html +123 -0
- data/third_party/closure-library/closure/goog/net/xmlhttp.js +228 -0
- data/third_party/closure-library/closure/goog/net/xmlhttpfactory.js +64 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel.js +805 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel_test.html +1024 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannelrole.js +30 -0
- data/third_party/closure-library/closure/goog/net/xpc/frameelementmethodtransport.js +254 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport.js +921 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport_test.html +295 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframerelaytransport.js +394 -0
- data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport.js +649 -0
- data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport_test.html +304 -0
- data/third_party/closure-library/closure/goog/net/xpc/nixtransport.js +479 -0
- data/third_party/closure-library/closure/goog/net/xpc/relay.js +72 -0
- data/third_party/closure-library/closure/goog/net/xpc/testdata/access_checker.html +29 -0
- data/third_party/closure-library/closure/goog/net/xpc/testdata/inner_peer.html +96 -0
- data/third_party/closure-library/closure/goog/net/xpc/transport.js +105 -0
- data/third_party/closure-library/closure/goog/net/xpc/xpc.js +293 -0
- data/third_party/closure-library/closure/goog/object/object.js +635 -0
- data/third_party/closure-library/closure/goog/object/object_test.html +466 -0
- data/third_party/closure-library/closure/goog/positioning/absoluteposition.js +74 -0
- data/third_party/closure-library/closure/goog/positioning/abstractposition.js +48 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredposition.js +92 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredposition_test.html +77 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition.js +191 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test.html +174 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test_iframe.html +35 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition.js +88 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition_test.html +22 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition_test.js +122 -0
- data/third_party/closure-library/closure/goog/positioning/menuanchoredposition.js +71 -0
- data/third_party/closure-library/closure/goog/positioning/menuanchoredposition_test.html +119 -0
- data/third_party/closure-library/closure/goog/positioning/positioning.js +557 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test.html +199 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test.js +1168 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe1.html +16 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe2.html +13 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_quirk.html +9 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_standard.html +13 -0
- data/third_party/closure-library/closure/goog/positioning/viewportclientposition.js +121 -0
- data/third_party/closure-library/closure/goog/positioning/viewportclientposition_test.html +189 -0
- data/third_party/closure-library/closure/goog/positioning/viewportposition.js +64 -0
- data/third_party/closure-library/closure/goog/proto/proto.js +44 -0
- data/third_party/closure-library/closure/goog/proto/serializer.js +69 -0
- data/third_party/closure-library/closure/goog/proto/serializer_test.html +43 -0
- data/third_party/closure-library/closure/goog/proto2/descriptor.js +200 -0
- data/third_party/closure-library/closure/goog/proto2/descriptor_test.html +60 -0
- data/third_party/closure-library/closure/goog/proto2/fielddescriptor.js +291 -0
- data/third_party/closure-library/closure/goog/proto2/fielddescriptor_test.html +132 -0
- data/third_party/closure-library/closure/goog/proto2/lazydeserializer.js +70 -0
- data/third_party/closure-library/closure/goog/proto2/message.js +840 -0
- data/third_party/closure-library/closure/goog/proto2/message_test.html +467 -0
- data/third_party/closure-library/closure/goog/proto2/objectserializer.js +159 -0
- data/third_party/closure-library/closure/goog/proto2/objectserializer_test.html +489 -0
- data/third_party/closure-library/closure/goog/proto2/package_test.pb.js +166 -0
- data/third_party/closure-library/closure/goog/proto2/pbliteserializer.js +193 -0
- data/third_party/closure-library/closure/goog/proto2/pbliteserializer_test.html +504 -0
- data/third_party/closure-library/closure/goog/proto2/proto_test.html +693 -0
- data/third_party/closure-library/closure/goog/proto2/serializer.js +174 -0
- data/third_party/closure-library/closure/goog/proto2/test.pb.js +2876 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer.js +995 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.html +21 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.js +629 -0
- data/third_party/closure-library/closure/goog/proto2/util.js +54 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub.js +326 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub_perf.html +298 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub_test.html +635 -0
- data/third_party/closure-library/closure/goog/reflect/reflect.js +77 -0
- data/third_party/closure-library/closure/goog/result/chain_test.html +236 -0
- data/third_party/closure-library/closure/goog/result/combine_test.html +229 -0
- data/third_party/closure-library/closure/goog/result/deferredadaptor.js +57 -0
- data/third_party/closure-library/closure/goog/result/deferredadaptor_test.html +86 -0
- data/third_party/closure-library/closure/goog/result/dependentresult.js +44 -0
- data/third_party/closure-library/closure/goog/result/result_interface.js +109 -0
- data/third_party/closure-library/closure/goog/result/resultutil.js +550 -0
- data/third_party/closure-library/closure/goog/result/resultutil_test.html +46 -0
- data/third_party/closure-library/closure/goog/result/simpleresult.js +217 -0
- data/third_party/closure-library/closure/goog/result/simpleresult_test.html +271 -0
- data/third_party/closure-library/closure/goog/result/transform_test.html +153 -0
- data/third_party/closure-library/closure/goog/result/wait_test.html +211 -0
- data/third_party/closure-library/closure/goog/soy/data.js +132 -0
- data/third_party/closure-library/closure/goog/soy/renderer.js +266 -0
- data/third_party/closure-library/closure/goog/soy/renderer_test.html +172 -0
- data/third_party/closure-library/closure/goog/soy/soy.js +205 -0
- data/third_party/closure-library/closure/goog/soy/soy_test.html +230 -0
- data/third_party/closure-library/closure/goog/soy/soy_test.js +175 -0
- data/third_party/closure-library/closure/goog/spell/spellcheck.js +475 -0
- data/third_party/closure-library/closure/goog/spell/spellcheck_test.html +112 -0
- data/third_party/closure-library/closure/goog/stats/basicstat.js +271 -0
- data/third_party/closure-library/closure/goog/stats/basicstat_test.html +167 -0
- data/third_party/closure-library/closure/goog/storage/collectablestorage.js +100 -0
- data/third_party/closure-library/closure/goog/storage/collectablestorage_test.html +76 -0
- data/third_party/closure-library/closure/goog/storage/encryptedstorage.js +201 -0
- data/third_party/closure-library/closure/goog/storage/encryptedstorage_test.html +160 -0
- data/third_party/closure-library/closure/goog/storage/errorcode.js +30 -0
- data/third_party/closure-library/closure/goog/storage/expiringstorage.js +142 -0
- data/third_party/closure-library/closure/goog/storage/expiringstorage_test.html +90 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorcode.js +31 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism.js +128 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism_test.html +83 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage.js +45 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage_test.html +60 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage.js +46 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage_test.html +61 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage.js +176 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage_test.html +122 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata.js +283 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata_test.html +78 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanism.js +86 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanismtester.js +117 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanism.js +56 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory.js +113 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory_test.html +58 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismseparationtester.js +91 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismsharingtester.js +87 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismtester.js +200 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism.js +97 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism_test.html +66 -0
- data/third_party/closure-library/closure/goog/storage/richstorage.js +149 -0
- data/third_party/closure-library/closure/goog/storage/richstorage_test.html +87 -0
- data/third_party/closure-library/closure/goog/storage/storage.js +111 -0
- data/third_party/closure-library/closure/goog/storage/storage_test.html +64 -0
- data/third_party/closure-library/closure/goog/storage/storage_test.js +60 -0
- data/third_party/closure-library/closure/goog/string/linkify.js +236 -0
- data/third_party/closure-library/closure/goog/string/linkify_test.html +441 -0
- data/third_party/closure-library/closure/goog/string/newlines.js +153 -0
- data/third_party/closure-library/closure/goog/string/newlines_test.html +19 -0
- data/third_party/closure-library/closure/goog/string/newlines_test.js +87 -0
- data/third_party/closure-library/closure/goog/string/parser.js +38 -0
- data/third_party/closure-library/closure/goog/string/path.js +169 -0
- data/third_party/closure-library/closure/goog/string/path_test.html +111 -0
- data/third_party/closure-library/closure/goog/string/string.js +1378 -0
- data/third_party/closure-library/closure/goog/string/string_test.html +19 -0
- data/third_party/closure-library/closure/goog/string/string_test.js +1173 -0
- data/third_party/closure-library/closure/goog/string/stringbuffer.js +103 -0
- data/third_party/closure-library/closure/goog/string/stringbuffer_test.html +101 -0
- data/third_party/closure-library/closure/goog/string/stringformat.js +251 -0
- data/third_party/closure-library/closure/goog/string/stringformat_test.html +223 -0
- data/third_party/closure-library/closure/goog/string/stringifier.js +38 -0
- data/third_party/closure-library/closure/goog/structs/avltree.js +835 -0
- data/third_party/closure-library/closure/goog/structs/avltree_test.html +303 -0
- data/third_party/closure-library/closure/goog/structs/circularbuffer.js +223 -0
- data/third_party/closure-library/closure/goog/structs/circularbuffer_test.html +105 -0
- data/third_party/closure-library/closure/goog/structs/collection.js +55 -0
- data/third_party/closure-library/closure/goog/structs/collection_test.html +57 -0
- data/third_party/closure-library/closure/goog/structs/heap.js +333 -0
- data/third_party/closure-library/closure/goog/structs/heap_test.html +220 -0
- data/third_party/closure-library/closure/goog/structs/inversionmap.js +159 -0
- data/third_party/closure-library/closure/goog/structs/inversionmap_test.html +157 -0
- data/third_party/closure-library/closure/goog/structs/linkedmap.js +473 -0
- data/third_party/closure-library/closure/goog/structs/linkedmap_test.html +300 -0
- data/third_party/closure-library/closure/goog/structs/map.js +449 -0
- data/third_party/closure-library/closure/goog/structs/map_test.html +430 -0
- data/third_party/closure-library/closure/goog/structs/node.js +74 -0
- data/third_party/closure-library/closure/goog/structs/pool.js +381 -0
- data/third_party/closure-library/closure/goog/structs/pool_test.html +291 -0
- data/third_party/closure-library/closure/goog/structs/prioritypool.js +184 -0
- data/third_party/closure-library/closure/goog/structs/prioritypool_test.html +588 -0
- data/third_party/closure-library/closure/goog/structs/priorityqueue.js +64 -0
- data/third_party/closure-library/closure/goog/structs/priorityqueue_test.html +179 -0
- data/third_party/closure-library/closure/goog/structs/quadtree.js +571 -0
- data/third_party/closure-library/closure/goog/structs/quadtree_test.html +179 -0
- data/third_party/closure-library/closure/goog/structs/queue.js +157 -0
- data/third_party/closure-library/closure/goog/structs/queue_test.html +140 -0
- data/third_party/closure-library/closure/goog/structs/set.js +274 -0
- data/third_party/closure-library/closure/goog/structs/set_perf.html +271 -0
- data/third_party/closure-library/closure/goog/structs/set_test.html +581 -0
- data/third_party/closure-library/closure/goog/structs/simplepool.js +205 -0
- data/third_party/closure-library/closure/goog/structs/stringset.js +403 -0
- data/third_party/closure-library/closure/goog/structs/stringset_test.html +265 -0
- data/third_party/closure-library/closure/goog/structs/structs.js +351 -0
- data/third_party/closure-library/closure/goog/structs/structs_test.html +1050 -0
- data/third_party/closure-library/closure/goog/structs/treenode.js +428 -0
- data/third_party/closure-library/closure/goog/structs/treenode_test.html +370 -0
- data/third_party/closure-library/closure/goog/structs/trie.js +368 -0
- data/third_party/closure-library/closure/goog/structs/trie_test.html +378 -0
- data/third_party/closure-library/closure/goog/style/bidi.js +182 -0
- data/third_party/closure-library/closure/goog/style/bidi_test.html +211 -0
- data/third_party/closure-library/closure/goog/style/cursor.js +115 -0
- data/third_party/closure-library/closure/goog/style/cursor_test.html +132 -0
- data/third_party/closure-library/closure/goog/style/style.js +2087 -0
- data/third_party/closure-library/closure/goog/style/style_quirks_test.html +530 -0
- data/third_party/closure-library/closure/goog/style/style_test.html +518 -0
- data/third_party/closure-library/closure/goog/style/style_test.js +2602 -0
- data/third_party/closure-library/closure/goog/style/style_test_iframe_quirk.html +27 -0
- data/third_party/closure-library/closure/goog/style/style_test_iframe_standard.html +30 -0
- data/third_party/closure-library/closure/goog/style/style_test_quirk.html +9 -0
- data/third_party/closure-library/closure/goog/style/style_test_standard.html +11 -0
- data/third_party/closure-library/closure/goog/style/style_webkit_scrollbars_test.html +79 -0
- data/third_party/closure-library/closure/goog/style/stylescrollbartester.js +78 -0
- data/third_party/closure-library/closure/goog/style/transition.js +138 -0
- data/third_party/closure-library/closure/goog/style/transition_test.html +124 -0
- data/third_party/closure-library/closure/goog/testing/asserts.js +1243 -0
- data/third_party/closure-library/closure/goog/testing/asserts_test.html +1150 -0
- data/third_party/closure-library/closure/goog/testing/async/mockcontrol.js +174 -0
- data/third_party/closure-library/closure/goog/testing/async/mockcontrol_test.html +223 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase.js +824 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_async_test.html +102 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_noasync_test.html +98 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_test.html +58 -0
- data/third_party/closure-library/closure/goog/testing/benchmark.js +88 -0
- data/third_party/closure-library/closure/goog/testing/continuationtestcase.js +689 -0
- data/third_party/closure-library/closure/goog/testing/continuationtestcase_test.html +352 -0
- data/third_party/closure-library/closure/goog/testing/deferredtestcase.js +155 -0
- data/third_party/closure-library/closure/goog/testing/deferredtestcase_test.html +140 -0
- data/third_party/closure-library/closure/goog/testing/dom.js +608 -0
- data/third_party/closure-library/closure/goog/testing/dom_test.html +438 -0
- data/third_party/closure-library/closure/goog/testing/editor/dom.js +293 -0
- data/third_party/closure-library/closure/goog/testing/editor/dom_test.html +295 -0
- data/third_party/closure-library/closure/goog/testing/editor/fieldmock.js +99 -0
- data/third_party/closure-library/closure/goog/testing/editor/testhelper.js +176 -0
- data/third_party/closure-library/closure/goog/testing/editor/testhelper_test.html +177 -0
- data/third_party/closure-library/closure/goog/testing/events/eventobserver.js +86 -0
- data/third_party/closure-library/closure/goog/testing/events/eventobserver_test.html +70 -0
- data/third_party/closure-library/closure/goog/testing/events/events.js +713 -0
- data/third_party/closure-library/closure/goog/testing/events/events_test.html +614 -0
- data/third_party/closure-library/closure/goog/testing/events/matchers.js +41 -0
- data/third_party/closure-library/closure/goog/testing/events/matchers_test.html +40 -0
- data/third_party/closure-library/closure/goog/testing/events/onlinehandler.js +64 -0
- data/third_party/closure-library/closure/goog/testing/events/onlinehandler_test.html +89 -0
- data/third_party/closure-library/closure/goog/testing/expectedfailures.js +236 -0
- data/third_party/closure-library/closure/goog/testing/expectedfailures_test.html +122 -0
- data/third_party/closure-library/closure/goog/testing/fs/blob.js +116 -0
- data/third_party/closure-library/closure/goog/testing/fs/blob_test.html +65 -0
- data/third_party/closure-library/closure/goog/testing/fs/directoryentry_test.html +313 -0
- data/third_party/closure-library/closure/goog/testing/fs/entry.js +621 -0
- data/third_party/closure-library/closure/goog/testing/fs/entry_test.html +227 -0
- data/third_party/closure-library/closure/goog/testing/fs/file.js +52 -0
- data/third_party/closure-library/closure/goog/testing/fs/fileentry_test.html +93 -0
- data/third_party/closure-library/closure/goog/testing/fs/filereader.js +272 -0
- data/third_party/closure-library/closure/goog/testing/fs/filereader_test.html +236 -0
- data/third_party/closure-library/closure/goog/testing/fs/filesystem.js +63 -0
- data/third_party/closure-library/closure/goog/testing/fs/filewriter.js +261 -0
- data/third_party/closure-library/closure/goog/testing/fs/filewriter_test.html +325 -0
- data/third_party/closure-library/closure/goog/testing/fs/fs.js +147 -0
- data/third_party/closure-library/closure/goog/testing/fs/fs_test.html +53 -0
- data/third_party/closure-library/closure/goog/testing/fs/integration_test.html +223 -0
- data/third_party/closure-library/closure/goog/testing/fs/progressevent.js +81 -0
- data/third_party/closure-library/closure/goog/testing/functionmock.js +177 -0
- data/third_party/closure-library/closure/goog/testing/functionmock_test.html +511 -0
- data/third_party/closure-library/closure/goog/testing/graphics.js +64 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts.js +77 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.html +19 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.js +67 -0
- data/third_party/closure-library/closure/goog/testing/jsunit.js +156 -0
- data/third_party/closure-library/closure/goog/testing/loosemock.js +240 -0
- data/third_party/closure-library/closure/goog/testing/loosemock_test.html +343 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessagechannel.js +79 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessageevent.js +100 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessageport.js +85 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockportnetwork.js +65 -0
- data/third_party/closure-library/closure/goog/testing/mock.js +619 -0
- data/third_party/closure-library/closure/goog/testing/mock_test.html +264 -0
- data/third_party/closure-library/closure/goog/testing/mockclassfactory.js +578 -0
- data/third_party/closure-library/closure/goog/testing/mockclassfactory_test.html +241 -0
- data/third_party/closure-library/closure/goog/testing/mockclock.js +520 -0
- data/third_party/closure-library/closure/goog/testing/mockclock_test.html +504 -0
- data/third_party/closure-library/closure/goog/testing/mockcontrol.js +219 -0
- data/third_party/closure-library/closure/goog/testing/mockcontrol_test.html +127 -0
- data/third_party/closure-library/closure/goog/testing/mockinterface.js +45 -0
- data/third_party/closure-library/closure/goog/testing/mockmatchers.js +395 -0
- data/third_party/closure-library/closure/goog/testing/mockmatchers_test.html +388 -0
- data/third_party/closure-library/closure/goog/testing/mockrandom.js +126 -0
- data/third_party/closure-library/closure/goog/testing/mockrandom_test.html +56 -0
- data/third_party/closure-library/closure/goog/testing/mockrange.js +66 -0
- data/third_party/closure-library/closure/goog/testing/mockrange_test.html +41 -0
- data/third_party/closure-library/closure/goog/testing/mockstorage.js +107 -0
- data/third_party/closure-library/closure/goog/testing/mockstorage_test.html +78 -0
- data/third_party/closure-library/closure/goog/testing/mockuseragent.js +141 -0
- data/third_party/closure-library/closure/goog/testing/mockuseragent_test.html +59 -0
- data/third_party/closure-library/closure/goog/testing/multitestrunner.js +1439 -0
- data/third_party/closure-library/closure/goog/testing/net/xhrio.js +709 -0
- data/third_party/closure-library/closure/goog/testing/net/xhrio_test.html +384 -0
- data/third_party/closure-library/closure/goog/testing/net/xhriopool.js +64 -0
- data/third_party/closure-library/closure/goog/testing/objectpropertystring.js +67 -0
- data/third_party/closure-library/closure/goog/testing/performancetable.css +46 -0
- data/third_party/closure-library/closure/goog/testing/performancetable.js +190 -0
- data/third_party/closure-library/closure/goog/testing/performancetimer.js +405 -0
- data/third_party/closure-library/closure/goog/testing/performancetimer_test.html +201 -0
- data/third_party/closure-library/closure/goog/testing/propertyreplacer.js +243 -0
- data/third_party/closure-library/closure/goog/testing/propertyreplacer_test.html +368 -0
- data/third_party/closure-library/closure/goog/testing/proto2/proto2.js +127 -0
- data/third_party/closure-library/closure/goog/testing/proto2/proto2_test.html +117 -0
- data/third_party/closure-library/closure/goog/testing/pseudorandom.js +179 -0
- data/third_party/closure-library/closure/goog/testing/pseudorandom_test.html +98 -0
- data/third_party/closure-library/closure/goog/testing/recordfunction.js +201 -0
- data/third_party/closure-library/closure/goog/testing/recordfunction_test.html +159 -0
- data/third_party/closure-library/closure/goog/testing/shardingtestcase.js +122 -0
- data/third_party/closure-library/closure/goog/testing/shardingtestcase_test.html +34 -0
- data/third_party/closure-library/closure/goog/testing/singleton.js +46 -0
- data/third_party/closure-library/closure/goog/testing/singleton_test.html +39 -0
- data/third_party/closure-library/closure/goog/testing/stacktrace.js +555 -0
- data/third_party/closure-library/closure/goog/testing/stacktrace_test.html +327 -0
- data/third_party/closure-library/closure/goog/testing/storage/fakemechanism.js +66 -0
- data/third_party/closure-library/closure/goog/testing/strictmock.js +128 -0
- data/third_party/closure-library/closure/goog/testing/strictmock_test.html +412 -0
- data/third_party/closure-library/closure/goog/testing/style/layoutasserts.js +310 -0
- data/third_party/closure-library/closure/goog/testing/style/layoutasserts_test.html +269 -0
- data/third_party/closure-library/closure/goog/testing/style/style.js +101 -0
- data/third_party/closure-library/closure/goog/testing/style/style_test.html +162 -0
- data/third_party/closure-library/closure/goog/testing/testcase.js +1233 -0
- data/third_party/closure-library/closure/goog/testing/testqueue.js +66 -0
- data/third_party/closure-library/closure/goog/testing/testrunner.js +399 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererasserts.js +56 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererasserts_test.html +52 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererharness.js +176 -0
- data/third_party/closure-library/closure/goog/testing/ui/style.js +137 -0
- data/third_party/closure-library/closure/goog/testing/ui/style_reference.html +27 -0
- data/third_party/closure-library/closure/goog/testing/ui/style_test.html +130 -0
- data/third_party/closure-library/closure/goog/timer/timer.js +291 -0
- data/third_party/closure-library/closure/goog/timer/timer_test.html +118 -0
- data/third_party/closure-library/closure/goog/tweak/entries.js +997 -0
- data/third_party/closure-library/closure/goog/tweak/entries_test.html +94 -0
- data/third_party/closure-library/closure/goog/tweak/registry.js +310 -0
- data/third_party/closure-library/closure/goog/tweak/registry_test.html +145 -0
- data/third_party/closure-library/closure/goog/tweak/testhelpers.js +119 -0
- data/third_party/closure-library/closure/goog/tweak/tweak.js +301 -0
- data/third_party/closure-library/closure/goog/tweak/tweakui.js +817 -0
- data/third_party/closure-library/closure/goog/tweak/tweakui_test.html +280 -0
- data/third_party/closure-library/closure/goog/ui/abstractspellchecker.js +1138 -0
- data/third_party/closure-library/closure/goog/ui/ac/ac.js +50 -0
- data/third_party/closure-library/closure/goog/ui/ac/ac_test.html +204 -0
- data/third_party/closure-library/closure/goog/ui/ac/arraymatcher.js +162 -0
- data/third_party/closure-library/closure/goog/ui/ac/arraymatcher_test.html +130 -0
- data/third_party/closure-library/closure/goog/ui/ac/autocomplete.js +919 -0
- data/third_party/closure-library/closure/goog/ui/ac/autocomplete_test.html +1613 -0
- data/third_party/closure-library/closure/goog/ui/ac/inputhandler.js +1308 -0
- data/third_party/closure-library/closure/goog/ui/ac/inputhandler_test.html +685 -0
- data/third_party/closure-library/closure/goog/ui/ac/remote.js +114 -0
- data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher.js +271 -0
- data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher_test.html +73 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderer.js +1023 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderer_test.html +606 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderoptions.js +80 -0
- data/third_party/closure-library/closure/goog/ui/ac/richinputhandler.js +58 -0
- data/third_party/closure-library/closure/goog/ui/ac/richremote.js +107 -0
- data/third_party/closure-library/closure/goog/ui/ac/richremotearraymatcher.js +125 -0
- data/third_party/closure-library/closure/goog/ui/activitymonitor.js +347 -0
- data/third_party/closure-library/closure/goog/ui/activitymonitor_test.html +150 -0
- data/third_party/closure-library/closure/goog/ui/advancedtooltip.js +366 -0
- data/third_party/closure-library/closure/goog/ui/advancedtooltip_test.html +296 -0
- data/third_party/closure-library/closure/goog/ui/animatedzippy.js +199 -0
- data/third_party/closure-library/closure/goog/ui/animatedzippy_test.html +139 -0
- data/third_party/closure-library/closure/goog/ui/attachablemenu.js +473 -0
- data/third_party/closure-library/closure/goog/ui/bidiinput.js +178 -0
- data/third_party/closure-library/closure/goog/ui/bidiinput_test.html +131 -0
- data/third_party/closure-library/closure/goog/ui/bubble.js +472 -0
- data/third_party/closure-library/closure/goog/ui/button.js +213 -0
- data/third_party/closure-library/closure/goog/ui/button_perf.html +176 -0
- data/third_party/closure-library/closure/goog/ui/button_test.html +257 -0
- data/third_party/closure-library/closure/goog/ui/buttonrenderer.js +214 -0
- data/third_party/closure-library/closure/goog/ui/buttonrenderer_test.html +223 -0
- data/third_party/closure-library/closure/goog/ui/buttonside.js +41 -0
- data/third_party/closure-library/closure/goog/ui/charcounter.js +199 -0
- data/third_party/closure-library/closure/goog/ui/charpicker.js +880 -0
- data/third_party/closure-library/closure/goog/ui/charpicker_test.html +88 -0
- data/third_party/closure-library/closure/goog/ui/checkbox.js +269 -0
- data/third_party/closure-library/closure/goog/ui/checkbox_test.html +370 -0
- data/third_party/closure-library/closure/goog/ui/checkboxmenuitem.js +53 -0
- data/third_party/closure-library/closure/goog/ui/checkboxrenderer.js +171 -0
- data/third_party/closure-library/closure/goog/ui/colorbutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/colorbutton_test.html +70 -0
- data/third_party/closure-library/closure/goog/ui/colorbuttonrenderer.js +72 -0
- data/third_party/closure-library/closure/goog/ui/colormenubutton.js +215 -0
- data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer.js +144 -0
- data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer_test.html +88 -0
- data/third_party/closure-library/closure/goog/ui/colorpalette.js +177 -0
- data/third_party/closure-library/closure/goog/ui/colorpalette_test.html +174 -0
- data/third_party/closure-library/closure/goog/ui/colorpicker.js +344 -0
- data/third_party/closure-library/closure/goog/ui/colorsplitbehavior.js +60 -0
- data/third_party/closure-library/closure/goog/ui/combobox.js +961 -0
- data/third_party/closure-library/closure/goog/ui/combobox_test.html +292 -0
- data/third_party/closure-library/closure/goog/ui/component.js +1300 -0
- data/third_party/closure-library/closure/goog/ui/component_test.html +889 -0
- data/third_party/closure-library/closure/goog/ui/container.js +1322 -0
- data/third_party/closure-library/closure/goog/ui/container_perf.html +55 -0
- data/third_party/closure-library/closure/goog/ui/container_test.html +458 -0
- data/third_party/closure-library/closure/goog/ui/containerrenderer.js +371 -0
- data/third_party/closure-library/closure/goog/ui/containerrenderer_test.html +228 -0
- data/third_party/closure-library/closure/goog/ui/containerscroller.js +222 -0
- data/third_party/closure-library/closure/goog/ui/containerscroller_test.html +214 -0
- data/third_party/closure-library/closure/goog/ui/control.js +1387 -0
- data/third_party/closure-library/closure/goog/ui/control_perf.html +166 -0
- data/third_party/closure-library/closure/goog/ui/control_test.html +2142 -0
- data/third_party/closure-library/closure/goog/ui/controlcontent.js +28 -0
- data/third_party/closure-library/closure/goog/ui/controlrenderer.js +855 -0
- data/third_party/closure-library/closure/goog/ui/controlrenderer_test.html +1100 -0
- data/third_party/closure-library/closure/goog/ui/cookieeditor.js +183 -0
- data/third_party/closure-library/closure/goog/ui/cookieeditor_test.html +107 -0
- data/third_party/closure-library/closure/goog/ui/css3buttonrenderer.js +152 -0
- data/third_party/closure-library/closure/goog/ui/css3menubuttonrenderer.js +147 -0
- data/third_party/closure-library/closure/goog/ui/cssnames.js +29 -0
- data/third_party/closure-library/closure/goog/ui/custombutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/custombuttonrenderer.js +267 -0
- data/third_party/closure-library/closure/goog/ui/customcolorpalette.js +139 -0
- data/third_party/closure-library/closure/goog/ui/customcolorpalette_test.html +60 -0
- data/third_party/closure-library/closure/goog/ui/datepicker.js +1369 -0
- data/third_party/closure-library/closure/goog/ui/datepicker_test.html +252 -0
- data/third_party/closure-library/closure/goog/ui/datepickerrenderer.js +55 -0
- data/third_party/closure-library/closure/goog/ui/decorate.js +38 -0
- data/third_party/closure-library/closure/goog/ui/decorate_test.html +114 -0
- data/third_party/closure-library/closure/goog/ui/defaultdatepickerrenderer.js +202 -0
- data/third_party/closure-library/closure/goog/ui/dialog.js +1556 -0
- data/third_party/closure-library/closure/goog/ui/dialog_test.html +776 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpicker.js +305 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpicker_test.html +171 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer.js +416 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer_test.html +49 -0
- data/third_party/closure-library/closure/goog/ui/dragdropdetector.js +642 -0
- data/third_party/closure-library/closure/goog/ui/drilldownrow.js +486 -0
- data/third_party/closure-library/closure/goog/ui/drilldownrow_test.html +92 -0
- data/third_party/closure-library/closure/goog/ui/editor/abstractdialog.js +440 -0
- data/third_party/closure-library/closure/goog/ui/editor/abstractdialog_test.html +473 -0
- data/third_party/closure-library/closure/goog/ui/editor/bubble.js +525 -0
- data/third_party/closure-library/closure/goog/ui/editor/bubble_test.html +264 -0
- data/third_party/closure-library/closure/goog/ui/editor/defaulttoolbar.js +1065 -0
- data/third_party/closure-library/closure/goog/ui/editor/equationeditordialog.js +123 -0
- data/third_party/closure-library/closure/goog/ui/editor/equationeditorokevent.js +49 -0
- data/third_party/closure-library/closure/goog/ui/editor/linkdialog.js +1064 -0
- data/third_party/closure-library/closure/goog/ui/editor/linkdialog_test.html +653 -0
- data/third_party/closure-library/closure/goog/ui/editor/messages.js +123 -0
- data/third_party/closure-library/closure/goog/ui/editor/tabpane.js +198 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarcontroller.js +295 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory.js +440 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory_test.html +73 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emoji.js +72 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipalette.js +288 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipaletterenderer.js +208 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipicker.js +804 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipicker_test.html +913 -0
- data/third_party/closure-library/closure/goog/ui/emoji/fast_nonprogressive_emojipicker_test.html +256 -0
- data/third_party/closure-library/closure/goog/ui/emoji/fast_progressive_emojipicker_test.html +256 -0
- data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker.js +410 -0
- data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker_test.html +80 -0
- data/third_party/closure-library/closure/goog/ui/emoji/progressiveemojipaletterenderer.js +98 -0
- data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo.js +212 -0
- data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo_test.html +51 -0
- data/third_party/closure-library/closure/goog/ui/equation/arrowpalette.js +47 -0
- data/third_party/closure-library/closure/goog/ui/equation/changeevent.js +37 -0
- data/third_party/closure-library/closure/goog/ui/equation/comparisonpalette.js +56 -0
- data/third_party/closure-library/closure/goog/ui/equation/editorpane.js +93 -0
- data/third_party/closure-library/closure/goog/ui/equation/equationeditor.js +220 -0
- data/third_party/closure-library/closure/goog/ui/equation/equationeditordialog.js +137 -0
- data/third_party/closure-library/closure/goog/ui/equation/greekpalette.js +75 -0
- data/third_party/closure-library/closure/goog/ui/equation/imagerenderer.js +190 -0
- data/third_party/closure-library/closure/goog/ui/equation/mathpalette.js +55 -0
- data/third_party/closure-library/closure/goog/ui/equation/menupalette.js +86 -0
- data/third_party/closure-library/closure/goog/ui/equation/palette.js +288 -0
- data/third_party/closure-library/closure/goog/ui/equation/palettemanager.js +203 -0
- data/third_party/closure-library/closure/goog/ui/equation/symbolpalette.js +74 -0
- data/third_party/closure-library/closure/goog/ui/equation/texeditor.js +141 -0
- data/third_party/closure-library/closure/goog/ui/equation/texpane.js +444 -0
- data/third_party/closure-library/closure/goog/ui/filteredmenu.js +575 -0
- data/third_party/closure-library/closure/goog/ui/filteredmenu_test.html +321 -0
- data/third_party/closure-library/closure/goog/ui/filterobservingmenuitem.js +97 -0
- data/third_party/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.js +62 -0
- data/third_party/closure-library/closure/goog/ui/flatbuttonrenderer.js +146 -0
- data/third_party/closure-library/closure/goog/ui/flatmenubuttonrenderer.js +238 -0
- data/third_party/closure-library/closure/goog/ui/formpost.js +109 -0
- data/third_party/closure-library/closure/goog/ui/formpost_test.html +105 -0
- data/third_party/closure-library/closure/goog/ui/gauge.js +1011 -0
- data/third_party/closure-library/closure/goog/ui/gaugetheme.js +169 -0
- data/third_party/closure-library/closure/goog/ui/hovercard.js +456 -0
- data/third_party/closure-library/closure/goog/ui/hovercard_test.html +360 -0
- data/third_party/closure-library/closure/goog/ui/hsvapalette.js +298 -0
- data/third_party/closure-library/closure/goog/ui/hsvapalette_test.html +152 -0
- data/third_party/closure-library/closure/goog/ui/hsvpalette.js +505 -0
- data/third_party/closure-library/closure/goog/ui/hsvpalette_test.html +219 -0
- data/third_party/closure-library/closure/goog/ui/idgenerator.js +57 -0
- data/third_party/closure-library/closure/goog/ui/idletimer.js +299 -0
- data/third_party/closure-library/closure/goog/ui/idletimer_test.html +100 -0
- data/third_party/closure-library/closure/goog/ui/iframemask.js +257 -0
- data/third_party/closure-library/closure/goog/ui/iframemask_test.html +230 -0
- data/third_party/closure-library/closure/goog/ui/imagelessbuttonrenderer.js +204 -0
- data/third_party/closure-library/closure/goog/ui/imagelessmenubuttonrenderer.js +207 -0
- data/third_party/closure-library/closure/goog/ui/inputdatepicker.js +305 -0
- data/third_party/closure-library/closure/goog/ui/inputdatepicker_test.html +111 -0
- data/third_party/closure-library/closure/goog/ui/itemevent.js +50 -0
- data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler.js +1017 -0
- data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler_test.html +702 -0
- data/third_party/closure-library/closure/goog/ui/labelinput.js +592 -0
- data/third_party/closure-library/closure/goog/ui/labelinput_test.html +252 -0
- data/third_party/closure-library/closure/goog/ui/linkbuttonrenderer.js +67 -0
- data/third_party/closure-library/closure/goog/ui/media/flashobject.js +631 -0
- data/third_party/closure-library/closure/goog/ui/media/flashobject_test.html +236 -0
- data/third_party/closure-library/closure/goog/ui/media/flickr.js +308 -0
- data/third_party/closure-library/closure/goog/ui/media/flickr_test.html +114 -0
- data/third_party/closure-library/closure/goog/ui/media/googlevideo.js +281 -0
- data/third_party/closure-library/closure/goog/ui/media/googlevideo_test.html +105 -0
- data/third_party/closure-library/closure/goog/ui/media/media.js +285 -0
- data/third_party/closure-library/closure/goog/ui/media/media_test.html +118 -0
- data/third_party/closure-library/closure/goog/ui/media/mediamodel.js +960 -0
- data/third_party/closure-library/closure/goog/ui/media/mediamodel_test.html +108 -0
- data/third_party/closure-library/closure/goog/ui/media/mp3.js +228 -0
- data/third_party/closure-library/closure/goog/ui/media/mp3_test.html +78 -0
- data/third_party/closure-library/closure/goog/ui/media/photo.js +142 -0
- data/third_party/closure-library/closure/goog/ui/media/photo_test.html +62 -0
- data/third_party/closure-library/closure/goog/ui/media/picasa.js +321 -0
- data/third_party/closure-library/closure/goog/ui/media/picasa_test.html +121 -0
- data/third_party/closure-library/closure/goog/ui/media/vimeo.js +276 -0
- data/third_party/closure-library/closure/goog/ui/media/vimeo_test.html +102 -0
- data/third_party/closure-library/closure/goog/ui/media/youtube.js +357 -0
- data/third_party/closure-library/closure/goog/ui/media/youtube_test.html +243 -0
- data/third_party/closure-library/closure/goog/ui/menu.js +476 -0
- data/third_party/closure-library/closure/goog/ui/menu_test.html +167 -0
- data/third_party/closure-library/closure/goog/ui/menubar.js +44 -0
- data/third_party/closure-library/closure/goog/ui/menubardecorator.js +35 -0
- data/third_party/closure-library/closure/goog/ui/menubarrenderer.js +74 -0
- data/third_party/closure-library/closure/goog/ui/menubase.js +190 -0
- data/third_party/closure-library/closure/goog/ui/menubutton.js +903 -0
- data/third_party/closure-library/closure/goog/ui/menubutton_test.html +637 -0
- data/third_party/closure-library/closure/goog/ui/menubutton_test_frame.html +41 -0
- data/third_party/closure-library/closure/goog/ui/menubuttonrenderer.js +266 -0
- data/third_party/closure-library/closure/goog/ui/menubuttonrenderer_test.html +179 -0
- data/third_party/closure-library/closure/goog/ui/menuheader.js +62 -0
- data/third_party/closure-library/closure/goog/ui/menuheaderrenderer.js +54 -0
- data/third_party/closure-library/closure/goog/ui/menuitem.js +233 -0
- data/third_party/closure-library/closure/goog/ui/menuitem_test.html +559 -0
- data/third_party/closure-library/closure/goog/ui/menuitemrenderer.js +358 -0
- data/third_party/closure-library/closure/goog/ui/menuitemrenderer_test.html +201 -0
- data/third_party/closure-library/closure/goog/ui/menurenderer.js +123 -0
- data/third_party/closure-library/closure/goog/ui/menuseparator.js +51 -0
- data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer.js +113 -0
- data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer_test.html +61 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor.js +71 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.html +19 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.js +94 -0
- data/third_party/closure-library/closure/goog/ui/modalpopup.js +698 -0
- data/third_party/closure-library/closure/goog/ui/modalpopup_test.html +419 -0
- data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer.js +207 -0
- data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer_test.html +214 -0
- data/third_party/closure-library/closure/goog/ui/offlineinstalldialog.js +1089 -0
- data/third_party/closure-library/closure/goog/ui/offlinestatuscard.js +580 -0
- data/third_party/closure-library/closure/goog/ui/offlinestatuscomponent.js +540 -0
- data/third_party/closure-library/closure/goog/ui/option.js +68 -0
- data/third_party/closure-library/closure/goog/ui/palette.js +598 -0
- data/third_party/closure-library/closure/goog/ui/palette_test.html +135 -0
- data/third_party/closure-library/closure/goog/ui/paletterenderer.js +372 -0
- data/third_party/closure-library/closure/goog/ui/paletterenderer_test.html +83 -0
- data/third_party/closure-library/closure/goog/ui/plaintextspellchecker.js +672 -0
- data/third_party/closure-library/closure/goog/ui/plaintextspellchecker_test.html +239 -0
- data/third_party/closure-library/closure/goog/ui/popup.js +344 -0
- data/third_party/closure-library/closure/goog/ui/popup_test.html +137 -0
- data/third_party/closure-library/closure/goog/ui/popupbase.js +822 -0
- data/third_party/closure-library/closure/goog/ui/popupbase_test.html +484 -0
- data/third_party/closure-library/closure/goog/ui/popupcolorpicker.js +441 -0
- data/third_party/closure-library/closure/goog/ui/popupcolorpicker_test.html +71 -0
- data/third_party/closure-library/closure/goog/ui/popupdatepicker.js +273 -0
- data/third_party/closure-library/closure/goog/ui/popupmenu.js +557 -0
- data/third_party/closure-library/closure/goog/ui/popupmenu_test.html +308 -0
- data/third_party/closure-library/closure/goog/ui/progressbar.js +401 -0
- data/third_party/closure-library/closure/goog/ui/prompt.js +405 -0
- data/third_party/closure-library/closure/goog/ui/prompt_test.html +144 -0
- data/third_party/closure-library/closure/goog/ui/rangemodel.js +302 -0
- data/third_party/closure-library/closure/goog/ui/rangemodel_test.html +270 -0
- data/third_party/closure-library/closure/goog/ui/ratings.js +451 -0
- data/third_party/closure-library/closure/goog/ui/registry.js +167 -0
- data/third_party/closure-library/closure/goog/ui/registry_test.html +237 -0
- data/third_party/closure-library/closure/goog/ui/richtextspellchecker.js +626 -0
- data/third_party/closure-library/closure/goog/ui/richtextspellchecker_test.html +247 -0
- data/third_party/closure-library/closure/goog/ui/roundedpanel.js +625 -0
- data/third_party/closure-library/closure/goog/ui/roundedpanel_test.html +57 -0
- data/third_party/closure-library/closure/goog/ui/roundedtabrenderer.js +197 -0
- data/third_party/closure-library/closure/goog/ui/scrollfloater.js +585 -0
- data/third_party/closure-library/closure/goog/ui/scrollfloater_test.html +144 -0
- data/third_party/closure-library/closure/goog/ui/select.js +434 -0
- data/third_party/closure-library/closure/goog/ui/select_test.html +235 -0
- data/third_party/closure-library/closure/goog/ui/selectionmenubutton.js +299 -0
- data/third_party/closure-library/closure/goog/ui/selectionmenubutton_test.html +237 -0
- data/third_party/closure-library/closure/goog/ui/selectionmodel.js +300 -0
- data/third_party/closure-library/closure/goog/ui/selectionmodel_test.html +225 -0
- data/third_party/closure-library/closure/goog/ui/separator.js +80 -0
- data/third_party/closure-library/closure/goog/ui/serverchart.js +1837 -0
- data/third_party/closure-library/closure/goog/ui/serverchart_test.html +638 -0
- data/third_party/closure-library/closure/goog/ui/slider.js +126 -0
- data/third_party/closure-library/closure/goog/ui/sliderbase.js +1592 -0
- data/third_party/closure-library/closure/goog/ui/sliderbase_test.html +897 -0
- data/third_party/closure-library/closure/goog/ui/splitbehavior.js +340 -0
- data/third_party/closure-library/closure/goog/ui/splitbehavior_test.html +161 -0
- data/third_party/closure-library/closure/goog/ui/splitpane.js +898 -0
- data/third_party/closure-library/closure/goog/ui/splitpane_test.html +229 -0
- data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer.js +201 -0
- data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer_test.html +155 -0
- data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer.js +233 -0
- data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer_test.html +167 -0
- data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer.js +88 -0
- data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer_test.html +76 -0
- data/third_party/closure-library/closure/goog/ui/submenu.js +667 -0
- data/third_party/closure-library/closure/goog/ui/submenu_test.html +563 -0
- data/third_party/closure-library/closure/goog/ui/submenurenderer.js +233 -0
- data/third_party/closure-library/closure/goog/ui/tab.js +102 -0
- data/third_party/closure-library/closure/goog/ui/tab_test.html +62 -0
- data/third_party/closure-library/closure/goog/ui/tabbar.js +394 -0
- data/third_party/closure-library/closure/goog/ui/tabbar_test.html +612 -0
- data/third_party/closure-library/closure/goog/ui/tabbarrenderer.js +175 -0
- data/third_party/closure-library/closure/goog/ui/tabbarrenderer_test.html +138 -0
- data/third_party/closure-library/closure/goog/ui/tablesorter.js +325 -0
- data/third_party/closure-library/closure/goog/ui/tablesorter_test.html +197 -0
- data/third_party/closure-library/closure/goog/ui/tabpane.js +675 -0
- data/third_party/closure-library/closure/goog/ui/tabpane_test.html +107 -0
- data/third_party/closure-library/closure/goog/ui/tabrenderer.js +153 -0
- data/third_party/closure-library/closure/goog/ui/tabrenderer_test.html +135 -0
- data/third_party/closure-library/closure/goog/ui/textarea.js +577 -0
- data/third_party/closure-library/closure/goog/ui/textarea_test.html +314 -0
- data/third_party/closure-library/closure/goog/ui/textarearenderer.js +169 -0
- data/third_party/closure-library/closure/goog/ui/togglebutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/toolbar.js +46 -0
- data/third_party/closure-library/closure/goog/ui/toolbarbutton.js +55 -0
- data/third_party/closure-library/closure/goog/ui/toolbarbuttonrenderer.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.js +98 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer_test.html +66 -0
- data/third_party/closure-library/closure/goog/ui/toolbarmenubutton.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarrenderer.js +99 -0
- data/third_party/closure-library/closure/goog/ui/toolbarselect.js +56 -0
- data/third_party/closure-library/closure/goog/ui/toolbarseparator.js +53 -0
- data/third_party/closure-library/closure/goog/ui/toolbarseparatorrenderer.js +91 -0
- data/third_party/closure-library/closure/goog/ui/toolbartogglebutton.js +54 -0
- data/third_party/closure-library/closure/goog/ui/tooltip.js +999 -0
- data/third_party/closure-library/closure/goog/ui/tooltip_test.html +380 -0
- data/third_party/closure-library/closure/goog/ui/tree/basenode.js +1458 -0
- data/third_party/closure-library/closure/goog/ui/tree/basenode_test.html +232 -0
- data/third_party/closure-library/closure/goog/ui/tree/treecontrol.js +663 -0
- data/third_party/closure-library/closure/goog/ui/tree/treecontrol_test.html +113 -0
- data/third_party/closure-library/closure/goog/ui/tree/treenode.js +107 -0
- data/third_party/closure-library/closure/goog/ui/tree/typeahead.js +332 -0
- data/third_party/closure-library/closure/goog/ui/tree/typeahead_test.html +133 -0
- data/third_party/closure-library/closure/goog/ui/tristatemenuitem.js +184 -0
- data/third_party/closure-library/closure/goog/ui/tristatemenuitemrenderer.js +84 -0
- data/third_party/closure-library/closure/goog/ui/twothumbslider.js +157 -0
- data/third_party/closure-library/closure/goog/ui/twothumbslider_test.html +39 -0
- data/third_party/closure-library/closure/goog/ui/zippy.js +445 -0
- data/third_party/closure-library/closure/goog/ui/zippy_test.html +315 -0
- data/third_party/closure-library/closure/goog/uri/uri.js +1502 -0
- data/third_party/closure-library/closure/goog/uri/uri_test.html +21 -0
- data/third_party/closure-library/closure/goog/uri/uri_test.js +1048 -0
- data/third_party/closure-library/closure/goog/uri/utils.js +1053 -0
- data/third_party/closure-library/closure/goog/uri/utils_test.html +562 -0
- data/third_party/closure-library/closure/goog/useragent/adobereader.js +90 -0
- data/third_party/closure-library/closure/goog/useragent/adobereader_test.html +34 -0
- data/third_party/closure-library/closure/goog/useragent/flash.js +153 -0
- data/third_party/closure-library/closure/goog/useragent/flash_test.html +34 -0
- data/third_party/closure-library/closure/goog/useragent/iphoto.js +87 -0
- data/third_party/closure-library/closure/goog/useragent/jscript.js +95 -0
- data/third_party/closure-library/closure/goog/useragent/jscript_test.html +65 -0
- data/third_party/closure-library/closure/goog/useragent/picasa.js +112 -0
- data/third_party/closure-library/closure/goog/useragent/platform.js +82 -0
- data/third_party/closure-library/closure/goog/useragent/platform_test.html +182 -0
- data/third_party/closure-library/closure/goog/useragent/product.js +253 -0
- data/third_party/closure-library/closure/goog/useragent/product_isversion.js +140 -0
- data/third_party/closure-library/closure/goog/useragent/product_test.html +380 -0
- data/third_party/closure-library/closure/goog/useragent/useragent.js +599 -0
- data/third_party/closure-library/closure/goog/useragent/useragent_quirks_test.html +27 -0
- data/third_party/closure-library/closure/goog/useragent/useragent_test.html +300 -0
- data/third_party/closure-library/closure/goog/vec/float32array.js +110 -0
- data/third_party/closure-library/closure/goog/vec/float32array_test.html +69 -0
- data/third_party/closure-library/closure/goog/vec/float64array.js +117 -0
- data/third_party/closure-library/closure/goog/vec/float64array_test.html +69 -0
- data/third_party/closure-library/closure/goog/vec/mat3.js +1211 -0
- data/third_party/closure-library/closure/goog/vec/mat3_test.html +465 -0
- data/third_party/closure-library/closure/goog/vec/mat3d.js +1039 -0
- data/third_party/closure-library/closure/goog/vec/mat3d_test.html +432 -0
- data/third_party/closure-library/closure/goog/vec/mat3f.js +1039 -0
- data/third_party/closure-library/closure/goog/vec/mat3f_test.html +432 -0
- data/third_party/closure-library/closure/goog/vec/mat4.js +1822 -0
- data/third_party/closure-library/closure/goog/vec/mat4_test.html +781 -0
- data/third_party/closure-library/closure/goog/vec/mat4d.js +1769 -0
- data/third_party/closure-library/closure/goog/vec/mat4d_test.html +738 -0
- data/third_party/closure-library/closure/goog/vec/mat4f.js +1769 -0
- data/third_party/closure-library/closure/goog/vec/mat4f_test.html +738 -0
- data/third_party/closure-library/closure/goog/vec/matrix3.js +720 -0
- data/third_party/closure-library/closure/goog/vec/matrix3_test.html +301 -0
- data/third_party/closure-library/closure/goog/vec/matrix4.js +1405 -0
- data/third_party/closure-library/closure/goog/vec/matrix4_test.html +626 -0
- data/third_party/closure-library/closure/goog/vec/quaternion.js +458 -0
- data/third_party/closure-library/closure/goog/vec/quaternion_test.html +195 -0
- data/third_party/closure-library/closure/goog/vec/ray.js +94 -0
- data/third_party/closure-library/closure/goog/vec/ray_test.html +66 -0
- data/third_party/closure-library/closure/goog/vec/vec.js +73 -0
- data/third_party/closure-library/closure/goog/vec/vec2.js +376 -0
- data/third_party/closure-library/closure/goog/vec/vec2_test.html +216 -0
- data/third_party/closure-library/closure/goog/vec/vec2d.js +325 -0
- data/third_party/closure-library/closure/goog/vec/vec2d_test.html +208 -0
- data/third_party/closure-library/closure/goog/vec/vec2f.js +325 -0
- data/third_party/closure-library/closure/goog/vec/vec2f_test.html +208 -0
- data/third_party/closure-library/closure/goog/vec/vec3.js +474 -0
- data/third_party/closure-library/closure/goog/vec/vec3_test.html +258 -0
- data/third_party/closure-library/closure/goog/vec/vec3d.js +358 -0
- data/third_party/closure-library/closure/goog/vec/vec3d_test.html +232 -0
- data/third_party/closure-library/closure/goog/vec/vec3f.js +358 -0
- data/third_party/closure-library/closure/goog/vec/vec3f_test.html +232 -0
- data/third_party/closure-library/closure/goog/vec/vec4.js +406 -0
- data/third_party/closure-library/closure/goog/vec/vec4_test.html +192 -0
- data/third_party/closure-library/closure/goog/vec/vec4d.js +293 -0
- data/third_party/closure-library/closure/goog/vec/vec4d_test.html +168 -0
- data/third_party/closure-library/closure/goog/vec/vec4f.js +293 -0
- data/third_party/closure-library/closure/goog/vec/vec4f_test.html +168 -0
- data/third_party/closure-library/closure/goog/vec/vec_array_perf.html +443 -0
- data/third_party/closure-library/closure/goog/vec/vec_perf.html +101 -0
- data/third_party/closure-library/closure/goog/webgl/webgl.js +2194 -0
- data/third_party/closure-library/closure/goog/window/window.js +225 -0
- data/third_party/closure-library/closure/goog/window/window_test.html +239 -0
- data/third_party/closure-library/closure/known_issues/testdata/closure_library_warnings.txt +47 -0
- data/third_party/closure-library/third_party/closure/goog/base.js +2 -0
- data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlparser.js +611 -0
- data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlsanitizer.js +605 -0
- data/third_party/closure-library/third_party/closure/goog/deps.js +20 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query.js +1543 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_compiled_test.html +65 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.html +64 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.js +158 -0
- data/third_party/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.js +751 -0
- data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum.js +712 -0
- data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum_test.html +60 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred.js +764 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_async_test.html +144 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_test.html +877 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist.js +205 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist_test.html +504 -0
- data/third_party/closure-library/third_party/closure/goog/osapi/osapi.js +95 -0
- metadata +2054 -0
@@ -0,0 +1,301 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<!--
|
4
|
+
Copyright 2011 The Closure Library Authors. All Rights Reserved.
|
5
|
+
|
6
|
+
Use of this source code is governed by the Apache License, Version 2.0.
|
7
|
+
See the COPYING file for details.
|
8
|
+
-->
|
9
|
+
<head>
|
10
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
11
|
+
<title>Closure Unit Tests - goog.vec.Vec3</title>
|
12
|
+
<script src="../base.js"></script>
|
13
|
+
<script>
|
14
|
+
goog.require('goog.vec.Float32Array');
|
15
|
+
goog.require('goog.vec.Matrix3');
|
16
|
+
goog.require('goog.testing.jsunit');
|
17
|
+
</script>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<script>
|
21
|
+
|
22
|
+
function testConstructor() {
|
23
|
+
var m0 = goog.vec.Matrix3.create();
|
24
|
+
assertElementsEquals([0, 0, 0, 0, 0, 0, 0, 0, 0], m0);
|
25
|
+
|
26
|
+
var m1 = goog.vec.Matrix3.createFromArray([1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
27
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m1);
|
28
|
+
|
29
|
+
var m2 = goog.vec.Matrix3.createFromArray(m1);
|
30
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m1);
|
31
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m2);
|
32
|
+
|
33
|
+
var m3 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
34
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m3);
|
35
|
+
|
36
|
+
var m4 = goog.vec.Matrix3.createIdentity();
|
37
|
+
assertElementsEquals([1, 0, 0, 0, 1, 0, 0, 0, 1], m4);
|
38
|
+
}
|
39
|
+
|
40
|
+
function testSet() {
|
41
|
+
var m0 = goog.vec.Matrix3.create();
|
42
|
+
var m1 = goog.vec.Matrix3.createFromArray([1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
43
|
+
goog.vec.Matrix3.setFromArray(m0, m1);
|
44
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
45
|
+
|
46
|
+
goog.vec.Matrix3.setFromValues(m0, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
47
|
+
assertElementsEquals([2, 3, 4, 5, 6, 7, 8, 9, 10], m0);
|
48
|
+
}
|
49
|
+
|
50
|
+
function testSetDiagonal() {
|
51
|
+
var m0 = goog.vec.Matrix3.create();
|
52
|
+
goog.vec.Matrix3.setDiagonalValues(m0, 1, 2, 3);
|
53
|
+
assertElementsEquals([1, 0, 0, 0, 2, 0, 0, 0, 3], m0);
|
54
|
+
|
55
|
+
goog.vec.Matrix3.setDiagonal(m0, [4, 5, 6]);
|
56
|
+
assertElementsEquals([4, 0, 0, 0, 5, 0, 0, 0, 6], m0);
|
57
|
+
}
|
58
|
+
|
59
|
+
function testSetGetColumn() {
|
60
|
+
var m0 = goog.vec.Matrix3.create();
|
61
|
+
goog.vec.Matrix3.setColumn(m0, 0, [1, 2, 3]);
|
62
|
+
goog.vec.Matrix3.setColumn(m0, 1, [4, 5, 6]);
|
63
|
+
goog.vec.Matrix3.setColumn(m0, 2, [7, 8, 9]);
|
64
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
65
|
+
|
66
|
+
var v0 = [0, 0, 0];
|
67
|
+
goog.vec.Matrix3.getColumn(m0, 0, v0);
|
68
|
+
assertElementsEquals([1, 2, 3], v0);
|
69
|
+
goog.vec.Matrix3.getColumn(m0, 1, v0);
|
70
|
+
assertElementsEquals([4, 5, 6], v0);
|
71
|
+
goog.vec.Matrix3.getColumn(m0, 2, v0);
|
72
|
+
assertElementsEquals([7, 8, 9], v0);
|
73
|
+
}
|
74
|
+
|
75
|
+
function testSetGetColumns() {
|
76
|
+
var m0 = goog.vec.Matrix3.create();
|
77
|
+
goog.vec.Matrix3.setColumns(m0, [1, 2, 3], [4, 5, 6], [7, 8, 9]);
|
78
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
79
|
+
|
80
|
+
var v0 = [0, 0, 0], v1 = [0, 0, 0], v2 = [0, 0, 0];
|
81
|
+
goog.vec.Matrix3.getColumns(m0, v0, v1, v2);
|
82
|
+
assertElementsEquals([1, 2, 3], v0);
|
83
|
+
assertElementsEquals([4, 5, 6], v1);
|
84
|
+
assertElementsEquals([7, 8, 9], v2);
|
85
|
+
}
|
86
|
+
|
87
|
+
function testSetGetRow() {
|
88
|
+
var m0 = goog.vec.Matrix3.create();
|
89
|
+
goog.vec.Matrix3.setRow(m0, 0, [1, 2, 3]);
|
90
|
+
goog.vec.Matrix3.setRow(m0, 1, [4, 5, 6]);
|
91
|
+
goog.vec.Matrix3.setRow(m0, 2, [7, 8, 9]);
|
92
|
+
assertElementsEquals([1, 4, 7, 2, 5, 8, 3, 6, 9], m0);
|
93
|
+
|
94
|
+
var v0 = [0, 0, 0];
|
95
|
+
goog.vec.Matrix3.getRow(m0, 0, v0);
|
96
|
+
assertElementsEquals([1, 2, 3], v0);
|
97
|
+
goog.vec.Matrix3.getRow(m0, 1, v0);
|
98
|
+
assertElementsEquals([4, 5, 6], v0);
|
99
|
+
goog.vec.Matrix3.getRow(m0, 2, v0);
|
100
|
+
assertElementsEquals([7, 8, 9], v0);
|
101
|
+
}
|
102
|
+
|
103
|
+
function testSetGetRows() {
|
104
|
+
var m0 = goog.vec.Matrix3.create();
|
105
|
+
goog.vec.Matrix3.setRows(m0, [1, 2, 3], [4, 5, 6], [7, 8, 9]);
|
106
|
+
assertElementsEquals([1, 4, 7, 2, 5, 8, 3, 6, 9], m0);
|
107
|
+
|
108
|
+
var v0 = [0, 0, 0], v1 = [0, 0, 0], v2 = [0, 0, 0];
|
109
|
+
goog.vec.Matrix3.getRows(m0, v0, v1, v2);
|
110
|
+
assertElementsEquals([1, 2, 3], v0);
|
111
|
+
assertElementsEquals([4, 5, 6], v1);
|
112
|
+
assertElementsEquals([7, 8, 9], v2);
|
113
|
+
}
|
114
|
+
|
115
|
+
function testSetRowMajorArray() {
|
116
|
+
var m0 = goog.vec.Matrix3.create();
|
117
|
+
goog.vec.Matrix3.setFromRowMajorArray(
|
118
|
+
m0, [1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
119
|
+
assertElementsEquals([1, 4, 7, 2, 5, 8, 3, 6, 9], m0);
|
120
|
+
}
|
121
|
+
|
122
|
+
function testSetZero() {
|
123
|
+
var m0 = goog.vec.Matrix3.createFromArray([1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
124
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
125
|
+
goog.vec.Matrix3.setZero(m0);
|
126
|
+
assertElementsEquals([0, 0, 0, 0, 0, 0, 0, 0, 0], m0);
|
127
|
+
}
|
128
|
+
|
129
|
+
function testSetIdentity() {
|
130
|
+
var m0 = goog.vec.Matrix3.create();
|
131
|
+
goog.vec.Matrix3.setIdentity(m0);
|
132
|
+
assertElementsEquals([1, 0, 0, 0, 1, 0, 0, 0, 1], m0);
|
133
|
+
}
|
134
|
+
|
135
|
+
function testSetGetElement() {
|
136
|
+
var m0 = goog.vec.Matrix3.create();
|
137
|
+
for (var r = 0; r < 3; r++) {
|
138
|
+
for (var c = 0; c < 3; c++) {
|
139
|
+
var value = c * 3 + r + 1;
|
140
|
+
goog.vec.Matrix3.setElement(m0, r, c, value);
|
141
|
+
assertEquals(value, goog.vec.Matrix3.getElement(m0, r, c));
|
142
|
+
}
|
143
|
+
}
|
144
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
145
|
+
}
|
146
|
+
|
147
|
+
function testAdd() {
|
148
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
149
|
+
var m1 = goog.vec.Matrix3.createFromValues(3, 4, 5, 6, 7, 8, 9, 1, 2);
|
150
|
+
var m2 = goog.vec.Matrix3.create();
|
151
|
+
goog.vec.Matrix3.add(m0, m1, m2);
|
152
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
153
|
+
assertElementsEquals([3, 4, 5, 6, 7, 8, 9, 1, 2], m1);
|
154
|
+
assertElementsEquals([4, 6, 8, 10, 12, 14, 16, 9, 11], m2);
|
155
|
+
|
156
|
+
goog.vec.Matrix3.add(m0, m1, m0);
|
157
|
+
assertElementsEquals([3, 4, 5, 6, 7, 8, 9, 1, 2], m1);
|
158
|
+
assertElementsEquals([4, 6, 8, 10, 12, 14, 16, 9, 11], m0);
|
159
|
+
}
|
160
|
+
|
161
|
+
function testSubtract() {
|
162
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
163
|
+
var m1 = goog.vec.Matrix3.createFromValues(3, 4, 5, 6, 7, 8, 9, 1, 2);
|
164
|
+
var m2 = goog.vec.Matrix3.create();
|
165
|
+
|
166
|
+
goog.vec.Matrix3.subtract(m0, m1, m2);
|
167
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
168
|
+
assertElementsEquals([3, 4, 5, 6, 7, 8, 9, 1, 2], m1);
|
169
|
+
assertElementsEquals([-2, -2, -2, -2, -2, -2, -2, 7, 7], m2);
|
170
|
+
|
171
|
+
goog.vec.Matrix3.subtract(m1, m0, m1);
|
172
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
173
|
+
assertElementsEquals([2, 2, 2, 2, 2, 2, 2, -7, -7], m1);
|
174
|
+
}
|
175
|
+
|
176
|
+
function testScale() {
|
177
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
178
|
+
var m1 = goog.vec.Matrix3.create();
|
179
|
+
|
180
|
+
goog.vec.Matrix3.scale(m0, 5, m1);
|
181
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m0);
|
182
|
+
assertElementsEquals([5, 10, 15, 20, 25, 30, 35, 40, 45], m1);
|
183
|
+
|
184
|
+
goog.vec.Matrix3.scale(m0, 5, m0);
|
185
|
+
assertElementsEquals([5, 10, 15, 20, 25, 30, 35, 40, 45], m0);
|
186
|
+
}
|
187
|
+
|
188
|
+
function testMultMat() {
|
189
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
190
|
+
var m1 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
191
|
+
var m2 = goog.vec.Matrix3.create();
|
192
|
+
|
193
|
+
goog.vec.Matrix3.multMat(m0, m1, m2);
|
194
|
+
assertElementsEquals([30, 36, 42, 66, 81, 96, 102, 126, 150], m2);
|
195
|
+
|
196
|
+
goog.vec.Matrix3.add(m0, m1, m1);
|
197
|
+
goog.vec.Matrix3.multMat(m0, m1, m1);
|
198
|
+
assertElementsEquals([60, 72, 84, 132, 162, 192, 204, 252, 300], m1);
|
199
|
+
}
|
200
|
+
|
201
|
+
function testTranspose() {
|
202
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
203
|
+
var m1 = goog.vec.Matrix3.create();
|
204
|
+
goog.vec.Matrix3.transpose(m0, m1);
|
205
|
+
assertElementsEquals([1, 4, 7, 2, 5, 8, 3, 6, 9], m1);
|
206
|
+
goog.vec.Matrix3.transpose(m1, m1);
|
207
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], m1);
|
208
|
+
}
|
209
|
+
|
210
|
+
function testInvert() {
|
211
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 1, 1, 1, 1, 1, 1, 1, 1);
|
212
|
+
assertFalse(goog.vec.Matrix3.invert(m0, m0));
|
213
|
+
assertElementsEquals([1, 1, 1, 1, 1, 1, 1, 1, 1], m0);
|
214
|
+
|
215
|
+
goog.vec.Matrix3.setFromValues(m0, 1, 2, 3, 1, 3, 4, 3, 4, 5);
|
216
|
+
assertTrue(goog.vec.Matrix3.invert(m0, m0));
|
217
|
+
assertElementsEquals([0.5, -1.0, 0.5, -3.5, 2.0, 0.5, 2.5, -1.0, -0.5], m0);
|
218
|
+
|
219
|
+
goog.vec.Matrix3.makeScale(m0, .01, .01, .01);
|
220
|
+
assertTrue(goog.vec.Matrix3.invert(m0, m0));
|
221
|
+
var m1 = goog.vec.Matrix3.create();
|
222
|
+
goog.vec.Matrix3.makeScale(m1, 100, 100, 100);
|
223
|
+
assertElementsEquals(m1, m0);
|
224
|
+
}
|
225
|
+
|
226
|
+
function testEquals() {
|
227
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
228
|
+
var m1 = goog.vec.Matrix3.createFromArray(m0);
|
229
|
+
assertTrue(goog.vec.Matrix3.equals(m0, m1));
|
230
|
+
assertTrue(goog.vec.Matrix3.equals(m1, m0));
|
231
|
+
for (var i = 0; i < 9; i++) {
|
232
|
+
m1[i] = 15;
|
233
|
+
assertFalse(goog.vec.Matrix3.equals(m0, m1));
|
234
|
+
assertFalse(goog.vec.Matrix3.equals(m1, m0));
|
235
|
+
m1[i] = i + 1;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
function testMultVec3() {
|
240
|
+
var m0 = goog.vec.Matrix3.createFromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
241
|
+
var v0 = [1, 2, 3];
|
242
|
+
var v1 = [0, 0, 0];
|
243
|
+
|
244
|
+
goog.vec.Matrix3.multVec3(m0, v0, v1);
|
245
|
+
assertElementsEquals([30, 36, 42], v1);
|
246
|
+
goog.vec.Matrix3.multVec3(m0, v0, v0);
|
247
|
+
assertElementsEquals([30, 36, 42], v0);
|
248
|
+
}
|
249
|
+
|
250
|
+
function testSetValues() {
|
251
|
+
var a0 = goog.vec.Matrix3.create();
|
252
|
+
assertElementsEquals([0, 0, 0, 0, 0, 0, 0, 0, 0], a0);
|
253
|
+
goog.vec.Matrix3.setFromValues(a0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
|
254
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], a0);
|
255
|
+
|
256
|
+
var a1 = goog.vec.Matrix3.create();
|
257
|
+
goog.vec.Matrix3.setDiagonalValues(a1, 1, 2, 3);
|
258
|
+
assertElementsEquals([1, 0, 0, 0, 2, 0, 0, 0, 3], a1);
|
259
|
+
|
260
|
+
goog.vec.Matrix3.setColumnValues(a1, 0, 2, 3, 4);
|
261
|
+
goog.vec.Matrix3.setColumnValues(a1, 1, 5, 6, 7);
|
262
|
+
goog.vec.Matrix3.setColumnValues(a1, 2, 8, 9, 1);
|
263
|
+
assertElementsEquals([2, 3, 4, 5, 6, 7, 8, 9, 1], a1);
|
264
|
+
|
265
|
+
goog.vec.Matrix3.setRowValues(a1, 0, 1, 4, 7);
|
266
|
+
goog.vec.Matrix3.setRowValues(a1, 1, 2, 5, 8);
|
267
|
+
goog.vec.Matrix3.setRowValues(a1, 2, 3, 6, 9);
|
268
|
+
assertElementsEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], a1);
|
269
|
+
}
|
270
|
+
|
271
|
+
function testMakeTranslate() {
|
272
|
+
var m0 = goog.vec.Matrix3.create();
|
273
|
+
goog.vec.Matrix3.makeTranslate(m0, 3, 4);
|
274
|
+
assertElementsEquals([1, 0, 0, 0, 1, 0, 3, 4, 1], m0);
|
275
|
+
}
|
276
|
+
|
277
|
+
function testMakeScale() {
|
278
|
+
var m0 = goog.vec.Matrix3.create();
|
279
|
+
goog.vec.Matrix3.makeScale(m0, 3, 4, 5);
|
280
|
+
assertElementsEquals([3, 0, 0, 0, 4, 0, 0, 0, 5], m0);
|
281
|
+
}
|
282
|
+
|
283
|
+
function testMakeRotate() {
|
284
|
+
var m0 = goog.vec.Matrix3.create();
|
285
|
+
goog.vec.Matrix3.makeAxisAngleRotate(m0, Math.PI / 2, 0, 0, 1);
|
286
|
+
var v0 = [0, 1, 0, -1, 0, 0, 0, 0, 1];
|
287
|
+
for (var i = 0; i < 9; ++i) {
|
288
|
+
assertTrue(Math.abs(m0[i] - v0[i]) < 1e-6);
|
289
|
+
}
|
290
|
+
|
291
|
+
var m1 = goog.vec.Matrix3.create();
|
292
|
+
goog.vec.Matrix3.makeAxisAngleRotate(m1, -Math.PI / 4, 0, 0, 1);
|
293
|
+
goog.vec.Matrix3.multMat(m0, m1, m1);
|
294
|
+
var v1 = [0.7071068, 0.7071068, 0, -0.7071068, 0.7071068, 0, 0, 0, 1];
|
295
|
+
for (var i = 0; i < 9; ++i) {
|
296
|
+
assertTrue(Math.abs(m1[i] - v1[i]) < 1e-6);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
</script>
|
301
|
+
</body>
|
@@ -0,0 +1,1405 @@
|
|
1
|
+
// Copyright 2011 The Closure Library Authors. All Rights Reserved.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS-IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @fileoverview WARNING: DEPRECATED. Use Mat4 instead.
|
17
|
+
* Implements 4x4 matrices and their related functions which are
|
18
|
+
* compatible with WebGL. The API is structured to avoid unnecessary memory
|
19
|
+
* allocations. The last parameter will typically be the output vector and
|
20
|
+
* an object can be both an input and output parameter to all methods except
|
21
|
+
* where noted. Matrix operations follow the mathematical form when multiplying
|
22
|
+
* vectors as follows: resultVec = matrix * vec.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
goog.provide('goog.vec.Matrix4');
|
26
|
+
|
27
|
+
goog.require('goog.vec');
|
28
|
+
goog.require('goog.vec.Vec3');
|
29
|
+
goog.require('goog.vec.Vec4');
|
30
|
+
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @typedef {goog.vec.ArrayType}
|
34
|
+
*/
|
35
|
+
goog.vec.Matrix4.Type;
|
36
|
+
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Creates the array representation of a 4x4 matrix. The use of the array
|
40
|
+
* directly eliminates any overhead associated with the class representation
|
41
|
+
* defined above. The returned matrix is cleared to all zeros.
|
42
|
+
*
|
43
|
+
* @return {goog.vec.Matrix4.Type} The new, sixteen element array.
|
44
|
+
*/
|
45
|
+
goog.vec.Matrix4.create = function() {
|
46
|
+
return new Float32Array(16);
|
47
|
+
};
|
48
|
+
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Creates the array representation of a 4x4 matrix. The use of the array
|
52
|
+
* directly eliminates any overhead associated with the class representation
|
53
|
+
* defined above. The returned matrix is initialized with the identity
|
54
|
+
*
|
55
|
+
* @return {goog.vec.Matrix4.Type} The new, sixteen element array.
|
56
|
+
*/
|
57
|
+
goog.vec.Matrix4.createIdentity = function() {
|
58
|
+
var mat = goog.vec.Matrix4.create();
|
59
|
+
mat[0] = mat[5] = mat[10] = mat[15] = 1;
|
60
|
+
return mat;
|
61
|
+
};
|
62
|
+
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Creates a 4x4 matrix initialized from the given array.
|
66
|
+
*
|
67
|
+
* @param {goog.vec.ArrayType} matrix The array containing the
|
68
|
+
* matrix values in column major order.
|
69
|
+
* @return {goog.vec.Matrix4.Type} The new, 16 element array.
|
70
|
+
*/
|
71
|
+
goog.vec.Matrix4.createFromArray = function(matrix) {
|
72
|
+
var newMatrix = goog.vec.Matrix4.create();
|
73
|
+
goog.vec.Matrix4.setFromArray(newMatrix, matrix);
|
74
|
+
return newMatrix;
|
75
|
+
};
|
76
|
+
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Creates a 4x4 matrix initialized from the given values.
|
80
|
+
*
|
81
|
+
* @param {number} v00 The values at (0, 0).
|
82
|
+
* @param {number} v10 The values at (1, 0).
|
83
|
+
* @param {number} v20 The values at (2, 0).
|
84
|
+
* @param {number} v30 The values at (3, 0).
|
85
|
+
* @param {number} v01 The values at (0, 1).
|
86
|
+
* @param {number} v11 The values at (1, 1).
|
87
|
+
* @param {number} v21 The values at (2, 1).
|
88
|
+
* @param {number} v31 The values at (3, 1).
|
89
|
+
* @param {number} v02 The values at (0, 2).
|
90
|
+
* @param {number} v12 The values at (1, 2).
|
91
|
+
* @param {number} v22 The values at (2, 2).
|
92
|
+
* @param {number} v32 The values at (3, 2).
|
93
|
+
* @param {number} v03 The values at (0, 3).
|
94
|
+
* @param {number} v13 The values at (1, 3).
|
95
|
+
* @param {number} v23 The values at (2, 3).
|
96
|
+
* @param {number} v33 The values at (3, 3).
|
97
|
+
* @return {goog.vec.Matrix4.Type} The new, 16 element array.
|
98
|
+
*/
|
99
|
+
goog.vec.Matrix4.createFromValues = function(
|
100
|
+
v00, v10, v20, v30, v01, v11, v21, v31, v02, v12, v22, v32,
|
101
|
+
v03, v13, v23, v33) {
|
102
|
+
var newMatrix = goog.vec.Matrix4.create();
|
103
|
+
goog.vec.Matrix4.setFromValues(
|
104
|
+
newMatrix, v00, v10, v20, v30, v01, v11, v21, v31, v02, v12, v22, v32,
|
105
|
+
v03, v13, v23, v33);
|
106
|
+
return newMatrix;
|
107
|
+
};
|
108
|
+
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Creates a clone of a 4x4 matrix.
|
112
|
+
*
|
113
|
+
* @param {goog.vec.Matrix4.Type} matrix The source 4x4 matrix.
|
114
|
+
* @return {goog.vec.Matrix4.Type} The new, 16 element matrix.
|
115
|
+
*/
|
116
|
+
goog.vec.Matrix4.clone =
|
117
|
+
goog.vec.Matrix4.createFromArray;
|
118
|
+
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Retrieves the element at the requested row and column.
|
122
|
+
*
|
123
|
+
* @param {goog.vec.ArrayType} mat The matrix containing the
|
124
|
+
* value to retrieve.
|
125
|
+
* @param {number} row The row index.
|
126
|
+
* @param {number} column The column index.
|
127
|
+
* @return {number} The element value at the requested row, column indices.
|
128
|
+
*/
|
129
|
+
goog.vec.Matrix4.getElement = function(mat, row, column) {
|
130
|
+
return mat[row + column * 4];
|
131
|
+
};
|
132
|
+
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Sets the element at the requested row and column.
|
136
|
+
*
|
137
|
+
* @param {goog.vec.ArrayType} mat The matrix containing the
|
138
|
+
* value to retrieve.
|
139
|
+
* @param {number} row The row index.
|
140
|
+
* @param {number} column The column index.
|
141
|
+
* @param {number} value The value to set at the requested row, column.
|
142
|
+
*/
|
143
|
+
goog.vec.Matrix4.setElement = function(mat, row, column, value) {
|
144
|
+
mat[row + column * 4] = value;
|
145
|
+
};
|
146
|
+
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Initializes the matrix from the set of values. Note the values supplied are
|
150
|
+
* in column major order.
|
151
|
+
*
|
152
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
153
|
+
* values.
|
154
|
+
* @param {number} v00 The values at (0, 0).
|
155
|
+
* @param {number} v10 The values at (1, 0).
|
156
|
+
* @param {number} v20 The values at (2, 0).
|
157
|
+
* @param {number} v30 The values at (3, 0).
|
158
|
+
* @param {number} v01 The values at (0, 1).
|
159
|
+
* @param {number} v11 The values at (1, 1).
|
160
|
+
* @param {number} v21 The values at (2, 1).
|
161
|
+
* @param {number} v31 The values at (3, 1).
|
162
|
+
* @param {number} v02 The values at (0, 2).
|
163
|
+
* @param {number} v12 The values at (1, 2).
|
164
|
+
* @param {number} v22 The values at (2, 2).
|
165
|
+
* @param {number} v32 The values at (3, 2).
|
166
|
+
* @param {number} v03 The values at (0, 3).
|
167
|
+
* @param {number} v13 The values at (1, 3).
|
168
|
+
* @param {number} v23 The values at (2, 3).
|
169
|
+
* @param {number} v33 The values at (3, 3).
|
170
|
+
*/
|
171
|
+
goog.vec.Matrix4.setFromValues = function(
|
172
|
+
mat, v00, v10, v20, v30, v01, v11, v21, v31, v02, v12, v22, v32,
|
173
|
+
v03, v13, v23, v33) {
|
174
|
+
mat[0] = v00;
|
175
|
+
mat[1] = v10;
|
176
|
+
mat[2] = v20;
|
177
|
+
mat[3] = v30;
|
178
|
+
mat[4] = v01;
|
179
|
+
mat[5] = v11;
|
180
|
+
mat[6] = v21;
|
181
|
+
mat[7] = v31;
|
182
|
+
mat[8] = v02;
|
183
|
+
mat[9] = v12;
|
184
|
+
mat[10] = v22;
|
185
|
+
mat[11] = v32;
|
186
|
+
mat[12] = v03;
|
187
|
+
mat[13] = v13;
|
188
|
+
mat[14] = v23;
|
189
|
+
mat[15] = v33;
|
190
|
+
};
|
191
|
+
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Sets the matrix from the array of values stored in column major order.
|
195
|
+
*
|
196
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
197
|
+
* values.
|
198
|
+
* @param {goog.vec.ArrayType} values The column major ordered
|
199
|
+
* array of values to store in the matrix.
|
200
|
+
*/
|
201
|
+
goog.vec.Matrix4.setFromArray = function(mat, values) {
|
202
|
+
mat[0] = values[0];
|
203
|
+
mat[1] = values[1];
|
204
|
+
mat[2] = values[2];
|
205
|
+
mat[3] = values[3];
|
206
|
+
mat[4] = values[4];
|
207
|
+
mat[5] = values[5];
|
208
|
+
mat[6] = values[6];
|
209
|
+
mat[7] = values[7];
|
210
|
+
mat[8] = values[8];
|
211
|
+
mat[9] = values[9];
|
212
|
+
mat[10] = values[10];
|
213
|
+
mat[11] = values[11];
|
214
|
+
mat[12] = values[12];
|
215
|
+
mat[13] = values[13];
|
216
|
+
mat[14] = values[14];
|
217
|
+
mat[15] = values[15];
|
218
|
+
};
|
219
|
+
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Sets the matrix from the array of values stored in row major order.
|
223
|
+
*
|
224
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
225
|
+
* values.
|
226
|
+
* @param {goog.vec.ArrayType} values The row major ordered array of
|
227
|
+
* values to store in the matrix.
|
228
|
+
*/
|
229
|
+
goog.vec.Matrix4.setFromRowMajorArray = function(mat, values) {
|
230
|
+
mat[0] = values[0];
|
231
|
+
mat[1] = values[4];
|
232
|
+
mat[2] = values[8];
|
233
|
+
mat[3] = values[12];
|
234
|
+
|
235
|
+
mat[4] = values[1];
|
236
|
+
mat[5] = values[5];
|
237
|
+
mat[6] = values[9];
|
238
|
+
mat[7] = values[13];
|
239
|
+
|
240
|
+
mat[8] = values[2];
|
241
|
+
mat[9] = values[6];
|
242
|
+
mat[10] = values[10];
|
243
|
+
mat[11] = values[14];
|
244
|
+
|
245
|
+
mat[12] = values[3];
|
246
|
+
mat[13] = values[7];
|
247
|
+
mat[14] = values[11];
|
248
|
+
mat[15] = values[15];
|
249
|
+
};
|
250
|
+
|
251
|
+
|
252
|
+
/**
|
253
|
+
* Sets the diagonal values of the matrix from the given values.
|
254
|
+
*
|
255
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
256
|
+
* values.
|
257
|
+
* @param {number} v00 The values for (0, 0).
|
258
|
+
* @param {number} v11 The values for (1, 1).
|
259
|
+
* @param {number} v22 The values for (2, 2).
|
260
|
+
* @param {number} v33 The values for (3, 3).
|
261
|
+
*/
|
262
|
+
goog.vec.Matrix4.setDiagonalValues = function(
|
263
|
+
mat, v00, v11, v22, v33) {
|
264
|
+
mat[0] = v00;
|
265
|
+
mat[5] = v11;
|
266
|
+
mat[10] = v22;
|
267
|
+
mat[15] = v33;
|
268
|
+
};
|
269
|
+
|
270
|
+
|
271
|
+
/**
|
272
|
+
* Sets the diagonal values of the matrix from the given vector.
|
273
|
+
*
|
274
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
275
|
+
* values.
|
276
|
+
* @param {goog.vec.ArrayType} vec The vector containing the
|
277
|
+
* values.
|
278
|
+
*/
|
279
|
+
goog.vec.Matrix4.setDiagonal = function(mat, vec) {
|
280
|
+
mat[0] = vec[0];
|
281
|
+
mat[5] = vec[1];
|
282
|
+
mat[10] = vec[2];
|
283
|
+
mat[15] = vec[3];
|
284
|
+
};
|
285
|
+
|
286
|
+
|
287
|
+
/**
|
288
|
+
* Sets the specified column with the supplied values.
|
289
|
+
*
|
290
|
+
* @param {goog.vec.ArrayType} mat The matrix to recieve the
|
291
|
+
* values.
|
292
|
+
* @param {number} column The column index to set the values on.
|
293
|
+
* @param {number} v0 The value for row 0.
|
294
|
+
* @param {number} v1 The value for row 1.
|
295
|
+
* @param {number} v2 The value for row 2.
|
296
|
+
* @param {number} v3 The value for row 3.
|
297
|
+
*/
|
298
|
+
goog.vec.Matrix4.setColumnValues = function(
|
299
|
+
mat, column, v0, v1, v2, v3) {
|
300
|
+
var i = column * 4;
|
301
|
+
mat[i] = v0;
|
302
|
+
mat[i + 1] = v1;
|
303
|
+
mat[i + 2] = v2;
|
304
|
+
mat[i + 3] = v3;
|
305
|
+
};
|
306
|
+
|
307
|
+
|
308
|
+
/**
|
309
|
+
* Sets the specified column with the value from the supplied array.
|
310
|
+
*
|
311
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
312
|
+
* values.
|
313
|
+
* @param {number} column The column index to set the values on.
|
314
|
+
* @param {goog.vec.ArrayType} vec The vector of elements for the
|
315
|
+
* column.
|
316
|
+
*/
|
317
|
+
goog.vec.Matrix4.setColumn = function(mat, column, vec) {
|
318
|
+
var i = column * 4;
|
319
|
+
mat[i] = vec[0];
|
320
|
+
mat[i + 1] = vec[1];
|
321
|
+
mat[i + 2] = vec[2];
|
322
|
+
mat[i + 3] = vec[3];
|
323
|
+
};
|
324
|
+
|
325
|
+
|
326
|
+
/**
|
327
|
+
* Retrieves the specified column from the matrix into the given vector
|
328
|
+
* array.
|
329
|
+
*
|
330
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
331
|
+
* values.
|
332
|
+
* @param {number} column The column to get the values from.
|
333
|
+
* @param {goog.vec.ArrayType} vec The vector of elements to
|
334
|
+
* receive the column.
|
335
|
+
*/
|
336
|
+
goog.vec.Matrix4.getColumn = function(mat, column, vec) {
|
337
|
+
var i = column * 4;
|
338
|
+
vec[0] = mat[i];
|
339
|
+
vec[1] = mat[i + 1];
|
340
|
+
vec[2] = mat[i + 2];
|
341
|
+
vec[3] = mat[i + 3];
|
342
|
+
};
|
343
|
+
|
344
|
+
|
345
|
+
/**
|
346
|
+
* Sets the columns of the matrix from the set of vector elements.
|
347
|
+
*
|
348
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
349
|
+
* values.
|
350
|
+
* @param {goog.vec.ArrayType} vec0 The values for column 0.
|
351
|
+
* @param {goog.vec.ArrayType} vec1 The values for column 1.
|
352
|
+
* @param {goog.vec.ArrayType} vec2 The values for column 2.
|
353
|
+
* @param {goog.vec.ArrayType} vec3 The values for column 3.
|
354
|
+
*/
|
355
|
+
goog.vec.Matrix4.setColumns = function(
|
356
|
+
mat, vec0, vec1, vec2, vec3) {
|
357
|
+
goog.vec.Matrix4.setColumn(mat, 0, vec0);
|
358
|
+
goog.vec.Matrix4.setColumn(mat, 1, vec1);
|
359
|
+
goog.vec.Matrix4.setColumn(mat, 2, vec2);
|
360
|
+
goog.vec.Matrix4.setColumn(mat, 3, vec3);
|
361
|
+
};
|
362
|
+
|
363
|
+
|
364
|
+
/**
|
365
|
+
* Retrieves the column values from the given matrix into the given vector
|
366
|
+
* elements.
|
367
|
+
*
|
368
|
+
* @param {goog.vec.ArrayType} mat The matrix containing the
|
369
|
+
* columns to retrieve.
|
370
|
+
* @param {goog.vec.ArrayType} vec0 The vector elements to receive
|
371
|
+
* column 0.
|
372
|
+
* @param {goog.vec.ArrayType} vec1 The vector elements to receive
|
373
|
+
* column 1.
|
374
|
+
* @param {goog.vec.ArrayType} vec2 The vector elements to receive
|
375
|
+
* column 2.
|
376
|
+
* @param {goog.vec.ArrayType} vec3 The vector elements to receive
|
377
|
+
* column 3.
|
378
|
+
*/
|
379
|
+
goog.vec.Matrix4.getColumns = function(
|
380
|
+
mat, vec0, vec1, vec2, vec3) {
|
381
|
+
goog.vec.Matrix4.getColumn(mat, 0, vec0);
|
382
|
+
goog.vec.Matrix4.getColumn(mat, 1, vec1);
|
383
|
+
goog.vec.Matrix4.getColumn(mat, 2, vec2);
|
384
|
+
goog.vec.Matrix4.getColumn(mat, 3, vec3);
|
385
|
+
};
|
386
|
+
|
387
|
+
|
388
|
+
/**
|
389
|
+
* Sets the row values from the supplied values.
|
390
|
+
*
|
391
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
392
|
+
* values.
|
393
|
+
* @param {number} row The index of the row to receive the values.
|
394
|
+
* @param {number} v0 The value for column 0.
|
395
|
+
* @param {number} v1 The value for column 1.
|
396
|
+
* @param {number} v2 The value for column 2.
|
397
|
+
* @param {number} v3 The value for column 3.
|
398
|
+
*/
|
399
|
+
goog.vec.Matrix4.setRowValues = function(mat, row, v0, v1, v2, v3) {
|
400
|
+
mat[row] = v0;
|
401
|
+
mat[row + 4] = v1;
|
402
|
+
mat[row + 8] = v2;
|
403
|
+
mat[row + 12] = v3;
|
404
|
+
};
|
405
|
+
|
406
|
+
|
407
|
+
/**
|
408
|
+
* Sets the row values from the supplied vector.
|
409
|
+
*
|
410
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
411
|
+
* row values.
|
412
|
+
* @param {number} row The index of the row.
|
413
|
+
* @param {goog.vec.ArrayType} vec The vector containing the
|
414
|
+
* values.
|
415
|
+
*/
|
416
|
+
goog.vec.Matrix4.setRow = function(mat, row, vec) {
|
417
|
+
mat[row] = vec[0];
|
418
|
+
mat[row + 4] = vec[1];
|
419
|
+
mat[row + 8] = vec[2];
|
420
|
+
mat[row + 12] = vec[3];
|
421
|
+
};
|
422
|
+
|
423
|
+
|
424
|
+
/**
|
425
|
+
* Retrieves the row values into the given vector.
|
426
|
+
*
|
427
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
428
|
+
* values.
|
429
|
+
* @param {number} row The index of the row supplying the values.
|
430
|
+
* @param {goog.vec.ArrayType} vec The vector to receive the
|
431
|
+
* row.
|
432
|
+
*/
|
433
|
+
goog.vec.Matrix4.getRow = function(mat, row, vec) {
|
434
|
+
vec[0] = mat[row];
|
435
|
+
vec[1] = mat[row + 4];
|
436
|
+
vec[2] = mat[row + 8];
|
437
|
+
vec[3] = mat[row + 12];
|
438
|
+
};
|
439
|
+
|
440
|
+
|
441
|
+
/**
|
442
|
+
* Sets the rows of the matrix from the supplied vectors.
|
443
|
+
*
|
444
|
+
* @param {goog.vec.ArrayType} mat The matrix to receive the
|
445
|
+
* values.
|
446
|
+
* @param {goog.vec.ArrayType} vec0 The values for row 0.
|
447
|
+
* @param {goog.vec.ArrayType} vec1 The values for row 1.
|
448
|
+
* @param {goog.vec.ArrayType} vec2 The values for row 2.
|
449
|
+
* @param {goog.vec.ArrayType} vec3 The values for row 3.
|
450
|
+
*/
|
451
|
+
goog.vec.Matrix4.setRows = function(
|
452
|
+
mat, vec0, vec1, vec2, vec3) {
|
453
|
+
goog.vec.Matrix4.setRow(mat, 0, vec0);
|
454
|
+
goog.vec.Matrix4.setRow(mat, 1, vec1);
|
455
|
+
goog.vec.Matrix4.setRow(mat, 2, vec2);
|
456
|
+
goog.vec.Matrix4.setRow(mat, 3, vec3);
|
457
|
+
};
|
458
|
+
|
459
|
+
|
460
|
+
/**
|
461
|
+
* Retrieves the rows of the matrix into the supplied vectors.
|
462
|
+
*
|
463
|
+
* @param {goog.vec.ArrayType} mat The matrix to supply the
|
464
|
+
* values.
|
465
|
+
* @param {goog.vec.ArrayType} vec0 The vector to receive row 0.
|
466
|
+
* @param {goog.vec.ArrayType} vec1 The vector to receive row 1.
|
467
|
+
* @param {goog.vec.ArrayType} vec2 The vector to receive row 2.
|
468
|
+
* @param {goog.vec.ArrayType} vec3 The vector to receive row 3.
|
469
|
+
*/
|
470
|
+
goog.vec.Matrix4.getRows = function(
|
471
|
+
mat, vec0, vec1, vec2, vec3) {
|
472
|
+
goog.vec.Matrix4.getRow(mat, 0, vec0);
|
473
|
+
goog.vec.Matrix4.getRow(mat, 1, vec1);
|
474
|
+
goog.vec.Matrix4.getRow(mat, 2, vec2);
|
475
|
+
goog.vec.Matrix4.getRow(mat, 3, vec3);
|
476
|
+
};
|
477
|
+
|
478
|
+
|
479
|
+
/**
|
480
|
+
* Clears the given matrix to zero.
|
481
|
+
*
|
482
|
+
* @param {goog.vec.ArrayType} mat The matrix to clear.
|
483
|
+
*/
|
484
|
+
goog.vec.Matrix4.setZero = function(mat) {
|
485
|
+
mat[0] = 0;
|
486
|
+
mat[1] = 0;
|
487
|
+
mat[2] = 0;
|
488
|
+
mat[3] = 0;
|
489
|
+
mat[4] = 0;
|
490
|
+
mat[5] = 0;
|
491
|
+
mat[6] = 0;
|
492
|
+
mat[7] = 0;
|
493
|
+
mat[8] = 0;
|
494
|
+
mat[9] = 0;
|
495
|
+
mat[10] = 0;
|
496
|
+
mat[11] = 0;
|
497
|
+
mat[12] = 0;
|
498
|
+
mat[13] = 0;
|
499
|
+
mat[14] = 0;
|
500
|
+
mat[15] = 0;
|
501
|
+
};
|
502
|
+
|
503
|
+
|
504
|
+
/**
|
505
|
+
* Sets the given matrix to the identity matrix.
|
506
|
+
*
|
507
|
+
* @param {goog.vec.ArrayType} mat The matrix to set.
|
508
|
+
*/
|
509
|
+
goog.vec.Matrix4.setIdentity = function(mat) {
|
510
|
+
mat[0] = 1;
|
511
|
+
mat[1] = 0;
|
512
|
+
mat[2] = 0;
|
513
|
+
mat[3] = 0;
|
514
|
+
mat[4] = 0;
|
515
|
+
mat[5] = 1;
|
516
|
+
mat[6] = 0;
|
517
|
+
mat[7] = 0;
|
518
|
+
mat[8] = 0;
|
519
|
+
mat[9] = 0;
|
520
|
+
mat[10] = 1;
|
521
|
+
mat[11] = 0;
|
522
|
+
mat[12] = 0;
|
523
|
+
mat[13] = 0;
|
524
|
+
mat[14] = 0;
|
525
|
+
mat[15] = 1;
|
526
|
+
};
|
527
|
+
|
528
|
+
|
529
|
+
/**
|
530
|
+
* Performs a per-component addition of the matrix mat0 and mat1, storing
|
531
|
+
* the result into resultMat.
|
532
|
+
*
|
533
|
+
* @param {goog.vec.ArrayType} mat0 The first addend.
|
534
|
+
* @param {goog.vec.ArrayType} mat1 The second addend.
|
535
|
+
* @param {goog.vec.ArrayType} resultMat The matrix to
|
536
|
+
* receive the results (may be either mat0 or mat1).
|
537
|
+
* @return {goog.vec.ArrayType} return resultMat so that operations can be
|
538
|
+
* chained together.
|
539
|
+
*/
|
540
|
+
goog.vec.Matrix4.add = function(mat0, mat1, resultMat) {
|
541
|
+
resultMat[0] = mat0[0] + mat1[0];
|
542
|
+
resultMat[1] = mat0[1] + mat1[1];
|
543
|
+
resultMat[2] = mat0[2] + mat1[2];
|
544
|
+
resultMat[3] = mat0[3] + mat1[3];
|
545
|
+
resultMat[4] = mat0[4] + mat1[4];
|
546
|
+
resultMat[5] = mat0[5] + mat1[5];
|
547
|
+
resultMat[6] = mat0[6] + mat1[6];
|
548
|
+
resultMat[7] = mat0[7] + mat1[7];
|
549
|
+
resultMat[8] = mat0[8] + mat1[8];
|
550
|
+
resultMat[9] = mat0[9] + mat1[9];
|
551
|
+
resultMat[10] = mat0[10] + mat1[10];
|
552
|
+
resultMat[11] = mat0[11] + mat1[11];
|
553
|
+
resultMat[12] = mat0[12] + mat1[12];
|
554
|
+
resultMat[13] = mat0[13] + mat1[13];
|
555
|
+
resultMat[14] = mat0[14] + mat1[14];
|
556
|
+
resultMat[15] = mat0[15] + mat1[15];
|
557
|
+
return resultMat;
|
558
|
+
};
|
559
|
+
|
560
|
+
|
561
|
+
/**
|
562
|
+
* Performs a per-component subtraction of the matrix mat0 and mat1,
|
563
|
+
* storing the result into resultMat.
|
564
|
+
*
|
565
|
+
* @param {goog.vec.ArrayType} mat0 The minuend.
|
566
|
+
* @param {goog.vec.ArrayType} mat1 The subtrahend.
|
567
|
+
* @param {goog.vec.ArrayType} resultMat The matrix to receive
|
568
|
+
* the results (may be either mat0 or mat1).
|
569
|
+
* @return {goog.vec.ArrayType} return resultMat so that operations can be
|
570
|
+
* chained together.
|
571
|
+
*/
|
572
|
+
goog.vec.Matrix4.subtract = function(mat0, mat1, resultMat) {
|
573
|
+
resultMat[0] = mat0[0] - mat1[0];
|
574
|
+
resultMat[1] = mat0[1] - mat1[1];
|
575
|
+
resultMat[2] = mat0[2] - mat1[2];
|
576
|
+
resultMat[3] = mat0[3] - mat1[3];
|
577
|
+
resultMat[4] = mat0[4] - mat1[4];
|
578
|
+
resultMat[5] = mat0[5] - mat1[5];
|
579
|
+
resultMat[6] = mat0[6] - mat1[6];
|
580
|
+
resultMat[7] = mat0[7] - mat1[7];
|
581
|
+
resultMat[8] = mat0[8] - mat1[8];
|
582
|
+
resultMat[9] = mat0[9] - mat1[9];
|
583
|
+
resultMat[10] = mat0[10] - mat1[10];
|
584
|
+
resultMat[11] = mat0[11] - mat1[11];
|
585
|
+
resultMat[12] = mat0[12] - mat1[12];
|
586
|
+
resultMat[13] = mat0[13] - mat1[13];
|
587
|
+
resultMat[14] = mat0[14] - mat1[14];
|
588
|
+
resultMat[15] = mat0[15] - mat1[15];
|
589
|
+
return resultMat;
|
590
|
+
};
|
591
|
+
|
592
|
+
|
593
|
+
/**
|
594
|
+
* Performs a component-wise multiplication of mat0 with the given scalar
|
595
|
+
* storing the result into resultMat.
|
596
|
+
*
|
597
|
+
* @param {goog.vec.ArrayType} mat0 The matrix to scale.
|
598
|
+
* @param {number} scalar The scalar value to multiple to each element of mat0.
|
599
|
+
* @param {goog.vec.ArrayType} resultMat The matrix to receive
|
600
|
+
* the results (may be mat0).
|
601
|
+
* @return {goog.vec.ArrayType} return resultMat so that operations can be
|
602
|
+
* chained together.
|
603
|
+
*/
|
604
|
+
goog.vec.Matrix4.scale = function(mat0, scalar, resultMat) {
|
605
|
+
resultMat[0] = mat0[0] * scalar;
|
606
|
+
resultMat[1] = mat0[1] * scalar;
|
607
|
+
resultMat[2] = mat0[2] * scalar;
|
608
|
+
resultMat[3] = mat0[3] * scalar;
|
609
|
+
resultMat[4] = mat0[4] * scalar;
|
610
|
+
resultMat[5] = mat0[5] * scalar;
|
611
|
+
resultMat[6] = mat0[6] * scalar;
|
612
|
+
resultMat[7] = mat0[7] * scalar;
|
613
|
+
resultMat[8] = mat0[8] * scalar;
|
614
|
+
resultMat[9] = mat0[9] * scalar;
|
615
|
+
resultMat[10] = mat0[10] * scalar;
|
616
|
+
resultMat[11] = mat0[11] * scalar;
|
617
|
+
resultMat[12] = mat0[12] * scalar;
|
618
|
+
resultMat[13] = mat0[13] * scalar;
|
619
|
+
resultMat[14] = mat0[14] * scalar;
|
620
|
+
resultMat[15] = mat0[15] * scalar;
|
621
|
+
return resultMat;
|
622
|
+
};
|
623
|
+
|
624
|
+
|
625
|
+
/**
|
626
|
+
* Multiplies the two matrices mat0 and mat1 using matrix multiplication,
|
627
|
+
* storing the result into resultMat.
|
628
|
+
*
|
629
|
+
* @param {goog.vec.ArrayType} mat0 The first (left hand) matrix.
|
630
|
+
* @param {goog.vec.ArrayType} mat1 The second (right hand)
|
631
|
+
* matrix.
|
632
|
+
* @param {goog.vec.ArrayType} resultMat The matrix to receive
|
633
|
+
* the results (may be either mat0 or mat1).
|
634
|
+
* @return {goog.vec.ArrayType} return resultMat so that operations can be
|
635
|
+
* chained together.
|
636
|
+
*/
|
637
|
+
goog.vec.Matrix4.multMat = function(mat0, mat1, resultMat) {
|
638
|
+
var a00 = mat0[0], a10 = mat0[1], a20 = mat0[2], a30 = mat0[3];
|
639
|
+
var a01 = mat0[4], a11 = mat0[5], a21 = mat0[6], a31 = mat0[7];
|
640
|
+
var a02 = mat0[8], a12 = mat0[9], a22 = mat0[10], a32 = mat0[11];
|
641
|
+
var a03 = mat0[12], a13 = mat0[13], a23 = mat0[14], a33 = mat0[15];
|
642
|
+
|
643
|
+
var b00 = mat1[0], b10 = mat1[1], b20 = mat1[2], b30 = mat1[3];
|
644
|
+
var b01 = mat1[4], b11 = mat1[5], b21 = mat1[6], b31 = mat1[7];
|
645
|
+
var b02 = mat1[8], b12 = mat1[9], b22 = mat1[10], b32 = mat1[11];
|
646
|
+
var b03 = mat1[12], b13 = mat1[13], b23 = mat1[14], b33 = mat1[15];
|
647
|
+
|
648
|
+
resultMat[0] = a00 * b00 + a01 * b10 + a02 * b20 + a03 * b30;
|
649
|
+
resultMat[1] = a10 * b00 + a11 * b10 + a12 * b20 + a13 * b30;
|
650
|
+
resultMat[2] = a20 * b00 + a21 * b10 + a22 * b20 + a23 * b30;
|
651
|
+
resultMat[3] = a30 * b00 + a31 * b10 + a32 * b20 + a33 * b30;
|
652
|
+
|
653
|
+
resultMat[4] = a00 * b01 + a01 * b11 + a02 * b21 + a03 * b31;
|
654
|
+
resultMat[5] = a10 * b01 + a11 * b11 + a12 * b21 + a13 * b31;
|
655
|
+
resultMat[6] = a20 * b01 + a21 * b11 + a22 * b21 + a23 * b31;
|
656
|
+
resultMat[7] = a30 * b01 + a31 * b11 + a32 * b21 + a33 * b31;
|
657
|
+
|
658
|
+
resultMat[8] = a00 * b02 + a01 * b12 + a02 * b22 + a03 * b32;
|
659
|
+
resultMat[9] = a10 * b02 + a11 * b12 + a12 * b22 + a13 * b32;
|
660
|
+
resultMat[10] = a20 * b02 + a21 * b12 + a22 * b22 + a23 * b32;
|
661
|
+
resultMat[11] = a30 * b02 + a31 * b12 + a32 * b22 + a33 * b32;
|
662
|
+
|
663
|
+
resultMat[12] = a00 * b03 + a01 * b13 + a02 * b23 + a03 * b33;
|
664
|
+
resultMat[13] = a10 * b03 + a11 * b13 + a12 * b23 + a13 * b33;
|
665
|
+
resultMat[14] = a20 * b03 + a21 * b13 + a22 * b23 + a23 * b33;
|
666
|
+
resultMat[15] = a30 * b03 + a31 * b13 + a32 * b23 + a33 * b33;
|
667
|
+
return resultMat;
|
668
|
+
};
|
669
|
+
|
670
|
+
|
671
|
+
/**
|
672
|
+
* Transposes the given matrix mat storing the result into resultMat.
|
673
|
+
* @param {goog.vec.ArrayType} mat The matrix to transpose.
|
674
|
+
* @param {goog.vec.ArrayType} resultMat The matrix to receive
|
675
|
+
* the results (may be mat).
|
676
|
+
* @return {goog.vec.ArrayType} return resultMat so that operations can be
|
677
|
+
* chained together.
|
678
|
+
*/
|
679
|
+
goog.vec.Matrix4.transpose = function(mat, resultMat) {
|
680
|
+
if (resultMat == mat) {
|
681
|
+
var a10 = mat[1], a20 = mat[2], a30 = mat[3];
|
682
|
+
var a21 = mat[6], a31 = mat[7];
|
683
|
+
var a32 = mat[11];
|
684
|
+
resultMat[1] = mat[4];
|
685
|
+
resultMat[2] = mat[8];
|
686
|
+
resultMat[3] = mat[12];
|
687
|
+
resultMat[4] = a10;
|
688
|
+
resultMat[6] = mat[9];
|
689
|
+
resultMat[7] = mat[13];
|
690
|
+
resultMat[8] = a20;
|
691
|
+
resultMat[9] = a21;
|
692
|
+
resultMat[11] = mat[14];
|
693
|
+
resultMat[12] = a30;
|
694
|
+
resultMat[13] = a31;
|
695
|
+
resultMat[14] = a32;
|
696
|
+
} else {
|
697
|
+
resultMat[0] = mat[0];
|
698
|
+
resultMat[1] = mat[4];
|
699
|
+
resultMat[2] = mat[8];
|
700
|
+
resultMat[3] = mat[12];
|
701
|
+
|
702
|
+
resultMat[4] = mat[1];
|
703
|
+
resultMat[5] = mat[5];
|
704
|
+
resultMat[6] = mat[9];
|
705
|
+
resultMat[7] = mat[13];
|
706
|
+
|
707
|
+
resultMat[8] = mat[2];
|
708
|
+
resultMat[9] = mat[6];
|
709
|
+
resultMat[10] = mat[10];
|
710
|
+
resultMat[11] = mat[14];
|
711
|
+
|
712
|
+
resultMat[12] = mat[3];
|
713
|
+
resultMat[13] = mat[7];
|
714
|
+
resultMat[14] = mat[11];
|
715
|
+
resultMat[15] = mat[15];
|
716
|
+
}
|
717
|
+
return resultMat;
|
718
|
+
};
|
719
|
+
|
720
|
+
|
721
|
+
/**
|
722
|
+
* Computes the determinant of the matrix.
|
723
|
+
*
|
724
|
+
* @param {goog.vec.ArrayType} mat The matrix to compute the
|
725
|
+
* matrix for.
|
726
|
+
* @return {number} The determinant of the matrix.
|
727
|
+
*/
|
728
|
+
goog.vec.Matrix4.determinant = function(mat) {
|
729
|
+
var m00 = mat[0], m10 = mat[1], m20 = mat[2], m30 = mat[3];
|
730
|
+
var m01 = mat[4], m11 = mat[5], m21 = mat[6], m31 = mat[7];
|
731
|
+
var m02 = mat[8], m12 = mat[9], m22 = mat[10], m32 = mat[11];
|
732
|
+
var m03 = mat[12], m13 = mat[13], m23 = mat[14], m33 = mat[15];
|
733
|
+
|
734
|
+
var a0 = m00 * m11 - m10 * m01;
|
735
|
+
var a1 = m00 * m21 - m20 * m01;
|
736
|
+
var a2 = m00 * m31 - m30 * m01;
|
737
|
+
var a3 = m10 * m21 - m20 * m11;
|
738
|
+
var a4 = m10 * m31 - m30 * m11;
|
739
|
+
var a5 = m20 * m31 - m30 * m21;
|
740
|
+
var b0 = m02 * m13 - m12 * m03;
|
741
|
+
var b1 = m02 * m23 - m22 * m03;
|
742
|
+
var b2 = m02 * m33 - m32 * m03;
|
743
|
+
var b3 = m12 * m23 - m22 * m13;
|
744
|
+
var b4 = m12 * m33 - m32 * m13;
|
745
|
+
var b5 = m22 * m33 - m32 * m23;
|
746
|
+
|
747
|
+
return a0 * b5 - a1 * b4 + a2 * b3 + a3 * b2 - a4 * b1 + a5 * b0;
|
748
|
+
};
|
749
|
+
|
750
|
+
|
751
|
+
/**
|
752
|
+
* Computes the inverse of mat storing the result into resultMat. If the
|
753
|
+
* inverse is defined, this function returns true, false otherwise.
|
754
|
+
*
|
755
|
+
* @param {goog.vec.ArrayType} mat The matrix to invert.
|
756
|
+
* @param {goog.vec.ArrayType} resultMat The matrix to receive
|
757
|
+
* the result (may be mat).
|
758
|
+
* @return {boolean} True if the inverse is defined. If false is returned,
|
759
|
+
* resultMat is not modified.
|
760
|
+
*/
|
761
|
+
goog.vec.Matrix4.invert = function(mat, resultMat) {
|
762
|
+
var m00 = mat[0], m10 = mat[1], m20 = mat[2], m30 = mat[3];
|
763
|
+
var m01 = mat[4], m11 = mat[5], m21 = mat[6], m31 = mat[7];
|
764
|
+
var m02 = mat[8], m12 = mat[9], m22 = mat[10], m32 = mat[11];
|
765
|
+
var m03 = mat[12], m13 = mat[13], m23 = mat[14], m33 = mat[15];
|
766
|
+
|
767
|
+
var a0 = m00 * m11 - m10 * m01;
|
768
|
+
var a1 = m00 * m21 - m20 * m01;
|
769
|
+
var a2 = m00 * m31 - m30 * m01;
|
770
|
+
var a3 = m10 * m21 - m20 * m11;
|
771
|
+
var a4 = m10 * m31 - m30 * m11;
|
772
|
+
var a5 = m20 * m31 - m30 * m21;
|
773
|
+
var b0 = m02 * m13 - m12 * m03;
|
774
|
+
var b1 = m02 * m23 - m22 * m03;
|
775
|
+
var b2 = m02 * m33 - m32 * m03;
|
776
|
+
var b3 = m12 * m23 - m22 * m13;
|
777
|
+
var b4 = m12 * m33 - m32 * m13;
|
778
|
+
var b5 = m22 * m33 - m32 * m23;
|
779
|
+
|
780
|
+
var det = a0 * b5 - a1 * b4 + a2 * b3 + a3 * b2 - a4 * b1 + a5 * b0;
|
781
|
+
if (det == 0) {
|
782
|
+
return false;
|
783
|
+
}
|
784
|
+
|
785
|
+
var idet = 1.0 / det;
|
786
|
+
resultMat[0] = (m11 * b5 - m21 * b4 + m31 * b3) * idet;
|
787
|
+
resultMat[1] = (-m10 * b5 + m20 * b4 - m30 * b3) * idet;
|
788
|
+
resultMat[2] = (m13 * a5 - m23 * a4 + m33 * a3) * idet;
|
789
|
+
resultMat[3] = (-m12 * a5 + m22 * a4 - m32 * a3) * idet;
|
790
|
+
resultMat[4] = (-m01 * b5 + m21 * b2 - m31 * b1) * idet;
|
791
|
+
resultMat[5] = (m00 * b5 - m20 * b2 + m30 * b1) * idet;
|
792
|
+
resultMat[6] = (-m03 * a5 + m23 * a2 - m33 * a1) * idet;
|
793
|
+
resultMat[7] = (m02 * a5 - m22 * a2 + m32 * a1) * idet;
|
794
|
+
resultMat[8] = (m01 * b4 - m11 * b2 + m31 * b0) * idet;
|
795
|
+
resultMat[9] = (-m00 * b4 + m10 * b2 - m30 * b0) * idet;
|
796
|
+
resultMat[10] = (m03 * a4 - m13 * a2 + m33 * a0) * idet;
|
797
|
+
resultMat[11] = (-m02 * a4 + m12 * a2 - m32 * a0) * idet;
|
798
|
+
resultMat[12] = (-m01 * b3 + m11 * b1 - m21 * b0) * idet;
|
799
|
+
resultMat[13] = (m00 * b3 - m10 * b1 + m20 * b0) * idet;
|
800
|
+
resultMat[14] = (-m03 * a3 + m13 * a1 - m23 * a0) * idet;
|
801
|
+
resultMat[15] = (m02 * a3 - m12 * a1 + m22 * a0) * idet;
|
802
|
+
return true;
|
803
|
+
};
|
804
|
+
|
805
|
+
|
806
|
+
/**
|
807
|
+
* Returns true if the components of mat0 are equal to the components of mat1.
|
808
|
+
*
|
809
|
+
* @param {goog.vec.ArrayType} mat0 The first matrix.
|
810
|
+
* @param {goog.vec.ArrayType} mat1 The second matrix.
|
811
|
+
* @return {boolean} True if the the two matrices are equivalent.
|
812
|
+
*/
|
813
|
+
goog.vec.Matrix4.equals = function(mat0, mat1) {
|
814
|
+
return mat0.length == mat1.length &&
|
815
|
+
mat0[0] == mat1[0] &&
|
816
|
+
mat0[1] == mat1[1] &&
|
817
|
+
mat0[2] == mat1[2] &&
|
818
|
+
mat0[3] == mat1[3] &&
|
819
|
+
mat0[4] == mat1[4] &&
|
820
|
+
mat0[5] == mat1[5] &&
|
821
|
+
mat0[6] == mat1[6] &&
|
822
|
+
mat0[7] == mat1[7] &&
|
823
|
+
mat0[8] == mat1[8] &&
|
824
|
+
mat0[9] == mat1[9] &&
|
825
|
+
mat0[10] == mat1[10] &&
|
826
|
+
mat0[11] == mat1[11] &&
|
827
|
+
mat0[12] == mat1[12] &&
|
828
|
+
mat0[13] == mat1[13] &&
|
829
|
+
mat0[14] == mat1[14] &&
|
830
|
+
mat0[15] == mat1[15];
|
831
|
+
};
|
832
|
+
|
833
|
+
|
834
|
+
/**
|
835
|
+
* Transforms the given vector with the given matrix storing the resulting,
|
836
|
+
* transformed vector into resultVec. The input vector is multiplied against the
|
837
|
+
* upper 3x4 matrix omitting the projective component.
|
838
|
+
*
|
839
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
840
|
+
* transformation.
|
841
|
+
* @param {goog.vec.ArrayType} vec The 3 element vector to
|
842
|
+
* transform.
|
843
|
+
* @param {goog.vec.ArrayType} resultVec The 3 element vector to
|
844
|
+
* receive the results (may be vec).
|
845
|
+
* @return {goog.vec.ArrayType} return resultVec so that operations can be
|
846
|
+
* chained together.
|
847
|
+
*/
|
848
|
+
goog.vec.Matrix4.multVec3 = function(mat, vec, resultVec) {
|
849
|
+
var x = vec[0], y = vec[1], z = vec[2];
|
850
|
+
resultVec[0] = x * mat[0] + y * mat[4] + z * mat[8] + mat[12];
|
851
|
+
resultVec[1] = x * mat[1] + y * mat[5] + z * mat[9] + mat[13];
|
852
|
+
resultVec[2] = x * mat[2] + y * mat[6] + z * mat[10] + mat[14];
|
853
|
+
return resultVec;
|
854
|
+
};
|
855
|
+
|
856
|
+
|
857
|
+
/**
|
858
|
+
* Transforms the given vector with the given matrix storing the resulting,
|
859
|
+
* transformed vector into resultVec. The input vector is multiplied against the
|
860
|
+
* upper 3x3 matrix omitting the projective component and translation
|
861
|
+
* components.
|
862
|
+
*
|
863
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
864
|
+
* transformation.
|
865
|
+
* @param {goog.vec.ArrayType} vec The 3 element vector to
|
866
|
+
* transform.
|
867
|
+
* @param {goog.vec.ArrayType} resultVec The 3 element vector to
|
868
|
+
* receive the results (may be vec).
|
869
|
+
* @return {goog.vec.ArrayType} return resultVec so that operations can be
|
870
|
+
* chained together.
|
871
|
+
*/
|
872
|
+
goog.vec.Matrix4.multVec3NoTranslate = function(
|
873
|
+
mat, vec, resultVec) {
|
874
|
+
var x = vec[0], y = vec[1], z = vec[2];
|
875
|
+
resultVec[0] = x * mat[0] + y * mat[4] + z * mat[8];
|
876
|
+
resultVec[1] = x * mat[1] + y * mat[5] + z * mat[9];
|
877
|
+
resultVec[2] = x * mat[2] + y * mat[6] + z * mat[10];
|
878
|
+
return resultVec;
|
879
|
+
};
|
880
|
+
|
881
|
+
|
882
|
+
/**
|
883
|
+
* Transforms the given vector with the given matrix storing the resulting,
|
884
|
+
* transformed vector into resultVec. The input vector is multiplied against the
|
885
|
+
* full 4x4 matrix with the homogeneous divide applied to reduce the 4 element
|
886
|
+
* vector to a 3 element vector.
|
887
|
+
*
|
888
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
889
|
+
* transformation.
|
890
|
+
* @param {goog.vec.ArrayType} vec The 3 element vector to
|
891
|
+
* transform.
|
892
|
+
* @param {goog.vec.ArrayType} resultVec The 3 element vector
|
893
|
+
* to receive the results (may be vec).
|
894
|
+
* @return {goog.vec.ArrayType} return resultVec so that operations can be
|
895
|
+
* chained together.
|
896
|
+
*/
|
897
|
+
goog.vec.Matrix4.multVec3Projective = function(
|
898
|
+
mat, vec, resultVec) {
|
899
|
+
var x = vec[0], y = vec[1], z = vec[2];
|
900
|
+
var invw = 1 / (x * mat[3] + y * mat[7] + z * mat[11] + mat[15]);
|
901
|
+
resultVec[0] = (x * mat[0] + y * mat[4] + z * mat[8] + mat[12]) * invw;
|
902
|
+
resultVec[1] = (x * mat[1] + y * mat[5] + z * mat[9] + mat[13]) * invw;
|
903
|
+
resultVec[2] = (x * mat[2] + y * mat[6] + z * mat[10] + mat[14]) * invw;
|
904
|
+
return resultVec;
|
905
|
+
};
|
906
|
+
|
907
|
+
|
908
|
+
/**
|
909
|
+
* Transforms the given vector with the given matrix storing the resulting,
|
910
|
+
* transformed vector into resultVec.
|
911
|
+
*
|
912
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
913
|
+
* transformation.
|
914
|
+
* @param {goog.vec.ArrayType} vec The vector to transform.
|
915
|
+
* @param {goog.vec.ArrayType} resultVec The vector to
|
916
|
+
* receive the results (may be vec).
|
917
|
+
* @return {goog.vec.ArrayType} return resultVec so that operations can be
|
918
|
+
* chained together.
|
919
|
+
*/
|
920
|
+
goog.vec.Matrix4.multVec4 = function(mat, vec, resultVec) {
|
921
|
+
var x = vec[0], y = vec[1], z = vec[2], w = vec[3];
|
922
|
+
resultVec[0] = x * mat[0] + y * mat[4] + z * mat[8] + w * mat[12];
|
923
|
+
resultVec[1] = x * mat[1] + y * mat[5] + z * mat[9] + w * mat[13];
|
924
|
+
resultVec[2] = x * mat[2] + y * mat[6] + z * mat[10] + w * mat[14];
|
925
|
+
resultVec[3] = x * mat[3] + y * mat[7] + z * mat[11] + w * mat[15];
|
926
|
+
return resultVec;
|
927
|
+
};
|
928
|
+
|
929
|
+
|
930
|
+
/**
|
931
|
+
* Transforms the given vector with the given matrix storing the resulting,
|
932
|
+
* transformed vector into resultVec. The input matrix is multiplied against the
|
933
|
+
* upper 3x4 matrix omitting the projective component.
|
934
|
+
*
|
935
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
936
|
+
* transformation.
|
937
|
+
* @param {goog.vec.ArrayType} vec The 3 element vector to
|
938
|
+
* transform.
|
939
|
+
* @param {goog.vec.ArrayType} resultVec The 3 element vector to
|
940
|
+
* receive the results (may be vec).
|
941
|
+
* @return {goog.vec.ArrayType} return resultVec so that operations can be
|
942
|
+
* chained together.
|
943
|
+
*/
|
944
|
+
goog.vec.Matrix4.multVec3ToArray = function(mat, vec, resultVec) {
|
945
|
+
goog.vec.Matrix4.multVec3(
|
946
|
+
mat, vec, /** @type {goog.vec.ArrayType} */ (resultVec));
|
947
|
+
return resultVec;
|
948
|
+
};
|
949
|
+
|
950
|
+
|
951
|
+
/**
|
952
|
+
* Transforms the given vector with the given matrix storing the resulting,
|
953
|
+
* transformed vector into resultVec.
|
954
|
+
*
|
955
|
+
* @param {goog.vec.ArrayType} mat The matrix supplying the
|
956
|
+
* transformation.
|
957
|
+
* @param {goog.vec.ArrayType} vec The vector to transform.
|
958
|
+
* @param {goog.vec.ArrayType} resultVec The vector to
|
959
|
+
* receive the results (may be vec).
|
960
|
+
* @return {goog.vec.ArrayType} return resultVec so that operations can be
|
961
|
+
* chained together.
|
962
|
+
*/
|
963
|
+
goog.vec.Matrix4.multVec4ToArray = function(mat, vec, resultVec) {
|
964
|
+
goog.vec.Matrix4.multVec4(
|
965
|
+
mat, vec, /** @type {goog.vec.ArrayType} */ (resultVec));
|
966
|
+
return resultVec;
|
967
|
+
};
|
968
|
+
|
969
|
+
|
970
|
+
/**
|
971
|
+
* Initializes the given 4x4 matrix as a translation matrix with x, y and z
|
972
|
+
* translation factors.
|
973
|
+
* @param {goog.vec.ArrayType} mat The 4x4 (16-element) matrix
|
974
|
+
* array to receive the new translation matrix.
|
975
|
+
* @param {number} x The translation along the x axis.
|
976
|
+
* @param {number} y The translation along the y axis.
|
977
|
+
* @param {number} z The translation along the z axis.
|
978
|
+
*/
|
979
|
+
goog.vec.Matrix4.makeTranslate = function(mat, x, y, z) {
|
980
|
+
goog.vec.Matrix4.setIdentity(mat);
|
981
|
+
goog.vec.Matrix4.setColumnValues(mat, 3, x, y, z, 1);
|
982
|
+
};
|
983
|
+
|
984
|
+
|
985
|
+
/**
|
986
|
+
* Initializes the given 4x4 matrix as a scale matrix with x, y and z scale
|
987
|
+
* factors.
|
988
|
+
* @param {goog.vec.ArrayType} mat The 4x4 (16-element) matrix
|
989
|
+
* array to receive the new translation matrix.
|
990
|
+
* @param {number} x The scale along the x axis.
|
991
|
+
* @param {number} y The scale along the y axis.
|
992
|
+
* @param {number} z The scale along the z axis.
|
993
|
+
*/
|
994
|
+
goog.vec.Matrix4.makeScale = function(mat, x, y, z) {
|
995
|
+
goog.vec.Matrix4.setIdentity(mat);
|
996
|
+
goog.vec.Matrix4.setDiagonalValues(mat, x, y, z, 1);
|
997
|
+
};
|
998
|
+
|
999
|
+
|
1000
|
+
/**
|
1001
|
+
* Initializes the given 4x4 matrix as a rotation matrix with the given rotation
|
1002
|
+
* angle about the axis defined by the vector (ax, ay, az).
|
1003
|
+
* @param {goog.vec.ArrayType} mat The 4x4 (16-element) matrix
|
1004
|
+
* array to receive the new translation matrix.
|
1005
|
+
* @param {number} angle The rotation angle in radians.
|
1006
|
+
* @param {number} ax The x component of the rotation axis.
|
1007
|
+
* @param {number} ay The y component of the rotation axis.
|
1008
|
+
* @param {number} az The z component of the rotation axis.
|
1009
|
+
*/
|
1010
|
+
goog.vec.Matrix4.makeAxisAngleRotate = function(
|
1011
|
+
mat, angle, ax, ay, az) {
|
1012
|
+
var c = Math.cos(angle);
|
1013
|
+
var d = 1 - c;
|
1014
|
+
var s = Math.sin(angle);
|
1015
|
+
|
1016
|
+
goog.vec.Matrix4.setFromValues(mat,
|
1017
|
+
ax * ax * d + c,
|
1018
|
+
ax * ay * d + az * s,
|
1019
|
+
ax * az * d - ay * s,
|
1020
|
+
0,
|
1021
|
+
|
1022
|
+
ax * ay * d - az * s,
|
1023
|
+
ay * ay * d + c,
|
1024
|
+
ay * az * d + ax * s,
|
1025
|
+
0,
|
1026
|
+
|
1027
|
+
ax * az * d + ay * s,
|
1028
|
+
ay * az * d - ax * s,
|
1029
|
+
az * az * d + c,
|
1030
|
+
0,
|
1031
|
+
|
1032
|
+
0, 0, 0, 1);
|
1033
|
+
};
|
1034
|
+
|
1035
|
+
|
1036
|
+
/**
|
1037
|
+
* Initializes the given 4x4 matrix as a perspective projection matrix.
|
1038
|
+
* @param {goog.vec.ArrayType} mat The 4x4 (16-element) matrix
|
1039
|
+
* array to receive the new translation matrix.
|
1040
|
+
* @param {number} left The coordinate of the left clipping plane.
|
1041
|
+
* @param {number} right The coordinate of the right clipping plane.
|
1042
|
+
* @param {number} bottom The coordinate of the bottom clipping plane.
|
1043
|
+
* @param {number} top The coordinate of the top clipping plane.
|
1044
|
+
* @param {number} near The distance to the near clipping plane.
|
1045
|
+
* @param {number} far The distance to the far clipping plane.
|
1046
|
+
*/
|
1047
|
+
goog.vec.Matrix4.makeFrustum = function(
|
1048
|
+
mat, left, right, bottom, top, near, far) {
|
1049
|
+
var x = (2 * near) / (right - left);
|
1050
|
+
var y = (2 * near) / (top - bottom);
|
1051
|
+
var a = (right + left) / (right - left);
|
1052
|
+
var b = (top + bottom) / (top - bottom);
|
1053
|
+
var c = -(far + near) / (far - near);
|
1054
|
+
var d = -(2 * far * near) / (far - near);
|
1055
|
+
|
1056
|
+
goog.vec.Matrix4.setFromValues(mat,
|
1057
|
+
x, 0, 0, 0,
|
1058
|
+
0, y, 0, 0,
|
1059
|
+
a, b, c, -1,
|
1060
|
+
0, 0, d, 0
|
1061
|
+
);
|
1062
|
+
};
|
1063
|
+
|
1064
|
+
|
1065
|
+
/**
|
1066
|
+
* Initializes the given 4x4 matrix as a perspective projection matrix given a
|
1067
|
+
* field of view and aspect ratio.
|
1068
|
+
* @param {goog.vec.ArrayType} mat The 4x4 (16-element) matrix
|
1069
|
+
* array to receive the new translation matrix.
|
1070
|
+
* @param {number} fovy The field of view along the y (vertical) axis in
|
1071
|
+
* radians.
|
1072
|
+
* @param {number} aspect The x (width) to y (height) aspect ratio.
|
1073
|
+
* @param {number} near The distance to the near clipping plane.
|
1074
|
+
* @param {number} far The distance to the far clipping plane.
|
1075
|
+
*/
|
1076
|
+
goog.vec.Matrix4.makePerspective = function(
|
1077
|
+
mat, fovy, aspect, near, far) {
|
1078
|
+
var angle = fovy / 2;
|
1079
|
+
var dz = far - near;
|
1080
|
+
var sinAngle = Math.sin(angle);
|
1081
|
+
if (dz == 0 || sinAngle == 0 || aspect == 0) return;
|
1082
|
+
|
1083
|
+
var cot = Math.cos(angle) / sinAngle;
|
1084
|
+
goog.vec.Matrix4.setFromValues(mat,
|
1085
|
+
cot / aspect, 0, 0, 0,
|
1086
|
+
0, cot, 0, 0,
|
1087
|
+
0, 0, -(far + near) / dz, -1,
|
1088
|
+
0, 0, -(2 * near * far) / dz, 0
|
1089
|
+
);
|
1090
|
+
};
|
1091
|
+
|
1092
|
+
|
1093
|
+
/**
|
1094
|
+
* Initializes the given 4x4 matrix as an orthographic projection matrix.
|
1095
|
+
* @param {goog.vec.ArrayType} mat The 4x4 (16-element) matrix
|
1096
|
+
* array to receive the new translation matrix.
|
1097
|
+
* @param {number} left The coordinate of the left clipping plane.
|
1098
|
+
* @param {number} right The coordinate of the right clipping plane.
|
1099
|
+
* @param {number} bottom The coordinate of the bottom clipping plane.
|
1100
|
+
* @param {number} top The coordinate of the top clipping plane.
|
1101
|
+
* @param {number} near The distance to the near clipping plane.
|
1102
|
+
* @param {number} far The distance to the far clipping plane.
|
1103
|
+
*/
|
1104
|
+
goog.vec.Matrix4.makeOrtho = function(
|
1105
|
+
mat, left, right, bottom, top, near, far) {
|
1106
|
+
var x = 2 / (right - left);
|
1107
|
+
var y = 2 / (top - bottom);
|
1108
|
+
var z = -2 / (far - near);
|
1109
|
+
var a = -(right + left) / (right - left);
|
1110
|
+
var b = -(top + bottom) / (top - bottom);
|
1111
|
+
var c = -(far + near) / (far - near);
|
1112
|
+
|
1113
|
+
goog.vec.Matrix4.setFromValues(mat,
|
1114
|
+
x, 0, 0, 0,
|
1115
|
+
0, y, 0, 0,
|
1116
|
+
0, 0, z, 0,
|
1117
|
+
a, b, c, 1
|
1118
|
+
);
|
1119
|
+
};
|
1120
|
+
|
1121
|
+
|
1122
|
+
/**
|
1123
|
+
* Updates a matrix representing the modelview matrix of a camera so that
|
1124
|
+
* the camera is 'looking at' the given center point.
|
1125
|
+
* @param {goog.vec.ArrayType} viewMatrix The matrix.
|
1126
|
+
* @param {goog.vec.ArrayType} eyePt The position of the eye point
|
1127
|
+
* (camera origin).
|
1128
|
+
* @param {goog.vec.ArrayType} centerPt The point to aim the camera
|
1129
|
+
* at.
|
1130
|
+
* @param {goog.vec.ArrayType} worldUpVec The vector that
|
1131
|
+
* identifies the up direction for the camera.
|
1132
|
+
*/
|
1133
|
+
goog.vec.Matrix4.lookAt = function(
|
1134
|
+
viewMatrix, eyePt, centerPt, worldUpVec) {
|
1135
|
+
// Compute the direction vector from the eye point to the center point and
|
1136
|
+
// normalize.
|
1137
|
+
var fwdVec = goog.vec.Matrix4.tmpVec4_[0];
|
1138
|
+
goog.vec.Vec3.subtract(centerPt, eyePt, fwdVec);
|
1139
|
+
goog.vec.Vec3.normalize(fwdVec, fwdVec);
|
1140
|
+
fwdVec[3] = 0;
|
1141
|
+
|
1142
|
+
// Compute the side vector from the forward vector and the input up vector.
|
1143
|
+
var sideVec = goog.vec.Matrix4.tmpVec4_[1];
|
1144
|
+
goog.vec.Vec3.cross(fwdVec, worldUpVec, sideVec);
|
1145
|
+
goog.vec.Vec3.normalize(sideVec, sideVec);
|
1146
|
+
sideVec[3] = 0;
|
1147
|
+
|
1148
|
+
// Now the up vector to form the orthonormal basis.
|
1149
|
+
var upVec = goog.vec.Matrix4.tmpVec4_[2];
|
1150
|
+
goog.vec.Vec3.cross(sideVec, fwdVec, upVec);
|
1151
|
+
goog.vec.Vec3.normalize(upVec, upVec);
|
1152
|
+
upVec[3] = 0;
|
1153
|
+
|
1154
|
+
// Update the view matrix with the new orthonormal basis and position the
|
1155
|
+
// camera at the given eye point.
|
1156
|
+
goog.vec.Vec3.negate(fwdVec, fwdVec);
|
1157
|
+
goog.vec.Matrix4.setRow(viewMatrix, 0, sideVec);
|
1158
|
+
goog.vec.Matrix4.setRow(viewMatrix, 1, upVec);
|
1159
|
+
goog.vec.Matrix4.setRow(viewMatrix, 2, fwdVec);
|
1160
|
+
goog.vec.Matrix4.setRowValues(viewMatrix, 3, 0, 0, 0, 1);
|
1161
|
+
goog.vec.Matrix4.applyTranslate(
|
1162
|
+
viewMatrix, -eyePt[0], -eyePt[1], -eyePt[2]);
|
1163
|
+
};
|
1164
|
+
|
1165
|
+
|
1166
|
+
/**
|
1167
|
+
* Decomposes a matrix into the lookAt vectors eyePt, fwdVec and worldUpVec.
|
1168
|
+
* The matrix represents the modelview matrix of a camera. It is the inverse
|
1169
|
+
* of lookAt except for the output of the fwdVec instead of centerPt.
|
1170
|
+
* The centerPt itself cannot be recovered from a modelview matrix.
|
1171
|
+
* @param {goog.vec.ArrayType} viewMatrix The matrix.
|
1172
|
+
* @param {goog.vec.ArrayType} eyePt The position of the eye point
|
1173
|
+
* (camera origin).
|
1174
|
+
* @param {goog.vec.ArrayType} fwdVec The vector describing where
|
1175
|
+
* the camera points to.
|
1176
|
+
* @param {goog.vec.ArrayType} worldUpVec The vector that
|
1177
|
+
* identifies the up direction for the camera.
|
1178
|
+
* @return {boolean} True if the method succeeds, false otherwise.
|
1179
|
+
* The method can only fail if the inverse of viewMatrix is not defined.
|
1180
|
+
*/
|
1181
|
+
goog.vec.Matrix4.toLookAt = function(
|
1182
|
+
viewMatrix, eyePt, fwdVec, worldUpVec) {
|
1183
|
+
// Get eye of the camera.
|
1184
|
+
var viewMatrixInverse = goog.vec.Matrix4.tmpMatrix4_[0];
|
1185
|
+
if (!goog.vec.Matrix4.invert(viewMatrix, viewMatrixInverse)) {
|
1186
|
+
// The input matrix does not have a valid inverse.
|
1187
|
+
return false;
|
1188
|
+
}
|
1189
|
+
|
1190
|
+
if (eyePt) {
|
1191
|
+
eyePt[0] = viewMatrixInverse[12];
|
1192
|
+
eyePt[1] = viewMatrixInverse[13];
|
1193
|
+
eyePt[2] = viewMatrixInverse[14];
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
// Get forward vector from the definition of lookAt.
|
1197
|
+
if (fwdVec || worldUpVec) {
|
1198
|
+
if (!fwdVec) {
|
1199
|
+
fwdVec = goog.vec.Matrix4.tmpVec3_[0];
|
1200
|
+
}
|
1201
|
+
fwdVec[0] = -viewMatrix[2];
|
1202
|
+
fwdVec[1] = -viewMatrix[6];
|
1203
|
+
fwdVec[2] = -viewMatrix[10];
|
1204
|
+
// Normalize forward vector.
|
1205
|
+
goog.vec.Vec3.normalize(fwdVec, fwdVec);
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
if (worldUpVec) {
|
1209
|
+
// Get side vector from the definition of gluLookAt.
|
1210
|
+
var side = goog.vec.Matrix4.tmpVec3_[1];
|
1211
|
+
side[0] = viewMatrix[0];
|
1212
|
+
side[1] = viewMatrix[4];
|
1213
|
+
side[2] = viewMatrix[8];
|
1214
|
+
// Compute up vector as a up = side x forward.
|
1215
|
+
goog.vec.Vec3.cross(side, fwdVec, worldUpVec);
|
1216
|
+
// Normalize up vector.
|
1217
|
+
goog.vec.Vec3.normalize(worldUpVec, worldUpVec);
|
1218
|
+
}
|
1219
|
+
return true;
|
1220
|
+
};
|
1221
|
+
|
1222
|
+
|
1223
|
+
/**
|
1224
|
+
* Constructs a rotation matrix from its Euler angles using the ZXZ convention.
|
1225
|
+
* Given the euler angles [theta1, theta2, theta3], the rotation is defined as
|
1226
|
+
* rotation = rotation_z(theta1) * rotation_x(theta2) * rotation_z(theta3),
|
1227
|
+
* where rotation_x(theta) means rotation around the X axis of theta radians.
|
1228
|
+
* @param {goog.vec.ArrayType} matrix The rotation matrix.
|
1229
|
+
* @param {number} theta1 The angle of rotation around the Z axis in radians.
|
1230
|
+
* @param {number} theta2 The angle of rotation around the X axis in radians.
|
1231
|
+
* @param {number} theta3 The angle of rotation around the Z axis in radians.
|
1232
|
+
*/
|
1233
|
+
goog.vec.Matrix4.fromEulerZXZ = function(
|
1234
|
+
matrix, theta1, theta2, theta3) {
|
1235
|
+
var c1 = Math.cos(theta1);
|
1236
|
+
var s1 = Math.sin(theta1);
|
1237
|
+
|
1238
|
+
var c2 = Math.cos(theta2);
|
1239
|
+
var s2 = Math.sin(theta2);
|
1240
|
+
|
1241
|
+
var c3 = Math.cos(theta3);
|
1242
|
+
var s3 = Math.sin(theta3);
|
1243
|
+
|
1244
|
+
matrix[0] = c1 * c3 - c2 * s1 * s3;
|
1245
|
+
matrix[1] = c2 * c1 * s3 + c3 * s1;
|
1246
|
+
matrix[2] = s3 * s2;
|
1247
|
+
matrix[3] = 0;
|
1248
|
+
|
1249
|
+
matrix[4] = -c1 * s3 - c3 * c2 * s1;
|
1250
|
+
matrix[5] = c1 * c2 * c3 - s1 * s3;
|
1251
|
+
matrix[6] = c3 * s2;
|
1252
|
+
matrix[7] = 0;
|
1253
|
+
|
1254
|
+
matrix[8] = s2 * s1;
|
1255
|
+
matrix[9] = -c1 * s2;
|
1256
|
+
matrix[10] = c2;
|
1257
|
+
matrix[11] = 0;
|
1258
|
+
|
1259
|
+
matrix[12] = 0;
|
1260
|
+
matrix[13] = 0;
|
1261
|
+
matrix[14] = 0;
|
1262
|
+
matrix[15] = 1;
|
1263
|
+
};
|
1264
|
+
|
1265
|
+
|
1266
|
+
/**
|
1267
|
+
* Decomposes a rotation matrix into Euler angles using the ZXZ convention.
|
1268
|
+
* @param {goog.vec.ArrayType} matrix The rotation matrix.
|
1269
|
+
* @param {goog.vec.ArrayType} euler The ZXZ Euler angles in
|
1270
|
+
* radians. euler = [roll, tilt, pan].
|
1271
|
+
*/
|
1272
|
+
goog.vec.Matrix4.toEulerZXZ = function(matrix, euler) {
|
1273
|
+
var s2 = Math.sqrt(matrix[2] * matrix[2] + matrix[6] * matrix[6]);
|
1274
|
+
|
1275
|
+
// There is an ambiguity in the sign of s2. We assume the tilt value
|
1276
|
+
// is between [-pi/2, 0], so s2 is always negative.
|
1277
|
+
if (s2 > goog.vec.EPSILON) {
|
1278
|
+
euler[2] = Math.atan2(-matrix[2], -matrix[6]);
|
1279
|
+
euler[1] = Math.atan2(-s2, matrix[10]);
|
1280
|
+
euler[0] = Math.atan2(-matrix[8], matrix[9]);
|
1281
|
+
} else {
|
1282
|
+
// There is also an arbitrary choice for roll = 0 or pan = 0 in this case.
|
1283
|
+
// We assume roll = 0 as some applications do not allow the camera to roll.
|
1284
|
+
euler[0] = 0;
|
1285
|
+
euler[1] = Math.atan2(-s2, matrix[10]);
|
1286
|
+
euler[2] = Math.atan2(matrix[1], matrix[0]);
|
1287
|
+
}
|
1288
|
+
};
|
1289
|
+
|
1290
|
+
|
1291
|
+
/**
|
1292
|
+
* Applies a translation by x,y,z to the given matrix.
|
1293
|
+
*
|
1294
|
+
* @param {goog.vec.ArrayType} mat The matrix.
|
1295
|
+
* @param {number} x The translation along the x axis.
|
1296
|
+
* @param {number} y The translation along the y axis.
|
1297
|
+
* @param {number} z The translation along the z axis.
|
1298
|
+
*/
|
1299
|
+
goog.vec.Matrix4.applyTranslate = function(mat, x, y, z) {
|
1300
|
+
goog.vec.Matrix4.setColumnValues(
|
1301
|
+
mat, 3,
|
1302
|
+
mat[0] * x + mat[4] * y + mat[8] * z + mat[12],
|
1303
|
+
mat[1] * x + mat[5] * y + mat[9] * z + mat[13],
|
1304
|
+
mat[2] * x + mat[6] * y + mat[10] * z + mat[14],
|
1305
|
+
mat[3] * x + mat[7] * y + mat[11] * z + mat[15]);
|
1306
|
+
};
|
1307
|
+
|
1308
|
+
|
1309
|
+
/**
|
1310
|
+
* Applies an x,y,z scale to the given matrix.
|
1311
|
+
*
|
1312
|
+
* @param {goog.vec.ArrayType} mat The matrix.
|
1313
|
+
* @param {number} x The x scale factor.
|
1314
|
+
* @param {number} y The y scale factor.
|
1315
|
+
* @param {number} z The z scale factor.
|
1316
|
+
*/
|
1317
|
+
goog.vec.Matrix4.applyScale = function(mat, x, y, z) {
|
1318
|
+
goog.vec.Matrix4.setFromValues(
|
1319
|
+
mat,
|
1320
|
+
mat[0] * x, mat[1] * x, mat[2] * x, mat[3] * x,
|
1321
|
+
mat[4] * y, mat[5] * y, mat[6] * y, mat[7] * y,
|
1322
|
+
mat[8] * z, mat[9] * z, mat[10] * z, mat[11] * z,
|
1323
|
+
mat[12], mat[13], mat[14], mat[15]);
|
1324
|
+
};
|
1325
|
+
|
1326
|
+
|
1327
|
+
/**
|
1328
|
+
* Applies a rotation by angle about the x,y,z axis to the given matrix.
|
1329
|
+
*
|
1330
|
+
* @param {goog.vec.ArrayType} mat The matrix.
|
1331
|
+
* @param {number} angle The angle in radians.
|
1332
|
+
* @param {number} x The x component of the rotation axis.
|
1333
|
+
* @param {number} y The y component of the rotation axis.
|
1334
|
+
* @param {number} z The z component of the rotation axis.
|
1335
|
+
*/
|
1336
|
+
goog.vec.Matrix4.applyRotate = function(mat, angle, x, y, z) {
|
1337
|
+
var m00 = mat[0], m10 = mat[1], m20 = mat[2], m30 = mat[3];
|
1338
|
+
var m01 = mat[4], m11 = mat[5], m21 = mat[6], m31 = mat[7];
|
1339
|
+
var m02 = mat[8], m12 = mat[9], m22 = mat[10], m32 = mat[11];
|
1340
|
+
var m03 = mat[12], m13 = mat[13], m23 = mat[14], m33 = mat[15];
|
1341
|
+
|
1342
|
+
var cosAngle = Math.cos(angle);
|
1343
|
+
var sinAngle = Math.sin(angle);
|
1344
|
+
var diffCosAngle = 1 - cosAngle;
|
1345
|
+
var r00 = x * x * diffCosAngle + cosAngle;
|
1346
|
+
var r10 = x * y * diffCosAngle + z * sinAngle;
|
1347
|
+
var r20 = x * z * diffCosAngle - y * sinAngle;
|
1348
|
+
|
1349
|
+
var r01 = x * y * diffCosAngle - z * sinAngle;
|
1350
|
+
var r11 = y * y * diffCosAngle + cosAngle;
|
1351
|
+
var r21 = y * z * diffCosAngle + x * sinAngle;
|
1352
|
+
|
1353
|
+
var r02 = x * z * diffCosAngle + y * sinAngle;
|
1354
|
+
var r12 = y * z * diffCosAngle - x * sinAngle;
|
1355
|
+
var r22 = z * z * diffCosAngle + cosAngle;
|
1356
|
+
|
1357
|
+
goog.vec.Matrix4.setFromValues(
|
1358
|
+
mat,
|
1359
|
+
m00 * r00 + m01 * r10 + m02 * r20,
|
1360
|
+
m10 * r00 + m11 * r10 + m12 * r20,
|
1361
|
+
m20 * r00 + m21 * r10 + m22 * r20,
|
1362
|
+
m30 * r00 + m31 * r10 + m32 * r20,
|
1363
|
+
|
1364
|
+
m00 * r01 + m01 * r11 + m02 * r21,
|
1365
|
+
m10 * r01 + m11 * r11 + m12 * r21,
|
1366
|
+
m20 * r01 + m21 * r11 + m22 * r21,
|
1367
|
+
m30 * r01 + m31 * r11 + m32 * r21,
|
1368
|
+
|
1369
|
+
m00 * r02 + m01 * r12 + m02 * r22,
|
1370
|
+
m10 * r02 + m11 * r12 + m12 * r22,
|
1371
|
+
m20 * r02 + m21 * r12 + m22 * r22,
|
1372
|
+
m30 * r02 + m31 * r12 + m32 * r22,
|
1373
|
+
|
1374
|
+
m03, m13, m23, m33);
|
1375
|
+
};
|
1376
|
+
|
1377
|
+
|
1378
|
+
/**
|
1379
|
+
* @type {Array.<goog.vec.Vec3.Type>}
|
1380
|
+
* @private
|
1381
|
+
*/
|
1382
|
+
goog.vec.Matrix4.tmpVec3_ = [
|
1383
|
+
goog.vec.Vec3.createNumber(),
|
1384
|
+
goog.vec.Vec3.createNumber()
|
1385
|
+
];
|
1386
|
+
|
1387
|
+
|
1388
|
+
/**
|
1389
|
+
* @type {Array.<goog.vec.Vec4.Type>}
|
1390
|
+
* @private
|
1391
|
+
*/
|
1392
|
+
goog.vec.Matrix4.tmpVec4_ = [
|
1393
|
+
goog.vec.Vec4.createNumber(),
|
1394
|
+
goog.vec.Vec4.createNumber(),
|
1395
|
+
goog.vec.Vec4.createNumber()
|
1396
|
+
];
|
1397
|
+
|
1398
|
+
|
1399
|
+
/**
|
1400
|
+
* @type {Array.<goog.vec.Matrix4.Type>}
|
1401
|
+
* @private
|
1402
|
+
*/
|
1403
|
+
goog.vec.Matrix4.tmpMatrix4_ = [
|
1404
|
+
goog.vec.Matrix4.create()
|
1405
|
+
];
|