ela 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.gitlab-ci.yml +23 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +139 -0
- data/Guardfile +25 -0
- data/LICENSE.txt +205 -0
- data/README.de.md +195 -0
- data/README.md +66 -0
- data/Rakefile +96 -0
- data/app/css/screen.styl +425 -0
- data/app/css/vendor/stackedit.styl +140 -0
- data/app/fonts/Roboto-Italic-webfont.eot +0 -0
- data/app/fonts/Roboto-Italic-webfont.svg +642 -0
- data/app/fonts/Roboto-Italic-webfont.ttf +0 -0
- data/app/fonts/Roboto-Italic-webfont.woff +0 -0
- data/app/fonts/Roboto-Light-webfont.eot +0 -0
- data/app/fonts/Roboto-Light-webfont.svg +641 -0
- data/app/fonts/Roboto-Light-webfont.ttf +0 -0
- data/app/fonts/Roboto-Light-webfont.woff +0 -0
- data/app/fonts/Roboto-LightItalic-webfont.eot +0 -0
- data/app/fonts/Roboto-LightItalic-webfont.svg +641 -0
- data/app/fonts/Roboto-LightItalic-webfont.ttf +0 -0
- data/app/fonts/Roboto-LightItalic-webfont.woff +0 -0
- data/app/fonts/Roboto-Medium-webfont.eot +0 -0
- data/app/fonts/Roboto-Medium-webfont.svg +593 -0
- data/app/fonts/Roboto-Medium-webfont.ttf +0 -0
- data/app/fonts/Roboto-Medium-webfont.woff +0 -0
- data/app/fonts/Roboto-MediumItalic-webfont.eot +0 -0
- data/app/fonts/Roboto-MediumItalic-webfont.svg +642 -0
- data/app/fonts/Roboto-MediumItalic-webfont.ttf +0 -0
- data/app/fonts/Roboto-MediumItalic-webfont.woff +0 -0
- data/app/fonts/Roboto-Regular-webfont.eot +0 -0
- data/app/fonts/Roboto-Regular-webfont.svg +621 -0
- data/app/fonts/Roboto-Regular-webfont.ttf +0 -0
- data/app/fonts/Roboto-Regular-webfont.woff +0 -0
- data/app/fonts/Roboto-Thin-webfont.eot +0 -0
- data/app/fonts/Roboto-Thin-webfont.svg +631 -0
- data/app/fonts/Roboto-Thin-webfont.ttf +0 -0
- data/app/fonts/Roboto-Thin-webfont.woff +0 -0
- data/app/fonts/Roboto-ThinItalic-webfont.eot +0 -0
- data/app/fonts/Roboto-ThinItalic-webfont.svg +631 -0
- data/app/fonts/Roboto-ThinItalic-webfont.ttf +0 -0
- data/app/fonts/Roboto-ThinItalic-webfont.woff +0 -0
- data/app/fonts/droid_sans_regular.typeface.svg +1 -0
- data/app/fonts/fontawesome-webfont.eot +0 -0
- data/app/fonts/fontawesome-webfont.svg +2671 -0
- data/app/fonts/fontawesome-webfont.ttf +0 -0
- data/app/fonts/fontawesome-webfont.woff +0 -0
- data/app/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/js/lib/application.coffee +83 -0
- data/app/js/lib/bootstrap_data.coffee +70 -0
- data/app/js/lib/collections/00_limited_collection.coffee +85 -0
- data/app/js/lib/collections/curves.coffee +3 -0
- data/app/js/lib/collections/named_object_collection.coffee +7 -0
- data/app/js/lib/mathjaxConfig.coffee +241 -0
- data/app/js/lib/models/app.coffee +58 -0
- data/app/js/lib/models/base_app.coffee +62 -0
- data/app/js/lib/models/base_app_model.coffee +61 -0
- data/app/js/lib/models/base_calculator.coffee +212 -0
- data/app/js/lib/models/base_subapp_container.coffee +35 -0
- data/app/js/lib/models/curve.coffee +179 -0
- data/app/js/lib/router.coffee +26 -0
- data/app/js/lib/views/app.coffee +56 -0
- data/app/js/lib/views/base_app.coffee +274 -0
- data/app/js/lib/views/base_aside.coffee +9 -0
- data/app/js/lib/views/base_graph.coffee +477 -0
- data/app/js/lib/views/base_subapp_container.coffee +44 -0
- data/app/js/lib/views/canvas.coffee +73 -0
- data/app/js/lib/views/curve_graph.coffee +163 -0
- data/app/js/lib/views/curves_aside.coffee +21 -0
- data/app/js/lib/views/curves_list_item.coffee +8 -0
- data/app/js/lib/views/grouped_parameters_aside.coffee +14 -0
- data/app/js/lib/views/headup.coffee +15 -0
- data/app/js/lib/views/help.coffee +86 -0
- data/app/js/lib/views/interpolated_graph.coffee +281 -0
- data/app/js/lib/views/legend.coffee +138 -0
- data/app/js/lib/views/legend_handler.coffee +51 -0
- data/app/js/lib/views/overview.coffee +85 -0
- data/app/js/lib/views/overview_tile.coffee +18 -0
- data/app/js/lib/views/parameters_aside.coffee +12 -0
- data/app/js/lib/views/three_graph.coffee +92 -0
- data/app/js/vendor/Markdown.Converter.js +1519 -0
- data/app/js/vendor/Markdown.Extra.js +874 -0
- data/app/js/vendor/Markdown.Toc.coffee +79 -0
- data/app/js/vendor/backbone-1.3.3.min.js +2 -0
- data/app/js/vendor/backbone-validation-0.11.5.js +8 -0
- data/app/js/vendor/backbone.poised/form.coffee +156 -0
- data/app/js/vendor/backbone.poised/form/anchor.coffee +26 -0
- data/app/js/vendor/backbone.poised/form/base_control.coffee +42 -0
- data/app/js/vendor/backbone.poised/form/linked_control.coffee +79 -0
- data/app/js/vendor/backbone.poised/form/linked_number_control.coffee +27 -0
- data/app/js/vendor/backbone.poised/form/linked_range_control.coffee +53 -0
- data/app/js/vendor/backbone.poised/form/linked_select_control.coffee +18 -0
- data/app/js/vendor/backbone.poised/form/linked_string_control.coffee +27 -0
- data/app/js/vendor/backbone.poised/form/number_control.coffee +25 -0
- data/app/js/vendor/backbone.poised/form/range_control.coffee +48 -0
- data/app/js/vendor/backbone.poised/form/select_control.coffee +16 -0
- data/app/js/vendor/backbone.poised/form/selectbox.coffee +78 -0
- data/app/js/vendor/backbone.poised/form/slider.coffee +109 -0
- data/app/js/vendor/backbone.poised/form/string_control.coffee +23 -0
- data/app/js/vendor/backbone.poised/form/submit_control.coffee +39 -0
- data/app/js/vendor/backbone.poised/form/textarea.coffee +36 -0
- data/app/js/vendor/backbone.poised/form/textfield.coffee +86 -0
- data/app/js/vendor/backbone.poised/form/value.coffee +33 -0
- data/app/js/vendor/backbone.poised/form/value_control.coffee +15 -0
- data/app/js/vendor/backbone.poised/linked_form.coffee +43 -0
- data/app/js/vendor/backbone.poised/list.coffee +97 -0
- data/app/js/vendor/backbone.poised/list/add_button.coffee +16 -0
- data/app/js/vendor/backbone.poised/list/anchor.coffee +32 -0
- data/app/js/vendor/backbone.poised/list/item.coffee +68 -0
- data/app/js/vendor/backbone.poised/list/searchfield.coffee +26 -0
- data/app/js/vendor/backbone.poised/list/selectable_item.coffee +65 -0
- data/app/js/vendor/backbone.poised/patches.coffee +6 -0
- data/app/js/vendor/backbone.poised/string_mixin.coffee +23 -0
- data/app/js/vendor/backbone.poised/underscore_ext.coffee +2 -0
- data/app/js/vendor/backbone.poised/view.coffee +59 -0
- data/app/js/vendor/gaussianElimination.coffee +40 -0
- data/app/js/vendor/hammer-2.0.8.min.js +7 -0
- data/app/js/vendor/jquery-3.1.1.min.js +4 -0
- data/app/js/vendor/jquery.after-transition.coffee +20 -0
- data/app/js/vendor/jquery.backbone-hammer.coffee +28 -0
- data/app/js/vendor/jquery.keyboard-modifiers.coffee +22 -0
- data/app/js/vendor/jquery.mark-5.2.3.min.js +7 -0
- data/app/js/vendor/jquery.scrollTo-2.1.2.min.js +7 -0
- data/app/js/vendor/js-yaml-3.4.3.min.js +3 -0
- data/app/js/vendor/markup_text.coffee +95 -0
- data/app/js/vendor/mathjax/MathJax.js +19 -0
- data/app/js/vendor/mathjax/extensions/MathEvents.js +19 -0
- data/app/js/vendor/mathjax/extensions/tex2jax.js +19 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_AMS-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Caligraphic-Bold.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Caligraphic-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Bold.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Bold.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Italic.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-BoldItalic.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-Italic.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Bold.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Italic.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Script-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size1-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size2-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size3-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size4-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Typewriter-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_WinIE6-Regular.eot +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_AMS-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Bold.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Bold.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Bold.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Italic.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-BoldItalic.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Italic.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Bold.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Italic.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Script-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size1-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size2-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size3-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size4-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Typewriter-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_WinChrome-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_WinIE6-Regular.otf +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_AMS-Regular.svg +765 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Caligraphic-Bold.svg +136 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Caligraphic-Regular.svg +134 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Fraktur-Bold.svg +319 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Fraktur-Regular.svg +309 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Main-Bold.svg +656 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Main-Italic.svg +374 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Main-Regular.svg +659 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Math-BoldItalic.svg +331 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Math-Italic.svg +331 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Math-Regular.svg +330 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_SansSerif-Bold.svg +280 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_SansSerif-Italic.svg +245 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_SansSerif-Regular.svg +211 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Script-Regular.svg +160 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Size1-Regular.svg +110 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Size2-Regular.svg +109 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Size3-Regular.svg +49 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Size4-Regular.svg +102 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_Typewriter-Regular.svg +322 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/svg/MathJax_WinChrome-Regular.svg +39 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff +0 -0
- data/app/js/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff +0 -0
- data/app/js/vendor/mathjax/jax/element/mml/jax.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/Arrows.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/BasicLatin.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/CombDiacritMarks.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/CombDiactForSymbols.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/Dingbats.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/GeneralPunctuation.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/GeometricShapes.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/GreekAndCoptic.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/Latin1Supplement.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/LetterlikeSymbols.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/MathOperators.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsA.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/MiscMathSymbolsB.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/MiscSymbolsAndArrows.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/MiscTechnical.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/SpacingModLetters.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/SuppMathOperators.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsA.js +19 -0
- data/app/js/vendor/mathjax/jax/element/mml/optable/SupplementalArrowsB.js +19 -0
- data/app/js/vendor/mathjax/jax/input/TeX/config.js +19 -0
- data/app/js/vendor/mathjax/jax/input/TeX/jax.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/annotation-xml.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/maction.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/menclose.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/mglyph.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/mmultiscripts.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/ms.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/mtable.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/autoload/multiline.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/config.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata.js +19 -0
- data/app/js/vendor/mathjax/jax/output/CommonHTML/jax.js +19 -0
- data/app/js/vendor/modernizr-custom-3.3.1.min.js +3 -0
- data/app/js/vendor/persistjs-git.js +1136 -0
- data/app/js/vendor/poised/poised.general.coffee +21 -0
- data/app/js/vendor/poised/poised.tabs.coffee +31 -0
- data/app/js/vendor/poised/utils.coffee +11 -0
- data/app/js/vendor/request_animation_frame.coffee +19 -0
- data/app/js/vendor/three-82.min.js +15 -0
- data/app/js/vendor/three-CanvasRenderer-82.js +1118 -0
- data/app/js/vendor/three-Projector-82.js +929 -0
- data/app/js/vendor/underscore-1.8.3.min.js +6 -0
- data/app/js/vendor/webfontloader-1.6.26.min.js +33 -0
- data/app/views/aliasing/legend.jst.hamlc +6 -0
- data/app/views/composites/composites_list_item_label.jst.hamlc +3 -0
- data/app/views/composites/import_composites_aside.jst.hamlc +6 -0
- data/app/views/composites/mix_preset_list_item_label.jst.hamlc +8 -0
- data/app/views/composites/share_aside.jst.hamlc +7 -0
- data/app/views/doc/airplanes_list_item_label.jst.hamlc +3 -0
- data/app/views/doc/import_airplanes_aside.jst.hamlc +6 -0
- data/app/views/doc/share_aside.jst.hamlc +7 -0
- data/app/views/general/app.jst.hamlc +42 -0
- data/app/views/general/curves_list_item_label.jst.hamlc +5 -0
- data/app/views/general/help.jst.hamlc +7 -0
- data/app/views/general/tabs.jst.hamlc +6 -0
- data/app/views/index.haml +24 -0
- data/app/views/overview/app.jst.hamlc +7 -0
- data/app/views/overview/tile.jst.hamlc +4 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ela.gemspec +50 -0
- data/exe/ela +59 -0
- data/lib/ela.rb +8 -0
- data/lib/ela/jasmine.rb +87 -0
- data/lib/ela/server.rb +136 -0
- data/lib/ela/utils.rb +131 -0
- data/lib/ela/version.rb +3 -0
- data/package-lock.json +899 -0
- data/package.json +11 -0
- data/support/project/Guardfile +64 -0
- data/support/project/jasmine.yml +3 -0
- data/support/server.ru +5 -0
- metadata +4365 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
class Backbone.Poised.Value extends Backbone.Poised.View
|
2
|
+
tagName: 'span'
|
3
|
+
className: 'poised value'
|
4
|
+
|
5
|
+
initialize: (options = {}) =>
|
6
|
+
throw new Error('Missing `model` option') unless options.model?
|
7
|
+
throw new Error('Missing `attribute` option') unless options.attribute?
|
8
|
+
|
9
|
+
@attribute = options.attribute
|
10
|
+
@options = _.chain(options)
|
11
|
+
.pick('unit', 'precision')
|
12
|
+
.value()
|
13
|
+
|
14
|
+
@model.on "change:#{@attribute}", @render
|
15
|
+
|
16
|
+
value: ->
|
17
|
+
v = @model.get(@attribute)
|
18
|
+
if typeof v is 'number' and isNaN(v)
|
19
|
+
'-'
|
20
|
+
else if @options.precision?
|
21
|
+
@model.get(@attribute).toFixed(@options.precision)
|
22
|
+
else
|
23
|
+
v
|
24
|
+
|
25
|
+
unit: ->
|
26
|
+
if @options.unit
|
27
|
+
" #{@options.unit}"
|
28
|
+
else
|
29
|
+
''
|
30
|
+
|
31
|
+
render: =>
|
32
|
+
@$el.html("#{@value()}#{@unit()}")
|
33
|
+
this
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Backbone.Poised.ValueControl extends Backbone.Poised.BaseControl
|
2
|
+
initialize: (options = {}) ->
|
3
|
+
super
|
4
|
+
|
5
|
+
@options = _.chain(options)
|
6
|
+
.pick('model', 'attribute', 'unit', 'precision')
|
7
|
+
.value()
|
8
|
+
|
9
|
+
render: =>
|
10
|
+
super
|
11
|
+
|
12
|
+
@subviews.value = view = new Backbone.Poised.Value(@options)
|
13
|
+
@$info.append(view.render().el)
|
14
|
+
|
15
|
+
this
|
@@ -0,0 +1,43 @@
|
|
1
|
+
Backbone.Poised ||= {}
|
2
|
+
class Backbone.Poised.LinkedForm extends Backbone.Poised.Form
|
3
|
+
tagName: 'form'
|
4
|
+
className: 'poised'
|
5
|
+
|
6
|
+
initialize: (options = {}) ->
|
7
|
+
throw new Error('Missing `model1` option') unless options.model1?
|
8
|
+
throw new Error('Missing `model2` option') unless options.model2?
|
9
|
+
|
10
|
+
# as reference model and for validations
|
11
|
+
@model = options.model1
|
12
|
+
|
13
|
+
@model1 = options.model1
|
14
|
+
@model2 = options.model2
|
15
|
+
|
16
|
+
@extractOptions(options)
|
17
|
+
@extractFields(options)
|
18
|
+
|
19
|
+
# Bind validations of both models to this view.
|
20
|
+
bindValidation: ->
|
21
|
+
Backbone.Validation.bind(this, model: @model1)
|
22
|
+
Backbone.Validation.bind(this, model: @model2)
|
23
|
+
|
24
|
+
# Instantiates the linked control view for the given field object.
|
25
|
+
# Eventually sets the default values for needed options (e.g.
|
26
|
+
# models, the parent view, etc.) and sets the correct validation
|
27
|
+
# function.
|
28
|
+
#
|
29
|
+
# @see [Backbone.Poised.Form#controlView]
|
30
|
+
#
|
31
|
+
# @returns [Backbone.Poised.LinkedControl] view The view for the control
|
32
|
+
controlView: (field) ->
|
33
|
+
field = _.defaults field,
|
34
|
+
model1: @model1
|
35
|
+
model2: @model2
|
36
|
+
parentView: this
|
37
|
+
field.validate = @model1.__proto__.validation and _.has(@model1.__proto__.validation, field.attribute)
|
38
|
+
switch field.type
|
39
|
+
when 'text' then new Backbone.Poised.LinkedStringControl(field)
|
40
|
+
when 'range' then new Backbone.Poised.LinkedRangeControl(field)
|
41
|
+
when 'number' then new Backbone.Poised.LinkedNumberControl(field)
|
42
|
+
when 'select' then new Backbone.Poised.LinkedSelectControl(field)
|
43
|
+
when 'anchor' then new Backbone.Poised.Anchor(field)
|
@@ -0,0 +1,97 @@
|
|
1
|
+
Backbone.Poised ||= {}
|
2
|
+
class Backbone.Poised.List extends Backbone.Poised.View
|
3
|
+
tagName: 'ul'
|
4
|
+
className: 'poised'
|
5
|
+
|
6
|
+
addButtonTemplate: _.template("<li class='add button'><%= label %></li>")
|
7
|
+
|
8
|
+
extractGroupOptions: (options = {}) ->
|
9
|
+
@options.group = _.chain(options)
|
10
|
+
.pick('by', 'collapsible', 'collapsed', 'sorting')
|
11
|
+
.defaults
|
12
|
+
collapsible: false
|
13
|
+
collapsed: []
|
14
|
+
.value()
|
15
|
+
|
16
|
+
initialize: (options) ->
|
17
|
+
@options = _.chain(options)
|
18
|
+
.pick('filterAttributes', 'itemClass', 'itemLabel', 'itemTemplate', 'addible', 'addLabel', 'singleSelect')
|
19
|
+
.defaults
|
20
|
+
filterAttributes: false
|
21
|
+
itemClass: Backbone.Poised.List.Item
|
22
|
+
addible: false
|
23
|
+
singleSelect: false
|
24
|
+
.value()
|
25
|
+
|
26
|
+
@extractGroupOptions(options.group)
|
27
|
+
|
28
|
+
@collection.on 'add remove reset', @render
|
29
|
+
|
30
|
+
appendSearchfield: =>
|
31
|
+
@subviews.searchfield = new Backbone.Poised.List.Searchfield
|
32
|
+
parentView: this
|
33
|
+
locale: @locale
|
34
|
+
localePrefix: @localePrefix
|
35
|
+
@$el.append(@subviews.searchfield.render().el)
|
36
|
+
|
37
|
+
appendItem: (model, $el = @$el) =>
|
38
|
+
@subviews["item#{model.cid}"] = itemView = new @options.itemClass
|
39
|
+
model: model
|
40
|
+
parentView: this
|
41
|
+
itemLabel: @options.itemLabel
|
42
|
+
itemTemplate: @options.itemTemplate
|
43
|
+
filterAttributes: @options.filterAttributes
|
44
|
+
singleSelect: @options.singleSelect
|
45
|
+
locale: @locale
|
46
|
+
localePrefix: @localePrefix
|
47
|
+
$el.append(itemView.render().el)
|
48
|
+
|
49
|
+
appendAddButton: =>
|
50
|
+
@subviews.addButton = new Backbone.Poised.List.AddButton
|
51
|
+
label: (@options.addLabel or 'Add item')
|
52
|
+
parentView: this
|
53
|
+
locale: @locale
|
54
|
+
localePrefix: @localePrefix
|
55
|
+
@$el.append(@subviews.addButton.render().el)
|
56
|
+
|
57
|
+
appendGroup: (group, models) =>
|
58
|
+
group = group.toCamel()
|
59
|
+
@subviews[group] = groupView = new Backbone.Poised.List.Anchor
|
60
|
+
name: group
|
61
|
+
parentView: this
|
62
|
+
collapsible: $.ematch(group, @options.group.collapsible)
|
63
|
+
collapsed: $.ematch(group, @options.group.collapsed)
|
64
|
+
locale: @locale
|
65
|
+
localePrefix: @localePrefix
|
66
|
+
|
67
|
+
@$el.append(groupView.render().el)
|
68
|
+
|
69
|
+
$grp = $('<ul>', class: 'poised list-group')
|
70
|
+
|
71
|
+
@$el.append($grp)
|
72
|
+
@appendItem(model, $grp) for model in models
|
73
|
+
|
74
|
+
render: =>
|
75
|
+
@$el.html('')
|
76
|
+
|
77
|
+
@appendSearchfield() if @options.filterAttributes
|
78
|
+
@appendAddButton() if @options.addible
|
79
|
+
|
80
|
+
if @options.group.by
|
81
|
+
groupedModels = @collection.groupBy(@options.group.by)
|
82
|
+
groups = if _.isFunction(@options.group.sorting)
|
83
|
+
_.chain(groupedModels)
|
84
|
+
.keys()
|
85
|
+
.sort(@options.group.sorting)
|
86
|
+
.value()
|
87
|
+
else
|
88
|
+
@options.group.sorting or _.keys(groupedModels)
|
89
|
+
|
90
|
+
for group in groups
|
91
|
+
models = groupedModels[group]
|
92
|
+
@appendGroup(group, models) if models?
|
93
|
+
else
|
94
|
+
@collection.each (model) =>
|
95
|
+
@appendItem(model)
|
96
|
+
|
97
|
+
this
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Backbone.Poised.List.AddButton extends Backbone.Poised.View
|
2
|
+
tagName: 'li'
|
3
|
+
className: 'add button'
|
4
|
+
|
5
|
+
events:
|
6
|
+
'tap': 'add'
|
7
|
+
|
8
|
+
initialize: ({@label}) ->
|
9
|
+
super
|
10
|
+
|
11
|
+
add: =>
|
12
|
+
@trigger('add')
|
13
|
+
|
14
|
+
render: ->
|
15
|
+
@$el.html(@label)
|
16
|
+
this
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Backbone.Poised.List ||= {}
|
2
|
+
class Backbone.Poised.List.Anchor extends Backbone.Poised.View
|
3
|
+
tagName: 'li'
|
4
|
+
className: 'anchor'
|
5
|
+
|
6
|
+
events:
|
7
|
+
'click': 'toggleCollapse'
|
8
|
+
|
9
|
+
initialize: (options = {}) ->
|
10
|
+
super
|
11
|
+
@name = options.name or 'general'
|
12
|
+
@label = options.label
|
13
|
+
|
14
|
+
@collapsible = options.collapsible is true
|
15
|
+
@collapsed = options.collapsed isnt false if @collapsible
|
16
|
+
|
17
|
+
toggleCollapse: =>
|
18
|
+
@$el.toggleClass('collapsed')
|
19
|
+
|
20
|
+
render: ->
|
21
|
+
if @name is 'undefined'
|
22
|
+
defaultLocale = 'other'
|
23
|
+
else
|
24
|
+
defaultLocale = @name.toLabel()
|
25
|
+
@$el.html @loadLocale "listAnchors.#{@name}.label",
|
26
|
+
defaultValue: defaultLocale
|
27
|
+
|
28
|
+
if @collapsible
|
29
|
+
@$el.addClass('collapsible')
|
30
|
+
@toggleCollapse() if @collapsed
|
31
|
+
|
32
|
+
this
|
@@ -0,0 +1,68 @@
|
|
1
|
+
Backbone.Poised.List ||= {}
|
2
|
+
class Backbone.Poised.List.Item extends Backbone.Poised.View
|
3
|
+
tagName: 'li'
|
4
|
+
className: 'item'
|
5
|
+
|
6
|
+
template: _.template('<label class="item"></label><div class="buttons"></div>')
|
7
|
+
|
8
|
+
initialize: (options = {}) ->
|
9
|
+
super
|
10
|
+
|
11
|
+
@template = options.itemTemplate if options.itemTemplate
|
12
|
+
|
13
|
+
@options = _.pick(options, 'itemLabel')
|
14
|
+
if @options.itemLabel and _.isFunction(@options.itemLabel)
|
15
|
+
changeTrigger = 'change'
|
16
|
+
@options.itemLabel(_.defaults(@labelParameters(), @model.toJSON()))
|
17
|
+
else if @options.itemLabel and _.isString(@options.itemLabel)
|
18
|
+
changeTrigger = "change:#{@options.itemLabel}"
|
19
|
+
else
|
20
|
+
changeTrigger = 'change:label change:title change:name'
|
21
|
+
@model.on(changeTrigger, @updateLabel)
|
22
|
+
|
23
|
+
@parentView.on 'filter', @filter
|
24
|
+
|
25
|
+
filter: (text, sharedObject) =>
|
26
|
+
textChars = text.split('')
|
27
|
+
sharedObject.fuzzyRegExp ?= new RegExp(textChars.join('.*'), 'i')
|
28
|
+
sharedObject.markRegExps ?= (new RegExp(textChar, 'i') for textChar in textChars)
|
29
|
+
|
30
|
+
if text.length is 0 or sharedObject.fuzzyRegExp.test(@$el.text())
|
31
|
+
@$el.css display: ''
|
32
|
+
else
|
33
|
+
@$el.css display: 'none'
|
34
|
+
@renderFilterHint(sharedObject.markRegExps)
|
35
|
+
|
36
|
+
# Querying is emacs-like, just the marking is slightly different,
|
37
|
+
# marking every occurence of every character in the query.
|
38
|
+
renderFilterHint: (markRegExps) ->
|
39
|
+
@$el.removeMark()
|
40
|
+
@$el.markRegExp(markRegExp) for markRegExp in markRegExps
|
41
|
+
|
42
|
+
eventFn: (name) =>
|
43
|
+
eventName = name
|
44
|
+
(e) ->
|
45
|
+
@parentView.trigger eventName, @model
|
46
|
+
|
47
|
+
# Stub: Return object to merge into the model attribute objects
|
48
|
+
# for the `itemLabel` function.
|
49
|
+
#
|
50
|
+
# @returns [Object] Values to merge into the model attributes
|
51
|
+
labelParameters: -> {}
|
52
|
+
|
53
|
+
updateLabel: =>
|
54
|
+
label = if @options.itemLabel and _.isFunction(@options.itemLabel)
|
55
|
+
@options.itemLabel(_.defaults(@labelParameters(), @model.toJSON()))
|
56
|
+
else if @options.itemLabel and _.isString(@options.itemLabel)
|
57
|
+
@model.get(@options.itemLabel)
|
58
|
+
else
|
59
|
+
@model.get('label') or @model.get('title') or @model.get('name') or 'n/A'
|
60
|
+
@$label.html(label)
|
61
|
+
|
62
|
+
render: =>
|
63
|
+
@$el.html(@template())
|
64
|
+
@$label = @$('label.item')
|
65
|
+
@updateLabel()
|
66
|
+
@$buttons = @$('.buttons')
|
67
|
+
|
68
|
+
this
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Backbone.Poised.List ||= {}
|
2
|
+
class Backbone.Poised.List.Searchfield extends Backbone.Poised.View
|
3
|
+
tagName: 'li'
|
4
|
+
className: 'search-box'
|
5
|
+
|
6
|
+
template: _.template("<input type='search' placeholder='<%= placeholder %>'>")
|
7
|
+
|
8
|
+
initialize: (options = {}) ->
|
9
|
+
super
|
10
|
+
|
11
|
+
@options = _.chain(options)
|
12
|
+
.pick('placeholder')
|
13
|
+
.value()
|
14
|
+
|
15
|
+
events:
|
16
|
+
'input input': 'filterList'
|
17
|
+
|
18
|
+
filterList: (e) =>
|
19
|
+
clearTimeout @filterInputTimeout
|
20
|
+
@filterInputTimeout = delay 250, =>
|
21
|
+
@trigger('filter', $(e.target).val() or '', {})
|
22
|
+
|
23
|
+
render: =>
|
24
|
+
placeholder = @options.placeholder or @loadLocale('search.placeholder')
|
25
|
+
@$el.html @template placeholder: placeholder
|
26
|
+
this
|
@@ -0,0 +1,65 @@
|
|
1
|
+
class Backbone.Poised.List.SelectableItem extends Backbone.Poised.List.Item
|
2
|
+
events: _.defaults {
|
3
|
+
'change [type=checkbox]': 'updateModelSelection'
|
4
|
+
'tap': 'updateModelSelection'
|
5
|
+
'press': 'toggleSingleSelection'
|
6
|
+
}, Backbone.Poised.List.Item.prototype.events
|
7
|
+
|
8
|
+
selectedAttribute: 'selected'
|
9
|
+
|
10
|
+
hammerjs:
|
11
|
+
recognizers: [
|
12
|
+
[Hammer.Rotate, { enable: false }],
|
13
|
+
[Hammer.Pinch, { enable: false }, ['rotate']],
|
14
|
+
[Hammer.Swipe, { enable: false }],
|
15
|
+
[Hammer.Pan, { enable: false }, ['swipe']],
|
16
|
+
[Hammer.Tap, { threshold: 5 }],
|
17
|
+
[Hammer.Press]
|
18
|
+
]
|
19
|
+
|
20
|
+
initialize: (options) ->
|
21
|
+
super
|
22
|
+
@options.singleSelect = options.singleSelect is true
|
23
|
+
@model.on("change:#{@selectedAttribute}", @updateCheckboxState)
|
24
|
+
|
25
|
+
updateCheckbox: =>
|
26
|
+
@$checkbox.attr(checked: @model.get(@selectedAttribute))
|
27
|
+
|
28
|
+
updateModelSelection: (e) =>
|
29
|
+
@model.set(@selectedAttribute, not @model.get(@selectedAttribute))
|
30
|
+
@model.collection.singleSelection = undefined
|
31
|
+
@model.collection.selectedBeforeSingleSelection = undefined
|
32
|
+
|
33
|
+
toggleSingleSelection: =>
|
34
|
+
if @options.singleSelect
|
35
|
+
collection = @model.collection
|
36
|
+
if collection.singleSelection is @model
|
37
|
+
collection.each (model) =>
|
38
|
+
previousSelection = collection.selectedBeforeSingleSelection
|
39
|
+
previouslySelected = previousSelection.indexOf(model) > -1
|
40
|
+
model.set(@selectedAttribute, previouslySelected)
|
41
|
+
collection.singleSelection = undefined
|
42
|
+
else
|
43
|
+
filter = {}
|
44
|
+
filter[@selectedAttribute] = true
|
45
|
+
collection.selectedBeforeSingleSelection ?= collection.where(filter)
|
46
|
+
collection.singleSelection = @model
|
47
|
+
collection.each (model) =>
|
48
|
+
model.set(@selectedAttribute, model is @model)
|
49
|
+
|
50
|
+
updateCheckboxState: =>
|
51
|
+
@$checkbox.prop('checked', @model.get(@selectedAttribute))
|
52
|
+
|
53
|
+
render: =>
|
54
|
+
super
|
55
|
+
|
56
|
+
@$checkbox = $ '<input>',
|
57
|
+
type: 'checkbox'
|
58
|
+
name: "model_#{@model.cid}"
|
59
|
+
@updateCheckboxState()
|
60
|
+
@$buttons.append(@$checkbox)
|
61
|
+
@$buttons.append $ '<label>',
|
62
|
+
for: "model_#{@model.cid}"
|
63
|
+
class: 'checkbox'
|
64
|
+
|
65
|
+
this
|
@@ -0,0 +1,23 @@
|
|
1
|
+
String.prototype.toCamel = ->
|
2
|
+
str = @replace /((\-|_)[a-z])/g, ($1) -> $1[1].toUpperCase()
|
3
|
+
str[0].toLowerCase() + str.slice(1)
|
4
|
+
|
5
|
+
String.prototype.toCapitalCamel = ->
|
6
|
+
str = @toCamel()
|
7
|
+
str[0].toUpperCase() + str.slice(1)
|
8
|
+
|
9
|
+
String.prototype.toDash = ->
|
10
|
+
str = @replace /(_[a-z]|[A-Z])/g, ($1) -> "-" + $1.replace('_', '')
|
11
|
+
str = str.slice(1) if str[0] is "-"
|
12
|
+
str.toLowerCase()
|
13
|
+
|
14
|
+
String.prototype.toUnderscore = ->
|
15
|
+
str = @replace /(\-[a-z]|[A-Z])/g, ($1) -> "_" + $1.replace('-', '')
|
16
|
+
str = str.slice(1) if str[0] is "_"
|
17
|
+
str.toLowerCase()
|
18
|
+
|
19
|
+
String.prototype.toLabel = ->
|
20
|
+
str = @replace /(\-[a-z]|_[a-z]|[A-Z])/g, ($1) ->
|
21
|
+
" " + if $1[1] then $1[1]?.toUpperCase() else $1
|
22
|
+
str = str.slice(1) if str[0] is " "
|
23
|
+
str[0].toUpperCase() + str.slice(1)
|