Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
61512b78
Commit
61512b78
authored
Mar 17, 2015
by
Marc Duez
Browse files
main.js : add some comment
parent
e83244b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/main.js
View file @
61512b78
/* replace the default javascript console with a custom one (optional)
* display important error/log message in popup/flash message instead of the default javascript terminal
* */
console
=
new
Com
(
console
)
/* Model
*
*
model role is to load/save .vidjil file (locally or from url) and provides function to access/edit information easily
*/
var
m
=
new
Model
();
/* Views/Modules
/* Views
* produce a view inside an html element and keep it sync with a given model
* we can add as many views as we want to a single model ( multi
*/
var
graph
=
new
Graph
(
"
visu2
"
,
m
);
var
list_clones
=
new
List
(
"
list
"
,
"
data
"
,
m
);
var
sp
=
new
ScatterPlot
(
"
visu
"
,
m
);
var
segment
=
new
Segment
(
"
bot-container
"
,
m
);
/* [WIP] builder module
* complete menu/info and provide some tools
* TODO replace with a menu and info view
*/
var
builder
=
new
Builder
(
m
);
/* [outdated] pdf module
* replaced by report
*/
var
pdf
=
new
PDF
(
m
,
"
visu2_svg
"
)
/* [WIP] report module (optional)
* provide html report functions for a given model
* [WARNING] views access are currently hard-coded]
*/
var
report
=
new
Report
(
m
)
var
db
=
new
Database
(
"
plop!
"
,
m
);
initMenu
();
/*
/* database module (optional)
* link a model to a given database (or use the one defined in config.js)
*/
var
db
=
new
Database
(
m
);
/* [WIP] shortcut module (optional)
* provide keyboard shortcut
*/
var
shortcut
=
new
Shortcut
()
//TODO
initMenu
();
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment