Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Endpoint] Adding a Resolver component that lets the user click and drag to pan and pinch to zoom #53619

Merged
Merged
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
ccf0621
WIP setting up react, redux, etc
Dec 3, 2019
c88400c
WIP more
Dec 3, 2019
a07d0fd
WIP even more
Dec 3, 2019
b0203ae
wip more. about to make a component and test worldToRaster
Dec 3, 2019
3e530e6
added react-redux types. working on world to raster
Dec 3, 2019
e052cd9
passing but so wrong
Dec 3, 2019
f2d6416
this is just wrong
Dec 3, 2019
83bf9e5
getting some world to raster action
Dec 3, 2019
84474e3
just about passing
Dec 3, 2019
6280558
removed tostring junk
Dec 3, 2019
0484291
refactored tests to use toBeCloseTo
Dec 3, 2019
dadcb6d
fix issues
Dec 3, 2019
2caea42
maybe panning is working? hard to know
Dec 3, 2019
1a193a9
pan around a bit
Dec 3, 2019
138fe88
add wheel zoom, but zoom isn't working
Dec 4, 2019
c54ed96
stopped using the delta panning but it obviously didnt help. would it…
Dec 4, 2019
d3c8b1d
worldToRaster tests were failing because we limited the zoom
Dec 4, 2019
1638551
fixed tests
Dec 4, 2019
661c726
seems like pan and zoom almost works
Dec 4, 2019
27aca81
add tests for panning
Dec 4, 2019
e7323cf
add some zoom tests
Dec 4, 2019
6cd3580
Added failing (unimplemented) zoom tests
Dec 4, 2019
f4326ac
zoom works, at least in the reducer
Dec 4, 2019
9736f6b
Panning and zooming is almost done
Dec 4, 2019
b314ddb
style diagnostic dots
Dec 4, 2019
0fb78a2
refactor stuff to use vectors and matrices
Dec 5, 2019
1fa6edb
more matrices
Dec 5, 2019
5157b2d
brent made me do it
Dec 5, 2019
73b08da
mousmove is on window now
Dec 5, 2019
4b381f5
move mouseup event to window. blacklist userFocusedOnWorldCoordinates
Dec 5, 2019
d753158
fix mouseup handler
Dec 6, 2019
183528a
prevent default when handling wheel
Dec 6, 2019
1dc6683
invert wheel zoom
Dec 7, 2019
e007b38
add comments to types and stuff
Dec 17, 2019
59703e6
change camera state shape. rename projectionMatrix
Dec 17, 2019
5673312
rename projection matrix test file. also raster to world is now a matrix
Dec 17, 2019
750369c
rename inverse projection matrix
Dec 17, 2019
b074f7b
rename inverse projection matrix test file
Dec 17, 2019
daddda4
panning actions take screen coordinates
Dec 17, 2019
bc5d15f
document stuff
Dec 19, 2019
4669d77
Documenting more types
Dec 19, 2019
0a1df7d
change all the interface imports again as usual
Dec 19, 2019
52f79c6
cleanup
Dec 20, 2019
f87e2b4
move diagnostic dot to new file
Dec 20, 2019
5863434
move autoupdating client rect to new file, refactor it
Dec 20, 2019
b2950c2
move nonpassive wheel hook to new file
Dec 20, 2019
6c500e3
trying to fix dumb zoom issue but dont know whats wrong
Dec 20, 2019
9eca46e
improve types and docs for useAutoupdatingClientRect
Dec 20, 2019
f7c66d4
fix tests, imports. also remove `http` concern from Resolver for now
Jan 2, 2020
b153b8c
rename userSetPositionOfCamera
Jan 6, 2020
71399aa
remove cancel panning concept
Jan 7, 2020
48df3c3
comments
Jan 7, 2020
d163e1a
rename Resolver component?
Jan 7, 2020
1dc1e18
more comments
Jan 7, 2020
ae4b9e7
completely remove canel panning feature
Jan 8, 2020
72d575b
add comment explaining the camera
Jan 8, 2020
bfd2284
Basic layout process nodes and edges
peluja1012 Dec 23, 2019
6ed3110
Add reducer, action, tests, and refactor
peluja1012 Jan 8, 2020
df21333
add some comments, move test variables
peluja1012 Jan 8, 2020
827bba8
small changes
peluja1012 Jan 8, 2020
8340ccd
fix errors in sample data
Jan 8, 2020
5980c39
cleanup and add more tests
Jan 8, 2020
b6da356
about to replace graphableProcessPidMaps
Jan 8, 2020
8347749
tiny refactor
Jan 8, 2020
f9ac348
working on refactoring the layout code
Jan 8, 2020
feaf213
big ol refactor
Jan 9, 2020
a438da6
we are cool
Jan 9, 2020
261e0f1
megafactor
Jan 9, 2020
3d89e00
refactor edge lines
Jan 9, 2020
ee2b076
cleanup
Jan 9, 2020
7b241ae
loop unravel
Jan 9, 2020
bc26420
cleanup
Jan 9, 2020
b2d8d5b
cleanup
Jan 9, 2020
bc840fc
more elite code
Jan 9, 2020
2ae6307
more stuff
Jan 9, 2020
d78c475
just about good
Jan 9, 2020
5f37888
we must never speak of this
Jan 9, 2020
5112ed7
get isometric
Jan 9, 2020
1ebcddc
remove todo
Jan 9, 2020
1fef3b7
update snapshots to match isometric stuff
Jan 9, 2020
679fa35
remove unused function
Jan 9, 2020
57fa7f9
add some comments
peluja1012 Jan 10, 2020
2462aa2
more commints
Jan 13, 2020
015c110
do comments right
Jan 13, 2020
ce7880b
comments
Jan 13, 2020
b5df646
remove endpoint workspace
Jan 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused function
  • Loading branch information
oatkiller committed Jan 14, 2020
commit 679fa35f6ea515132a914abfa588a2acba8290d2
Original file line number Diff line number Diff line change
@@ -71,12 +71,3 @@ export function translationTransformation([x, y]: Vector2): Matrix3 {
0, 0, 1
]
}

export function rotationTransformation(angleInRadians: number): Matrix3 {
// prettier-ignore
return [
Math.cos(angleInRadians), -Math.sin(angleInRadians), 0,
Math.sin(angleInRadians), Math.cos(angleInRadians), 0,
0, 0, 1
]
}
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@
*/

import { createSelector } from 'reselect';
import { rotationTransformation } from '../../lib/transformation';
import {
DataState,
ProcessEvent,