blockly > BlockSvg > (Konstrukteur)
BlockSvg.(constructor)
Erstellt eine neue Instanz der BlockSvg
-Klasse
Unterschrift:
constructor(workspace: WorkspaceSvg, prototypeName: string, opt_id?: string);
Parameter
Parameter |
Typ |
Beschreibung |
Arbeitsbereich |
WorkspaceSvg |
Arbeitsbereich des Blocks. |
prototypeName |
String |
Name des Sprachobjekts, das typspezifische Funktionen für diesen Block enthält. |
opt_id |
String |
(Optional) Optionale ID. Verwenden Sie diese ID, falls vorhanden. Andernfalls erstellen Sie eine neue ID. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-12 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-12 (UTC)."],[[["`BlockSvg` constructor creates a visual representation of a block within a Blockly workspace."],["It requires a workspace, a prototype name for type-specific functions, and an optional ID for the block."],["If no ID is provided, a new one is automatically generated during the construction process."]]],[]]