工具 API

slide_add_line_shape

在指定幻灯片插入一根线形 / 方向性箭头线条(从 (x1,y1) 起点到 (x2,y2) 终点)。这是绘制"两点之间的箭头线"的正确工具:line_type=arrow 单端箭头、doubleArrow 双端箭头、line 普通直线。slide_add_shape 不能画这种线条箭头,它只支持 rightArrow / leftArrow 两种固定方向的图形块预设。x1/y1 / x2/y2 单位为磅(pt,1pt = 12700 EMU);width 单位为 pt(SLIDE) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.

productivityOAuth1 积分

调用信息

工具标识
tencent-docs.slide_add_line_shape
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

color

颜色(RRGGBB);空串默认 000000

dash

线型:solid / dash / dot;空串默认 solid

file_id

文档ID,与 file_url 二选一

file_url

在线幻灯片URL,与 file_id 二选一

line_type

线形类型:line / arrow / doubleArrow;空串默认 line

page_index

目标幻灯片页索引,从 0 开始

width

线宽(pt);<= 0 取默认 1.0

x1

起点横坐标(磅 pt,1pt = 12700 EMU)

x2

终点横坐标(磅 pt,1pt = 12700 EMU)

y1

起点纵坐标(磅 pt,1pt = 12700 EMU)

y2

终点纵坐标(磅 pt,1pt = 12700 EMU)