| 526 | } |
| 527 | |
| 528 | void SetImageFillMode(pag::PAGScaleMode mode, const AEGP_ItemH& itemHandle, pag::ID imageID) { |
| 529 | std::string keyString = GetKeyStringWithId("ImageFillMode", imageID); |
| 530 | if (mode == pag::PAGScaleMode::LetterBox) { |
| 531 | DeleteMarkerFromComposition(itemHandle, keyString); |
| 532 | return; |
| 533 | } |
| 534 | std::string modeString = modeToStringMap.at(mode); |
| 535 | nlohmann::json value = modeString; |
| 536 | AddMarkerToComposition(itemHandle, keyString, value); |
| 537 | } |
| 538 | |
| 539 | void SetLayerEditable(bool isEditable, const AEGP_ItemH& itemHandle, pag::ID id) { |
| 540 | std::string keyString = GetKeyStringWithId("noReplace", id); |
no test coverage detected