chore: update package.json and readme

This commit is contained in:
2021-10-08 02:08:55 +08:00
parent 372632c3dc
commit c492502795
5 changed files with 670 additions and 17 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ function renderFrame(context: CanvasRenderingContext2D, frame: TextFrame, clear:
// cjs
// const { computeTextFrames, renderFrame } = require('@mattuy/text-frame');
// or esm
import { computeTextFrames, renderFrame } from '@mattuy/text-frame/esm';
import { computeTextFrames, renderFrame } from '@mattuy/text-frame';
const frames = computeTextFrames({
viewWidth: 320,