Comments (4)
You can display base30 in the jSignature instance. If you want to display in an img, you will need to convert it. There are sample code in the repo examples folder. Alternatively use getData to export in a format that can be displayed in the img tag
from jsignature.
不是,我在有两个div。第一个div用于签名,并在这个div上签名获取base30图像
$("#signature1").jSignature({color: "#000", width: '300', height: '600', "background-color": "#fff"});
const data = $("#signature1").jSignature('getData', 'base30')
在第二个div显示,div定义如下
$("#signature2").jSignature({color: "#000", width: '30', height: '60', "background-color": "#fff"});
$('#signature2').jSignature('setData', "data:"+ data.join(','))
但是因为#signature2的尺寸是signature1的1/10,无法显示出signature1的图像,你并没有等比缩放10倍填充在signature2内!
from jsignature.
另外js通过base30转base64可有示例代码?在demo中没有找到。应该怎么调用?能否写个示例
from jsignature.
from jsignature.
Related Issues (20)
- Invalid signature data being generated from webapp on mobile
- Stopped working after Firefox upgraded to Version 70 (64-bit) HOT 1
- Intermittent Signature Field Blocking Issue
- jSignature不是函数 HOT 1
- VB.NET Base30 Error Found
- Attempt to draw with touchscreen scrolls page on chromebooks HOT 1
- getData not working with base30 or svgbase64 HOT 1
- Creating map file for minified js files might be a good idea HOT 2
- When jSignature signature WeChat is applied to refresh the web page, the canvas cannot be written
- Ctrl+Z plugin HOT 1
- Provide build details? HOT 1
- JSignature not working with touch Windows 10, Chrome, Firefox, Edge, works with Safari 2012 version HOT 19
- setData not working first time called HOT 2
- jSignature - clipping on touch devices iOS and Android
- Check if jSignature is initialized
- base30显示问题 HOT 7
- base30 getData is empty
- Converting Base64 to Base30
- Undo after updateSetting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsignature.