Brendan Dahl
55d6ede1da
Create only one instance of each device colorspace.
12 years ago
Brendan Dahl
2aecbe874e
Paint patterns relative to content base transformation.
12 years ago
Yury Delendik
339dc65082
Removes getImageData from canvas.js
12 years ago
Yury Delendik
d7808b0db6
Fixing pattern canvas transform for chrome
12 years ago
Kalervo Kujala
8ac0690913
Use only one temp canvas for patterns
...
This fixes a regression #3153 which was introduced by #2177 .
The temp vanvases that are being created are not being re-used, which lead
to high memory use.
12 years ago
vyv03354
9310e852db
Pass commonObjs to TilingPattern constructor
...
Broken example: http://www.eiken.or.jp/eiken/apply/private/flow/pdf/ichiji.pdf
12 years ago
Kalervo Kujala
6f65fef64b
Sharpen the patterns.
...
Draw the patterns with the intended resolution instead of scaling
afterwards. Scaling leads to unclear patterns.
Also:
Make TilingPattern function for paintType switch case.
Make TilingPattern function for bbox clipping.
Make TilingPattern functions for scaling code.
Increase MAX_PATTERN_SIZE to 4096.
Add Singular Value Decomposition function.
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
Jon Buckley
a1a098fbee
Issue #2008 - Fix lint errors for src/pattern.js
12 years ago
Yury Delendik
0029b34d45
Refactors getRgb and makeCssRgb calls; reduces amount of created objects
13 years ago
Yury Delendik
2c87a6467b
Fixes function array support for radial/axial pattern
13 years ago
Yury Delendik
69b72078c0
Separate page objects/images from the fonts; does not store large images
13 years ago
Brendan Dahl
164931d2fc
Adds background support for gradient.
...
Warns on case when we don't handle radial gradients correctly.
Fixes chrome extend gradients.
13 years ago
Yury Delendik
954ea97158
Removes unnecessary ctx.mozCurrentTransformInverse transforms
13 years ago
Kalervo Kujala
5f202e1596
Add initial TilingType support.
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
f947b3bb4c
Fixes Shading.Dummy return type
13 years ago
Brendan Dahl
5d8f463162
Adds support for the extend option for linear and radial shadings.
13 years ago
Kalervo Kujala
889b3d3168
Correct class method names.
13 years ago
Brendan Dahl
4984ca9894
Fix lint.
13 years ago
Kalervo Kujala
99440ab691
Refactor class method names.
...
Also move functionality to more logical place in canvas.js and jpx.js.
13 years ago
Brendan Dahl
8a45177be0
Make Dict handle all the fetching of Refs.
13 years ago
Brendan Dahl
7008d07fde
Fix gradients for fill and stroke.
13 years ago
Kalervo Kujala
eb4ec7899a
Remove unreachable logic after error(...) is called.
...
The function error(...) always throws so there is no need to return separately
or have an else branch.
13 years ago
Julian Viereck
fd2ab059d3
Rename IRQueue and codeIR -> operatorList
13 years ago
Julian Viereck
f80fd13fe5
new ScratchCanvas -> createScratchCanvas and fix linting
13 years ago
notmasteryet
9eaf746a33
Replace makeCssRgb.apply with direct call (avoiding Chrome 16 typed array issue)
13 years ago
Kalervo Kujala
1ef4c94de2
Name all constructors.
14 years ago
Kalervo Kujala
477683e514
Use constants for paint type and pattern size.
14 years ago
Kalervo Kujala
cca0306789
Use object-enumeration for pattern type.
14 years ago
Kalervo Kujala
7116ce0b53
Use constants for radial and axial types.
14 years ago
Julian Viereck
36e618c373
Address Yury's review comments + remove call to addCtxCurrentTransform in pattern.js as the contet is added during the CanvasGraphics constructor already
14 years ago
Julian Viereck
a30f0ff848
Implement ctx.mozCurrentTransform and ctx.mozCurrentTransformInverse shim
14 years ago
Kalervo Kujala
2988b33dcc
Fix jslint warnings in pattern.js.
...
Also refactor few small issues.
14 years ago
Kalervo Kujala
8a5516c96c
Rename Shanding related functions with better name names.
14 years ago
Kalervo Kujala
7e762169cf
Name a few anonymous functions.
...
Also rename some functions.
14 years ago
Kalervo Kujala
7e6a589074
Fix js strict warning in worker.js.
...
Also fix a few minor nits.
14 years ago
Artur Adib
e71b6188c6
'use strict' everywhere
14 years ago
Artur Adib
8fbb05613e
Progress
14 years ago
Artur Adib
a7278b7fbc
Splitting files
14 years ago