blockly > utils > svgPaths > lineTo
الدالة utils.svgPaths.lineTo()
ارسم خطًا من النقطة الحالية إلى نقطة النهاية، وهي النقطة الحالية التي تم تحويلها بمقدار د س على طول المحور س وص على طول المحور ص. تكون هذه الإحداثيات غير متحدة وبالتالي في نظام الإحداثيات الخاص بالمستخدم. لمزيد من المعلومات، يُرجى الاطّلاع على developer.Firefox.org/ar-SA/docs/Web/SVG/Tutorial/Paths#Line_commands.
Signature:
export declare function lineTo(dx: number, dy: number): string;
المعلمات
المعلمة |
النوع |
الوصف |
dx |
الرقم |
إحداثي x النسبي. |
ي |
الرقم |
إحداثي y النسبي. |
المرتجعات:
سلسلة
سلسلة بالتنسيق " l dx,dy '
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-22 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-22 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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."]]],[]]