@iiif/manifold
Advanced tools
Comparing version
@@ -10,3 +10,3 @@ import { AnnotationPoint3D } from "./AnnotationPoint3D"; | ||
addRect(anno: any): void; | ||
addPoint(anno: any): void; | ||
addPoint3D(anno: any): void; | ||
} |
@@ -22,3 +22,3 @@ "use strict"; | ||
}; | ||
AnnotationGroup.prototype.addPoint = function (anno) { | ||
AnnotationGroup.prototype.addPoint3D = function (anno) { | ||
var point = new AnnotationPoint3D_1.AnnotationPoint3D(anno); | ||
@@ -25,0 +25,0 @@ point.canvasId = this.canvasId; |
@@ -6,4 +6,4 @@ "use strict"; | ||
this.isVisible = true; | ||
var xyz = anno.target.match(/.*xyz=(\d*),(\d*),(\d*)/); | ||
var nxyz = anno.target.match(/.*nxyz=(\d*),(\d*),(\d*)/); | ||
var xyz = anno.target.match(/.*(?<!n)xyz=(-?\d+\.\d+),(-?\d+\.\d+),(-?\d+\.\d+)/); | ||
var nxyz = anno.target.match(/.*nxyz=(-?\d+\.\d+),(-?\d+\.\d+),(-?\d+\.\d+)/); | ||
this.bodyValue = anno.bodyValue; | ||
@@ -10,0 +10,0 @@ this.x = Number(xyz[1]); |
@@ -10,3 +10,3 @@ import { AnnotationPoint3D } from "./AnnotationPoint3D"; | ||
addRect(anno: any): void; | ||
addPoint(anno: any): void; | ||
addPoint3D(anno: any): void; | ||
} |
@@ -20,3 +20,3 @@ import { AnnotationPoint3D } from "./AnnotationPoint3D"; | ||
}; | ||
AnnotationGroup.prototype.addPoint = function (anno) { | ||
AnnotationGroup.prototype.addPoint3D = function (anno) { | ||
var point = new AnnotationPoint3D(anno); | ||
@@ -23,0 +23,0 @@ point.canvasId = this.canvasId; |
var AnnotationPoint3D = /** @class */ (function () { | ||
function AnnotationPoint3D(anno) { | ||
this.isVisible = true; | ||
var xyz = anno.target.match(/.*xyz=(\d*),(\d*),(\d*)/); | ||
var nxyz = anno.target.match(/.*nxyz=(\d*),(\d*),(\d*)/); | ||
var xyz = anno.target.match(/.*(?<!n)xyz=(-?\d+\.\d+),(-?\d+\.\d+),(-?\d+\.\d+)/); | ||
var nxyz = anno.target.match(/.*nxyz=(-?\d+\.\d+),(-?\d+\.\d+),(-?\d+\.\d+)/); | ||
this.bodyValue = anno.bodyValue; | ||
@@ -7,0 +7,0 @@ this.x = Number(xyz[1]); |
{ | ||
"name": "@iiif/manifold", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist-umd/manifold.js", |
@@ -39,3 +39,3 @@ import { ViewingDirection, ViewingHint } from '@iiif/vocabulary'; | ||
addRect(anno: any): void; | ||
addPoint(anno: any): void; | ||
addPoint3D(anno: any): void; | ||
} | ||
@@ -42,0 +42,0 @@ export interface IMultiSelectable { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1736583
0.01%