रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > browserEvents > mouseToSvg
ब्राउज़रइवेंट.mouseToSvg() फ़ंक्शन
दिए गए माउस इवेंट के बदले गए निर्देशांक दिखाता है. ऑरिजिन (0,0), Blockly SVG का सबसे ऊपर वाला बायां कोना है.
हस्ताक्षर:
export declare function mouseToSvg(e: MouseEvent, svg: SVGSVGElement, matrix: SVGMatrix | null): SVGPoint;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
e |
MouseEvent |
माउस इवेंट. |
svg |
SVGSVGElement |
SVG एलिमेंट होना चाहिए. |
मैट्रिक्स |
SVGMatrix | शून्य |
इन्वर्टेड स्क्रीन सीटीएम. |
लौटाए जाने वाले प्रॉडक्ट:
SVGPoint
.x और .y प्रॉपर्टी वाले ऑब्जेक्ट.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["`browserEvents.mouseToSvg()` converts mouse event coordinates to SVG coordinates relative to the Blockly SVG's top-left corner."],["The function takes a MouseEvent, an SVGSVGElement, and an optional inverted screen CTM as input."],["It returns an SVGPoint object containing the converted x and y coordinates."]]],[]]