Skip to content

Commit c18cd0d

Browse files
authored
More firm textbox on canvas (#10)
1 parent 6523770 commit c18cd0d

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ We believe in a transparent and fair world, so we open-source the app and
4646
you get a trial version for your personal use, but if you find the app helpful,
4747
please make a purchase.
4848

49-
Purchase page: https://gum.co/plainmerge
49+
Purchase page: https://gum.co/plainmerge (Accept Debit/Credit cards and PayPal)
5050

5151
---
5252

src/components/email/Config.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ const Config = () => {
194194
</section>
195195

196196
<section className="space-y-2 opacity-30">
197-
<h3 className="font-bold leading-8">Gmail SMTP example:</h3>
197+
<h3 className="font-bold leading-8">
198+
Gmail SMTP example:{' '}
199+
<small className="font-normal">(Some limitations may apply)</small>
200+
</h3>
198201
<div className="flex">
199202
<p className="w-32">Host:</p>
200203
<p className="font-medium">smtp.gmail.com</p>

src/components/fabric/editor.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ const TextOptions: ITextboxOptions = {
1010
fontFamily: 'Helvetica',
1111
fill: '#000000',
1212
width: 100,
13+
lockScalingY: true,
1314
lockSkewingX: true,
14-
lockRotation: true,
1515
lockSkewingY: true,
16+
lockRotation: true,
17+
lockScalingFlip: true,
18+
lockUniScaling: true,
1619
editable: false,
1720
originX: 'left',
1821
originY: 'top',
@@ -97,14 +100,6 @@ const useFabricJSEditor = () => {
97100
canva.on('selection:updated', (e: any) => {
98101
setSelectedObject(e.selected[0]);
99102
});
100-
canva.on('object:scaling', (e: any) => {
101-
const obj = e.target;
102-
const h = obj.height * obj.scaleY;
103-
obj.set({
104-
height: h,
105-
scaleY: 1,
106-
});
107-
});
108103
};
109104

110105
if (canvas) {

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "plainmerge",
33
"productName": "PlainMerge",
4-
"version": "0.0.15",
4+
"version": "0.0.16",
55
"description": "Offline PDF mail merger",
66
"main": "./main.prod.js",
77
"author": {

0 commit comments

Comments
 (0)