Skip to content

Commit 85e46e7

Browse files
saumyashahimeganindya
authored andcommitted
chore(masonry): apply lint fixes and update all src files for consistency
1 parent b5cfbec commit 85e46e7

File tree

5 files changed

+30
-23
lines changed

5 files changed

+30
-23
lines changed

modules/masonry/src/brick/view/components/BrickWrapper.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,7 @@ export const BrickWrapper: React.FC<BrickWrapperProps> = ({
8686
style={{ overflow: 'visible' }}
8787
>
8888
{/* Background rectangle for brick visuals, if needed */}
89-
<rect
90-
x={0}
91-
y={0}
92-
width={svgWidth}
93-
height={svgHeight}
94-
fill="none"
95-
pointerEvents="none"
96-
/>
89+
<rect x={0} y={0} width={svgWidth} height={svgHeight} fill="none" pointerEvents="none" />
9790
<g transform={`translate(${PADDING.left},${PADDING.top})`}>
9891
<path
9992
d={shape.path}
@@ -127,14 +120,7 @@ export const BrickWrapper: React.FC<BrickWrapperProps> = ({
127120
style={{ overflow: 'visible' }}
128121
>
129122
{/* Background rectangle for brick visuals, if needed */}
130-
<rect
131-
x={0}
132-
y={0}
133-
width={svgWidth}
134-
height={svgHeight}
135-
fill="none"
136-
pointerEvents="none"
137-
/>
123+
<rect x={0} y={0} width={svgWidth} height={svgHeight} fill="none" pointerEvents="none" />
138124
<g transform={`translate(${PADDING.left},${PADDING.top})`}>
139125
<path
140126
d={shape.path}

modules/masonry/src/brick/view/components/compound.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ type PropsWithMetrics = TBrickRenderPropsCompound & {
99
};
1010

1111
export const CompoundBrickView: React.FC<PropsWithMetrics> = (props) => {
12-
const { topNotch, bottomNotch, bboxNest, isFolded, strokeWidth, scale, bboxArgs, standaloneSvg, ...commonProps } = props;
12+
const {
13+
topNotch,
14+
bottomNotch,
15+
bboxNest,
16+
isFolded,
17+
strokeWidth,
18+
scale,
19+
bboxArgs,
20+
standaloneSvg,
21+
...commonProps
22+
} = props;
1323

1424
const getBrickConfig = (bBoxLabel: { w: number; h: number }) => ({
1525
type: 'type3' as const,

modules/masonry/src/brick/view/components/expression.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ type PropsWithMetrics = TBrickRenderPropsExpression & {
99
};
1010

1111
export const ExpressionBrickView: React.FC<PropsWithMetrics> = (props) => {
12-
const { value, isValueSelectOpen, strokeWidth, scale, bboxArgs, standaloneSvg, ...commonProps } = props;
12+
const { value, isValueSelectOpen, strokeWidth, scale, bboxArgs, standaloneSvg, ...commonProps } =
13+
props;
1314

1415
const getBrickConfig = (bBoxLabel: { w: number; h: number }) => ({
1516
type: 'type2' as const,

modules/masonry/src/brick/view/components/simple.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ type PropsWithMetrics = TBrickRenderPropsSimple & {
99
};
1010

1111
export const SimpleBrickView: React.FC<PropsWithMetrics> = (props) => {
12-
const { topNotch, bottomNotch, strokeWidth, scale, bboxArgs, standaloneSvg, ...commonProps } = props;
12+
const { topNotch, bottomNotch, strokeWidth, scale, bboxArgs, standaloneSvg, ...commonProps } =
13+
props;
1314

1415
const getBrickConfig = (bBoxLabel: { w: number; h: number }) => ({
1516
type: 'type1' as const,

modules/masonry/src/palette/components/sidebar.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,25 @@ import {
88
// Inline SVG for the music icon
99
const MusicIcon = () => (
1010
<svg width="20" height="20" viewBox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg">
11-
<rect width="55" height="55" rx="0" fill="#1A0CFF"/>
11+
<rect width="55" height="55" rx="0" fill="#1A0CFF" />
1212
<g transform="matrix(0.87134744,0,0,0.87134744,3.2573019,3.5379454)">
1313
<g transform="matrix(2.8153153,0,0,2.8153153,175.99125,78.011244)">
14-
<path d="m-61.801691,-12.829594 q 0,-0.832 0.816,-1.472 0.816,-0.656 1.728,-0.656 0.528,0 0.944,0.272 l 0,-9.472 0.352,0 0,10.352 q 0,0.896 -0.784,1.488 -0.784,0.592 -1.728,0.592 -0.528,0 -0.928,-0.304 -0.4,-0.32 -0.4,-0.8 z m 0.736,0.48 q 0.848,0 1.712,-0.72 0.88,-0.72 0.88,-1.072 0,-0.224 -0.192,-0.224 -0.592,0 -1.632,0.688 -1.024,0.672 -1.024,1.12 0,0.208 0.256,0.208 z" fill="#F9F9F9"/>
14+
<path
15+
d="m-61.801691,-12.829594 q 0,-0.832 0.816,-1.472 0.816,-0.656 1.728,-0.656 0.528,0 0.944,0.272 l 0,-9.472 0.352,0 0,10.352 q 0,0.896 -0.784,1.488 -0.784,0.592 -1.728,0.592 -0.528,0 -0.928,-0.304 -0.4,-0.32 -0.4,-0.8 z m 0.736,0.48 q 0.848,0 1.712,-0.72 0.88,-0.72 0.88,-1.072 0,-0.224 -0.192,-0.224 -0.592,0 -1.632,0.688 -1.024,0.672 -1.024,1.12 0,0.208 0.256,0.208 z"
16+
fill="#F9F9F9"
17+
/>
1518
</g>
1619
<g>
17-
<path d="m 28.250009,41.891892 q 0,-2.342343 2.297297,-4.144145 2.297298,-1.846846 4.864865,-1.846846 1.486487,0 2.657658,0.765765 l 0,-26.666666 0.990991,0 0,29.144144 q 0,2.522522 -2.207207,4.189189 Q 34.646405,45 31.988749,45 30.502261,45 29.376135,44.144144 28.250009,43.243243 28.250009,41.891892 Z" fill="#F9F9F9"/>
20+
<path
21+
d="m 28.250009,41.891892 q 0,-2.342343 2.297297,-4.144145 2.297298,-1.846846 4.864865,-1.846846 1.486487,0 2.657658,0.765765 l 0,-26.666666 0.990991,0 0,29.144144 q 0,2.522522 -2.207207,4.189189 Q 34.646405,45 31.988749,45 30.502261,45 29.376135,44.144144 28.250009,43.243243 28.250009,41.891892 Z"
22+
fill="#F9F9F9"
23+
/>
1824
</g>
1925
<g>
20-
<path d="m 42.833345,41.891892 q 0,-2.342343 2.297297,-4.144145 2.297298,-1.846846 4.864865,-1.846846 1.486487,0 2.657658,0.765765 l 0,-26.666666 0.990991,0 0,29.144144 q 0,2.522522 -2.207208,4.189189 Q 49.229741,45 46.572085,45 45.085597,45 43.959471,44.144144 42.833345,43.243243 42.833345,41.891892 Z" fill="#F9F9F9"/>
26+
<path
27+
d="m 42.833345,41.891892 q 0,-2.342343 2.297297,-4.144145 2.297298,-1.846846 4.864865,-1.846846 1.486487,0 2.657658,0.765765 l 0,-26.666666 0.990991,0 0,29.144144 q 0,2.522522 -2.207208,4.189189 Q 49.229741,45 46.572085,45 45.085597,45 43.959471,44.144144 42.833345,43.243243 42.833345,41.891892 Z"
28+
fill="#F9F9F9"
29+
/>
2130
</g>
2231
</g>
2332
</svg>

0 commit comments

Comments
 (0)