@pixerate/editor 0.228.1 → 0.228.2
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/dist/{chunk-MXJP77K4.cjs → chunk-2XGW6DKL.cjs} +101 -101
- package/dist/{chunk-B46UQUDC.cjs → chunk-HB4ICNNA.cjs} +6 -2
- package/dist/{chunk-KN3Y3FRY.js → chunk-SWKXPAJC.js} +1 -1
- package/dist/{chunk-QXY4YTRI.js → chunk-UOOK7HTX.js} +6 -2
- package/dist/image-editor/index.cjs +865 -865
- package/dist/image-editor/index.js +2 -2
- package/dist/paint-editor/index.cjs +80 -80
- package/dist/paint-editor/index.js +2 -2
- package/dist/raster/index.cjs +2 -2
- package/dist/raster/index.js +1 -1
- package/package.json +1 -1
|
@@ -150,8 +150,12 @@ function effectReach(e) {
|
|
|
150
150
|
return e.size;
|
|
151
151
|
case "satin":
|
|
152
152
|
return Math.max(1, e.distance) + e.size;
|
|
153
|
-
case "bevel-emboss":
|
|
154
|
-
return e.size + e.soften + 1;
|
|
153
|
+
case "bevel-emboss": {
|
|
154
|
+
if (e.technique === "smooth") return e.size + e.soften + 1;
|
|
155
|
+
const size = Math.max(e.size, 1);
|
|
156
|
+
const chiselSoft = e.technique === "chisel-soft" ? Math.max(size / 4, 1) + 1 : 0;
|
|
157
|
+
return size + 3 + chiselSoft + e.soften + 1 + 1;
|
|
158
|
+
}
|
|
155
159
|
default:
|
|
156
160
|
return 0;
|
|
157
161
|
}
|
|
@@ -150,8 +150,12 @@ function effectReach(e) {
|
|
|
150
150
|
return e.size;
|
|
151
151
|
case "satin":
|
|
152
152
|
return Math.max(1, e.distance) + e.size;
|
|
153
|
-
case "bevel-emboss":
|
|
154
|
-
return e.size + e.soften + 1;
|
|
153
|
+
case "bevel-emboss": {
|
|
154
|
+
if (e.technique === "smooth") return e.size + e.soften + 1;
|
|
155
|
+
const size = Math.max(e.size, 1);
|
|
156
|
+
const chiselSoft = e.technique === "chisel-soft" ? Math.max(size / 4, 1) + 1 : 0;
|
|
157
|
+
return size + 3 + chiselSoft + e.soften + 1 + 1;
|
|
158
|
+
}
|
|
155
159
|
default:
|
|
156
160
|
return 0;
|
|
157
161
|
}
|