Таблица DocumentAPI.GeometryProperties
Таблица DocumentAPI.GeometryProperties предоставляет параметры, необходимые для задания геометрических свойств фигуры (поворот, отражение). Используется в Shape:setGeometryProperties(), Shape:getGeometryProperties().
| Поле | Тип | Описание |
|---|---|---|
DocumentAPI.GeometryProperties_rotation | number | Угол поворота фигуры в градусах |
DocumentAPI.GeometryProperties_horizontalFlip | number | Отражение по горизонтали |
DocumentAPI.GeometryProperties_verticalFlip | number | Отражение по вертикали |
Пример
images = document:getRange():getImages()
for image in images:enumerate() do
geometryProperties = image:getGeometryProperties()
print(geometryProperties.rotation)
print(geometryProperties.horizontalFlip)
print(geometryProperties.verticalFlip)
end