You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Remove file public/externalLibs/graphics/webGLcurve.js (curve renders & code related to generating curve)
Remove file public/externalLibs/graphics/webGLhi_graph_ce.js (curve transformations + code from repeat module)
Remove relevant code from src/commons/application/types/ExternalTypes.ts (curve library & functions exposed in curve library, Intentionally left CURVES = 'CURVES', intact (line 14) to prevent errors in other files)
Remove curve related code from public/externalLibs/graphics/webGLgraphics.js
cadet-frontend/public/externalLibs/index.js no longer loads webGlhi_graph_ce and webGlcurve when loading all libs
Type of change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update
Code quality improvements
How to test
Any existing code which tries to load curve library will fail because it does not exist anymore. I have left the ExternalLibraryName.CURVES as it is to prevent any errors in those files affected (e.g. AssessmentMocks.ts, WorkspaceSaga.ts)
anaglyph
beside
beside_frac
black
blank
blue
brown
circle
color
corner
flip_horiz
flip_vert
green
heart
hollusion
indigo
make_cross
nova
orange
overlay
overlay_frac
pentagram
pink
purple
quarter_turn_left
quarter_turn_right
random_color
rcross
red
repeat_pattern
ribbon
rotate
sail
scale
scale_independent
show
square
stack
stack_frac
stackn
translate
turn_upside_down
white
yellow
These are the runes I used for testing. Other libraries are able to load, including all libraries, but I did not extensively test other libraries other than runes as they are unlikely to be affected.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Remove curve related code.
public/externalLibs/graphics/webGLcurve.js
(curve renders & code related to generating curve)public/externalLibs/graphics/webGLhi_graph_ce.js
(curve transformations + code from repeat module)src/commons/application/types/ExternalTypes.ts
(curve library & functions exposed in curve library, Intentionally left CURVES = 'CURVES', intact (line 14) to prevent errors in other files)public/externalLibs/graphics/webGLgraphics.js
cadet-frontend/public/externalLibs/index.js
no longer loadswebGlhi_graph_ce
andwebGlcurve
when loading all libsType of change
How to test
Any existing code which tries to load curve library will fail because it does not exist anymore. I have left the ExternalLibraryName.CURVES as it is to prevent any errors in those files affected (e.g. AssessmentMocks.ts, WorkspaceSaga.ts)
Rune library should however work as before. (https://source-academy.github.io/source/RUNES/)
i.e. these functions should work
These are the runes I used for testing. Other libraries are able to load, including all libraries, but I did not extensively test other libraries other than runes as they are unlikely to be affected.
Documentation has been ported to modules repository together with the relevant code.
Checklist