Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
2d62ed3
Styled the buttons to resemble links
vincentmarchetti Mar 5, 2024
73616ec
Added unit testing for ScaleTransform
vincentmarchetti Mar 5, 2024
52cb1d4
Implemented the negative scale example
vincentmarchetti Mar 5, 2024
e7bb38c
Tinkered with styling
vincentmarchetti Mar 5, 2024
78f2468
rewrote the is*Transform functions to be is*Transform values
vincentmarchetti Mar 15, 2024
d490dbd
Modified to accommodate the changed signature of the
vincentmarchetti Mar 15, 2024
9e473c1
implement and use the boolean isModel attribute defined in Annotation…
vincentmarchetti Mar 15, 2024
6789a0d
Added testing of a boolean valued attribute "isModel"
vincentmarchetti Mar 17, 2024
54ba7de
reimplemented the isModel function in ay that passes unit testing
vincentmarchetti Mar 18, 2024
0b1cf58
removed an unneeded console message
vincentmarchetti Mar 19, 2024
25e7e26
Added tests to demonstrate the parseManifest function
vincentmarchetti Mar 19, 2024
b1a01d2
Added additional demonstratations of parseManifest
vincentmarchetti Mar 20, 2024
72b0bd8
added documentation
vincentmarchetti Mar 20, 2024
72fc5c4
updated docs to latest documentation developed in manifesto:3dtsg-dev
vincentmarchetti Mar 20, 2024
bf8f4e7
Added comment block for Typedoc generation,
vincentmarchetti Mar 21, 2024
1e1e37e
Added comment block for the getScenes function
vincentmarchetti Mar 21, 2024
61775dd
Added documentation , which will soon be obsolete
vincentmarchetti Mar 22, 2024
22c1ee0
Added color-string npm package to dependencies
vincentmarchetti Mar 22, 2024
c68d604
Implemented a Color class based on color-string js library
vincentmarchetti Mar 22, 2024
b9d965b
Implemented the background color using the newly Implemented
vincentmarchetti Mar 22, 2024
ceef860
new files to support Light as body of an annotation
vincentmarchetti Mar 23, 2024
3667c02
continue support for Light
vincentmarchetti Mar 23, 2024
eb3d00d
Added a unit test reading a manifest with a Light resource
vincentmarchetti Mar 24, 2024
8faf0aa
Modified to use the AnnotationBodyParser to getBody3D
vincentmarchetti Mar 24, 2024
2eb19ca
Added testing of ambient_green_light
vincentmarchetti Mar 24, 2024
d93aee0
Implemented getIntensity() with documented restrictions on what
vincentmarchetti Mar 24, 2024
5455c24
Added testing of color and intensity of the light
vincentmarchetti Mar 24, 2024
e8e7651
Removed the usage of bigint type, an unnecessary complication
vincentmarchetti Mar 24, 2024
bdead3c
removing the use of bigint type
vincentmarchetti Mar 24, 2024
db4dc70
added testing of color of light and intensity
vincentmarchetti Mar 24, 2024
5513c1d
Made headlight controllable with checkbox
vincentmarchetti Mar 24, 2024
05d029c
Added a zero intensity point light so that X3DOM wouldn't add
vincentmarchetti Mar 24, 2024
b53db64
Added the ambient-green-light manifest to options
vincentmarchetti Mar 25, 2024
b1f9d63
Implemented interpreting a ambient light in annotation body
vincentmarchetti Mar 25, 2024
6255cb0
Removed the reference to "shadow of former self" and the poem. That p…
vincentmarchetti Mar 25, 2024
8f8a32c
Installed threejs-math as a dependency
vincentmarchetti Mar 26, 2024
abad9d5
Demonstrated through a unit test ising the threejs-math package
vincentmarchetti Mar 26, 2024
ae428ce
Demonstrated that a threejs_math.Vector3 instance can be returned
vincentmarchetti Mar 26, 2024
1dff945
Testing reading a manifest with a directional light
vincentmarchetti Mar 27, 2024
3ab7bc0
Implement and demonstrate the direction light manifest, but with mod…
vincentmarchetti Mar 28, 2024
af36470
removed unneeded console log message
vincentmarchetti Apr 1, 2024
f41bf07
Implemented and tested an annotationIdMap for Manifest
vincentmarchetti Apr 1, 2024
184471f
Updated documentation
vincentmarchetti Apr 1, 2024
3e6bbe2
Merge branch 'try-threejs-math' into 3dtsg-dev
vincentmarchetti Apr 1, 2024
30a0c83
imlemented a getter style function lookAtLocation : Vector3
vincentmarchetti Apr 2, 2024
3a8cde2
Initial implementation of the RelativeRotation function,
vincentmarchetti Apr 2, 2024
de845c5
Added a camera-based test manifesto to testing suite
vincentmarchetti Apr 2, 2024
4f64bd9
Changed name of RelativeRotation to (perhaps) more standardized
vincentmarchetti Apr 2, 2024
3c4b38f
Updated documentation
vincentmarchetti Apr 2, 2024
53d0f67
initial implementation of a Camera class
vincentmarchetti Apr 3, 2024
55ea3aa
Added a test for parsing manifest with perspective camera
vincentmarchetti Apr 4, 2024
10914c9
Removed
vincentmarchetti Apr 4, 2024
3ab5988
Implemented the getPropertyAsObject, an internal method for
vincentmarchetti Apr 6, 2024
b9440d2
fixed a javascript bracket error
vincentmarchetti Apr 6, 2024
e0c5fb6
re-activated the 3d manifest tests
vincentmarchetti Apr 6, 2024
1c8d3d6
Implement using the getPropertyAsObject for the getTarget of an annot…
vincentmarchetti Apr 6, 2024
fa202a4
rewrote test with new code that the getTarget of an Annotation is alw…
vincentmarchetti Apr 6, 2024
60b2997
Much cleaning and refactoring, at this commit
vincentmarchetti Apr 6, 2024
e6661a3
Some more fixing up based on unit testing
vincentmarchetti Apr 6, 2024
d453150
Skipping the test pres3-3d which has been superseded by the 3dtsg dev…
vincentmarchetti Apr 7, 2024
4a67875
Changed to use getBody instead of the deprecated getBody3D
vincentmarchetti Apr 7, 2024
7cf4cd4
debugging fixes
vincentmarchetti Apr 7, 2024
9da6e3b
Corrected a usage of the Array.concat method
vincentmarchetti Apr 7, 2024
a60bc61
removed console.log messages
vincentmarchetti Apr 7, 2024
9eb160a
implemented the Geometry3d.cameraRelativeRotation function, and added…
vincentmarchetti Apr 7, 2024
ffa7421
implement and test a lightRelativeRotation function
vincentmarchetti Apr 8, 2024
c072af2
Replaced reference to getBody3D() with getBody()[0]
vincentmarchetti Apr 8, 2024
228d29f
replaced the deprecated getBody3D() with getBody()[0]
vincentmarchetti Apr 8, 2024
591448c
Merge branch '3dtsg-dev' into 3dtsg-main
vincentmarchetti Apr 8, 2024
8e61e9c
Committed the compiled ='built' manifesto package for deployment
vincentmarchetti Apr 8, 2024
e81c95d
modified the .*ignore files
vincentmarchetti Apr 8, 2024
bf70d26
Aded pkg-tests to ignored files
vincentmarchetti Apr 8, 2024
241b080
Updated docs
vincentmarchetti Apr 8, 2024
25a0b5f
Added documentation on getBody3D deprecated function
vincentmarchetti Apr 8, 2024
66ed4aa
update build of modules
vincentmarchetti Apr 8, 2024
cb3ab07
Rewriting the README document
vincentmarchetti Apr 9, 2024
f6f6e57
Updated docs and build
vincentmarchetti Apr 9, 2024
2c7de4e
defined a pre-release version
vincentmarchetti Apr 9, 2024
4d08f2f
revert to using the iiif/3d "official" draft manifests, all tests sti…
vincentmarchetti Apr 9, 2024
a104d14
set links to repository.url and issues to IIIF-Commons/manifest repos…
vincentmarchetti Apr 10, 2024
7c6bc4c
rebuilt modules and doc with new version pre-release
vincentmarchetti Apr 10, 2024
ab85aa9
Added other auto-generated files and folders to .gitignore
vincentmarchetti Apr 10, 2024
fc36b92
Added to facilitate working with this code in Codesandbox site
vincentmarchetti Apr 10, 2024
9164a6b
Merge pull request #126 from vincentmarchetti/3dtsg-main
vincentmarchetti Apr 11, 2024
3224e5b
Updated README.md
vincentmarchetti Apr 11, 2024
6ef8611
Merge pull request #127 from vincentmarchetti/3dtsg-main
vincentmarchetti Apr 11, 2024
0ecc6f3
Update build-test.yml
vincentmarchetti Apr 11, 2024
31d6147
removed built files to see if Github will rebuild them
vincentmarchetti Apr 12, 2024
7921d5f
restored the npm run build to workflow
vincentmarchetti Apr 12, 2024
c8810e5
restored the built modules
vincentmarchetti Apr 12, 2024
41e1493
Added code so that if the client did not provide any
vincentmarchetti Apr 14, 2024
ddcd3bd
added a unit test for localizing the manifest label value
vincentmarchetti Apr 14, 2024
d4e5621
Included the manifest label localization test.
vincentmarchetti Apr 14, 2024
53b8841
update the build products
vincentmarchetti Apr 14, 2024
73e9ccf
Modified code to correctly handle retrieving the "source" property
vincentmarchetti Apr 23, 2024
fdd95e4
Added unit testing code to test the recent modification to the
vincentmarchetti Apr 23, 2024
ed6e50c
Set package.json version to "4.3.0-draft3dapi.0.2.0"
vincentmarchetti Apr 23, 2024
4d1c0e5
updated version
vincentmarchetti Apr 23, 2024
04620b2
Update build-test.yml
vincentmarchetti Apr 23, 2024
64d671a
Merge pull request #128 from vincentmarchetti/3dtsg-main
vincentmarchetti Apr 23, 2024
ef8dc2c
Rebuilt documentation
vincentmarchetti Apr 24, 2024
56e1b46
Implement and test isSpecificResource and isAnnotationBody properties
vincentmarchetti Apr 27, 2024
b3553ab
Set package version to -draft3dapi-0.3.0
vincentmarchetti Apr 27, 2024
7863ef7
edited readme.md and rebuild docs
vincentmarchetti Apr 27, 2024
798edde
Update ci.json to use Node 16
vincentmarchetti Apr 27, 2024
d1364fe
Update ci.json to use Node 16
vincentmarchetti Apr 27, 2024
2589b25
rename an Annotation property to LookAtLocation, to match the capital…
vincentmarchetti Apr 29, 2024
fc9db74
Implement the getLookAt property on camera
vincentmarchetti Apr 29, 2024
16046c5
Corrected the documentation of the cameraRelativeRotation function
vincentmarchetti Apr 29, 2024
cdd0417
Prepared unit testing of identifying the direction and rotation
vincentmarchetti Apr 29, 2024
cce1acc
rebuild modules and documentation
vincentmarchetti Apr 29, 2024
77899dc
Merge branch '3dtsg-main' of github.com:vincentmarchetti/manifesto in…
vincentmarchetti Apr 29, 2024
1b58d20
Fixed misspelling in the isPerspectiveCamera accessor
vincentmarchetti Apr 30, 2024
1f30989
rebuilt modules
vincentmarchetti Apr 30, 2024
c4cc7a7
Added test that the isModel value of a camera is false
vincentmarchetti Apr 30, 2024
434ca5c
typescript wanted to change the way it expressed the signature of the…
vincentmarchetti Apr 30, 2024
71d0e8f
updated documentation
vincentmarchetti May 1, 2024
83583cb
rebuilt modules
vincentmarchetti May 1, 2024
8118f51
Updated version to draft3dapi-0.4.0
vincentmarchetti May 1, 2024
f5642b7
Merge pull request #129 from vincentmarchetti/3dtsg-main
vincentmarchetti May 1, 2024
4a51dc1
Added a uni test for the case of a lookAt property of a camera whose
vincentmarchetti May 7, 2024
e2626ae
Implemented allowing the value of lookAt to be a PointSelector
vincentmarchetti May 7, 2024
4b0b5eb
Corrected an error the testing of the opertion of the rotation
vincentmarchetti May 7, 2024
62dec8c
Implemented testing of a camera whose lookAt is a point selector
vincentmarchetti May 7, 2024
ba41cba
Added documentation on the getLookAt function
vincentmarchetti May 7, 2024
43a9536
rebuilt modules and documentation
vincentmarchetti May 7, 2024
81fd2f3
Added a short test demonstrating that the return value
vincentmarchetti May 11, 2024
2e2660e
Added unit testing for a spotlight resource
vincentmarchetti May 11, 2024
9d25a6d
Implemented and test Angle property of SpotLight
vincentmarchetti May 12, 2024
dfda656
implement and test the lookAt property of light
vincentmarchetti May 13, 2024
1c52474
rebuild modules and documentation
vincentmarchetti May 13, 2024
c64795a
Implemented the Location getter
vincentmarchetti May 14, 2024
985243c
implemented the Source getter
vincentmarchetti May 14, 2024
cd2b91c
Adjusted the test condition to match the edited manifest
vincentmarchetti May 14, 2024
29ec91c
rebuilt modules and docs, set package draft version to 0.5.0
vincentmarchetti May 14, 2024
0d15510
Updated with links to example manifests and prototype viewers.
vincentmarchetti May 14, 2024
a9a01e6
Merge pull request #130 from vincentmarchetti/3dtsg-main
vincentmarchetti May 15, 2024
82847a9
Merge pull request #5 from IIIF-Commons/draft3dapi
glenrobson May 22, 2024
84f186d
Using another Version name, to use as distinct npm package
luguenth May 23, 2024
f48cee0
- changed versioning, now seperated from original manifesto versioning
luguenth May 24, 2024
f41f7ff
using the 3d tests instead of the normal tests in the pipeline
luguenth May 24, 2024
e71da4c
added new links in the documentation
luguenth May 24, 2024
b37efa0
replaced the manifest used to test the code from the vincentmarchetti…
vincentmarchetti May 28, 2024
cbf12a4
re-enabled the unit testing for the ambient light manifest
vincentmarchetti May 28, 2024
cad963b
Merge pull request #7 from IIIF-Commons/kshell-dev
vincentmarchetti May 28, 2024
1afd26e
renamed module name
luguenth Jul 15, 2024
9449364
added 3d test to prevent non 3d tests getting called
luguenth Jul 17, 2024
b1d8f39
add organization to package name
luguenth Jul 17, 2024
55a9049
added optioon top publish the package public
luguenth Jul 17, 2024
9a96bcf
Modified to use the IIIF/3d version of the ManifestResource
vincentmarchetti Jul 18, 2024
68ab0e7
added a test for an orthographic camera
vincentmarchetti Jul 18, 2024
221398d
Added code allowsing for targets to be Scene or Canvas
vincentmarchetti Jul 18, 2024
335b24e
Added implementation for a orthographic camera and its ViewHeight pro…
vincentmarchetti Jul 18, 2024
4957ce1
Added getSummary method
vincentmarchetti Jul 18, 2024
126f74c
Code for an orthographic camera test
vincentmarchetti Jul 18, 2024
83036e8
fixed a reported vulnerability by updating the modules
vincentmarchetti Jul 18, 2024
8d8e865
Added an additional command test:all which runs both Presentation v3 …
vincentmarchetti Jul 18, 2024
2f4d510
Build the modules and the documentation with latest code
vincentmarchetti Jul 18, 2024
8b024f7
Merge pull request #9 from IIIF-Commons/ortho-camera-pullreq
vincentmarchetti Jul 27, 2024
2850d5f
Removed compiled modules from git repository,
vincentmarchetti Jul 31, 2024
5589348
Added the compiled modules to the .gitignore list
vincentmarchetti Jul 31, 2024
29029e8
Merge pull request #11 from IIIF-Commons/remove-modules-pullreq
gjcope Jul 31, 2024
3c3bc94
Added a get accessor for the Rotation property
vincentmarchetti Aug 4, 2024
5e64e05
Added an implementation of a function eulerFromRotateTransform, that …
vincentmarchetti Aug 4, 2024
b3e0ae4
Added a unit test for the eulerFromRotateTransform
vincentmarchetti Aug 4, 2024
3e3fb20
Rebuilt documentation automatically
vincentmarchetti Aug 4, 2024
983d702
reubuilt documentation with the new eulerFromRotateTransform function
vincentmarchetti Aug 4, 2024
a607494
Added a TextualBody class and the parsing of a bodyValue property def…
vincentmarchetti Aug 12, 2024
f2ac4cc
Added a test for the c_comment_annotation_camera example manifest
vincentmarchetti Aug 12, 2024
97f378f
Rebuild documentation
vincentmarchetti Aug 12, 2024
f5000f4
Adding release info
glenrobson Aug 14, 2024
7575218
Merge pull request #12 from IIIF-Commons/euler-angle-pullreq
vincentmarchetti Aug 14, 2024
4debff6
Merge pull request #13 from IIIF-Commons/add_release_notes
glenrobson Aug 14, 2024
45df128
Merge pull request #14 from IIIF-Commons/whale-anno-pullreq
glenrobson Aug 14, 2024
03eb889
Update package.json
glenrobson Aug 14, 2024
bb5a45f
Merge pull request #16 from IIIF-Commons/glenrobson-patch-1
glenrobson Aug 14, 2024
161af4c
Update package.json
glenrobson Aug 14, 2024
f46cfcd
Merge pull request #17 from IIIF-Commons/glenrobson-patch-1
glenrobson Aug 15, 2024
131acd0
Added a unit test that demonstrates the failure of a camera.LookAt pr…
vincentmarchetti Aug 19, 2024
7c29217
Changed code that the new unit-test, and all other 3d unit-tests, pass.
vincentmarchetti Aug 19, 2024
3c61b2d
rewrote the Camera.LookAt get accessor to ensure that
vincentmarchetti Aug 19, 2024
f9a9f5e
Moving documentation to workflow action
glenrobson Sep 11, 2024
b2dd614
Merge pull request #19 from IIIF-Commons/fix-null-lookat
JulieWinchester Sep 11, 2024
3f21555
Merge pull request #20 from IIIF-Commons/auto-create-docs
JulieWinchester Sep 11, 2024
8b009ef
Update Geometry3d.ts
vincentmarchetti Sep 12, 2024
736f84d
A comment added to getRotation method and Rotation accessor, will be …
vincentmarchetti Sep 25, 2024
d57a167
Merge pull request #22 from IIIF-Commons/minor-documentation-update
glenrobson Sep 25, 2024
1708bb1
Update docs.yml
glenrobson Sep 25, 2024
0c96d70
Merge pull request #23 from IIIF-Commons/glenrobson-patch-1
vincentmarchetti Sep 25, 2024
70208e0
Update docs.yml
glenrobson Sep 25, 2024
bb146c9
Merge pull request #24 from IIIF-Commons/glenrobson-patch-1
glenrobson Sep 25, 2024
fba42f7
Update docs.yml
glenrobson Sep 25, 2024
2143f00
Merge pull request #25 from IIIF-Commons/glenrobson-patch-1
glenrobson Sep 25, 2024
6bf5f92
Adding workflow dispatch back
glenrobson Sep 25, 2024
cee8393
Merge pull request #26 from IIIF-Commons/glenrobson-patch-1
glenrobson Sep 25, 2024
b35859a
Fix failing test
JulieWinchester Feb 4, 2025
6d04751
Refactor AnnotationBody to handle SpecificResource content
JulieWinchester Feb 4, 2025
f43a782
Downgraded the dependency on npm isomorphic-unfetch from ^4 to ^3 .
vincentmarchetti Feb 5, 2025
71316dd
Merge remote-tracking branch 'origin/downgrade-isomorphic-unfetch' in…
JulieWinchester Feb 6, 2025
dd6259e
Merge pull request #28 from IIIF-Commons/downgrade-isomorphic-unfetch
JulieWinchester Feb 6, 2025
a3aef7d
Add AnnotationBody getResourceID, getSource can handle source as URI,…
JulieWinchester Feb 14, 2025
2244f53
Merge pull request #27 from JulieWinchester/annotation_body
vincentmarchetti Feb 24, 2025
942e1d7
Add 3D transform helper methods
JulieWinchester Mar 17, 2025
c268ebd
Update version to 0.6.0
JulieWinchester Mar 17, 2025
c85467b
Fix mime type in test
JulieWinchester Mar 17, 2025
6bb6be3
Merge branch 'master' into transforms_wip
JulieWinchester Apr 15, 2025
ee53fa9
Add ability to retrieve non-content annotations from Canvas/Scene and…
JulieWinchester Apr 17, 2025
c9edfc1
Bug fix to return null for light lookAt getter when there is not look…
gjcope May 12, 2025
33cbf9c
Support lookAt being SpecificResource
JulieWinchester May 12, 2025
59f4fc0
Support for TextualBody in AnnotationBodyParser and convenience funct…
gjcope May 12, 2025
7e9484e
Merge pull request #30 from IIIF-Commons/dev-bugfix-light-lookat
vincentmarchetti May 13, 2025
8d4a683
Added near/far support to Camera and updated fieldOfView to return un…
gjcope May 13, 2025
019f073
Fix bug in getting scope from specific resource
JulieWinchester May 16, 2025
26b4eb4
Add better method of getting 3D transforms that corresponds more to I…
JulieWinchester May 19, 2025
3f80a86
Merge pull request #33 from IIIF-Commons/dev-camera-update
vincentmarchetti May 20, 2025
170b55d
Merge pull request #31 from IIIF-Commons/dev-textualbody-support
vincentmarchetti May 20, 2025
8d6ffe3
Merge branch 'master' into get_more_content_and_transform_helpers
JulieWinchester May 30, 2025
9b78333
Removed expect commands tests that were causing false failures
vincentmarchetti Jun 9, 2025
67b2aaf
Fix Annotation getScopeContent method to handle Annotation Pages
JulieWinchester Jun 17, 2025
23d2bf1
Improve Geometry3d, fix issues, add new tests for transform matrix
JulieWinchester Jun 17, 2025
d17f8a7
Added additional test case for a transform list that contains two Rot…
vincentmarchetti Jun 20, 2025
96b6666
Change quaternion multiply to premultiply
JulieWinchester Jun 24, 2025
f62dd8d
Merge pull request #29 from IIIF-Commons/get_more_content_and_transfo…
vincentmarchetti Jun 24, 2025
9da7bb6
Merge remote-tracking branch 'base/master' into upstream_changes
JulieWinchester Jul 1, 2025
6d490c0
Remove array.prototype.flat() uses and fix package.json formatting
JulieWinchester Jul 1, 2025
10e31c3
Restore old name
JulieWinchester Jul 1, 2025
04bfa4b
Update package.json
JulieWinchester Jul 1, 2025
026b00d
Set up npm run test commands
JulieWinchester Jul 1, 2025
c5725e1
Merge branch 'upstream_changes' of https://github.com/IIIF-Commons/ma…
JulieWinchester Jul 1, 2025
f45d908
Merge pull request #34 from IIIF-Commons/upstream_changes
vincentmarchetti Jul 3, 2025
ddb6354
Merge branch 'main-manifest' into manifest-merge-20250714
vincentmarchetti Jul 14, 2025
df88eaf
Updated the dependencies to the later version reference
vincentmarchetti Jul 15, 2025
bcf66f7
removed the test:3d script and associated config js file,
vincentmarchetti Jul 15, 2025
e1a15f0
run the lint:all script and commit the code formatted accoring to lin…
vincentmarchetti Jul 15, 2025
97001a5
generated docs using 'docs' script
vincentmarchetti Jul 15, 2025
1b903b9
Updated the package-lock.json with the packages install 14 July 2025
vincentmarchetti Jul 15, 2025
0fad060
Removed this file in preparation for merging into IIIF-Commons/manifest,
vincentmarchetti Aug 27, 2025
4a25b65
Use git diff | git apply chain to revert this file to equal the version
vincentmarchetti Aug 27, 2025
119ea25
Removed the 3d version of the workflow to build and generate documents
vincentmarchetti Aug 27, 2025
146cc34
Used git diff | git apply chain to revert this to the
vincentmarchetti Aug 27, 2025
46df6e4
reverted to IIIF-Commons/manifesto version, but terminated file with …
vincentmarchetti Aug 28, 2025
be378e0
reverted to IIIF-Commons/manifesto version
vincentmarchetti Aug 28, 2025
3367b1b
reverted to IIIF-Commons/manifesto version
vincentmarchetti Aug 28, 2025
73ce37f
Removed to follow IIIF-Commons/manifesto practice
vincentmarchetti Aug 28, 2025
8afd1ab
Reverted to IIIF-Commons/manifesto version
vincentmarchetti Aug 28, 2025
534b274
Hand-merged so that the package name, npm name and repository url
vincentmarchetti Aug 28, 2025
430444b
changes to 3d related code that were done automatically
vincentmarchetti Aug 28, 2025
d804509
At the insistence of the eslint script, changed the declaration of
vincentmarchetti Aug 28, 2025
2bcdce8
Another correction insisted on by eslint; moved the
vincentmarchetti Aug 28, 2025
1fef857
removed the dependency on the prettier-check module, which
vincentmarchetti Aug 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ coverage
npm-debug.log
node_modules
debug.log
types
types
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
**/tsconfig.json
**/webpack.config.js
node_modules
src
src
74 changes: 58 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
README.md is a mess, need to start from manifesto's and re-do!

