textbox

A textbox is a type of shape which is used to display text.

JSON payload

"shapes": [
  {
    "name": "string",
    "content": "string",
    "text_content": [],
    "settings": [],
    "is_hidden": boolean,
    "remove": boolean
   },
  {
    "name": "string",
    "content": "string",
    "text_content": [],
    "settings": [],
    "is_hidden": boolean,
    "remove": boolean
   } 
]

Text Object

An array of text objects, where each object represents a part of the text with its own text content and optional properties.

JSON Payload

"text": [
  {
    "text_run": "This is part 1 of my sentence.",
    "text_properties": {},
  {
    "text_run": "This is part 2 of my sentence.",
    "text_properties": {}
  }
]

Text_properties Object

Text format properties.

"text_properties": {
    "font_type": "string",
    "font_size": numeric,
    "font_bold": boolean,
    "font_italic": boolean,
    "font_color": "string",
    "font_bg_color": "string",
    "text_align": "string",
    "text_indent": numeric,
    "text_line_spacing": numeric,
    "font_underline": "string",	
    "bullet": boolean,
    "bullet_font_name": "string",
    "bullet_character_code": numeric,
    "bullet_color": "string",
    "bullet_indent_level": numeric,
    "bullet_size": numeric,
    "bullet_type": "string",
    "new_line": boolean
  }

Settings Object

These settings are applied at shape level.

JSON payload

"settings": {
  "height": numeric,
  "width": numeric,
  "top": numeric,
  "left": numeric,
  "unit": "string"
  "fill_color": "0,0,0"
  "font_type": "string",
  "font_size": numeric,
  "font_bold": boolean,
  "font_italic": boolean,
  "font_color": "string",
  "font_bg_color": "string",
  "text_align": "string",
  "text_indent": numeric,
  "text_line_spacing": numeric,
  "font_underline": "string",	
  "new_line": boolean
}	   

Last updated