@cesdk/engine 1.63.0-nightly.20251020 → 1.63.0-nightly.20251021

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -6930,6 +6930,28 @@ export declare class EditorAPI {
6930
6930
  * @param enabled - Whether or not the block should show highlighting when selected or hovered.
6931
6931
  */
6932
6932
  setHighlightingEnabled(id: DesignBlockId, enabled: boolean): void;
6933
+ /**
6934
+ * Checks whether the block can currently be selected.
6935
+ *
6936
+ * ```javascript
6937
+ * const selectionIsEnabled = engine.editor.isSelectionEnabled(block);
6938
+ * ```
6939
+ *
6940
+ * @param id - The block to query.
6941
+ * @returns True if selection is enabled, false otherwise.
6942
+ */
6943
+ isSelectionEnabled(id: DesignBlockId): boolean;
6944
+ /**
6945
+ * Enable or disable selection for a block.
6946
+ *
6947
+ * ```javascript
6948
+ * engine.editor.setSelectionEnabled(block, true);
6949
+ * ```
6950
+ *
6951
+ * @param id - The block to update.
6952
+ * @param enabled - Whether the block should be selectable.
6953
+ */
6954
+ setSelectionEnabled(id: DesignBlockId, enabled: boolean): void;
6933
6955
  }
6934
6956
 
6935
6957
  /**