-
Notifications
You must be signed in to change notification settings - Fork 0
/
brian_compiled.js
50 lines (49 loc) · 3.82 KB
/
brian_compiled.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
if(!lt.util.load.provided_QMARK_('lt.plugins.brian')) {
goog.provide('lt.plugins.brian');
goog.require('cljs.core');
goog.require('lt.objs.tabs');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.command');
goog.require('lt.plugins.watches');
goog.require('lt.util.load');
goog.require('lt.plugins.watches');
goog.require('lt.objs.editor');
goog.require('lt.object');
goog.require('lt.object');
goog.require('lt.util.load');
goog.require('lt.objs.tabs');
goog.require('lt.objs.editor');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.command');
lt.plugins.brian.browser_opened = false;
lt.plugins.brian.prev_line = -1;
lt.plugins.brian.get_code = (function get_code(){var ed = lt.objs.find.current_ed.call(null);return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"code","code",1016963423),lt.objs.editor.__GT_val.call(null,ed),new cljs.core.Keyword(null,"line","line",1017226086),cljs.core.get.call(null,lt.objs.editor.__GT_cursor.call(null,ed,"start"),new cljs.core.Keyword(null,"line","line",1017226086))], null);
});
lt.plugins.brian.render_data = (function render_data(path){if(cljs.core.truth_(lt.plugins.brian.browser_opened))
{lt.plugins.brian.close_btds.call(null);
} else
{}
lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tabset.new","tabset.new",1444331601));
lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tabset.next","tabset.next",1472250630));
lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"add-browser-tab","add-browser-tab",3663273910),path);
lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tabset.prev","tabset.prev",1472322118));
lt.plugins.brian.browser_opened = true;
});
lt.plugins.brian.close_btds = (function close_btds(){lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tabset.next","tabset.next",1472250630));
lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tabs.close","tabs.close",4150844154));
lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"tabset.close","tabset.close",2327781609));
lt.plugins.brian.browser_opened = false;
});
lt.plugins.brian.brian_visualize = (function brian_visualize(){var code = lt.plugins.brian.get_code.call(null);lt.plugins.brian.prev_line = code.call(null,new cljs.core.Keyword(null,"line","line",1017226086));
return lt.plugins.brian.render_data.call(null,[cljs.core.str("http://localhost:5000/eval?line="),cljs.core.str(cljs.core.get.call(null,code,new cljs.core.Keyword(null,"line","line",1017226086))),cljs.core.str("&code="),cljs.core.str(encodeURIComponent(cljs.core.get.call(null,code,new cljs.core.Keyword(null,"code","code",1016963423))))].join(''));
});
lt.objs.command.command.call(null,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"brian-visualize","brian-visualize",1676687487),new cljs.core.Keyword(null,"desc","desc",1016984067),"Brian: visualize data",new cljs.core.Keyword(null,"exec","exec",1017031683),lt.plugins.brian.brian_visualize], null));
lt.plugins.brian.__BEH__eval_on_change = (function __BEH__eval_on_change(editor){var code = lt.plugins.brian.get_code.call(null);if(cljs.core._EQ_.call(null,lt.plugins.brian.prev_line,code.call(null,new cljs.core.Keyword(null,"line","line",1017226086))))
{return lt.plugins.brian.brian_visualize.call(null);
} else
{return null;
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.brian","eval-on-change","lt.plugins.brian/eval-on-change",2472956193),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.brian.__BEH__eval_on_change,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"change","change",3947235106),null], null), null));
}
//# sourceMappingURL=brian_compiled.js.map