গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্লকলি > ব্লক রেন্ডারিং > ড্রয়ার > আঁকা
blockRendering.Drawer.draw() পদ্ধতি
কর্মক্ষেত্রে ব্লক আঁকুন। এখানে "অঙ্কন" মানে SVG পাথ উপাদান সেট করা এবং পর্দায় ক্ষেত্র, আইকন এবং সংযোগগুলি সরানো৷
পাথের টুকরোগুলিকে "পদক্ষেপ" এর অ্যারেতে ঠেলে দেওয়া হয়, যা পরে স্পেস দিয়ে যুক্ত হয় এবং সরাসরি ব্লকে সেট করা হয়। এটি গ্যারান্টি দেয় যে ধাপগুলি উন্নত পঠনযোগ্যতার জন্য স্পেস দ্বারা পৃথক করা হয়েছে, কিন্তু এর প্রয়োজন নেই।
স্বাক্ষর:
draw(): void;
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-04 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-01-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `blockRendering.Drawer.draw()` method visually renders a block on the workspace by manipulating SVG elements for its shape, fields, icons, and connections."],["This method achieves the visual representation by constructing SVG paths, dividing them into \"steps,\" and applying them directly to the block element for clear and readable rendering."],["The process focuses on updating the visual aspects of the block on the workspace without returning any specific value."]]],["The `draw()` method, part of the `blockRendering.Drawer` class, is responsible for rendering a block onto the workspace. This involves setting SVG path elements and positioning fields, icons, and connections. The method constructs the block's path by pushing path segments into \"steps\" arrays. These steps are then joined with spaces and assigned directly to the block. The method does not take any arguments and does not return anything.\n"]]