Skip to content

code/editor/HighlightWorkers

import { … } from 'zidane-ui/code/editor'ui/src/code/editor/HighlightWorkers.tsx

Components#

HighlightWorkersComponent#

Gives the views below a shared pool of highlight workers themed like the editor. Without a createWorker it renders the children as they are and pierre highlights on the main thread.

TypeScript
function HighlightWorkers(props: HighlightWorkersProps): Element
Parameters
NameTypeDescription
propsHighlightWorkersProps

See HighlightWorkersProps.

Element
HighlightWorkers props
NameTypeDescription
childrenReactNode

The views that highlight through the pool.

createWorker(() => Worker) | null

Creates one highlight worker; null (no Worker in this environment) highlights on the main thread.

ui/src/code/editor/HighlightWorkers.tsx:44

Interfaces#

HighlightWorkersPropsInterface#

Props of HighlightWorkers.

TypeScript
interface HighlightWorkersProps
HighlightWorkersProps properties
NameTypeDescription
childrenReactNode

The views that highlight through the pool.

createWorker(() => Worker) | null

Creates one highlight worker; null (no Worker in this environment) highlights on the main thread.

ui/src/code/editor/HighlightWorkers.tsx:31