Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
/ mirador-ruler Public archive

A Mirador 2 plugin that allows users to overlay a configurable ruler on any window.

Notifications You must be signed in to change notification settings

UCLALibrary/mirador-ruler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirador-ruler

When an IIIF physical dimension service is provided for an image resource, this plugin renders a ruler overlay on a window.

Currently, this plugin supports Mirador 2.5+.

Setup

You can find production-ready build artifacts inside the 'dist/' folder.

Alternatively, clone this repository and do:

npm install
gulp

This will minify all source files as well as download and tack on one dependency, namely UCLALibrary's fork of the OpenSeadragonScalebar plugin.

Now look in the 'dist/' folder. Drop these files into your Mirador build output directory and point your webpage to them:

<!DOCTYPE html>
<html>
    <head>
        ...
        <link rel="stylesheet" type="text/css" href="mirador-combined.css">
        <link rel="stylesheet" type="text/css" href="MiradorRuler.min.css">
        ...
    </head>
    <body>
        <div id="viewer"></div>

        <script src="mirador.js"></script>
        <script src="MiradorRuler.min.js"></script>

        <script type="text/javascript">

        $(function() {
            Mirador({
                ...

Also, be sure to put each of the files in 'images/' in your Mirador directory.

About

A Mirador 2 plugin that allows users to overlay a configurable ruler on any window.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published