@khanacademy/perseus-editor 18.0.1 → 18.1.0

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { Changeable } from "@khanacademy/perseus";
5
5
  import * as React from "react";
6
- import type { AxisLabelLocation, MarkingsType, PerseusImageBackground } from "@khanacademy/perseus-core";
6
+ import type { MarkingsType, PerseusImageBackground } from "@khanacademy/perseus-core";
7
7
  type ChangeFn = typeof Changeable.change;
8
8
  type Range = [min: number, max: number];
9
9
  type Props = {
@@ -15,13 +15,6 @@ type Props = {
15
15
  * The labels for the x and y axes.
16
16
  */
17
17
  labels: ReadonlyArray<string>;
18
- /**
19
- * Specifies the location of the labels on the graph. default: "onAxis".
20
- * - "onAxis": Labels are positioned on the axis at the right (x) and top (y) of the graph.
21
- * - "alongEdge": Labels are centered along the bottom (x) and left (y) edges of the graph.
22
- * The y label is rotated. Typically used when the range min is near 0 with longer labels.
23
- */
24
- labelLocation: AxisLabelLocation;
25
18
  /**
26
19
  * The range of the graph.
27
20
  */
@@ -69,7 +62,6 @@ type Props = {
69
62
  type State = {
70
63
  isExpanded: boolean;
71
64
  labelsTextbox: ReadonlyArray<string>;
72
- labelLocation: AxisLabelLocation;
73
65
  gridStepTextbox: [x: number, y: number];
74
66
  snapStepTextbox: [x: number, y: number];
75
67
  stepTextbox: [x: number, y: number];
@@ -83,7 +75,6 @@ declare class InteractiveGraphSettings extends React.Component<Props, State> {
83
75
  labelYRef: React.RefObject<HTMLInputElement>;
84
76
  static stateFromProps(props: Props): {
85
77
  labelsTextbox: readonly string[];
86
- labelLocation: AxisLabelLocation;
87
78
  gridStepTextbox: [x: number, y: number];
88
79
  snapStepTextbox: [x: number, y: number];
89
80
  stepTextbox: [x: number, y: number];
@@ -102,7 +93,6 @@ declare class InteractiveGraphSettings extends React.Component<Props, State> {
102
93
  static defaultProps: {
103
94
  box: 288[];
104
95
  labels: string[];
105
- labelLocation: string;
106
96
  range: number[][];
107
97
  step: number[];
108
98
  gridStep: number[];