ntueelightdance / lightdance-editor Goto Github PK
View Code? Open in Web Editor NEWLightDance editor for choreographing and controlling.
License: MIT License
LightDance editor for choreographing and controlling.
License: MIT License
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
use restful api and get data from redis
Describe alternatives you've considered
no
Additional context
Is your feature request related to a problem? Please describe.
We want to get dancer data from the backend.
Describe the solution you'd like
Call dancer api.
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
Editing feature is not available so far.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Nope.
Describe the bug
The origin implementation makes the performance bad. The player will update their status after a delay.
To Reproduce
Just press the play button.
Expected behavior
Expected the players to changing smoothly.
Screenshots
None
Additional context
None
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Use ApolloClient.subscribe to connect subscription api.
Describe alternatives you've considered
None
Additional context
None
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
None
Additional context
Describe the bug
In the pull request template, it requires user to link to the JIRA issue. However, we don't use JIRA in this project.
To Reproduce
Just create a pull request.
Expected behavior
A user should link to the GitHub issue.
Screenshots
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
No
Describe the bug
TypeScript errors
All variables' types in these file are "any" at present, but in TypeScript, they should have specific types instead of any.
To Reproduce
See code in vscode, and it would show related errors.
Expected behavior
No errors showed in code.
Screenshots
An example in /commandCenter/agent.tsx
Additional context
Is your feature request related to a problem? Please describe.
We have modified folder structures from issue #21 and pull request #24.
Hence, the README.md, package.json, and .lock files need to be updated, and some files should be removed.
Besides, I will configure Docker for development and production.
Describe the solution you'd like
Update
Move
Remove
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Just copy our work
Describe alternatives you've considered
None
Additional context
None
Is your feature request related to a problem? Please describe.
We want to add more hotkeys to the editor.
Ex. ctrl + c/v/s/a
Describe the solution you'd like
https://react-hotkeys-hook.vercel.app/
Describe alternatives you've considered
Use event listeners.
Additional context
None.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
as described in this notion page
Describe alternatives you've considered
none
Additional context
Is your feature request related to a problem? Please describe.
the previous pr still has a few flaws, and now I'm gonna fix them
Describe the solution you'd like
add editor layout preference to settings
beautify layout code structure
Describe alternatives you've considered
none
Additional context
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
add editor state
Describe alternatives you've considered
none
Additional context
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
None
Additional context
None
Describe the bug
type errors
To Reproduce
tsc
Expected behavior
Screenshots
Additional context
Describe the bug
redux-toolkit codes have a lot of errors , after changed to tsx.
To Reproduce
Hover the cursor on codes with readlines, then VScode will give you the error hint
Expected behavior
Errors doesn't affect any performance of App
Screenshots
Additional context
references:
https://redux-toolkit.js.org/tutorials/typescript
https://www.youtube.com/watch?v=udr2rx_B99w&t=943s
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
None
Additional context
None
Describe the bugs
To Reproduce
trivial
Is your feature request related to a problem? Please describe.
We decided to use Typescript in devlopment, so we have to make Webpack support typescripts.
Describe the solution you'd like
Modify Webpack configuration files.
Describe alternatives you've considered
Additional context
None.
Describe the bug
editcontrolmap broken
To Reproduce
use editcontrolmap api
Expected behavior
Screenshots
Additional context
Describe the bug
We forget to call RequestEditPosition
and RequestEditControl
before editing them.
To Reproduce
node initDB.js
Expected behavior
Put 2021's data into mongodb.
Screenshots
None.
Additional context
None.
Describe the bug
To Reproduce
Expected behavior
"editing" of frame should be null
Screenshots
Additional context
Is your feature request related to a problem? Please describe.
LightDance-Editor is a huge project, adding typescript makes it more friendly and easy-to-read for new contributors. Also , typescript helps avoid unnecessary type mismatch or error during developing.
This issue is dedicated to convert /components/simulator & /slices to typescript
Describe the solution you'd like
Wishing 2 goals above are achieved.
Describe alternatives you've considered
no
Additional context
there are many errors, which doesn't affect the performance of App, to be solved
Is your feature request related to a problem? Please describe.
Complete operations [add, delete, apply] for effect lists.
Describe the solution you'd like
Use append + sort for apply.
Describe alternatives you've considered
None
Additional context
None
Test for github project management.
Reference: https://docs.github.com/en/issues/trying-out-the-new-projects-experience/about-projects
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Additional context
The editControlMap api used to accept frameID as arg. However, since we need start time to add new frame, the arg changes from frameID to start time.
Is your feature request related to a problem? Please describe.
It's not easy to combine Apollo client with Redux since the Apollo client does internal caching.
We should make states from the backend (controlMap
, controlRecord
, posMap
, posRecord
, colorMap
) store in Apollo cache.
Besides, we also want our third-party classes (three
, wavesurfer
) to interact with the cache without using useEffect
.
Also, try Apollo reactive variables
for more client states instead of Redux store.
Describe the solution you'd like
three
and wavesurfer
inside it. (useThreeController
, useWavesurfer
)three
and wavesurfer
inside it as instances. React component can still get the data by useQuery
since it gets data from the same cache.Describe alternatives you've considered
None.
Additional context
Make currentStatus
reset to origin on canceling EDIT or ADD.
Describe the bug
Data of export Data is not correct
To Reproduce
you can found something weird in export.json
Expected behavior
correct data
Screenshots
Additional context
Is your feature request related to a problem? Please describe.
Effects (a set of multiple frames) application to control record is considered needed for the user
Describe the solution you'd like
Add effectList to support following feature:
Additional context
Further feature to improve user experience for effect list:
Is your feature request related to a problem? Please describe.
We want to have a frame list for editing light and position.
Describe the solution you'd like
Make on frame component to replace pos editor.
Describe alternatives you've considered
None.
Additional context
None.
Describe the bug
To Reproduce
typescript would tell you
Expected behavior
Screenshots
Additional context
Is your feature request related to a problem? Please describe.
We decided to have a new format of posRecord. Hence, we should modify the code to support the new format.
color
posRecord
\\array of IDs
['12345', '23456' ...]
posMap
{
'12345': {
"start": 0,
"pos": {
"1_191": {
"x": -442.7718580296398,
"y": -252.1772331816769,
"z": -252.1772331816769
},
"2_ke": {
"x": -293.6416750973868,
"y": -264.31545805777137,
"z": -264.31545805777137
},
"3_zhou": {
"x": -138.2022624530855,
"y": -270.07074017584773,
"z": -270.07074017584773
},
"4_kuang": {
"x": 28.613079891473376,
"y": -267.9222789292476,
"z": -267.9222789292476
},
"5_lin": {
"x": 203.86167501108423,
"y": -262.2754880005415,
"z": -262.2754880005415
},
"6_liao": {
"x": -468.5820711579605,
"y": -7.3377642086082915,
"z": -7.3377642086082915
},
"7_mon": {
"x": -284.76139788261054,
"y": 3.1311015020976924,
"z": 3.1311015020976924
},
"8_fan": {
"x": -103.48413741825863,
"y": 21.742391194094637,
"z": 21.742391194094637
},
"9_chia": {
"x": 58.21831712028427,
"y": 29.160014683812392,
"z": 29.160014683812392
},
"10_lu": {
"x": 232.76372155583397,
"y": 33.13143309098655,
"z": 33.13143309098655
},
"1_sw": {
"x": -599.5792867265321,
"y": -333.7327965887821,
"z": -333.7327965887821
},
"2_sw": {
"x": -550.3384243140316,
"y": -284.74304865624,
"z": -284.74304865624
},
"3_sw": {
"x": -603.9760248612921,
"y": -15.778998425016482,
"z": -15.778998425016482
},
"4_sw": {
"x": -552.1787181424224,
"y": 17.420497486803185,
"z": 17.420497486803185
},
"5_sw": {
"x": 445.41199683688524,
"y": -293.02880795483486,
"z": -293.02880795483486
},
"6_sw": {
"x": 488.9454375268913,
"y": -250.5843343942272,
"z": -250.5843343942272
},
"7_sw": {
"x": 535.2955518764238,
"y": -196.6074811364183,
"z": -196.6074811364183
},
"8_sw": {
"x": 441.50144207035487,
"y": -15.384031548741461,
"z": -15.384031548741461
},
"9_sw": {
"x": 489.24915097340704,
"y": 22.11243053364842,
"z": 22.11243053364842
},
"10_sw": {
"x": 546.7498041637546,
"y": 64.53520563582373,
"z": 64.53520563582373
}
}
}
}
Describe the solution you'd like
Modify the related codes.
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
We hope to lock up the frames if other editor is editing.
Describe the solution you'd like
Request and Cancel edit permission APIs
Describe alternatives you've considered
none
Additional context
We also add an unique userID for every user.
Is your feature request related to a problem? Please describe.
We want to switch to a new format. Hence, the issue is for requesting sample files.
Describe the solution you'd like
Add a new helper file utils/transformControl.js
.
Usage:
node utils/transformControl.js <input_old_control.json> <output_controlRecord.json> <output_controlMap.json>
Describe alternatives you've considered
None
Additional context
None
Is your feature request related to a problem? Please describe.
None.
Describe the solution you'd like
Just add a new conponent.
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
Current UI layout is not very user friendly and efficient on content display.
Describe the solution you'd like
Create a new layout to be selected by default and a few more configurations optimizing different workflow, allowing users to between once another.
Describe alternatives you've considered
make an adobe Premiere style multi-track editor frontend
Additional context
None
Is your feature request related to a problem? Please describe.
Add editor-server for light dance editor
Describe the solution you'd like
Use type-graphql , apollo-server, and mongodb
Additional context
We'll first finish primitive backend server in the first PR, and leave the rest features in upcoming PRs
Is your feature request related to a problem? Please describe.
We want to implement following co-edit functions:
none
Additional context
none
Describe the bug
RT
To Reproduce
Expected behavior
no Error
Screenshots
Additional context
Describe the bug
Wavesurfer switch is reversed
To Reproduce
just open the editor
Expected behavior
trivial
Screenshots
Additional context
Describe the bug
To Reproduce
Expected behavior
Screenshots
Additional context
Is your feature request related to a problem? Please describe.
We decided to have a new format of controlRecord. Hence, we should modify the code to support the new format.
color
// a mapping of color name to color value
{
"red1": "#ff0000",
}
controlRecord
// a list of id
["12345", "56789", "123123", "345234"]
controlMap
// a mapping of id to status
{
'12345': {
"start": 0,
"fade": 0,
"status": {
"1_191": {
// fiber
"F_HEAD": { color: "red1", alpha: 0 },
// el
"B_BELT": 0,
"B_BODY": 0,
"B_L_ARM": 0,
"B_L_FOREARM": 0,
"B_L_LEG": 0,
"B_L_PANT": 0,
"B_L_SHOE": 0,
"B_MASK": 0,
"B_R_ARM": 0,
"B_R_FOREARM": 0,
"B_R_LEG": 0,
"B_R_PANT": 0,
"B_R_SHOE": 0,
"S_L_HAND": 0,
"S_L_PANT": 0,
"S_BELT": 0,
"S_COLLAR": 0,
"S_GLASSES": 0,
"S_HAT": 0,
"S_L_COAT": 0,
"S_L_SHOE": 0,
"S_NECKTIE": 0,
"S_R_COAT": 0,
"S_R_HAND": 0,
"S_R_PANT": 0,
"S_R_SHOE": 0,
// led
"LED_L_SHOULDER": { "src": "bl_shoulder", "alpha": 0 },
"LED_R_SHOULDER": { "src": "bl_shoulder", "alpha": 0 },
"LED_NECKTIE": { "src": "bl_neckti e", "alpha": 0 },
"LED_BELT": { "src": "bl_belt", "alpha": 0 },
"LED_R_SHOE": { "src": "bl_shoe", "alpha": 0 },
"LED_L_SHOE": { "src": "bl_shoe", "alpha": 0 }
}
}
}
}
Describe the solution you'd like
Modify the codes.
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
Since it's hard to see the dancer in multi-viewpoint, a 3D simulation can solve this problem.
Describe the solution you'd like
With Three.js its possible to simulate the dancers from different viewpoint and texture.
Describe alternatives you've considered
None
Additional context
The 3D simulation should have following fetures:
Describe the bug
Pull request Editor-35 isn't the right one. Please don't bother it
This issue is to fix some problem in editor-35
To Reproduce
Expected behavior
Screenshots
Additional context
Describe the bug
TypeScript errors
All variables' types are "any" at present, but in TypeScript, they should have specific types instead of any.
To Reproduce
See code in vscode, and it would show related errors.
Expected behavior
No errors showed in code.
Screenshots
For example, in /component/presets/presetsList.tsx, line: 63
Additional context
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.