fix(canvas): retain canonical frame rotation across owner changes
This commit is contained in:
@@ -266,7 +266,9 @@ func validateCanvasModel(model canvasModel) error {
|
||||
return errCanvasModel
|
||||
}
|
||||
if version == 1 && canvasChoice(component, "text", "image", "script", "plain-text", "plain-image", "icon", "frame") {
|
||||
if !canvasString(data["title"], 300) || !canvasString(data["text"], 100000) || component == "frame" && geometry["rotation"] != float64(0) {
|
||||
// Canonical frames can inherit rotation while changing owners. The
|
||||
// legacy snapshot writer's zero-angle restriction does not apply here.
|
||||
if !canvasString(data["title"], 300) || !canvasString(data["text"], 100000) {
|
||||
return errCanvasModel
|
||||
}
|
||||
if ai, exists := data["ai"]; exists && !validCanvasAI(ai, component) {
|
||||
|
||||
Reference in New Issue
Block a user