Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement OrthographicCamera #9

Merged
merged 9 commits into from
Jul 27, 2024
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
Loading