Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
svg-annotator-v3
Advanced tools
A Vue3 svg annotator to comment and print any wrapped content
A Vue3 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 shapes . select and group shapes in one single action . save to pdf (uses html2canvas & jspdf as dependencies)
npm i svg-annotator-v3
import SvgAnnotator from "svg-annotator-v3";
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>
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",
},
hideWhenFolded: {
// Hide annotations when the toolbox is closed.
type: Boolean,
default: false,
},
showPrint: {
// Show the print button in the toolbox
type: Boolean,
default: false,
},
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 {
color: "Color",
colorAlpha: "Color alpha",
dashedLines: "Dashed lines",
filled: "Filled",
fontSize: "Font size",
thickness: "Thickness",
title: "Annotations",
tooltipGroup: "Select & group",
tooltipDelete: "Delete",
tooltipMove: "Move",
tooltipResize: "Resize",
tooltipBringToFront: "Bring to front",
tooltipBringToBack: "Bring to back",
tooltipDuplicate: "Duplicate",
tooltipUndo: "Undo last shape",
tooltipPdf: "Save pdf"
};
},
},
FAQs
A Vue3 svg annotator to comment and print any wrapped content
The npm package svg-annotator-v3 receives a total of 0 weekly downloads. As such, svg-annotator-v3 popularity was classified as not popular.
We found that svg-annotator-v3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.