UNPKG
@dineug/erd-editor
Version:
latest (3.3.0)
3.3.0
3.2.7
3.2.6
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
Entity-Relationship Diagram Editor
github.com/dineug/erd-editor
dineug/erd-editor
@dineug/erd-editor
/
dist
/
engine
/
context.d.ts
8 lines
(7 loc)
•
273 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
Clock
}
from
'./clock'
;
export
type
EngineContext
= {
toWidth
:
(
text
:
string
) =>
number
;
clock
:
Clock
; };
export
type
InjectEngineContext
=
Omit
<
EngineContext
,
'clock'
>;
export
declare
function
createEngineContext
(
ctx
:
InjectEngineContext
):
EngineContext
;