Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-pdf/textkit

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf/textkit - npm Package Compare versions

Comparing version 0.5.0 to 2.0.0

lib/attributedString/advanceWidth.js

65

package.json
{
"name": "@react-pdf/textkit",
"version": "0.5.0",
"license": "MIT",
"version": "2.0.0",
"description": "An advanced text layout framework",
"main": "./index.js",
"scripts": {
"prebuild": "rimraf attributedString layout engines glyph indices rect renderers run utils block index.js",
"prepublish": "npm run build",
"build": "babel ./src --out-dir ./",
"build:watch": "babel ./src --out-dir ./ --watch",
"precommit": "lint-staged",
"test": "jest"
},
"files": [
"attributedString",
"engines",
"glyph",
"indices",
"layout",
"rect",
"renderers",
"run",
"block",
"utils",
"index.js"
],
"main": "./lib/index.js",
"contributors": [

@@ -31,6 +11,10 @@ "Devon Govett <devongovett@gmail.com>",

],
"license": "MIT",
"publishConfig": {
"access": "public"
"scripts": {
"test": "jest",
"build": "rimraf ./lib && babel src --out-dir lib",
"watch": "rimraf ./lib && babel src --out-dir lib --watch"
},
"files": [
"lib"
],
"dependencies": {

@@ -42,30 +26,3 @@ "@babel/runtime": "^7.4.3",

},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.3",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.1.0",
"babel-plugin-add-module-exports": "^1.0.0",
"eslint": "^4.18.2",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jest": "^21.14.0",
"husky": "^0.14.3",
"jest": "^24.7.1",
"lint-staged": "^7.0.0",
"prettier": "^1.11.1",
"rimraf": "^2.6.3"
},
"lint-staged": {
"*.js": [
"prettier --write",
"git add"
]
}
"gitHead": "ca11273edd7c3e1af62fd2d1d3424b1b767324ea"
}

@@ -1,3 +0,11 @@

# textkit
<p align="center">
<img src="https://user-images.githubusercontent.com/5600341/27505816-c8bc37aa-587f-11e7-9a86-08a2d081a8b9.png" height="280px">
</p>
# @react-pdf/textkit
## Acknowledges
This project is a fork of [textkit](https://github.com/foliojs/textkit) by @devongovett and continued under the scope of this project since it has react-pdf specific features. Any recongnition should go to him and the original project mantainers.
## Layout process

@@ -13,3 +21,2 @@

8. justification
9. get a list of rectangles by intersecting path, line, and exclusion paths

@@ -16,0 +23,0 @@ 10. perform line breaking to get acceptable break points for each fragment

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc