scribeGriff / convolve_polymer

Initial experiments using polymer in Dart to create a SPA for convo.lv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building Convolve with Dart and Polymer

Getting MathJax rendering to work

  • MathJax doesn't render inside a polymer-element tag (or possibly it is a problem using js-interop with Polymer.dart according to this). But writing to an element in the dom (ie, outside the shadow dom) should work fine for convolve. Everything else will use polymer.
  • JS-interop works great typesetting specific dom elements with dynamic content.

So updating a div whose id is stored in the variable eqndiv in JavaScript:

MathJax.Hub.Queue(["Typeset", MathJax.Hub, resultsdiv]));

Translates to the following using js-interop:

import 'package:js/js.dart' as js;

js.Proxy context = js.context;
context.MathJax.Hub.Queue(js.array(["Typeset", context.MathJax.Hub, resultsdiv]));

Screenshot

Font Awesome - ness

About

Initial experiments using polymer in Dart to create a SPA for convo.lv


Languages

Language:CSS 80.5%Language:Dart 19.5%