संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > इवेंट > ViewportChange > (कंस्ट्रक्टर)
Events.ViewportChange.(constructor)
ViewportChange
क्लास का एक नया इंस्टेंस बनाता है
हस्ताक्षर:
constructor(opt_top?: number, opt_left?: number, opt_scale?: number, opt_workspaceId?: string, opt_oldScale?: number);
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
opt_top |
संख्या |
(ज़रूरी नहीं) वर्कस्पेस के ऑरिजिन के हिसाब से, फ़ाइल फ़ोल्डर के दिखने वाले हिस्से का सबसे ऊपरी किनारे. खाली इवेंट के लिए तय नहीं किया गया है. |
opt_left |
संख्या |
(ज़रूरी नहीं) वर्कस्पेस के ऑरिजिन के हिसाब से, फ़ाइल फ़ोल्डर के दिख रहे हिस्से का बायां किनारा. खाली इवेंट के लिए तय नहीं किया गया है. |
opt_scale |
संख्या |
(ज़रूरी नहीं) वर्कस्पेस का साइज़. खाली इवेंट के लिए तय नहीं किया गया है. |
opt_workspaceId |
स्ट्रिंग |
(ज़रूरी नहीं) इस इवेंट के लिए फ़ाइल फ़ोल्डर आइडेंटिफ़ायर. खाली इवेंट के लिए तय नहीं किया गया है. |
opt_oldScale |
संख्या |
(ज़रूरी नहीं) फ़ाइल फ़ोल्डर का पुराना स्केल. खाली इवेंट के लिए तय नहीं किया गया है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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 constructor creates a new instance to represent changes in the workspace's view. It accepts optional parameters: `opt_top` (top edge position), `opt_left` (left edge position), `opt_scale` (current scale), `opt_workspaceId` (workspace identifier), and `opt_oldScale` (previous scale). These parameters detail the new position and zoom level of the visible workspace area, with the options being undefined when the constructor is called with a blank event.\n"]]