# 调整页面元素的大小和位置

## 转换元素

• ABSOLUTE 转换会替换元素的现有转换 模型。您在转换更新请求中省略的所有参数都会设置为 零。

• RELATIVE 转换与元素的现有转换相乘 转换矩阵（乘法的顺序很重要）：

$$A' = BA$$

### 翻译

$$T=\begin{bmatrix} 1 & 0 & translate\_x\\ 0 & 1 & translate\_y\\ 0 & 0 & 1 \end{bmatrix}$$

// Absolute translation:
{
'transform': {
'scaleX':  current scaleX value,
'scaleY':  current scaleY value,
'shearX':  current shearX value,
'shearY':  current shearY value,
'translateX': X coordinate to move to,
'translateY': Y coordinate to move to,
'unit': 'EMU' // or 'PT'
}
}

// Relative translation (scaling must also be provided to avoid a matrix multiplication error):
{
'transform': {
'scaleX':  1,
'scaleY':  1,
'translateX': X coordinate to move by,
'translateY': Y coordinate to move by,
'unit': 'EMU' // or 'PT'
}
}

### 扩缩

$$S=\begin{bmatrix} scale\_x & 0 & 0\\ 0 & scale\_y & 0\\ 0 & 0 & 1 \end{bmatrix}$$

### 旋转

$$R=\begin{bmatrix} cos(\theta) & sin(\theta) & 0\\ -sin(\theta) & cos(\theta) & 0\\ 0 & 0 & 1 \end{bmatrix}$$

### 反思

$$F_x=\begin{bmatrix} 1 & 0 & 0\\ 0 & -1 & 0\\ 0 & 0 & 1\\ \end{bmatrix}\qquad\qquad F_y=\begin{bmatrix} -1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1\\ \end{bmatrix}$$

### 元素参考边框

$$A' = T2 \times B \times T1 \times A$$

## 限制

** 如需更新表格的行和列维度，请使用 UpdateTableRowPropertiesRequestUpdateTableColumnPropertiesRequest

## 该幻灯片 API 可能会重构您的值

[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"没有我需要的信息" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"太复杂/步骤太多" },{ "type": "thumb-down", "id": "outOfDate", "label":"内容需要更新" },{ "type": "thumb-down", "id": "translationIssue", "label":"翻译问题" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"示例/代码问题" },{ "type": "thumb-down", "id": "otherDown", "label":"其他" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"易于理解" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"解决了我的问题" },{ "type": "thumb-up", "id": "otherUp", "label":"其他" }]