diff --git a/CHANGELOG.md b/CHANGELOG.md index 95fb624..54aec48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.0.0-beta.2 - 2019-10-30 +### Removed +- Removed incorrect toArray method + ## 1.0.0-beta.1 - 2019-10-08 ### Added -- Initial release \ No newline at end of file +- Initial release diff --git a/README.md b/README.md index 2db456c..5b7eac8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Image Hotspots (beta) -Image Hotspots fieldtype for adding hotspots to images in Craft CMS. +Image Hotspots fieldtype for adding multiple hotspots to images from a matrix or super-table in Craft CMS. ## Setup diff --git a/composer.json b/composer.json index 7607366..7172c7e 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "born05/craft-imagehotspots", "description": "Image Hotspots fieldtype for Craft CMS", - "version": "1.0.0-beta.1", + "version": "1.0.0-beta.2", "type": "craft-plugin", "keywords": [ "hotspots", diff --git a/src/models/Hotspot.php b/src/models/Hotspot.php index 9ee8b39..ca5f1ba 100644 --- a/src/models/Hotspot.php +++ b/src/models/Hotspot.php @@ -36,17 +36,4 @@ public function getCoords(): string { return "{$this->x};{$this->y})"; } - - /** - * Returns the coords as an array. - * - * @return array - */ - public function toArray(): array - { - return [ - 'x' => $this->x, - 'y' => $this->y, - ]; - } }