संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > इवेंट > ViewportChange
Events.ViewportChange क्लास
यह सूचना देता है कि वर्कस्पेस के प्लैटफ़ॉर्म की पोज़िशन या स्केल बदल गया है.
वर्कस्पेस का साइज़ अपने-आप बदलने पर सूचना नहीं मिलती.
हस्ताक्षर:
export declare class ViewportChange extends UiBase
इससे जुड़े हैं: UiBase
निर्माता
प्रॉपर्टी
प्रॉपर्टी |
मॉडिफ़ायर |
टाइप |
ब्यौरा |
oldScale? |
|
संख्या |
(ज़रूरी नहीं) फ़ाइल फ़ोल्डर का पिछला स्केल. |
scale? |
|
संख्या |
(ज़रूरी नहीं) वर्कस्पेस का स्केल. |
type |
|
EventType |
|
viewLeft? |
|
संख्या |
(ज़रूरी नहीं) वर्कस्पेस के ऑरिजिन के हिसाब से, वर्कस्पेस के दिखने वाले हिस्से का बायां किनारा. |
viewTop? |
|
संख्या |
(ज़रूरी नहीं) Workspace के ऑरिजिन के हिसाब से, Workspace के दिखने वाले हिस्से का ऊपरी किनारा. |
तरीके
तरीका |
मॉडिफ़ायर |
ब्यौरा |
toJson() |
|
इवेंट को JSON के तौर पर कोड में बदलें. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `ViewportChange` class notifies listeners about changes to the workspace surface's position or scale, excluding workspace resizing. It extends the `UiBase` class. Key properties include `oldScale`, `scale`, `viewLeft`, and `viewTop`, representing the previous and current scale, and the visible portion's edges, respectively. The class's constructor creates new instances, and the `toJson()` method encodes the event into JSON format. Its purpose is to inform of changes in what the user see.\n"]]