gpt4 book ai didi

image - 使用鼠标事件进行 Angular 2/4 图像裁剪

转载 作者:行者123 更新时间:2023-12-02 03:51:44 25 4
gpt4 key购买 nike

我是 angular2/4 的新手。我正在寻找可以使用鼠标事件裁剪图像的 Angular 包。我搜索了很多,但能找到任何东西。希望你们也有一个。或者给我一些如何实现一个好的提示。

我找到了一些用于图像裁剪的软件包,但它们对我的情况没有多大帮助。

谢谢

最佳答案

您需要在 purejs 上包含模块。添加模块的类型,您可以将模块与接口(interface)一起使用。

我搜索了一下,找到了

  1. https://github.com/fengyuanchen/cropperjs
  2. https://www.npmjs.com/package/@types/cropperjs

对于鼠标事件,请阅读这篇文章 - Angular2: mouse event handling (movement relative to current position)

更新:

您可以使用此模块https://github.com/cstefanache/angular2-img-cropper

关于image - 使用鼠标事件进行 Angular 2/4 图像裁剪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45189429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com