調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
blockly > Marker > setCurNode
Marker.setCurNode() メソッド
マーカーの位置を設定して、更新メソッドを呼び出します。
署名:
setCurNode(newNode: IFocusableNode | null): void;
パラメータ
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 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 `setCurNode` method updates the marker's location within the Blockly workspace based on the provided ASTNode."],["It triggers a visual update of the marker to reflect its new position and can optionally indicate if it's on a stack's top."],["The method accepts a single argument, `newNode`, which represents an ASTNode defining the marker's target location."]]],["The `setCurNode` method of the `Marker` class updates the marker's location. It accepts an `ASTNode` as `newNode`, which represents the marker's new position. The method also triggers an update of the marker after the location change. If `isStack` is true, the `newNode` must be at the top of an output or previous connection within a stack. This method does not return any value.\n"]]