Skip to content

Commit

Permalink
v0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shellyln committed Sep 11, 2018
1 parent 898b2e6 commit 6a6f3a6
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 29 deletions.
2 changes: 1 addition & 1 deletion packages/_debug_app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/_debug_app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "red-agate-debug-env",
"private": true,
"version": "0.2.6",
"version": "0.2.7",
"description": "red-agate debug environment",
"keywords": [],
"main": "./dist/app.js",
Expand All @@ -17,10 +17,10 @@
"puppeteer": "^1.7.0"
},
"peerDependencies": {
"red-agate": "^0.2.6",
"red-agate-barcode": "^0.2.6",
"red-agate": "^0.2.7",
"red-agate-barcode": "^0.2.7",
"red-agate-math": "^0.2.0",
"red-agate-svg-canvas": "^0.2.6",
"red-agate-svg-canvas": "^0.2.7",
"red-agate-util": "^0.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/_lib-dist/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/_lib-dist/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "red-agate-lib-dist",
"private": true,
"version": "0.2.6",
"version": "0.2.7",
"description": "red-agate debug environment",
"keywords": [],
"main": "./dist/app.js",
Expand All @@ -17,11 +17,11 @@
"puppeteer": "^1.7.0"
},
"peerDependencies": {
"red-agate": "^0.2.6",
"red-agate-barcode": "^0.2.6",
"red-agate": "^0.2.7",
"red-agate-barcode": "^0.2.7",
"red-agate-math": "^0.2.0",
"red-agate-react-host": "^0.2.6",
"red-agate-svg-canvas": "^0.2.6",
"red-agate-react-host": "^0.2.7",
"red-agate-svg-canvas": "^0.2.7",
"red-agate-util": "^0.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/red-agate-barcode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/red-agate-barcode/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "red-agate-barcode",
"private": false,
"version": "0.2.6",
"version": "0.2.7",
"description": "red-agate barcode tag library.",
"keywords": [
"QR Code",
Expand All @@ -24,9 +24,9 @@
},
"dependencies": {},
"peerDependencies": {
"red-agate": "^0.2.6",
"red-agate": "^0.2.7",
"red-agate-math": "^0.2.0",
"red-agate-svg-canvas": "^0.2.6",
"red-agate-svg-canvas": "^0.2.7",
"red-agate-util": "^0.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/red-agate-react-host/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/red-agate-react-host/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "red-agate-react-host",
"private": false,
"version": "0.2.6",
"version": "0.2.7",
"description": "Using react componetns from RedAgate.",
"keywords": [
"RedAgate",
Expand All @@ -17,9 +17,9 @@
},
"dependencies": {},
"peerDependencies": {
"red-agate": "^0.2.6",
"red-agate": "^0.2.7",
"red-agate-math": "^0.2.0",
"red-agate-svg-canvas": "^0.2.6",
"red-agate-svg-canvas": "^0.2.7",
"red-agate-util": "^0.2.0",
"react": "^16.4.2",
"react-dom": "^16.4.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/red-agate-svg-canvas/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/red-agate-svg-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "red-agate-svg-canvas",
"private": false,
"version": "0.2.6",
"version": "0.2.7",
"description": "red-agate svg canvas library.",
"keywords": [
"SVG",
Expand Down
10 changes: 8 additions & 2 deletions packages/red-agate-svg-canvas/src/drawing/canvas/SvgCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,16 @@ export class SvgCanvasImageData {
}


export class SvgCanvas2DLinerGradient implements VectorCanvas2DGradient, SvgCanvas2DAsset {
export abstract class SvgCanvas2DGradient {
}


export class SvgCanvas2DLinerGradient extends SvgCanvas2DGradient implements VectorCanvas2DGradient, SvgCanvas2DAsset {
private content: string;
constructor(
private id: string,
private x0: number, private y0: number, private x1: number, private y1: number) {
super();
this.content = `<linearGradient id="${id}" gradientUnits="userSpaceOnUse" x1="${x0}" y1="${y0}" x2="${x1}" y2="${y1}" >\n`;
}
public addColorStop(offset: number, color: string, opacity: number = 1): void {
Expand All @@ -95,13 +100,14 @@ export class SvgCanvas2DLinerGradient implements VectorCanvas2DGradient, SvgCanv
}


export class SvgCanvas2DRadialGradient implements VectorCanvas2DGradient, SvgCanvas2DAsset {
export class SvgCanvas2DRadialGradient extends SvgCanvas2DGradient implements VectorCanvas2DGradient, SvgCanvas2DAsset {
private content: string;
/** fr is ignored. fr is always 0. */
constructor(
private id: string,
private cx: number, private cy: number, private r: number,
private fx: number, private fy: number) {
super();
this.content = `<radialGradient id="${id}" gradientUnits="userSpaceOnUse" cx="${cx}" cy="${cy}" r="${r}" fx="${fx}" fy="${fy}" >\n`;
}
public addColorStop(offset: number, color: string, opacity: number = 1): void {
Expand Down
8 changes: 4 additions & 4 deletions packages/red-agate/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/red-agate/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "red-agate",
"private": false,
"version": "0.2.6",
"version": "0.2.7",
"description": "Static HTML|XML|SVG renderer using JSX, suitable for report output.",
"keywords": [
"svg",
Expand All @@ -27,7 +27,7 @@
},
"dependencies": {
"red-agate-math": "^0.2.0",
"red-agate-svg-canvas": "^0.2.6",
"red-agate-svg-canvas": "^0.2.7",
"red-agate-util": "^0.2.0"
},
"peerDependencies": {
Expand Down

0 comments on commit 6a6f3a6

Please sign in to comment.