Skip to content

v2 initialCoverage as replacement for v1 autocroparea covers the canvas rather than the image #1285

@gloriousjob

Description

@gloriousjob

Cropper version

2.1.0

Link to minimal reproduction

https://fengyuanchen.github.io/cropperjs/v2/playground.html

Steps to reproduce

  1. Go to Playground.
  2. Scroll down to <cropper-selection>
  3. Maximize the initiial-coverage

What is expected?

Container should limit to image. When autocroparea was set to 1 in v1, that was the outcome.

EDIT: v1 had this functionality when ViewMode was set to 1 or 2.

What is actually happening?

Container limits to the whole canvas, including the part that is not the image.

System Info

Any additional comments?

initialCoverage should not be considered a replacement of autocroparea if it acts differently. Either a different migration should be provided or initialCoverage should limit to the image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions