MCPcopy
hub / github.com/midrender/revideo / setDrawHooks

Method setDrawHooks

packages/2d/src/lib/components/Code.ts:211–223  ·  view source on GitHub ↗
(value: DrawHooks)

Source from the content-addressed store, hash-verified

209 public declare readonly drawHooks: SimpleSignal<DrawHooks, this>;
210
211 protected setDrawHooks(value: DrawHooks) {
212 if (
213 !useScene().experimentalFeatures &&
214 value !== this.drawHooks.context.getInitial()
215 ) {
216 useLogger().log({
217 ...experimentalLog(`Code uses experimental draw hooks.`),
218 inspect: this.key,
219 });
220 } else {
221 this.drawHooks.context.setter(value);
222 }
223 }
224
225 /**
226 * The currently selected code range.

Callers

nothing calls this directly

Calls 6

useSceneFunction · 0.90
useLoggerFunction · 0.90
experimentalLogFunction · 0.90
getInitialMethod · 0.80
logMethod · 0.80
setterMethod · 0.45

Tested by

no test coverage detected