Skip to content

Commit 8a5516c

Browse files
committed
Rename Shanding related functions with better name names.
1 parent 7e76216 commit 8a5516c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pattern.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var Shadings = {};
4343

4444
// Radial and axial shading have very similar implementations
4545
// If needed, the implementations can be broken into two classes
46-
Shadings.RadialAxial = (function radialAxialShadings() {
46+
Shadings.RadialAxial = (function radialAxialShading() {
4747
function constructor(dict, matrix, xref, res, ctx) {
4848
this.matrix = matrix;
4949
this.coordsArr = dict.get('Coords');
@@ -97,7 +97,7 @@ Shadings.RadialAxial = (function radialAxialShadings() {
9797
this.colorStops = colorStops;
9898
}
9999

100-
constructor.fromIR = function radialAxialShadingsGetIR(ctx, raw) {
100+
constructor.fromIR = function radialAxialShadingGetIR(ctx, raw) {
101101
var type = raw[1];
102102
var colorStops = raw[2];
103103
var p0 = raw[3];
@@ -129,7 +129,7 @@ Shadings.RadialAxial = (function radialAxialShadings() {
129129
}
130130

131131
constructor.prototype = {
132-
getIR: function radialAxialShadingsGetIR() {
132+
getIR: function radialAxialShadingGetIR() {
133133
var coordsArr = this.coordsArr;
134134
var type = this.shadingType;
135135
if (type == 2) {
@@ -159,17 +159,17 @@ Shadings.RadialAxial = (function radialAxialShadings() {
159159
return constructor;
160160
})();
161161

162-
Shadings.Dummy = (function dummyShadings() {
162+
Shadings.Dummy = (function dummyShading() {
163163
function constructor() {
164164
this.type = 'Pattern';
165165
}
166166

167-
constructor.fromIR = function dummyShadingsFromIR() {
167+
constructor.fromIR = function dummyShadingFromIR() {
168168
return 'hotpink';
169169
}
170170

171171
constructor.prototype = {
172-
getIR: function dummyShadingsGetIR() {
172+
getIR: function dummyShadingGetIR() {
173173
return ['Dummy'];
174174
}
175175
};

0 commit comments

Comments
 (0)