mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-04-18 01:34:17 -05:00
wip
This commit is contained in:
parent
25b93059f2
commit
b2dd23d6af
2 changed files with 15 additions and 2 deletions
|
@ -1,7 +1,10 @@
|
|||
export type ComponentProperty = {
|
||||
type: ComponentPropertyType;
|
||||
type: 'BOOLEAN' | 'TEXT' | 'INSTANCE_SWAP' | 'VARIANT';
|
||||
defaultValue: string | boolean;
|
||||
preferredValues?: InstanceSwapPreferredValue[];
|
||||
preferredValues?: {
|
||||
type: 'COMPONENT' | 'COMPONENT_SET';
|
||||
key: string;
|
||||
}[];
|
||||
variantOptions?: string[];
|
||||
};
|
||||
class ComponentPropertiesLibrary {
|
||||
|
|
|
@ -43,6 +43,16 @@ export const transformInstanceNode = async (
|
|||
);
|
||||
}
|
||||
|
||||
if (node.visible !== mainComponent.visible) {
|
||||
overridesLibrary.register(node.id, ['visible']);
|
||||
}
|
||||
if (node.locked !== mainComponent.locked) {
|
||||
overridesLibrary.register(node.id, ['locked']);
|
||||
}
|
||||
if (node.id === 'I1:360;304:2177') {
|
||||
console.log(node, mainComponent);
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'instance',
|
||||
name: node.name,
|
||||
|
|
Loading…
Add table
Reference in a new issue