blockly > utils > svgPaths > lineTo
utils.svgPaths.lineTo() işlevi
Geçerli noktadan bitiş noktasına kadar bir çizgi çizin. Bitiş noktası, x ekseni boyunca dx, y ekseni boyunca dx kaydırılan akım noktasıdır. Bu koordinatlar birimsizdir ve bu nedenle kullanıcı koordinat sisteminde yer alır. developer.mozilla.org/en-US/docs/Web/SVG/Eğitici/Paths#Line_commands adresine göz atın.
İmza:
export declare function lineTo(dx: number, dy: number): string;
Parametreler
Parametre |
Tür |
Açıklama |
dx |
sayı |
Göreli x koordinatı. |
dy |
sayı |
Göreli y koordinatı. |
Şunu döndürür:
dize
" l dx,dy '
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-22 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-22 UTC."],[[["The `utils.svgPaths.lineTo()` function generates an SVG path command to draw a line from the current point to a new point relative to the current position."],["It takes two arguments: `dx` (the change in x-coordinate) and `dy` (the change in y-coordinate), both in user coordinate units."],["The function returns a string representing the SVG path command for drawing the line, formatted as ' l dx,dy '."],["This command is used within SVG path definitions to create line segments, contributing to the overall shape or drawing within the SVG."]]],[]]