mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 11:18:37 +00:00
20 lines
590 B
TypeScript
20 lines
590 B
TypeScript
import { PluginTask } from "../PluginTask";
|
|
import { PrintTextTaskParams, PluginTaskResult } from '@penpot-mcp/common';
|
|
|
|
/**
|
|
* Task for printing/creating text in Penpot.
|
|
*
|
|
* This task instructs the plugin to create a text element
|
|
* at the viewport center and select it.
|
|
*/
|
|
export class PrintTextPluginTask extends PluginTask<PrintTextTaskParams, PluginTaskResult> {
|
|
/**
|
|
* Creates a new print text task.
|
|
*
|
|
* @param params - The parameters containing the text to print
|
|
*/
|
|
constructor(params: PrintTextTaskParams) {
|
|
super("printText", params);
|
|
}
|
|
}
|