Skip to content

Commit

Permalink
delete src/app/gui/charts/chartsfactory.js (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto authored Feb 7, 2024
1 parent 2a31608 commit 0d49a84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
13 changes: 10 additions & 3 deletions src/app/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,13 @@ const g3wsdk = {
InputsComponents
},
Charts: {
ChartsFactory,
ChartsFactory: {
/** @param type: <library(es:c3)>:<chartType:(es.lineXY)> */
build({ type, hooks = {} } = {}) {
const [library='c3', chartType='lineXY'] = type.split(':');
return Object.assign(hooks, this.CHARTS[library][chartType]);
}
},
c3: {
lineXY: C3XYLine
}
Expand Down Expand Up @@ -431,7 +437,8 @@ const g3wsdk = {
};

// BACKOMP v3.x
g3wsdk.core.geometry = { Geom: g3wsdk.core.geoutils, Geometry: g3wsdk.core.geoutils.Geometry };
g3wsdk.core.layer.geometry = { geom: g3wsdk.core.geoutils, Geometry: g3wsdk.core.geoutils.Geometry };
g3wsdk.core.geometry = { Geom: g3wsdk.core.geoutils, Geometry: g3wsdk.core.geoutils.Geometry };
g3wsdk.core.layer.geometry = { geom: g3wsdk.core.geoutils, Geometry: g3wsdk.core.geoutils.Geometry };
g3wsdk.gui.vue.Charts.ChartsFactory.CHARTS = { c3: { lineXY: C3XYLine } };

module.exports = g3wsdk;
20 changes: 0 additions & 20 deletions src/app/gui/charts/chartsfactory.js

This file was deleted.

0 comments on commit 0d49a84

Please sign in to comment.