mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
14 lines
384 B
TypeScript
14 lines
384 B
TypeScript
|
class OverridesLibrary {
|
||
|
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 overridesLibrary = new OverridesLibrary();
|