openseadragon 1.0.5 → 1.0.6

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: 7fd0b7c2ea3aa27efdc60cfe6baf387c9152e894f6697604b14d6f7a6e1f47d6
4
- data.tar.gz: 0cff482c6013079955298b13d39bf62deb0601246eea14a4d3e84446037b4376
3
+ metadata.gz: 5fff2d6d10333ce5c7173d77c06ee9a988d0f77cb2af55117dea87e6baf4541c
4
+ data.tar.gz: 83a7cbf3c2569458ab783bc4ce832caf28126c1afe98ddc5935d98040832844a
5
5
  SHA512:
6
- metadata.gz: b564cb5be9e2dc076bdd1ef54f6045bcb12a6137b31be8b6387429c3ad479d5b9a52b31c582e5e265272ed98982d34feacdc87166a4734aa2c6ae2f0efde4960
7
- data.tar.gz: 2693365f934652bb3056f2fda7bf9cfb557123b0de6143ee788fc00874b24a9164bc659aa25ef640ff1e4baa2f6429d8d295e517ff393f2c365151eaf527bbb0
6
+ metadata.gz: 5c6a658736c966fc5c0161a1d01570fb6d00df53fee4059d78736d50f115d0f8dd9e6dd2a62e322cea8745da8e32281ed8d69839fbbe39335d3ce80d112ceccb
7
+ data.tar.gz: 1dc336da4a5ca9b9aecfdbc93a5da373bc6ed4bf60d6bb52aa769effc3a5ace14a6109e4029b13747db136461521e03b7b55fad2f75a2bfa0e1c5d437434cf9a
@@ -129,52 +129,52 @@ module Openseadragon
129
129
  prefixUrl: '',
130
130
  navImages: {
131
131
  zoomIn: {
132
- REST: path_to_image('zoomin_rest.png'),
133
- GROUP: path_to_image('zoomin_grouphover.png'),
134
- HOVER: path_to_image('zoomin_hover.png'),
135
- DOWN: path_to_image('zoomin_pressed.png')
132
+ REST: osd_asset('zoomin_rest.png'),
133
+ GROUP: osd_asset('zoomin_grouphover.png'),
134
+ HOVER: osd_asset('zoomin_hover.png'),
135
+ DOWN: osd_asset('zoomin_pressed.png')
136
136
  },
137
137
  zoomOut: {
138
- REST: path_to_image('zoomout_rest.png'),
139
- GROUP: path_to_image('zoomout_grouphover.png'),
140
- HOVER: path_to_image('zoomout_hover.png'),
141
- DOWN: path_to_image('zoomout_pressed.png')
138
+ REST: osd_asset('zoomout_rest.png'),
139
+ GROUP: osd_asset('zoomout_grouphover.png'),
140
+ HOVER: osd_asset('zoomout_hover.png'),
141
+ DOWN: osd_asset('zoomout_pressed.png')
142
142
  },
143
143
  home: {
144
- REST: path_to_image('home_rest.png'),
145
- GROUP: path_to_image('home_grouphover.png'),
146
- HOVER: path_to_image('home_hover.png'),
147
- DOWN: path_to_image('home_pressed.png')
144
+ REST: osd_asset('home_rest.png'),
145
+ GROUP: osd_asset('home_grouphover.png'),
146
+ HOVER: osd_asset('home_hover.png'),
147
+ DOWN: osd_asset('home_pressed.png')
148
148
  },
149
149
  fullpage: {
150
- REST: path_to_image('fullpage_rest.png'),
151
- GROUP: path_to_image('fullpage_grouphover.png'),
152
- HOVER: path_to_image('fullpage_hover.png'),
153
- DOWN: path_to_image('fullpage_pressed.png')
150
+ REST: osd_asset('fullpage_rest.png'),
151
+ GROUP: osd_asset('fullpage_grouphover.png'),
152
+ HOVER: osd_asset('fullpage_hover.png'),
153
+ DOWN: osd_asset('fullpage_pressed.png')
154
154
  },
155
155
  rotateleft: {
156
- REST: path_to_image('rotateleft_rest.png'),
157
- GROUP: path_to_image('rotateleft_grouphover.png'),
158
- HOVER: path_to_image('rotateleft_hover.png'),
159
- DOWN: path_to_image('rotateleft_pressed.png')
156
+ REST: osd_asset('rotateleft_rest.png'),
157
+ GROUP: osd_asset('rotateleft_grouphover.png'),
158
+ HOVER: osd_asset('rotateleft_hover.png'),
159
+ DOWN: osd_asset('rotateleft_pressed.png')
160
160
  },
161
161
  rotateright: {
162
- REST: path_to_image('rotateright_rest.png'),
163
- GROUP: path_to_image('rotateright_grouphover.png'),
164
- HOVER: path_to_image('rotateright_hover.png'),
165
- DOWN: path_to_image('rotateright_pressed.png')
162
+ REST: osd_asset('rotateright_rest.png'),
163
+ GROUP: osd_asset('rotateright_grouphover.png'),
164
+ HOVER: osd_asset('rotateright_hover.png'),
165
+ DOWN: osd_asset('rotateright_pressed.png')
166
166
  },
167
167
  previous: {
168
- REST: path_to_image('previous_rest.png'),
169
- GROUP: path_to_image('previous_grouphover.png'),
170
- HOVER: path_to_image('previous_hover.png'),
171
- DOWN: path_to_image('previous_pressed.png')
168
+ REST: osd_asset('previous_rest.png'),
169
+ GROUP: osd_asset('previous_grouphover.png'),
170
+ HOVER: osd_asset('previous_hover.png'),
171
+ DOWN: osd_asset('previous_pressed.png')
172
172
  },
173
173
  next: {
174
- REST: path_to_image('next_rest.png'),
175
- GROUP: path_to_image('next_grouphover.png'),
176
- HOVER: path_to_image('next_hover.png'),
177
- DOWN: path_to_image('next_pressed.png')
174
+ REST: osd_asset('next_rest.png'),
175
+ GROUP: osd_asset('next_grouphover.png'),
176
+ HOVER: osd_asset('next_hover.png'),
177
+ DOWN: osd_asset('next_pressed.png')
178
178
  }
179
179
  }
180
180
  }.with_indifferent_access
data/config/importmap.rb CHANGED
@@ -1,4 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- pin_all_from File.expand_path('../app/assets/javascripts/openseadragon', __dir__), under: 'openseadragon'
4
- pin_all_from File.expand_path('../vendor/assets/javascripts', __dir__)
3
+ pin_all_from File.expand_path('../app/assets/javascripts/openseadragon', __dir__), under: 'openseadragon-rails'
@@ -14,10 +14,6 @@ module Openseadragon
14
14
  end
15
15
  end
16
16
 
17
- initializer 'openseadragon.assets.precompile' do |app|
18
- app.config.assets.precompile += %w[node_modules/openseadragon/build/openseadragon/images/*.png]
19
- end
20
-
21
17
  initializer "openseadragon.importmap", before: "importmap" do |app|
22
18
  app.config.importmap.paths << Engine.root.join("config/importmap.rb") if app.config.respond_to?(:importmap)
23
19
  end
@@ -1,3 +1,3 @@
1
1
  module Openseadragon
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openseadragon-rails",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Openseadragon support for Rails apps",
5
5
  "main": "app/assets/javascripts/openseadragon/index.js",
6
6
  "module": "app/assets/javascripts/openseadragon/index.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openseadragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne