Gathering detailed insights and metrics for svg-annotator
Gathering detailed insights and metrics for svg-annotator
Gathering detailed insights and metrics for svg-annotator
Gathering detailed insights and metrics for svg-annotator
wc-svg-annotator
A web component you can use to select and annotate any web content
react-text-annotator
react-text-annotator is a labeler component that:
private-react-text-annotator
react-text-annotator is a labeler component that:
react-text-svg-labeler
react-text-annotator is a labeler component that:
A vue2 component you can use to wrap any content to enable on-the-go annotations and pdf generation.
npm install svg-annotator
Typescript
Module System
Node Version
NPM Version
55.6
Supply Chain
96.4
Quality
75
Maintenance
50
Vulnerability
98.9
License
Vue (98.81%)
JavaScript (0.65%)
HTML (0.54%)
Total Downloads
4,560
Last Day
1
Last Week
5
Last Month
14
Last Year
877
1 Stars
34 Commits
3 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
svg-annotator@1.0.0
Unpacked Size
9.59 MB
Size
2.22 MB
File Count
21
NPM Version
7.22.0
Node Version
16.17.0
Publised On
25 Jan 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
400%
5
Compared to previous week
Last month
-51.7%
14
Compared to previous month
Last year
-76.2%
877
Compared to previous year
4
A vue2 component you can use to wrap any content to enable on-the-go annotations and pdf generation.
Features: . create shapes (rectangle, circle, arrow) . freehand drawing . add text (includes bullet points mode) . select, move, resize, copy paste, delete, group & ungroup, redo shapes . select and group shapes in one single action . save to pdf (uses html2canvas & jspdf as dependencies) . copy to clipboard (chromium browsers only) . choose print orientation . hd or low lef print
npm i svg-annotator
import SvgAnnotator from "svg-annotator";
You need to place a single element inside the SvgAnnotator (div, section, svg or canvas), as the SvgAnnotator will base its size upon the first slotted element. This element and all its children will be part of the annotation area.
If your content contains multiple elements, place them inside a single div, section, svg or canvas element:
<SvgAnnotator>
<div>
... any content you want
</div>
</SvgAnnotator>
<SvgAnnotator>
<section>
... any content you want
</section>
</SvgAnnotator>
<SvgAnnotator>
<svg>
... any content you want
</svg>
</SvgAnnotator>
<SvgAnnotator>
<canvas>
</canvas>
</SvgAnnotator>
buttonSize: {
// the toolbar buttons size
type: Number,
default: 28,
},
disableForTouchScreens: {
//In its current version, SvgAnnotator is not suited for touchscreen devices, and best used with a mouse & keyboard. This prop hides the toolbar for touchscreen devices, basically deactivating the annotator
type: Boolean,
default: true,
},
fixedTools: {
// if true, toolbox will be fixed to top center of your page.
// Ideal to use when a whole page is slotted inside the SvgAnnotator.
type: Boolean,
default: false,
},
fontFamily: {
// The font family your slotted elements are using.
// In print mode, all fonts will be converted to Helvetica, so you need to provide your font here, to revert to it after print is resumed.
type: String,
default: "Helvetica",
},
iconColor: {
// Color of the button icons & borders
type: String,
default: "#4a4a4a",
},
showPrint: {
// Show or hide the print button in the toolbox
type: Boolean,
default: true,
},
showTooltips: {
// Show tooltips for top buttons of toolbox
type: Boolean,
default: true,
},
translations: {
// Translations for all labels used in the toolbox
type: Object,
default() {
return {
autoOrientation: "auto print orientation",
clipboardFailure: "This functionality is not supported by your browser. Sorry",
clipboardSuccess: "Image successfully copied to your clipboard.",
color: "Color",
colorAlpha: "Color alpha",
dashedLines: "Dashed lines",
filled: "Filled",
fontSize: "Font size",
hdPrint: "hd print",
thickness: "Thickness",
title: "Annotations",
tooltipGroup: "Select & group",
tooltipDelete: "Delete",
tooltipMove: "Move",
tooltipResize: "Resize",
tooltipBringToFront: "Bring to front",
tooltipBringToBack: "Bring to back",
tooltipDuplicate: "Duplicate",
tooltipRedo: "Redo last shape",
tooltipUndo: "Undo last shape",
tooltipUngroup: "Ungroup",
tooltipPdf: "Save pdf",
tooltipClipboard: "Copy to clipboard"
};
},
},
@toggleOpenState returns true if the toolbar is open, and false if it is closed.
@interface exposes methods to the parent (since version 0.3.7) See full documentation for an implementation example.
No vulnerabilities found.
No security vulnerabilities found.