با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > blockRendering > DynamicShape
نوع blockRendering.DynamicShape
یک شی حاوی اطلاعات اندازه و نوع در مورد یک شکل پویا.
امضا:
export type DynamicShape = {
type: number;
width: (p1: number) => number;
height: (p1: number) => number;
isDynamic: true;
connectionOffsetY: (p1: number) => number;
connectionOffsetX: (p1: number) => number;
pathDown: (p1: number) => string;
pathUp: (p1: number) => string;
pathRightDown: (p1: number) => string;
pathRightUp: (p1: number) => string;
};
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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 بهوقت ساعت هماهنگ جهانی."],[[["`DynamicShape` objects store information about the size, type, and connection points of a dynamic shape within Blockly's block rendering system."],["These objects include functions to calculate width, height, and connection offsets based on input, as well as functions to generate SVG paths for various connection orientations."],["A `DynamicShape` object always has the property `isDynamic` set to `true`."]]],["The `DynamicShape` type defines an object crucial for rendering dynamic shapes. It includes a `type` property and several functions: `width` and `height` determine the shape's dimensions based on an input. `connectionOffsetX` and `connectionOffsetY` specify connection point offsets. `pathDown`, `pathUp`, `pathRightDown`, and `pathRightUp` generate the SVG path strings that describe the shape's outline in different orientations. Also the object as an attribute `isDynamic` set to `true`.\n"]]