Skip to content

Commit

Permalink
feat: data -> AppDataController, Element -> ElementDataController
Browse files Browse the repository at this point in the history
  • Loading branch information
EGRrqq committed Jan 25, 2024
1 parent fe2c070 commit 059fa18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface IDataController {
pushElement: (element: IElement) => void;
}

export class DataController implements IData, IDataController {
export class AppDataController implements IData, IDataController {
#elements: IElement[] = [];

get elements() {
Expand Down
4 changes: 2 additions & 2 deletions src/canvasController/canvasData/Data/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type { IElement } from "./IElement";
export type { IData } from "./IData";

export { ElementDataController } from "./Element";
export { DataController } from "./Data";
export { ElementDataController } from "./ElementDataController";
export { AppDataController } from "./AppDataController";
4 changes: 2 additions & 2 deletions src/canvasController/canvasData/cache/cacheController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ITollsController } from "../../tools";
import {
DataController,
AppDataController,
ElementDataController,
IData,
IElement,
Expand All @@ -21,7 +21,7 @@ export interface ICacheController {
export class CacheController implements ICacheController {
#captureFlag = false;

#appDataController = new DataController();
#appDataController = new AppDataController();
#storageDataKey = "LittleNotes";

#toolCache = new ElementDataController();
Expand Down

0 comments on commit 059fa18

Please sign in to comment.