mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-04 22:01:08 -05:00
e8270cfd54
* refactor * fixes * rename libraries * refactor libraries * fixes
13 lines
363 B
TypeScript
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();
|