fabric

v6.4.3
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
canvas graphic graphics SVG node-canvas parser HTML5 object model

docs

typedoc

cli

node ./scripts/index.mjs

sandboxscript

node ./scripts/sandbox.mjs

build

npm run cli -- build

build:fast

npm run build -- -f

dev

npm run cli -- dev

start

npm run sandboxscript -- start

export

npm run cli -- website export

build-tests

rollup -c ./rollup.test.config.js

test:jest

jest

test

npm run cli -- test

sandbox

npm run sandboxscript -- sandbox

test:unit-browser

npm run cli -- test --suite unit --launch --context chrome

test:visual-browser

npm run test -- -s visual -p 8081 -l -c chrome firefox

test:coverage

nyc --silent qunit test/node_test_setup.js test/lib test/unit

test:visual:coverage

nyc --silent --no-clean qunit test/node_test_setup.js test/lib test/visual

test:jest:coverage

jest --coverage=true

coverage:merge

nyc merge coveragefiles .nyc_output/merged-coverage.json

local-server

http-server ./ -d=false

test:e2e

npx playwright test --headed

coverage:report

nyc report --reporter=lcov --reporter=text

lint

eslint src extensions

prettier:check

prettier --check .

prettier:write

prettier --write .

babel-constants

babel --no-babelrc src/constants.ts --extensions '.ts' --out-dir dist/src/ --config-file ./.babelrcAlt --plugins=babel-plugin-import-json-value

babel-src

babel --no-babelrc src --extensions '.ts' --ignore 'src/constants.ts' --out-dir dist/src --config-file ./.babelrcAlt
npm i fabric

Metadata

  • MIT
  • >=16.20.0
  • Juriy Zaytsev
  • released 10/3/2024

Downloads