File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 66 " prettier"
77 ],
88 "rules" : {
9- "@typescript-eslint/ban-ts-comment" : " warn " ,
9+ "@typescript-eslint/ban-ts-comment" : " off " ,
1010 "@typescript-eslint/no-unused-vars" : " error" ,
11- "@typescript-eslint/no-explicit-any" : " warn "
11+ "@typescript-eslint/no-explicit-any" : " off "
1212 }
1313}
Original file line number Diff line number Diff line change 66 ManifestNormalized ,
77 Service ,
88} from "@iiif/presentation-3" ;
9+
910import { decodeContentState } from "@iiif/helpers" ;
1011
1112export const getCanvasResource = ( canvas : Canvas ) => {
@@ -96,9 +97,10 @@ export const parseIiifContent = (iiifContent: string) => {
9697 } ;
9798 if ( json ?. id ?. includes ( "#xywh=" ) ) {
9899 const [ canvasId , xywh ] = json . id . split ( "#xywh=" ) ;
100+ active . canvas = canvasId ;
99101 active . selector = {
100102 type : "FragmentSelector" ,
101- value : `xywh=${ xywh } `
103+ value : `xywh=${ xywh } ` ,
102104 } ;
103105 }
104106 break ;
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
1212} from "src/context/viewer-context" ;
1313import { OsdSvgOverlay } from "src/lib/openseadragon-svg" ;
1414import { parseAnnotationTarget } from "src/lib/annotation-helpers" ;
15- import { getActiveSelector } from "src/lib/iiif" ;
1615
1716import { ParsedAnnotationTarget } from "src/types/annotations" ;
1817import { getImageServiceURI } from "src/lib/iiif" ;
@@ -339,7 +338,7 @@ export const handleSelectorZoom = (
339338 selector : any ,
340339 openSeadragonViewer : any ,
341340 canvas : CanvasNormalized ,
342- configOptions : ViewerConfigOptions
341+ configOptions : ViewerConfigOptions ,
343342) => {
344343 if ( ! openSeadragonViewer || ! selector || ! canvas ) return ;
345344
@@ -353,16 +352,16 @@ export const handleSelectorZoom = (
353352 selector : {
354353 type : "PointSelector" ,
355354 x : selector . x ,
356- y : selector . y
357- }
355+ y : selector . y ,
356+ } ,
358357 } ;
359358 } else if ( selector . type === "SvgSelector" ) {
360359 target = {
361360 source : canvas . id ,
362361 selector : {
363362 type : "SvgSelector" ,
364- value : selector . value
365- }
363+ value : selector . value ,
364+ } ,
366365 } ;
367366 }
368367
You can’t perform that action at this time.
0 commit comments