रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > utils > svgPaths > lineTo
utils.svgPaths.lineTo() फ़ंक्शन
मौजूदा पॉइंट से आखिरी पॉइंट तक एक लाइन बनाएं. यह वह लाइन है जो x-ऐक्सिस पर dx की मदद से शिफ़्ट किया गया है और y-ऐक्सिस पर डाई है. ये निर्देशांक यूनिट नहीं होते हैं और इसलिए यूज़र कोऑर्डिनेट सिस्टम में होते हैं. developer.google.org/en-US/docs/Web/SVG/Tutrial/Paths#Line_commands देखें
हस्ताक्षर:
export declare function lineTo(dx: number, dy: number): string;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
dx |
संख्या |
सापेक्ष x कोऑर्डिनेट. |
डाय |
संख्या |
सापेक्ष y निर्देशांक. |
लौटाए जाने वाले प्रॉडक्ट:
स्ट्रिंग
' फ़ॉर्मैट की स्ट्रिंग l dx,dy '
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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."]]],[]]