pageflow-linkmap-page 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c428ede361d69d72f0868d03a251c11997208893fcde9e424a9e4e205f0a1d65
4
- data.tar.gz: 70a18281efb93e3335290cbc339f331be440a8f3736285416271a03d74e79e81
3
+ metadata.gz: 46a1404b1e2aa726d653f2d8fe6276c299b4a2235f12fa6f82b19bb3a622ed68
4
+ data.tar.gz: c8ee99540b5544fefca586f73c3e42a1f173486440ffb651371cf87a4b2871cc
5
5
  SHA512:
6
- metadata.gz: 6eaa4497dbfcbf2ac9d63e5453f507c9c1179c6b6b7d91e61bf69719167b2a85557f5affa3dc28ed91166067f3c1972c23dcac4babb57d57a234204263d690dc
7
- data.tar.gz: 04567addacca9b750f6eaf8e79ea3041886c8d141c1d7c3784d5d28ceb56cb00884f763f64e59f07327cfb445e5023d3f932023241442f6cc9ae142e6c2a7d1c
6
+ metadata.gz: 51f783bbe8975398f9866020892b6af296048ba50d063b3d618f1066e89be180f2eb19068636a1d6acad4434940f4796f9c3ec1a628c5c5af0518aaa2d759f71
7
+ data.tar.gz: 08a4b2a21af237eccec303871fe8054f1dd17c55c37d783b92c497c73ee828e559360e779f6c6b7b8ae3d1c48b8f67f4560b4bcc79a7985bd1769b80778f921f
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 1.2.1
4
+
5
+ 2018-10-18
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/v1.2.0...v1.2.1)
8
+
9
+ - Enforce min size when dragging new hotspot
10
+ ([#37](https://github.com/codevise/pageflow-linkmap-page/pull/37))
11
+
3
12
  ### Version 1.2.0
4
13
 
5
14
  2018-07-30
@@ -66,6 +66,14 @@ pageflow.linkmapPage.AreaMasksPreviewEmbeddedView = Backbone.Marionette.ItemView
66
66
  var width = Math.abs(mouseUpEvent.offsetX - dragStartOffset.x);
67
67
  var height = Math.abs(mouseUpEvent.offsetY - dragStartOffset.y);
68
68
 
69
+ if (width < 10) {
70
+ width = 50;
71
+ }
72
+
73
+ if (height < 10) {
74
+ height = 50;
75
+ }
76
+
69
77
  view.selection.deferred.resolve({
70
78
  left: left / view.$el.width() * 100,
71
79
  top: top / view.$el.height() * 100,
@@ -216,4 +224,4 @@ pageflow.linkmapPage.AreaMasksPreviewEmbeddedView = Backbone.Marionette.ItemView
216
224
 
217
225
  context.fillStyle = context.createPattern(this.patternSource, 'repeat');
218
226
  }
219
- });
227
+ });
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module LinkmapPage
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-linkmap-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-30 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow