jsxgraph 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distrib/geogebra.min.js +1 -1
- package/distrib/geonext.min.js +1 -1
- package/distrib/index.d.ts +56 -3
- package/distrib/intergeo.min.js +1 -1
- package/distrib/jsxgraphcore.js +3 -3
- package/distrib/jsxgraphsrc.js +698 -65
- package/distrib/sketch.min.js +1 -1
- package/package.json +1 -1
- package/src/3d/box3d.js +12 -8
- package/src/3d/surface3d.js +142 -3
- package/src/3d/view3d.js +74 -4
- package/src/base/board.js +21 -18
- package/src/base/constants.js +1 -1
- package/src/element/composition.js +61 -22
- package/src/jsxgraph.js +6 -4
- package/src/math/clip.js +0 -1
- package/src/math/geometry.js +107 -1
- package/src/options3d.js +155 -13
- package/src/renderer/svg.js +7 -4
package/distrib/geogebra.min.js
CHANGED
package/distrib/geonext.min.js
CHANGED
package/distrib/index.d.ts
CHANGED
|
@@ -2939,8 +2939,61 @@ declare namespace JXG {
|
|
|
2939
2939
|
*/
|
|
2940
2940
|
export class Ticks extends GeometryElement {
|
|
2941
2941
|
constructor(line: Line, ticks: number | unknown[], attributes: TicksAttributes);
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* Equidistant ticks. Distance is defined by `ticksFunction`.
|
|
2945
|
+
*/
|
|
2946
|
+
equidistant: boolean;
|
|
2947
|
+
|
|
2948
|
+
/**
|
|
2949
|
+
* Array of fixed ticks.
|
|
2950
|
+
*/
|
|
2951
|
+
fixedTicks: number[] | null;
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* To ensure the uniqueness of label ids this counter is used.
|
|
2955
|
+
*/
|
|
2956
|
+
labelCounter: number;
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* Array where the labels are saved.
|
|
2960
|
+
*/
|
|
2961
|
+
labels: Label[];
|
|
2962
|
+
|
|
2963
|
+
/**
|
|
2964
|
+
* The line the ticks belong to.
|
|
2965
|
+
*/
|
|
2966
|
+
line: Line;
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* Least distance between two ticks, measured in pixels.
|
|
2970
|
+
*/
|
|
2971
|
+
minTicksDistance: number;
|
|
2972
|
+
|
|
2973
|
+
/**
|
|
2974
|
+
* Stores the ticks coordinates as an array of length 3.
|
|
2975
|
+
*
|
|
2976
|
+
* The first two entries of the array are path coordinates in screen
|
|
2977
|
+
* coordinates of the tick (arrays of length 2). The 3rd entry is true if
|
|
2978
|
+
* the tick is a major tick, otherwise false.
|
|
2979
|
+
*
|
|
2980
|
+
* If the tick is outside of the canvas, the return array is empty.
|
|
2981
|
+
*/
|
|
2982
|
+
ticks: Array<[[x1: number, x2: number], [y1: number, y2: number], boolean]>;
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* Distance between two major ticks in user coordinates
|
|
2986
|
+
*/
|
|
2987
|
+
ticksDelta: number;
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* A function calculating ticks delta depending on the ticks number.
|
|
2991
|
+
*/
|
|
2992
|
+
ticksFunction: () => number;
|
|
2993
|
+
|
|
2942
2994
|
setAttribute(attributes: TicksAttributes): this;
|
|
2943
2995
|
}
|
|
2996
|
+
|
|
2944
2997
|
/**
|
|
2945
2998
|
*
|
|
2946
2999
|
*/
|
|
@@ -4266,7 +4319,7 @@ declare namespace JXG {
|
|
|
4266
4319
|
/**
|
|
4267
4320
|
*
|
|
4268
4321
|
*/
|
|
4269
|
-
|
|
4322
|
+
emulateColorblindness(deficiency: 'protanopia' | 'deuteranopia' | 'tritanopia'): this;
|
|
4270
4323
|
/**
|
|
4271
4324
|
* After construction of the object the visibility is set and the label is constructed if necessary.
|
|
4272
4325
|
* @param obj The object to add.
|
|
@@ -4284,10 +4337,10 @@ declare namespace JXG {
|
|
|
4284
4337
|
getCoordsTopLeftCorner(): [number, number];
|
|
4285
4338
|
getMousePosition(e: unknown, i?: number): [number, number];
|
|
4286
4339
|
getScrCoordsOfMouse(x: number, y: number): [number, number];
|
|
4287
|
-
|
|
4340
|
+
getUsrCoordsOfMouse(evt: unknown): [number, number];
|
|
4288
4341
|
hasPoint(x: number, y: number): boolean;
|
|
4289
4342
|
highlightCustomInfobox(text: string, element?: GeometryElement): this;
|
|
4290
|
-
|
|
4343
|
+
highlightInfobox(x: number, y: number, element?: GeometryElement): this;
|
|
4291
4344
|
initInfobox(): this;
|
|
4292
4345
|
initMoveObject(x: number, y: number, event: unknown, type: 'mouse' | 'pen' | 'touch'): GeometryElement[];
|
|
4293
4346
|
initMoveOrigin(x: number, y: number): unknown;
|
package/distrib/intergeo.min.js
CHANGED