Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > blockRendering > DynamicShape
Jenis blockRendering.DynamicShape
Objek yang berisi informasi ukuran dan jenis tentang bentuk dinamis.
Tanda Tangan:
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;
};
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-22 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-22 UTC."],[[["`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"]]