Skip to content

Commit 087c9c7

Browse files
committed
tweak: simplify help text descriptions for focus position fields by removing parenthetical examples
1 parent be9f682 commit 087c9c7

File tree

1 file changed

+4
-5
lines changed
  • packages/imagekit-editor-dev/src/schema

1 file changed

+4
-5
lines changed

packages/imagekit-editor-dev/src/schema/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ export const transformationSchema: TransformationSchema[] = [
967967
isTransformation: true,
968968
transformationGroup: "focus",
969969
helpText:
970-
"Horizontal position from the top-left. Use an integer or expression (e.g., iw_mul_0.4).",
970+
"Horizontal position from the top-left. Use an integer or expression.",
971971
examples: ["100", "iw_mul_0.4"],
972972
isVisible: ({ focus, coordinateMethod }) =>
973973
focus === "coordinates" && coordinateMethod === "topleft",
@@ -979,7 +979,7 @@ export const transformationSchema: TransformationSchema[] = [
979979
isTransformation: true,
980980
transformationGroup: "focus",
981981
helpText:
982-
"Vertical position from the top-left. Use an integer or expression (e.g., ih_mul_0.4).",
982+
"Vertical position from the top-left. Use an integer or expression.",
983983
examples: ["100", "ih_mul_0.4"],
984984
isVisible: ({ focus, coordinateMethod }) =>
985985
focus === "coordinates" && coordinateMethod === "topleft",
@@ -991,7 +991,7 @@ export const transformationSchema: TransformationSchema[] = [
991991
isTransformation: true,
992992
transformationGroup: "focus",
993993
helpText:
994-
"Horizontal center position. Use an integer or expression (e.g., iw_mul_0.5).",
994+
"Horizontal center position. Use an integer or expression.",
995995
examples: ["200", "iw_mul_0.5"],
996996
isVisible: ({ focus, coordinateMethod }) =>
997997
focus === "coordinates" && coordinateMethod === "center",
@@ -1002,8 +1002,7 @@ export const transformationSchema: TransformationSchema[] = [
10021002
fieldType: "input",
10031003
isTransformation: true,
10041004
transformationGroup: "focus",
1005-
helpText:
1006-
"Vertical center position. Use an integer or expression (e.g., ih_mul_0.5).",
1005+
helpText: "Vertical center position. Use an integer or expression.",
10071006
examples: ["200", "ih_mul_0.5"],
10081007
isVisible: ({ focus, coordinateMethod }) =>
10091008
focus === "coordinates" && coordinateMethod === "center",

0 commit comments

Comments
 (0)