Skip to content

Commit 12b3814

Browse files
kubeclaude
andcommitted
FE-518: Update stories to use renamed camelCase surface equation exports
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 146872d commit 12b3814

7 files changed

Lines changed: 52 additions & 52 deletions

File tree

libs/@hashintel/refractive/stories/filters/filter-obb.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { Meta, StoryObj } from "@storybook/react";
22

33
import { FilterOBB } from "../../src/components/filter-obb";
44
import {
5-
CONCAVE,
6-
CONVEX,
7-
CONVEX_CIRCLE,
8-
LIP,
5+
concave,
6+
convex,
7+
convexCircle,
8+
lip,
99
} from "../../src/helpers/surface-equations";
1010
import {
1111
defaultFilterArgs,
@@ -32,17 +32,17 @@ export default meta;
3232
type Story = StoryObj<typeof meta>;
3333

3434
export const Convex: Story = {
35-
args: { bezelHeightFn: CONVEX },
35+
args: { bezelHeightFn: convex },
3636
};
3737

3838
export const ConvexCircle: Story = {
39-
args: { bezelHeightFn: CONVEX_CIRCLE },
39+
args: { bezelHeightFn: convexCircle },
4040
};
4141

4242
export const Concave: Story = {
43-
args: { bezelHeightFn: CONCAVE },
43+
args: { bezelHeightFn: concave },
4444
};
4545

4646
export const Lip: Story = {
47-
args: { bezelHeightFn: LIP },
47+
args: { bezelHeightFn: lip },
4848
};

libs/@hashintel/refractive/stories/filters/filter-polar.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { Meta, StoryObj } from "@storybook/react";
22

33
import { FilterPolar } from "../../src/components/filter-polar";
44
import {
5-
CONCAVE,
6-
CONVEX,
7-
CONVEX_CIRCLE,
8-
LIP,
5+
concave,
6+
convex,
7+
convexCircle,
8+
lip,
99
} from "../../src/helpers/surface-equations";
1010
import {
1111
defaultFilterArgs,
@@ -48,17 +48,17 @@ export default meta;
4848
type Story = StoryObj<typeof meta>;
4949

5050
export const Convex: Story = {
51-
args: { bezelHeightFn: CONVEX },
51+
args: { bezelHeightFn: convex },
5252
};
5353

5454
export const ConvexCircle: Story = {
55-
args: { bezelHeightFn: CONVEX_CIRCLE },
55+
args: { bezelHeightFn: convexCircle },
5656
};
5757

5858
export const Concave: Story = {
59-
args: { bezelHeightFn: CONCAVE },
59+
args: { bezelHeightFn: concave },
6060
};
6161

6262
export const Lip: Story = {
63-
args: { bezelHeightFn: LIP },
63+
args: { bezelHeightFn: lip },
6464
};

libs/@hashintel/refractive/stories/filters/filter.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { Meta, StoryObj } from "@storybook/react";
22

33
import { Filter } from "../../src/components/filter";
44
import {
5-
CONCAVE,
6-
CONVEX,
7-
CONVEX_CIRCLE,
8-
LIP,
5+
concave,
6+
convex,
7+
convexCircle,
8+
lip,
99
} from "../../src/helpers/surface-equations";
1010
import {
1111
defaultFilterArgs,
@@ -41,17 +41,17 @@ export default meta;
4141
type Story = StoryObj<typeof meta>;
4242

4343
export const Convex: Story = {
44-
args: { bezelHeightFn: CONVEX },
44+
args: { bezelHeightFn: convex },
4545
};
4646

4747
export const ConvexCircle: Story = {
48-
args: { bezelHeightFn: CONVEX_CIRCLE },
48+
args: { bezelHeightFn: convexCircle },
4949
};
5050

5151
export const Concave: Story = {
52-
args: { bezelHeightFn: CONCAVE },
52+
args: { bezelHeightFn: concave },
5353
};
5454

5555
export const Lip: Story = {
56-
args: { bezelHeightFn: LIP },
56+
args: { bezelHeightFn: lip },
5757
};

libs/@hashintel/refractive/stories/helpers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useId } from "react";
22

33
import type { SurfaceFnDef } from "../src/helpers/surface-equations";
4-
import { CONVEX } from "../src/helpers/surface-equations";
4+
import { convex } from "../src/helpers/surface-equations";
55

66
export type SharedFilterProps = {
77
blur: number;
@@ -22,7 +22,7 @@ export const defaultFilterArgs: SharedFilterProps = {
2222
refractiveIndex: 1.5,
2323
specularOpacity: 0.9,
2424
specularAngle: 2,
25-
bezelHeightFn: CONVEX,
25+
bezelHeightFn: convex,
2626
};
2727

2828
export const filterArgTypes = {

libs/@hashintel/refractive/stories/internals/displacement-map.stories.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { useEffect, useRef } from "react";
33

44
import type { SurfaceFnDef } from "../../src/helpers/surface-equations";
55
import {
6-
CONCAVE,
7-
CONVEX,
8-
CONVEX_CIRCLE,
9-
LIP,
6+
concave,
7+
convex,
8+
convexCircle,
9+
lip,
1010
} from "../../src/helpers/surface-equations";
1111
import {
1212
calculateDisplacementMap,
@@ -109,15 +109,15 @@ const meta = {
109109
bezelWidth: 30,
110110
refractiveIndex: 1.5,
111111
pixelRatio: 6,
112-
bezelHeightFn: CONVEX,
112+
bezelHeightFn: convex,
113113
},
114114
} satisfies Meta<typeof DisplacementMapVis>;
115115

116116
export default meta;
117117

118118
type Story = StoryObj<typeof meta>;
119119

120-
export const Convex: Story = { args: { bezelHeightFn: CONVEX } };
121-
export const ConvexCircle: Story = { args: { bezelHeightFn: CONVEX_CIRCLE } };
122-
export const Concave: Story = { args: { bezelHeightFn: CONCAVE } };
123-
export const Lip: Story = { args: { bezelHeightFn: LIP } };
120+
export const Convex: Story = { args: { bezelHeightFn: convex } };
121+
export const ConvexCircle: Story = { args: { bezelHeightFn: convexCircle } };
122+
export const Concave: Story = { args: { bezelHeightFn: concave } };
123+
export const Lip: Story = { args: { bezelHeightFn: lip } };

libs/@hashintel/refractive/stories/internals/polar-distance-map.stories.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { useEffect, useRef } from "react";
33

44
import type { SurfaceFnDef } from "../../src/helpers/surface-equations";
55
import {
6-
CONCAVE,
7-
CONVEX,
8-
CONVEX_CIRCLE,
9-
LIP,
6+
concave,
7+
convex,
8+
convexCircle,
9+
lip,
1010
} from "../../src/helpers/surface-equations";
1111
import { calculateDisplacementMapRadius } from "../../src/maps/displacement-map";
1212
import { calculatePolarDistanceMap } from "../../src/maps/polar-distance-map";
@@ -105,15 +105,15 @@ const meta = {
105105
bezelWidth: 30,
106106
refractiveIndex: 1.5,
107107
pixelRatio: 6,
108-
bezelHeightFn: CONVEX,
108+
bezelHeightFn: convex,
109109
},
110110
} satisfies Meta<typeof PolarDistanceMapVis>;
111111

112112
export default meta;
113113

114114
type Story = StoryObj<typeof meta>;
115115

116-
export const Convex: Story = { args: { bezelHeightFn: CONVEX } };
117-
export const ConvexCircle: Story = { args: { bezelHeightFn: CONVEX_CIRCLE } };
118-
export const Concave: Story = { args: { bezelHeightFn: CONCAVE } };
119-
export const Lip: Story = { args: { bezelHeightFn: LIP } };
116+
export const Convex: Story = { args: { bezelHeightFn: convex } };
117+
export const ConvexCircle: Story = { args: { bezelHeightFn: convexCircle } };
118+
export const Concave: Story = { args: { bezelHeightFn: concave } };
119+
export const Lip: Story = { args: { bezelHeightFn: lip } };

libs/@hashintel/refractive/stories/internals/surface-equations.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { useEffect, useRef } from "react";
33

44
import type { SurfaceFnDef } from "../../src/helpers/surface-equations";
55
import {
6-
CONCAVE,
7-
CONVEX,
8-
CONVEX_CIRCLE,
9-
LIP,
6+
concave,
7+
convex,
8+
convexCircle,
9+
lip,
1010
} from "../../src/helpers/surface-equations";
1111
import { calculateDisplacementMapRadius } from "../../src/maps/displacement-map";
1212

@@ -15,10 +15,10 @@ const PLOT_HEIGHT = 300;
1515
const PADDING = 40;
1616

1717
const equations: { name: string; fn: SurfaceFnDef; color: string }[] = [
18-
{ name: "CONVEX", fn: CONVEX, color: "#4fc3f7" },
19-
{ name: "CONVEX_CIRCLE", fn: CONVEX_CIRCLE, color: "#81c784" },
20-
{ name: "CONCAVE", fn: CONCAVE, color: "#ff8a65" },
21-
{ name: "LIP", fn: LIP, color: "#ce93d8" },
18+
{ name: "convex", fn: convex, color: "#4fc3f7" },
19+
{ name: "convexCircle", fn: convexCircle, color: "#81c784" },
20+
{ name: "concave", fn: concave, color: "#ff8a65" },
21+
{ name: "lip", fn: lip, color: "#ce93d8" },
2222
];
2323

2424
type Props = {

0 commit comments

Comments
 (0)