Commits on Source (37)
-
Jack Reed authored
-
Chris Beer authored
Update dependencies and support for React 17
-
Chris Beer authored
-
Chris Beer authored
-
Chris Beer authored
-
Chris Beer authored
-
Chris Beer authored
-
Chris Beer authored
Increase the default stroke width for annotations, and allow applications to override that with some configuration
-
Michael J. Giarlo authored
Increase the default stroke width for annotations
-
Michael J. Giarlo authored
Preserve the annotation creation options after saving an annotation
-
Michael J. Giarlo authored
Co-authored-by:
Chris Beer <cabeer@stanford.edu>
-
Camille Villa authored
-
Camille Villa authored
-
Lucas Moeskops authored
Currently, the default properties of annotations include booleans ("closed"), functions ("updateGeometry"), numbers ("strokeWidth") and strings (e.g. "activeTool"). This PR changes the AnnotationCreation prop types to not raise a warning when one of these is overwritten.
-
Lucas Moeskops authored
-
Chris Beer authored
Different prop types options for defaults
-
David Beniamine authored
Allow to add annotations on video See merge request iiif/mirador-annotations!1
-
Loïs Poujade authored
-
Loïs Poujade authored
-
Loïs Poujade authored
- don't ignore package-lock.json as its needed for test (via npm ci) - added jest-junit for proper gitlab integration
-
Loïs Poujade authored
-
David Beniamine authored
Integrate upstream tests into gitlab ci Closes #3 See merge request iiif/mirador-annotations!3
-
Loïs Poujade authored
-
Loïs Poujade authored
handle both fragment selectors types: - target: https://ressource.url#xywh=0,0,10,10&t=19,20 - target: https..., selectors: [ FragmentSelector: ..., ]
-
Loïs Poujade authored
-
Loïs Poujade authored
When multiples annotations sources/list are presents, selected annotation was overwrite with undefined (cause it was not found in following annotations lists)
-
Loïs Poujade authored
* default annotation start/end: current time / current +10s * default annotation text content: (start) -> (end) * added a button to fill start/end field with current player time * allow to seekto/goto start/end during annotation edition * hide time fields/controls when annotating another media than video
-
Loïs Poujade authored
-
Loïs Poujade authored
One target FragmentSelector may contains multiple MediaFragment; instead of multiples FragmentSelectors for one target
-
Loïs Poujade authored
Not clear why center is relative to video dimensions but canvas size is relative to the other canvas (which draw already existing annotations). There may be some bugs from paperjs, see the following issues https://github.com/paperjs/paper.js/issues/662 https://github.com/paperjs/paper.js/issues/668 https://github.com/paperjs/paper.js/issues/1757
-
Loïs Poujade authored
- time controls buttons where not visually "buttons" - added tooltip on hover - use a Redux selector to get annotations, don't parse them from the state
-
Loïs Poujade authored
ToggleButton are used as simple button but hey still need a value
-
Loïs Poujade authored
Moved and fixed error handling for case where both an image and a video are present on the same canvas + wording
-
Loïs Poujade authored
- set tsart/tend to null if currentTime is null (which mean we're not on a video) - don't put default message if no time selector - don't use null values if no annotations found - avoid to create blank Fragment Selector
-
David Beniamine authored
Add / edit annotation on video Closes #1 See merge request iiif/mirador-annotations!4
-
-
David Beniamine authored
Create image annotation creation dialog Closes #5 See merge request iiif/mirador-annotations!5
Showing
- .eslintrc 5 additions, 3 deletions.eslintrc
- .gitignore 0 additions, 1 deletion.gitignore
- .gitlab-ci.yml 14 additions, 0 deletions.gitlab-ci.yml
- __tests__/AnnotationCreation.test.js 6 additions, 1 deletion__tests__/AnnotationCreation.test.js
- __tests__/WebAnnotation.test.js 70 additions, 12 deletions__tests__/WebAnnotation.test.js
- demo/src/index.js 10 additions, 4 deletionsdemo/src/index.js
- package-lock.json 41432 additions, 0 deletionspackage-lock.json
- package.json 21 additions, 18 deletionspackage.json
- src/AnnotationCreation.js 210 additions, 62 deletionssrc/AnnotationCreation.js
- src/AnnotationDrawing.js 96 additions, 45 deletionssrc/AnnotationDrawing.js
- src/HMSInput.js 115 additions, 0 deletionssrc/HMSInput.js
- src/ImageFormField.js 62 additions, 0 deletionssrc/ImageFormField.js
- src/TextEditor.js 14 additions, 1 deletionsrc/TextEditor.js
- src/WebAnnotation.js 34 additions, 27 deletionssrc/WebAnnotation.js
- src/plugins/annotationCreationCompanionWindow.js 12 additions, 10 deletionssrc/plugins/annotationCreationCompanionWindow.js
- src/utils.js 14 additions, 0 deletionssrc/utils.js
.gitlab-ci.yml
0 → 100644
package-lock.json
0 → 100644
This diff is collapsed.
{ | ||
"name": "mirador-annotations", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "mirador-annotations React component", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
... | ... | @@ -11,14 +11,15 @@ |
"umd" | ||
], | ||
"scripts": { | ||
"build": "nwb build-react-component --no-demo", | ||
"build": "nwb build-react-component", | ||
"clean": "nwb clean-module", | ||
"lint": "eslint ./src ./__tests__", | ||
"prepublishOnly": "npm run build", | ||
"start": "nwb serve-react-demo", | ||
"test": "npm run lint && jest", | ||
"test:coverage": "jest --coverage", | ||
"test:watch": "jest --watch" | ||
"test:watch": "jest --watch", | ||
"test:ci": "jest --ci --reporters=default --reporters=jest-junit --watchAll=false" | ||
}, | ||
"dependencies": { | ||
"@psychobolt/react-paperjs": "< 1.0", | ||
... | ... | @@ -28,46 +29,48 @@ |
"draft-js-import-html": "^1.4.1", | ||
"material-ui-color-components": "^0.3.0", | ||
"paper": "^0.12.11", | ||
"react-color": "^2.18.1" | ||
"react-color": "^2.18.1", | ||
"react-resize-observer": "^1.1.1" | ||
}, | ||
"peerDependencies": { | ||
"@material-ui/core": "^4.9.13", | ||
"@material-ui/icons": "^4.9.1", | ||
"@material-ui/lab": "^4.0.0-alpha.52", | ||
"lodash": "^4.17.11", | ||
"mirador": "^3.0.0-rc.5", | ||
"mirador": "git+https://gitlab.tetras-libre.fr/iiif/mirador-video-annotation#annotation-on-video", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.0", | ||
"react-dom": "^16.0", | ||
"react": "^16.8", | ||
"react-dom": "^16.8", | ||
"uuid": "^8.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.4", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-react": "^7.10.4", | ||
"@material-ui/core": "^4.11.0", | ||
"@material-ui/icons": "^4.9.1", | ||
"@material-ui/lab": "^4.0.0-alpha.56", | ||
"babel-eslint": "^10.1.0", | ||
"canvas": "^2.6.1", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.2", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb": "^18.2.0", | ||
"eslint-config-react-app": "^5.2.1", | ||
"eslint-plugin-flowtype": "^4.7.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-jest": "^23.18.0", | ||
"eslint-plugin-jsx-a11y": "^6.3.1", | ||
"eslint": "^8.11.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-react-app": "^7.0.0", | ||
"eslint-plugin-flowtype": "^8.0.3", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^26.1.1", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.20.3", | ||
"jest": "^26.1.0", | ||
"jest-canvas-mock": "^2.2.0", | ||
"jest-junit": "^15.0.0", | ||
"jest-localstorage-mock": "^2.4.2", | ||
"mirador": "^3.0.0-rc.5", | ||
"mirador": "git+https://gitlab.tetras-libre.fr/iiif/mirador-video-annotation#annotation-on-video", | ||
"nwb": "^0.24.7", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.14.0", | ||
"react-dom": "^16.14.0", | ||
"react": "^16.8", | ||
"react-dom": "^16.8", | ||
"uuid": "^8.2.0" | ||
}, | ||
"author": "", | ||
... | ... |
src/HMSInput.js
0 → 100644
src/ImageFormField.js
0 → 100644