useClientContext
Provides access to the canvas context within React. Currently, there are some differences between fixed layout and free layout.
Fixed Layout
import { useClientContext } from '@flowgram.ai/fixed-layout-editor'
const ctx = useClientContext()
Free Layout
import { useClientContext } from '@flowgram.ai/free-layout-editor'
const ctx = useClientContext()