# manifesto

[![Build Status](https://github.com/IIIF-Commons/manifesto/actions/workflows/build-test.yml/badge.svg?branch=main)](https://github.com/IIIF-Commons/manifesto/actions/workflows/build-test.yml)

IIIF Presentation API client and server utility library.
Forked from [IIIF-Commons/manifesto](https://github.com/IIIF-Commons/manifesto).

npm install manifesto.js --save
Goal of implementing the [Draft API](https://github.com/IIIF/3d/blob/main/temp-draft-4.md) under development by the [IIIF 3D Technical Study Group](https://github.com/IIIF/3d/).

> [!NOTE]
> 3D extensions to the manifesto.js library are under development in a fork [IIIF-Commons/manifesto-3d](https://github.com/IIIF-Commons/manifesto-3d).
Expand All @@ -15,21 +17,61 @@ IIIF Presentation API client and server utility library.

### Documentation

https://iiif-commons.github.io/manifesto/
[Manifesto-3D.js](https://iiif-commons.github.io/manifesto-3d/)

### Loading through package manager

npm install manifesto-3d.js --save

### Demonstration Projects
[Example manifests](https://github.com/IIIF/3d/tree/main/manifests) conforming to the [Draft API](https://github.com/IIIF/3d/blob/main/temp-draft-4.md) .

[Prototype Viewers](https://github.com/IIIF/3d/issues/28) rendering the example manifests.
- [Three-JS based viewer](https://codesandbox.io/p/github/JulieWinchester/iiif-threejs-demo)
- [X3D/X3DOM based viewer](https://codesandbox.io/p/github/vincentmarchetti/iiif-x3dom-demo/main)
- [Smithsonian Voyager](https://codesandbox.io/p/sandbox/voyager-annotations-demo-forked-l83l6w)

### ChangeLog

From start point of the version distributed from [JulieWinchester/manifesto](https://github.com/JulieWinchester/manifesto/tree/3dtsg-dev-dist)

#### To package.json version 4.3.0-draft3dapi.0.1.0
distributed from [vincentmarchetti/manifesto#3dtsg-main]() there were these changes:

1. This test is no longer useful for the Target of an Annotation:

if ( typeof(target) === "string" ){
// handle case where target is a Scene
}

Draft manifest [ 3_lights/direction_light_transform ]( https://github.com/IIIF/3d/blob/main/manifests/3_lights/direction_light_transform_rotate.json ) uses two ways of encoding the value of a target property for an Annotation: with a json string value of the IRI, or with an object with `id` property of the IRI for the Scene. To avoid exponential expansion of if-else code when combined with target property which can also be `SpecificResource` resources, the parsing code was changed so tha the value returned from `getTarget()` is always an object.

Since the Target property will always be an object referencing a `Scene`, or a `SpecificResource` whose `source` property is a `Scene`, the code for handling either would be

if (target.isSpecificResource){
// handle a SpecificResource, with selector property
// and whose source property is the Scene
}
else{
// handle a Scene directly
}

2. Annotation.getBody3D() is deprecated.

The `Annotation.getBody()` from the Presentation 3 code has been extended to support the resources that can be included in a 3d Annotation body property. An important difference is that the `getBody()` function returns an array of objects, while the `getBody3D()` returns a single object. The deprecated function `getBody3D()` should be replaced with `getBody()[0]`

#### To package.json version 4.3.0-draft3dapi.0.2.0

1. Fixed a bug that occurred in determining the 'source' property of a SpecificResource resource that is the "target" property of an Annotation. This bug escaped detection previously because in the 3D case this 'source' property has always been a Scene resource, and the value is not needed for visualization.

#### To package.json version 4.3.0-draft3dapi.0.3.0

1. Added isSpecificResource and isAnnotationBody properties to the SpecificResource and AnnotationBody classes, in response to developer suggestion. (Slack, Apr 24 2024)

### Developer Setup
#### To package.json version 4.3.0-draft3dapi.0.4.0

git clone https://github.com/iiif-commons/manifesto.git
npm install
npm build
npm test
1. Implemented Perspective Camera properties in the Camera class.

### Publishing Package
#### To package.json version 4.3.0-draft3dapi.0.5.0

git checkout main
npm version patch
npm run docs
git add .
git commit -m "Release v1.2.3"
git tag v1.2.3
git push origin main v1.2.3
1. Implement lookAt property of Camera class and of Light class.
9 changes: 9 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Release

To create a new release on NPM you need to create a [release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release) on Github and the [release.yml](.github/workflows/release.yml) action will then deploy a release on NPM.

This requires NPM_TOKEN to be setup as a repository secret. This will update the package at:

https://www.npmjs.com/package/@iiif/3d-manifesto-dev

To update the version number in NPM you will also need to update the version number in [package.json](package.json).
2 changes: 1 addition & 1 deletion docs/assets/hierarchy.js

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

38 changes: 26 additions & 12 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
:root {
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #098658;
--dark-hl-1: #B5CEA8;
--light-hl-2: #795E26;
--dark-hl-2: #DCDCAA;
--light-hl-3: #001080;
--dark-hl-3: #9CDCFE;
--light-hl-4: #0000FF;
--dark-hl-4: #569CD6;
--light-hl-5: #A31515;
--dark-hl-5: #CE9178;
--light-hl-0: #0000FF;
--dark-hl-0: #569CD6;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #001080;
--dark-hl-2: #9CDCFE;
--light-hl-3: #795E26;
--dark-hl-3: #DCDCAA;
--light-hl-4: #008000;
--dark-hl-4: #6A9955;
--light-hl-5: #098658;
--dark-hl-5: #B5CEA8;
--light-hl-6: #267F99;
--dark-hl-6: #4EC9B0;
--light-hl-7: #A31515;
--dark-hl-7: #CE9178;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -22,6 +26,8 @@
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--code-background: var(--light-code-background);
} }

Expand All @@ -32,6 +38,8 @@
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--code-background: var(--dark-code-background);
} }

Expand All @@ -42,6 +50,8 @@
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--code-background: var(--light-code-background);
}

Expand All @@ -52,6 +62,8 @@
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--code-background: var(--dark-code-background);
}

Expand All @@ -61,4 +73,6 @@
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

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

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

Loading