Jonas Jenwald
52e3de3c0a
Convert the files in the `/src/display` folder to ES6 modules
...
Also disables ES2015 transpilation in development mode.
8 years ago
Jonas Jenwald
098a56270d
Normalize the `BBox` entry in Tiling Pattern dictionaries (issue 8117)
...
According to the PDF specification, see http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G7.3982967 , the `BBox` entry should have the form `[left, bottom, right, top]`.
Since some PDF generators apparently violates the specification, we normalize the `BBox` to ensure that the pattern is (correctly) rendered.
Fixes 8117.
8 years ago
Jonas Jenwald
4626fc8342
Enable the `spaced-comment` ESLint rule
...
Please see http://eslint.org/docs/rules/spaced-comment .
Note that the exceptions added for `line` comments are intended to still allow use of the old preprocessor without linting errors.
Also, I took the opportunity to improve the grammar slightly (w.r.t. capitalization and punctuation) for comments touched in the patch.
8 years ago
klemens
6f03f62327
trivial spelling fixes
9 years ago
Yury Delendik
398e6acbc5
Stops bleeding of pattern edges for mesh.
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
10 years ago
Yury Delendik
1d8800370a
Allow subpixel anti-aliasing for most of the content.
10 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Fabian Lange
ceffeab1de
Use 3 param method for converting r,g,b into css string.
...
This avoids creation of temporary arrays to pass them into the util
method. Also using "arguments" is more expensive then passing in 3
parameters.
11 years ago
Jonas Jenwald
790ec92a34
Add strict equalities in src/display/pattern_helper.js
11 years ago
Fabian Lange
dd2adf6200
Fixes mesh fill pattern with optional matrix ( #5020 )
...
In the referenced issue, there is a PDF which uses a fill pattern which does not
have a matrix defined. This causes singularValueDecompose2dScale to fail with
undefined property error when accessing elements of that matrix.
This fix will only use the matrix when it is defined. The output for the PDF in
question now looks identical to chrome and preview with respect to the gradient
fill pattern.
11 years ago
pramodhkp
8407d28c9e
Combine re element into constructPath
11 years ago
Yury Delendik
542c9c4c7a
Moves ColorSpace logic into evaluator
11 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Tim van der Meij
f463f96f35
Resolving new lint issues
11 years ago
Tim van der Meij
4e055169ed
Fixes lint warning W004 in src/display/{api, canvas, pattern_helper}.js
11 years ago
Yury Delendik
f57c6935d7
Implements WebGL support
11 years ago
Yury Delendik
1e8d70af98
Prescales shading pattern packed data indices
11 years ago
Yury Delendik
3595c2c360
Respects current ctx scale for mesh pattern
11 years ago
Yury Delendik
a583c319a1
Implements shading types 4-7
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
11 years ago