Class: WaxIiif::ImageTile

Inherits:
ImageVariant show all
Defined in:
lib/wax_iiif/image_tile.rb

Overview

Class ImageTile is a specific ImageVariant used when generating a stack of tiles suitable for Mirador-style zooming interfaces. Each instance of ImageTile represents a single tile.

Instance Attribute Summary

Attributes inherited from ImageVariant

#id, #uri

Instance Method Summary collapse

Methods inherited from ImageVariant

#generate_image_id, #height, #mime_type, #width

Methods included from Utilities::Helpers

#escape_yaml, #generate_build_location, #generate_id, #generate_image_location, #get_data_path, #save_to_disk

Constructor Details

#initialize(data, config, tile) ⇒ ImageTile

Initializing this

Parameters:

  • data (Hash)

    A Image Data object.

  • config (WaxIiif::Config)

    The configuration object

  • tile (Hash<width: Number, height: Number, x Number, y: Number, xSize: Number, ySize: Number>)

    A hash of parameters that defines this tile.



18
19
20
21
# File 'lib/wax_iiif/image_tile.rb', line 18

def initialize(data, config, tile)
  @tile = tile
  super(data, config)
end