Variable ExportControlsComponentConst
ExportControlsComponent: {
methods: {
exportJPG: (() => void);
exportPNG: (() => void);
exportSVG: (() => void);
loadSurface: ((cb: ((s: Surface) => any)) => void);
};
name: string;
props: {
allowJpgExport: {
default: boolean;
type: BooleanConstructor;
};
allowPngExport: {
default: boolean;
type: BooleanConstructor;
};
allowSvgExport: {
default: boolean;
type: BooleanConstructor;
};
imageOptions: {
type: PropType<ImageExportUIOptions>;
};
label: {
default: string;
type: StringConstructor;
};
margins: {
type: PropType<PointXY>;
};
showLabel: {
default: boolean;
type: BooleanConstructor;
};
surfaceId: {
default: string;
type: StringConstructor;
};
svgOptions: {
type: PropType<SvgExportUIOptions>;
};
};
render(): VNode<RendererNode, RendererElement, {
[key: string]: any;
}>;
} = ...
Type declaration
methods: {
exportJPG: (() => void);
exportPNG: (() => void);
exportSVG: (() => void);
loadSurface: ((cb: ((s: Surface) => any)) => void);
}
exportJPG: (() => void)
exportPNG: (() => void)
exportSVG: (() => void)
loadSurface: ((cb: ((s: Surface) => any)) => void)
- (cb): void
Parameters
- cb: ((s: Surface) => any)
Returns void
name: string
props: {
allowJpgExport: {
default: boolean;
type: BooleanConstructor;
};
allowPngExport: {
default: boolean;
type: BooleanConstructor;
};
allowSvgExport: {
default: boolean;
type: BooleanConstructor;
};
imageOptions: {
type: PropType<ImageExportUIOptions>;
};
label: {
default: string;
type: StringConstructor;
};
margins: {
type: PropType<PointXY>;
};
showLabel: {
default: boolean;
type: BooleanConstructor;
};
surfaceId: {
default: string;
type: StringConstructor;
};
svgOptions: {
type: PropType<SvgExportUIOptions>;
};
}
allowJpgExport: {
default: boolean;
type: BooleanConstructor;
}
default: boolean
type: BooleanConstructor
allowPngExport: {
default: boolean;
type: BooleanConstructor;
}
default: boolean
type: BooleanConstructor
allowSvgExport: {
default: boolean;
type: BooleanConstructor;
}
default: boolean
type: BooleanConstructor
imageOptions: {
type: PropType<ImageExportUIOptions>;
}
type: PropType<ImageExportUIOptions>
label: {
default: string;
type: StringConstructor;
}
default: string
type: StringConstructor
margins: {
type: PropType<PointXY>;
}
showLabel: {
default: boolean;
type: BooleanConstructor;
}
default: boolean
type: BooleanConstructor
surfaceId: {
default: string;
type: StringConstructor;
}
default: string
type: StringConstructor
svgOptions: {
type: PropType<SvgExportUIOptions>;
}
type: PropType<SvgExportUIOptions>
render:function
- render(): VNode<RendererNode, RendererElement, {
[key: string]: any;
}> Returns VNode<RendererNode, RendererElement, {
[key: string]: any;
}>
Provides a component that offers buttons for export to SVG, PNG and/or JPG.