diff --git a/davis_one/davis.cpp b/davis_one/davis.cpp index 07eeeb9..3a68628 100644 --- a/davis_one/davis.cpp +++ b/davis_one/davis.cpp @@ -18,9 +18,9 @@ namespace dvs { const char kAppName[] = "davis"; const char kOutFolderName[] = "davis_htmls/"; -const char kPlotlyJsWorkPath[] = "./davis_htmls/plotly-2.27.0.min.js"; -const char kPlotlyJsName[] = "plotly-2.27.0.min.js"; -const char kPlotlyJsResourcePath[] = "plotly_maker/plotly-2.27.0.min.js"; +const char kPlotlyJsWorkPath[] = "./davis_htmls/plotly-2.32.0.min.js"; +const char kPlotlyJsName[] = "plotly-2.32.0.min.js"; +const char kPlotlyJsResourcePath[] = "plotly_maker/plotly-2.32.0.min.js"; const char kWarningPagePath[] = "./davis_htmls/warning_js_absent.html"; } // namespace dvs end @@ -270,7 +270,7 @@ viewBox="0 0 11237.16 8236.39"
-

If you see this page it means that plotly-2.27.0.min.js +

If you see this page it means that %2
file is absent...

But don't worry!
@@ -776,7 +776,9 @@ void showWarningJsAbsentPage() { #elif __linux__ davis_dir = "/davis_htmls"; #endif - vectorargs = {getCurrentPath() + davis_dir}; + vectorargs{ARGS_WARNING_PAGE_SIZE,""}; + args[ARG_WORKING_FOLDER] = getCurrentPath() + davis_dir; + args[ARG_JS_VERSION] = kPlotlyJsName; make_string(kWarningJSLibAbsentPage, args, out); saveStringToFile(kWarningPagePath, out); openFileBySystem(kWarningPagePath); diff --git a/davis_one/davis.h b/davis_one/davis.h index 4320ba5..91781cd 100644 --- a/davis_one/davis.h +++ b/davis_one/davis.h @@ -118,6 +118,14 @@ enum ARGS_INDEX { // ADD NEW ENUM BEFORE THIS COMMENT ARGS_SIZE }; + +enum ARGS_WARNING_PAGE_INDEX { + ARG_WORKING_FOLDER, + ARG_JS_VERSION, + // ADD NEW ENUM BEFORE THIS COMMENT + ARGS_WARNING_PAGE_SIZE +}; + extern const char kHtmlModel[]; extern const char kColorMapDefaultPart[]; extern const char kColorMapSunnyPart[];