रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > utils > svgPaths > कर्व
utils.svgPaths.curve() फ़ंक्शन
एक घन या द्विघात वक्र आरेखित करें. developer.google.org/en-US/docs/Web/SVG/Attribute/d#Cubic_B%C3%A9zier_Curve को देखें. ये निर्देशांक एक ही इकाई के हैं और उपयोगकर्ता कोऑर्डिनेट सिस्टम में हैं.
हस्ताक्षर:
export declare function curve(command: string, points: string[]): string;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
निर्देश |
स्ट्रिंग |
इस्तेमाल करने के लिए निर्देश. यह इनमें से एक होना चाहिए: c, C, s, S, q, Q. |
अंक |
स्ट्रिंग[] |
वह कलेक्शन जिसमें कर्व कमांड को पास किए जाने वाले सभी पॉइंट, क्रम से दिए गए हैं. पॉइंट, ' फ़ॉर्मैट की स्ट्रिंग के तौर पर दिखाए जाते हैं x, y '. |
लौटाए जाने वाले प्रॉडक्ट:
स्ट्रिंग
एक या उससे ज़्यादा बेज़ियर कर्व को परिभाषित करने वाली स्ट्रिंग. सही फ़ॉर्मैट के लिए एमडीएन दस्तावेज़ देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-15 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-10-15 (UTC) को अपडेट किया गया."],[[["The `utils.svgPaths.curve()` function draws cubic or quadratic curves within the user coordinate system using SVG path commands."],["It takes a `command` specifying the curve type (c, C, s, S, q, Q) and an array of `points` in 'x, y' format as input."],["The function returns a string that defines the Bezier curve(s) for use in SVG path data."],["Refer to the MDN documentation on Cubic Bézier Curves for details on the expected format and usage within SVG paths."]]],[]]