← 수업 제작 도구
홈 › Components › Graph and Graphing Calc › 화면 24

화면 24. Graph.trace [sink]

원본: Computation Layer 문서(Graph) · Try It (원본 화면)

화면 번호24 / 29
문서 항목 설명 (원문)Allows tracing curves to inspect coordinates and shows point coordinates when clicked.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 24 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그래프그래프
# Trace allows students to click on points and lines
# to show the coordinates of the point on the graph
# they clicked on. Here, we have set "trace: true"
# and "trace: false" only as an example. Simply type
# "trace: false" if you want to prevent students from
# clicking on the graph to show more information. By
# default, it is set to true.
▷ trace는 학생이 점이나 선을 클릭하면 그 점의 좌표를 보여 주는 기능이다. 여기서는 예시로 "trace: true"와 "trace: false"를 정해 두었다. 학생이 그래프를 클릭해 더 많은 정보를 보지 못하게 하려면 "trace: false"라고 쓰면 된다. 기본값은 true이다.

trace: traceChoice.isSelected(1)
▶ 추적(trace)은 객관식 traceChoice의 1번 보기("trace: true")가 선택되었는지를 알려 주는 값(traceChoice.isSelected(1))으로 한다.
trace는 점이나 곡선을 클릭했을 때 그 좌표를 보여 주는 기능이고, isSelected(1)은 1번 보기가 선택되었는지를 참 또는 거짓으로 알려 준다. 1번을 고르면 점이나 곡선을 클릭했을 때 좌표가 표시되고, 2번("trace: false")을 고르거나 아직 아무 보기도 고르지 않았으면 표시되지 않는다.