feat: enhance Comfy API handling and add tests for branded non-Z diffusion models

This commit is contained in:
syntaxbullet
2026-07-09 21:56:25 +02:00
parent c3a75cf0d6
commit 317a7bbf5f
11 changed files with 532 additions and 37 deletions

View File

@@ -44,13 +44,14 @@ export function resolveLayerDrop(options: {
if (isDescendantLayer(sourceInfo.layer, options.target.layer.id)) return undefined;
const verticalRatio = Math.max(0, Math.min(1, options.verticalRatio));
const dropIntoGroup = options.target.layer.type === "group" && verticalRatio >= 0.33 && verticalRatio <= 0.66;
const targetLayer = options.target.layer;
const dropIntoGroup = targetLayer.type === "group" && verticalRatio >= 0.33 && verticalRatio <= 0.66;
if (dropIntoGroup) {
return {
layerId: options.sourceLayerId,
toArtboardId: options.target.artboardId,
toParentGroupId: options.target.layer.id,
toIndex: options.target.layer.children.length,
toParentGroupId: targetLayer.id,
toIndex: targetLayer.children.length,
};
}