Skip to content

Commit

Permalink
Merge pull request #9 from IIIF-Commons/ortho-camera-pullreq
Browse files Browse the repository at this point in the history
Implement OrthographicCamera
  • Loading branch information
vincentmarchetti authored Jul 27, 2024
2 parents 55a9049 + 2f4d510 commit 8b024f7
Show file tree
Hide file tree
Showing 83 changed files with 705 additions and 228 deletions.
3 changes: 3 additions & 0 deletions dist-commonjs/Annotation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist-commonjs/Annotation.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist-commonjs/Camera.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { IManifestoOptions, AnnotationBody, PointSelector } from "./internal";
export declare class Camera extends AnnotationBody {
constructor(jsonld?: any, options?: IManifestoOptions);
get isPerspectiveCamera(): boolean;
get isOrthographicCamera(): boolean;
/**
@returns full angular size of perspective viewport in vertical direction.
Angular unit is degrees
Expand All @@ -13,6 +14,16 @@ export declare class Camera extends AnnotationBody {
**/
get FieldOfView(): number | undefined;
/**
@returns full linear size of orthographic viewport in vertical direction.
linear unit is Scene global unit of measure
Name of this property was originally Height, has been changed
at this revision to ViewHeight:
See issues at https://github.com/IIIF/api/issues/2289
**/
getViewHeight(): number | undefined;
get ViewHeight(): number | undefined;
/**
* @return : if not null, is either a PointSelector, or an object
* with an id matching the id of an Annotation instance.
**/
Expand Down
33 changes: 33 additions & 0 deletions dist-commonjs/Camera.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist-commonjs/Camera.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist-commonjs/ManifestResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ export declare class ManifestResource extends JSONLDResource {
options: IManifestoOptions;
constructor(jsonld: any, options?: IManifestoOptions);
getIIIFResourceType(): IIIFResourceType;
/**
* returns the PropertyValue which in turn allows a language-specific string
* encoded in the json as the "label" property
* @example
* var label = manifest.getLabel().getValue(); // returns the string for default locale
*
* @example
* var label = manifest.getLabel().getValue(locale); // locale a string , examples
* // would be "fr", "en-US",
**/
getLabel(): PropertyValue;
getSummary(): PropertyValue;
getDefaultLabel(): string | null;
getMetadata(): LabelValuePair[];
getRendering(format: RenderingFormat): Rendering | null;
Expand Down
17 changes: 17 additions & 0 deletions dist-commonjs/ManifestResource.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8b024f7

Please sign in to comment.