Skip to content

Commit c938fee

Browse files
committed
user trackign colors, working-incomplete
1 parent f88a27b commit c938fee

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

app/src/components/main/Canvas.tsx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,23 @@ function Canvas(props: {}): JSX.Element {
222222
currentComponent.style
223223
);
224224

225+
// const userColors = ['#FC00BD', '#D0FC00', '#00DBFC', '#FD98B8', '#FCAA00', '#9267FF']
226+
// // const colorMaker = () => {
227+
// // let i = Math.floor(Math.random() * userColors.length);
228+
// // let color = userColors[i];
229+
// // userColors.splice(i, 1)
230+
// // return color
231+
// // }
232+
// const colorSelect = (index = 0) => {
233+
// let color = userColors[index];
234+
// index++
235+
// return color
236+
// }
237+
// let setColor = colorSelect()
238+
//or set as object and add key value pair of that username or id, for/of the object to pull the correct color
239+
240+
241+
225242
return (
226243
<div
227244
className={'componentContainer'}
@@ -241,8 +258,8 @@ function Canvas(props: {}): JSX.Element {
241258
left: remoteCursor.x + 'px',
242259
top: remoteCursor.y - 68 + 'px',
243260
//cursor style
244-
fontSize: '40px',
245-
color: '#46c0a5'
261+
fontSize: '2em',
262+
color: '#FC00BD'
246263
}}
247264
>
248265
{<GiBoba />}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactype",
3-
"version": "18.0.0 by Sonya Hu, Hadrian Chan, Nam Ha, Rick McGrath",
3+
"version": "19.0.0 by Rose Jiang, Laura Forden, Lauren Leer, Sean Kil",
44
"description": "Prototyping tool for React/Typescript Applications.",
55
"private": true,
66
"main": "app/.electron/main.js",

0 commit comments

Comments
 (0)