0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-04 22:01:08 -05:00
penpot-exporter-figma-plugin/plugin-src/libraries/Overrides.ts
Alex Sánchez e8270cfd54
Refactor (#188)
* refactor

* fixes

* rename libraries

* refactor libraries

* fixes
2024-06-25 17:12:20 +02:00

13 lines
363 B
TypeScript

class Overrides {
private overrides: Map<string, NodeChangeProperty[]> = new Map();
public register(nodeId: string, overrides: NodeChangeProperty[]): void {
this.overrides.set(nodeId, overrides);
}
public get(nodeId: string): NodeChangeProperty[] | undefined {
return this.overrides.get(nodeId);
}
}
export const overrides = new Overrides();