mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
shading-pattern: Decreased Shadings.SMALL_NUMBER
and added a test case for #6298
This commit is contained in:
parent
3f19b3fee3
commit
90ec2c9294
4 changed files with 168 additions and 4 deletions
|
@ -102,10 +102,8 @@ var Pattern = (function PatternClosure() {
|
|||
var Shadings = {};
|
||||
|
||||
// A small number to offset the first/last color stops so we can insert ones to
|
||||
// support extend. Number.MIN_VALUE appears to be too small and breaks the
|
||||
// extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
|
||||
// internally so we have to go bigger.
|
||||
Shadings.SMALL_NUMBER = 1e-2;
|
||||
// support extend. Number.MIN_VALUE is too small and breaks the extend.
|
||||
Shadings.SMALL_NUMBER = 1e-6;
|
||||
|
||||
// Radial and axial shading have very similar implementations
|
||||
// If needed, the implementations can be broken into two classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue