@pdfme/ui 3.1.5-dev.4 → 3.1.5-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -77,7 +77,9 @@ const DetailView = (
|
|
77
77
|
for (let key in newSchema) {
|
78
78
|
if (['id', 'data'].includes(key)) continue;
|
79
79
|
if (newSchema[key] !== (activeSchema as any)[key]) {
|
80
|
-
|
80
|
+
let value = newSchema[key];
|
81
|
+
// FIXME memo: https://github.com/pdfme/pdfme/pull/367#issuecomment-1857468274
|
82
|
+
if (value === null && ['rotate', 'opacity'].includes(key)) value = undefined;
|
81
83
|
|
82
84
|
// [position] Return the flattened position to its original form.
|
83
85
|
if (key === 'x') key = 'position.x';
|
@@ -138,6 +140,7 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
|
|
138
140
|
widget: 'inputNumber',
|
139
141
|
required: true,
|
140
142
|
span: 8,
|
143
|
+
min: 0,
|
141
144
|
},
|
142
145
|
height: {
|
143
146
|
title: i18n('height'),
|
@@ -145,6 +148,7 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
|
|
145
148
|
widget: 'inputNumber',
|
146
149
|
required: true,
|
147
150
|
span: 8,
|
151
|
+
min: 0,
|
148
152
|
},
|
149
153
|
opacity: {
|
150
154
|
title: i18n('opacity'),
|