mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
4591369e3c
* wip * added support for overrides * fixes
13 lines
384 B
TypeScript
13 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();
|