├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .husky ├── commit-msg ├── pre-commit └── pre-push ├── .vscode ├── extensions.json └── settings.json ├── README.md ├── api-extractor.json ├── examples ├── CSSParser.js ├── HTMLParser.js ├── example.png ├── layout.js ├── painting.js └── style.js ├── jest.config.js ├── package.json ├── pnpm-lock.yaml ├── rollup.config.ts ├── scripts ├── copyDTS.mjs └── verifyCommitMsg.mjs ├── src ├── CSSParser.ts ├── HTMLParser.ts ├── Parser.ts ├── index.ts ├── layout │ ├── Dimensions.ts │ ├── LayoutBox.ts │ ├── Rect.ts │ ├── index.ts │ └── type.ts ├── painting.ts └── style.ts ├── tests ├── CSSParser.spec.ts ├── HTMLParser.spec.ts ├── layout.spec.ts └── style.spec.ts ├── tsconfig.build.json ├── tsconfig.json └── types └── index.d.ts /.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | FORCE_COLOR=1 node scripts/verifyCommitMsg.mjs $1 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/.husky/pre-push -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/README.md -------------------------------------------------------------------------------- /api-extractor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/api-extractor.json -------------------------------------------------------------------------------- /examples/CSSParser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/examples/CSSParser.js -------------------------------------------------------------------------------- /examples/HTMLParser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/examples/HTMLParser.js -------------------------------------------------------------------------------- /examples/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/examples/example.png -------------------------------------------------------------------------------- /examples/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/examples/layout.js -------------------------------------------------------------------------------- /examples/painting.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/examples/painting.js -------------------------------------------------------------------------------- /examples/style.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/examples/style.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rollup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/rollup.config.ts -------------------------------------------------------------------------------- /scripts/copyDTS.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/scripts/copyDTS.mjs -------------------------------------------------------------------------------- /scripts/verifyCommitMsg.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/scripts/verifyCommitMsg.mjs -------------------------------------------------------------------------------- /src/CSSParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/CSSParser.ts -------------------------------------------------------------------------------- /src/HTMLParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/HTMLParser.ts -------------------------------------------------------------------------------- /src/Parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/Parser.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/layout/Dimensions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/layout/Dimensions.ts -------------------------------------------------------------------------------- /src/layout/LayoutBox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/layout/LayoutBox.ts -------------------------------------------------------------------------------- /src/layout/Rect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/layout/Rect.ts -------------------------------------------------------------------------------- /src/layout/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/layout/index.ts -------------------------------------------------------------------------------- /src/layout/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/layout/type.ts -------------------------------------------------------------------------------- /src/painting.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/painting.ts -------------------------------------------------------------------------------- /src/style.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/src/style.ts -------------------------------------------------------------------------------- /tests/CSSParser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/tests/CSSParser.spec.ts -------------------------------------------------------------------------------- /tests/HTMLParser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/tests/HTMLParser.spec.ts -------------------------------------------------------------------------------- /tests/layout.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/tests/layout.spec.ts -------------------------------------------------------------------------------- /tests/style.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/tests/style.spec.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woai3c/tiny-rendering-engine/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- 1 | type AnyObject = Record 2 | --------------------------------------------------------------------------------