feat: handle the 'pivot' parameter of the Geometry Applet
Dealing with general click and drag on the applet and differentiating between a background drag and dragging an element seemed like too big a task, so this PR simply provides a slider to rotate the diagram when the pivot is defined. Implementing this required storing much more construction data, and also dealing head-on with GeoGebra's shall we say "strange" choice where the value of an expression depends on what name it is assigned to... The resolution of this last bit was to use different GeoGebra names for Geometry Applet points that start with something other than an uppercase Roman letter.
This commit is contained in:
parent
bb1713a674
commit
85ad82d9e2
2 changed files with 155 additions and 63 deletions
|
@ -101,7 +101,7 @@ export interface AppletObject {
|
|||
getXcoord(objName: string): number;
|
||||
getYcoord(objName: string): number;
|
||||
getZcoord(objName: string): number;
|
||||
setCoords(objName: string, x: number, y: number, z: number): void;
|
||||
setCoords(objName: string, x: number, y: number, z?: number): void;
|
||||
getValue(objName: string): number;
|
||||
getVersion(): string;
|
||||
getScreenshotBase64(callback: (data: string) => void, scale?: number): void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue