@blocksuite/phasor
Advanced tools
Comparing version 0.4.0-20230116190618-0dc5fd3 to 0.4.0-20230117022540-0a09287
@@ -5,7 +5,3 @@ import * as Y from 'yjs'; | ||
import { Renderer } from './renderer.js'; | ||
function assertExists(val) { | ||
if (val === null || val === undefined) { | ||
throw new Error('val does not exist'); | ||
} | ||
} | ||
import { assertExists } from '@blocksuite/global/utils'; | ||
export class SurfaceContainer { | ||
@@ -12,0 +8,0 @@ constructor(canvas, yContainer) { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="@blocksuite/global" /> | ||
export { Renderer } from './renderer.js'; | ||
@@ -2,0 +3,0 @@ export * from './elements.js'; |
{ | ||
"name": "@blocksuite/phasor", | ||
"version": "0.4.0-20230116190618-0dc5fd3", | ||
"version": "0.4.0-20230117022540-0a09287", | ||
"description": "Hybrid canvas renderer.", | ||
@@ -24,2 +24,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@blocksuite/global": "0.4.0-20230117022540-0a09287", | ||
"fractional-indexing": "^3.1.0" | ||
@@ -26,0 +27,0 @@ }, |
@@ -6,9 +6,4 @@ import * as Y from 'yjs'; | ||
import { Renderer } from './renderer.js'; | ||
import { assertExists } from '@blocksuite/global/utils'; | ||
function assertExists<T>(val: T | null | undefined): asserts val is T { | ||
if (val === null || val === undefined) { | ||
throw new Error('val does not exist'); | ||
} | ||
} | ||
export class SurfaceContainer { | ||
@@ -15,0 +10,0 @@ readonly renderer: Renderer; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="@blocksuite/global" /> | ||
export { Renderer } from './renderer.js'; | ||
@@ -2,0 +3,0 @@ export * from './elements.js'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
122668
3
7
1226
+ Added@blocksuite/global@0.4.0-20230117022540-0a09287(transitive)