fengyuanchen / cropperjs

JavaScript image cropper.
https://fengyuanchen.github.io/cropperjs/
MIT License
13.15k stars 2.42k forks source link

feat(cropperjs): exports `DEFAULT_TEMPLATE` #1156

Closed NamesMT closed 7 months ago

NamesMT commented 7 months ago

Allowing client to referrence/import the default template and maybe make modifications and feed to template param.

Currently the client have no way no know(?) what is the default template if leave undefined.

Not yet tested but is only an export statement. (Sorry didn't have time + no document to setup development on v2)

Summary

What kind of change does this PR introduce? (check at least one)

If changing the UI of the default theme, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

You have tested in the following browsers: (Providing a detailed version will be better.)

If adding a new feature, the PR's description includes:

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information: