홈 › Components › Graph and Graphing Calc
Graph and Graphing Calc
원본: Computation Layer 문서(Graph). 문서의 Try It 예제가 가리키는 화면 29개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.
| 화면 | 이름 | CL 수 | 문서 항목 설명 (원문 일부) |
|---|---|---|---|
| 1 | Graph.number [source] | 2 | Gets the numerical value of a variable in the graph. |
| 2 | Graph.calculatorState [source] | 1 | Gets the full state of a graph. Pass this, for example, into the graphLayer method. |
| 3 | Graph.numberList [source] | 3 | Gets the list of numbers that was assigned to the variable in the graph. |
| 4 | Graph.animationTime [source] | 3 | Gets the position of the animation playhead. Use in conjunction with animationDuration. |
| 5 | Graph.bounds [source] | 4 | Gets the bounds of a graph component. |
| 6 | Graph.labelText [source] | 1 | Gets the content from a point label based on the name of the point. |
| 7 | Graph.labelLatex [source] | 2 | Gets the inner latex content from a point label based on the name of the point. |
| 8 | Graph.labelNumericValue [source] | 1 | Evaluates to content of a point label based on the name of the point. |
| 9 | Graph.isAnimating [source] | 1 | Tells whether the animation is running. Use in conjunction with animationDuration. |
| 10 | Graph.currentX/Y [source] | 1 | Gets the current x-coordinate of the mouse. Works on hover with a mouse and while depressed for touch. |
| 11 | Graph.narration [sink] | 1 | Text that screen readers will read aloud. Similar to image alt text, narration can be used to describe a graph or sketch. Example: narration… |
| 12 | Graph.animationDuration [sink] | 3 | Adds an animation playhead on top of the graph as if it were a video. This sets the duration for the animation. A non-positive value hides t… |
| 13 | Graph.animationKeyboardStepValue [sink] | 3 | Sets the amount of time (in seconds) that an animation moves when its scrubber is adjusted with the arrow keys. If not specified, the scrubb… |
| 14 | Graph.saveOnChange [sink] | 3 | Specify a string value. If that value changes, the component saves its state. |
| 15 | Graph.resetAnimationOnChange [sink] | 4 | Specify a string value. If that value changes, the animation timer resets. |
| 16 | Graph.bounds [sink] | 2 | Sets the bounds of the graph. Commonly used in combination with the "background" sink. This overrides user interaction, so we caution agains… |
| 17 | Graph.background [sink] | 2 | Sets the background layer of the graph. |
| 18 | Graph.number [sink] | 3 | Sets the value of a variable in the calculator. This will override any existing definitions of that variable. |
| 19 | Graph.numberList [sink] | 1 | Sets a variable in the calculator to the contents of a list. This will override any existing definitions of that variable. |
| 20 | Graph.pointLabel [sink] | 2 | Sets a label for a point. This only works for points defined like A=(1,2), and the identifier needs to match the name given to the point (A … |
| 21 | Graph.xAxisLabel [sink] | 1 | Sets the string we display along the x-axis. This overrides any user interaction, so we caution against using it with fullscreen graphs. |
| 22 | Graph.yAxisLabel [sink] | 1 | Sets the string we display along the y-axis. This overrides any user interaction, so we caution against using it with fullscreen graphs. |
| 23 | Graph.audioTraceReverseExpressions [sink] | 1 | Specifies whether expressions are traversed in reverse order when audio trace is active. This behavior may be desired in situations where th… |
| 24 | Graph.trace [sink] | 1 | Allows tracing curves to inspect coordinates and shows point coordinates when clicked. |
| 25 | Graph.function [sink] | 1 | Sets the output of simpleFunction() to a variable defined in the graph. |
| 26 | Graph.warning [sink] | 1 | Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon. |
| 27 | Graph.correct [sink] | 1 | Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summary view. |
| 28 | Graph.readOnly [sink] | 2 | Sets a Boolean value that determines whether or not a component will be ignored when determining a screen's correctness. If all components h… |
| 29 | Graph.hidden [sink] | 1 | When true, this component will not be shown to students. |
화면은 없지만 문서에 있는 항목 (3개)
| 종류 | 이름 | 한국어 해석 | 영어 원문 |
|---|---|---|---|
| sink | expression(identifier: latex, ...allowedSymbols: latex) | 계산기의 변수를 주어진 latex 식으로 정한다. 그 변수의 기존 정의는 덮어쓴다. 첫 번째 매개변수는 정의할 변수나 함수의 이름이다. 선택 사항인 나머지 매개변수는 그 latex 식이 참조할 수 있는 기호를 정한다. (기본으로는 계산기에 있는 기존 변수나 함수를 참조할 수 없다.) | Sets a variable in the calculator to an expression with the provided latex. This will override any existing definitions of that variable. The first parameter is the name of the variable or function to be defined. The optional additional parameters specify the symbols that the latex expression is allowed to reference. (By default, it will not be allowed to reference any existing variables or functions in the calculator.) |
| sink | graphDescription | 화면 낭독기가 그래프나 계산기 구성요소 전체에 대해 읽는 설명을 정한다. 그래프에 대한 기본 안내를 덮어쓰는 사용자 지정 접근성 라벨을 줄 때 쓴다. | Sets the description read by screen readers for the entire graph or calculator component. Use this to provide a custom accessible label that overrides the default screen reader announcement for the graph. |
| sink | showResetButton | 기하(geometry) 구성요소이면 재설정 버튼을 둘지를 정한다. | If this is a geometry component, controls the presence of the reset button. |