(config: YGraphConfig<TSchema>)
| 28 | #subscribers: Set<Observer<YGraphChange>> = new Set(); |
| 29 | |
| 30 | public constructor(config: YGraphConfig<TSchema>) { |
| 31 | const storage = new YGraphStorage(config.doc, { |
| 32 | schema: config.schema, |
| 33 | }); |
| 34 | super({ |
| 35 | schema: config.schema, |
| 36 | storage, |
| 37 | }); |
| 38 | this.#doc = config.doc; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * The Yjs document that the graph is stored in. |
nothing calls this directly
no outgoing calls
no test coverage detected