Closed Vindaar closed 5 years ago
Merging now, because karaPlot
has gotten a little out of hand. Further features will be added and everything will be refined. But there is no point in keeping this PR as such, if many important changes for the rest of the code base only happen in here.
Still heavily work in progress.
This will close issue #31 when it's finished.
It will consist of a rewrite of
plotData
, which is mainly based on:PlotDescriptor
object, which uniquely identifies a plot.createPlot
, which creates that individual plot.From there we can do 2 things:
PlotKind
enum and thePlotDescriptor
object, as well as the contents of theconfig.toml
. This allows a user interface for the creation of a desired plot via maybe some dropdown menus or something else.. This creates aPlotDescriptor
internally, sends it to the backend, which will create the appropriate plot and send the result back to the frontend, which will show it immediately. This JS tool will store all plots in one (or two) tables / JsonNodes as to cache plots.So far it's in a pure prototyping stage, figuring out how to build what I want in HTML + JS etc. The rewrite of
plotData
is necessary for the interactive front end, because otherwise we can't build theplotData
code in a gcsafe way.edit: Merged early, many points still remain a work in progress. Although many features are built, a lot is still missing or broken.