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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- JSXGraph 1.4.3
2
+ JSXGraph 1.4.4
3
3
 
4
4
  Copyright 2008-2022
5
5
  Matthias Ehmann,
@@ -1,5 +1,5 @@
1
1
  /*
2
- JSXGraph 1.4.3
2
+ JSXGraph 1.4.4
3
3
 
4
4
  Copyright 2008-2022
5
5
  Matthias Ehmann,
@@ -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
- emulateColorBlindness(deficiency: 'protanopia' | 'deuteranopia' | 'tritanopia'): this;
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
- getUseCoordsOfMouse(evt: unknown): [number, number];
4340
+ getUsrCoordsOfMouse(evt: unknown): [number, number];
4288
4341
  hasPoint(x: number, y: number): boolean;
4289
4342
  highlightCustomInfobox(text: string, element?: GeometryElement): this;
4290
- highlightInfbox(x: number, y: number, element?: GeometryElement): this;
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;
@@ -1,5 +1,5 @@
1
1
  /*
2
- JSXGraph 1.4.3
2
+ JSXGraph 1.4.4
3
3
 
4
4
  Copyright 2008-2022
5
5
  Matthias Ehmann,