Skip to main content
Glama
modify-shape-helper.d.ts1.22 kB
import { ReplaceText, ReplaceTextOptions } from '../types/modify-types'; import { ShapeCoordinates } from '../types/shape-types'; import { XmlElement } from '../types/xml-types'; export default class ModifyShapeHelper { /** * Set solid fill of modified shape */ static setSolidFill: (element: XmlElement) => void; /** * Set text content of modified shape */ static setText: (text: string) => (element: XmlElement) => void; /** * Replace tagged text content within modified shape */ static replaceText: (replaceText: ReplaceText | ReplaceText[], options?: ReplaceTextOptions) => (element: XmlElement) => void; /** * Set position and size of modified shape. */ static setPosition: (pos: ShapeCoordinates) => (element: XmlElement) => void; /** * Update position and size of a shape by a given Value. */ static updatePosition: (pos: ShapeCoordinates) => (element: XmlElement) => void; /** * Rotate a shape by a given value. Use e.g. 180 to flip a shape. * A negative value will rotate counter clockwise. * @param degrees Rotate by ° */ static rotate: (degrees: number) => (element: XmlElement) => void; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guangxiangdebizi/PPT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server