Skip to content

Commit

Permalink
[doxygen] use TWebCanvas to create JSON
Browse files Browse the repository at this point in the history
Such JSON supports much more features like custom fonts
or proper handling of THStack
  • Loading branch information
linev committed Oct 8, 2024
1 parent 3158176 commit d634d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/doxygen/MakeTCanvasJS.C
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void MakeTCanvasJS(const char *MacroName, const char *IN, const char *OutDir, bo
fprintf(fh,"<center>\n");
while ((canvas = (TCanvas*) next()) != nullptr) {
ImageNum++;
json_codes.push_back(TBufferJSON::ToJSON(canvas, TBufferJSON::kNoSpaces + TBufferJSON::kSameSuppression));
json_codes.push_back(TWebCanvas::CreateCanvasJSON(canvas, TBufferJSON::kNoSpaces + TBufferJSON::kSameSuppression));
fprintf(fh," <div id=\"draw_pict%d_%s\" style=\"position: relative; width: %dpx; height: %dpx;\"></div>\n",
ImageNum,IN,canvas->GetWindowWidth(),canvas->GetWindowHeight());
}
Expand Down

0 comments on commit d634d30

Please sign in to comment.