-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from x-image-privacy/2-random-position
Random position on circle
- Loading branch information
Showing
6 changed files
with
349 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
export const CONTAINER_WIDTH = 500; | ||
export const CONTAINER_HEIGHT = 300; | ||
|
||
export const CENTER_Y = CONTAINER_HEIGHT / 2; | ||
export const CENTER_X = CONTAINER_WIDTH / 2; | ||
|
||
export const DEFAULT_RECT = { x: CENTER_X, y: CENTER_Y, width: 10, height: 10 }; | ||
export const DEFAULT_RECT = { | ||
x: CENTER_X, | ||
y: CENTER_Y, | ||
width: 10, | ||
height: 10, | ||
}; | ||
|
||
export const INTERVAL = { | ||
a: { x: 0, y: 89 }, | ||
b: { x: 90, y: 179 }, | ||
c: { x: 180, y: 269 }, | ||
d: { x: 270, y: 360 }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import App from './App' | ||
import './index.css' | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import "./index.css"; | ||
import Wordcloud from "./Wordcloud"; | ||
|
||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
import { defaultWords1, defaultWords2 } from "./data"; | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
) | ||
<Wordcloud data={defaultWords2} /> | ||
</React.StrictMode> | ||
); |
Oops, something went wrong.