Skip to content

Commit

Permalink
Merge pull request #94 from quadratichq/74-grid-axis-do-not-render-on…
Browse files Browse the repository at this point in the history
…-some-platforms-1

reduce axes length to a resonable length that WebGL renders on M1
  • Loading branch information
davidkircos committed Jun 30, 2022
2 parents fd79132 + 65886c6 commit 7ede7a1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/gridGL/graphics/AxesPixiReact.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback } from "react";
import { Graphics } from "@inlet/react-pixi";
import { Graphics as PixiGraphics } from "pixi.js";
import { useCallback } from 'react';
import { Graphics } from '@inlet/react-pixi';
import { Graphics as PixiGraphics } from 'pixi.js';

interface AxesPixiReactProps {
visible: boolean;
Expand All @@ -12,13 +12,13 @@ const AxesPixiReact = (props: AxesPixiReactProps) => {
g.clear();

if (props.visible) {
g.lineStyle(1, 0x000000, 0.2, 0, true);
g.lineStyle(1, 0x000000, 0.35, 0, true);

g.moveTo(-1000000000000, 0);
g.lineTo(1000000000000, 0);
g.moveTo(-1000000, 0);
g.lineTo(1000000, 0);

g.moveTo(0, -1000000000000);
g.lineTo(0, 1000000000000);
g.moveTo(0, -1000000);
g.lineTo(0, 1000000);
}
},
[props.visible]
Expand Down

0 comments on commit 7ede7a1

Please sign in to comment.