| 131 | } |
| 132 | |
| 133 | void init(const std::string & sGraphName, int W, int H) |
| 134 | { |
| 135 | reset(); |
| 136 | stream |
| 137 | << "\n" |
| 138 | << "<div id=\"" << sGraphName << "\" class=\"jxgbox\" style=\"width:"<< W << "px; height:" << H <<"px;\"></div>\n" |
| 139 | << "<script type=\"text/javascript\">\n" |
| 140 | << "var board = JXG.JSXGraph.initBoard('"<< sGraphName <<"', {boundingbox: [-10, 10, 10, -10], axis:true,showCopyright:false});\n" |
| 141 | << "board.suspendUpdate();\n"; |
| 142 | } |
| 143 | |
| 144 | template<typename T> |
| 145 | void setViewport(const std::pair< std::pair<T,T>, std::pair<T,T> > & range) |