연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > 유틸리티 > svgPaths > moveBy
utils.svgPaths.moveBy() 함수
선을 그리지 않고 커서를 원하는 위치로 이동합니다. 좌표는 상대적입니다. 이 좌표는 단위가 없으므로 사용자 좌표계입니다. developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths#Line_commands를 참조하세요.
서명:
export declare function moveBy(dx: number, dy: number): string;
매개변수
매개변수 |
유형 |
설명 |
dx |
숫자 |
상대 x 좌표입니다. |
죽음 |
숫자 |
상대적 y 좌표입니다. |
반환:
문자열
' m dx,dy '
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-22(UTC)
[null,null,["최종 업데이트: 2024-08-22(UTC)"],[[["The `moveBy` function generates an SVG path command to move the cursor without drawing, using relative coordinates."],["It accepts `dx` and `dy` parameters representing the relative horizontal and vertical movement, respectively."],["The function returns a string in the format ' m dx,dy ', which can be incorporated into an SVG path string."],["The coordinates provided are unitless and within the user coordinate system."]]],[]]