Skip to content

Commit

Permalink
Add since information
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyperghost committed Nov 6, 2024
1 parent 5a38bab commit b88331c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ts/WoltLabSuite/Core/Component/Image/Cropper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* An image cropper that allows the user to crop an image before uploading it.
*
* @author Olaf Braun
* @copyright 2001-2024 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @since 6.2
*/

import ImageResizer from "WoltLabSuite/Core/Image/Resizer";
import { dialogFactory } from "WoltLabSuite/Core/Component/Dialog";
import Cropper, { CropperCanvas, CropperImage, CropperSelection } from "cropperjs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public function trackDownload(File $file): void;

/**
* Returns the image cropper configuration for this file processor.
*
* @since 6.2
*/
public function getImageCropperConfiguration(): ?ImageCropperConfiguration;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace wcf\system\file\processor;

/**
* @author Olaf Braun
* @copyright 2001-2024 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @since 6.2
*/
final class ImageCropSize implements \JsonSerializable
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

namespace wcf\system\file\processor;

/**
* The configuration for the image cropper.
*
* @author Olaf Braun
* @copyright 2001-2024 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @since 6.2
*/
final class ImageCropperConfiguration implements \JsonSerializable
{
public readonly float $aspectRatio;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace wcf\system\file\processor;

/**
* @author Olaf Braun
* @copyright 2001-2024 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @since 6.2
*/
enum ImageCropperType
{
case MinMax;
Expand Down

0 comments on commit b88331c

Please sign in to comment.