Refactored file structure.

This commit is contained in:
Harrison Deng 2022-04-17 20:22:43 -05:00
parent a58beb5f47
commit bb139a3d85
8 changed files with 11 additions and 8 deletions

View File

@ -8,5 +8,6 @@
import * as mappings from "./mapping/mappings.js"; import * as mappings from "./mapping/mappings.js";
import * as player from "./player/player.js"; import * as player from "./player/player.js";
import * as visualization from "./visualization/visualization.js"; import * as visualization from "./visualization/visualization.js";
import * as support from "./support/support.js";
export { mappings, player, visualization }; export { mappings, player, visualization, support };

View File

@ -1,5 +1,5 @@
import VisualizerUpdateManager from "../visualization/VisualizerUpdateManager.js"; import VisualizerUpdateManager from "../visualization/VisualizerUpdateManager.js";
import { mapBinNumerical, mapRangedAvgNumerical } from "./generic.js"; import { mapBinNumerical, mapRangedAvgNumerical } from "./numeric.js";
/** /**
* Maps the width of an element to frequency bin(s). * Maps the width of an element to frequency bin(s).

View File

@ -1,6 +1,4 @@
import * as colors from "./colors.js";
import * as dimensions from "./dimensions.js"; import * as dimensions from "./dimensions.js";
import * as easings from "./easings.js"; import * as numeric from "./numeric.js";
import * as generic from "./generic.js";
export { colors, dimensions, easings, generic }; export { dimensions, numeric };

View File

@ -1,6 +1,6 @@
import { parseColor, rgbaToHexRgba } from "./colors.js"; import { parseColor, rgbaToHexRgba } from "../support/colors.js";
import VisualizerUpdateManager from "../visualization/VisualizerUpdateManager.js"; import VisualizerUpdateManager from "../visualization/VisualizerUpdateManager.js";
import { mapBinNumerical, mapRangedAvgNumerical } from "./generic.js"; import { mapBinNumerical, mapRangedAvgNumerical } from "./numeric.js";
/** /**

4
src/support/support.js Normal file
View File

@ -0,0 +1,4 @@
import * as colors from "./colors.js";
import * as easings from "./easings.js";
export { colors, easings };