Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nativescript-signaturepad
Advanced tools
Readme
NativeScript plugin to provide a way to capture signatures (or any drawing) from the device. You can use this component to capture really anything you want that can be drawn on the screen. Go crazy with it!!!
Android | iOS |
---|---|
gcacace/android-signaturepad | SignatureView |
From your command prompt/termial go to your app's root folder and execute:
npm install nativescript-signaturepad
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:SignaturePad="nativescript-signaturepad">
<StackLayout>
<SignaturePad:SignaturePad
height="200"
id="drawingPad"
penColor="#ff4081"
penWidth="3" />
<button text="Get Drawing" tap="getDrawing" />
<button text="Clear Drawing" tap="clearDrawing" />
</StackLayout>
</Page>
var frame = require("ui/frame");
// To get the drawing...
function getDrawing(args) {
// get reference to the drawing pad
var pad = frame.topmost().currentPage.getViewById("drawingPad");
// then access the 'drawing' property (Bitmap on Android) of the signaturepad
var drawingImage = pad.drawing;
}
exports.getDrawing = getDrawing;
// If you want to clear the signature/drawing...
function clearDrawing(args) {
var pad = frame.topmost().currentPage.getViewById("drawingPad");
pad.clearDrawing();
}
exports.clearDrawing = clearDrawing;
penColor - (color string) - optional
Attribute to specify the pen (stroke) color to use.
penWidth - (int) - optional
Attribute to specify the pen (stroke) width to use.
Sample 1 | Sample 2 |
---|---|
FAQs
A NativeScript plugin to provide a way to capture signatures (and any other drawing) from the device screen.
The npm package nativescript-signaturepad receives a total of 0 weekly downloads. As such, nativescript-signaturepad popularity was classified as not popular.
We found that nativescript-signaturepad 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.