@ikijs/editor 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -648,6 +648,12 @@ var CaptureGridKeyform = class {
648
648
  prevKeyforms;
649
649
  apply(doc) {
650
650
  const deformer = doc.findWarpDeformer(this.deformerId);
651
+ const count = deformer.warps?.length ?? 0;
652
+ if (count > 1) {
653
+ throw new Error(
654
+ `deformers."${this.deformerId}".warps: ${count} grid warps \u2014 capture targets a deformer with exactly one grid warp (which entry to write into is ambiguous)`
655
+ );
656
+ }
651
657
  const warp = deformer.warps?.[0];
652
658
  if (!warp) {
653
659
  throw new Error(