File tree 4 files changed +0
-22
lines changed
content/Backgrounds/Dither
tailwind/Backgrounds/Dither
ts-default/Backgrounds/Dither
ts-tailwind/Backgrounds/Dither 4 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -270,14 +270,9 @@ export default function Dither({
270
270
enableMouseInteraction = true ,
271
271
mouseRadius = 1
272
272
} ) {
273
- const isMac = navigator . userAgentData
274
- ? navigator . userAgentData . platform . toLowerCase ( ) === "macos"
275
- : / m a c i n t o s h | m a c o s x / i. test ( navigator . userAgent ) ;
276
-
277
273
return (
278
274
< Canvas
279
275
className = "dither-container"
280
- style = { { padding : isMac ? "1px" : "2px" } }
281
276
camera = { { position : [ 0 , 0 , 6 ] } }
282
277
dpr = { window . devicePixelRatio }
283
278
gl = { { antialias : true , preserveDrawingBuffer : true } }
Original file line number Diff line number Diff line change @@ -268,14 +268,9 @@ export default function Dither({
268
268
enableMouseInteraction = true ,
269
269
mouseRadius = 1
270
270
} ) {
271
- const isMac = navigator . userAgentData
272
- ? navigator . userAgentData . platform . toLowerCase ( ) === "macos"
273
- : / m a c i n t o s h | m a c o s x / i. test ( navigator . userAgent ) ;
274
-
275
271
return (
276
272
< Canvas
277
273
className = "w-full h-full relative"
278
- style = { { padding : isMac ? "1px" : "2px" } }
279
274
camera = { { position : [ 0 , 0 , 6 ] } }
280
275
dpr = { window . devicePixelRatio }
281
276
gl = { { antialias : true , preserveDrawingBuffer : true } }
Original file line number Diff line number Diff line change @@ -315,15 +315,9 @@ export default function Dither({
315
315
enableMouseInteraction = true ,
316
316
mouseRadius = 1 ,
317
317
} : DitherProps ) {
318
- const isMac =
319
- ( navigator as any ) . userAgentData
320
- ? ( navigator as any ) . userAgentData . platform . toLowerCase ( ) === "macos"
321
- : / m a c i n t o s h | m a c o s x / i. test ( navigator . userAgent ) ;
322
-
323
318
return (
324
319
< Canvas
325
320
className = "dither-container"
326
- style = { { padding : isMac ? "1px" : "2px" } }
327
321
camera = { { position : [ 0 , 0 , 6 ] } }
328
322
dpr = { window . devicePixelRatio }
329
323
gl = { { antialias : true , preserveDrawingBuffer : true } }
Original file line number Diff line number Diff line change @@ -313,15 +313,9 @@ export default function Dither({
313
313
enableMouseInteraction = true ,
314
314
mouseRadius = 1 ,
315
315
} : DitherProps ) {
316
- const isMac =
317
- ( navigator as any ) . userAgentData
318
- ? ( navigator as any ) . userAgentData . platform . toLowerCase ( ) === "macos"
319
- : / m a c i n t o s h | m a c o s x / i. test ( navigator . userAgent ) ;
320
-
321
316
return (
322
317
< Canvas
323
318
className = "w-full h-full relative"
324
- style = { { padding : isMac ? "1px" : "2px" } }
325
319
camera = { { position : [ 0 , 0 , 6 ] } }
326
320
dpr = { window . devicePixelRatio }
327
321
gl = { { antialias : true , preserveDrawingBuffer : true } }
You can’t perform that action at this time.
0 commit comments