Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 57ce859

Browse files
committed
Bump version to 4.0.2
1 parent 9a9b743 commit 57ce859

File tree

8 files changed

+26
-4
lines changed

8 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22
## Canvas version changes
3+
#### v4.0.2 merges PR to add variables for fillColorPickerText and strokeColorPickerText
4+
https://github.com/webfactorymk/ng2-canvas-whiteboard/pull/68
35

46
#### v3.1.2, v4.0.1
57
Exports all existing canvas shapes, so that they can be easily unregistered from the canvas. (see README for unregistering the shapes).

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# ng2-canvas-whiteboard
22

33
## Canvas version changes
4+
#### v4.0.2 merges PR to add variables for fillColorPickerText and strokeColorPickerText
5+
https://github.com/webfactorymk/ng2-canvas-whiteboard/pull/68
6+
47
#### v3.1.3, v4.0.1
58
Exports all existing canvas shapes, so that they can be easily unregistered from the canvas. (see README for unregistering the shapes).
69

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-canvas-whiteboard-workspace",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"scripts": {
55
"build:ng2-canvas-whiteboard:prod": "ng build ng2-canvas-whiteboard --prod",
66
"test:ng2-canvas-whiteboard": "ng test ng2-canvas-whiteboard",

projects/ng2-canvas-whiteboard-example/src/app/app.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
[undoButtonEnabled]="true"
1515
[redoButtonText]="'Redo'"
1616
[redoButtonEnabled]="true"
17+
[fillColorPickerText]="'Filled'"
18+
[strokeColorPickerText]="'Stroked'"
1719
[colorPickerEnabled]="true"
1820
[strokeColorPickerEnabled]="true"
1921
[saveDataButtonEnabled]="true"

projects/ng2-canvas-whiteboard/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22
## Canvas version changes
3+
#### v4.0.2 merges PR to add variables for fillColorPickerText and strokeColorPickerText
4+
https://github.com/webfactorymk/ng2-canvas-whiteboard/pull/68
35

46
#### v3.1.2, v4.0.1
57
Exports all existing canvas shapes, so that they can be easily unregistered from the canvas. (see README for unregistering the shapes).

projects/ng2-canvas-whiteboard/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# ng2-canvas-whiteboard
22

33
## Canvas version changes
4-
#### v3.1.2, v4.0.1
4+
#### v4.0.2 merges PR to add variables for fillColorPickerText and strokeColorPickerText
5+
https://github.com/webfactorymk/ng2-canvas-whiteboard/pull/68
6+
7+
#### v3.1.3, v4.0.1
58
Exports all existing canvas shapes, so that they can be easily unregistered from the canvas. (see README for unregistering the shapes).
69

710
Also, this version introduces two new Inputs, `strokeColorPickerEnabled: boolean` and `fillColorPickerEnabled: boolean`, also deprecates the `colorPickerEnabled` Input.
@@ -83,6 +86,8 @@ In the html file, you can insert the Canvas Whiteboard
8386
[redoButtonText]="'Redo'"
8487
[redoButtonEnabled]="true"
8588
[colorPickerEnabled]="true"
89+
[fillColorPickerText]="'Fill'"
90+
[strokeColorPickerText]="'Stroke'"
8691
[saveDataButtonEnabled]="true"
8792
[saveDataButtonText]="'Save'"
8893
[lineWidth]="5"
@@ -121,6 +126,8 @@ Code:
121126
redoButtonText: "Redo",
122127
redoButtonEnabled: true,
123128
colorPickerEnabled: true,
129+
fillColorPickerText: "Fill",
130+
strokeColorPickerText: "Stroke",
124131
saveDataButtonEnabled: true,
125132
saveDataButtonText: "Save",
126133
lineWidth: 5,
@@ -238,9 +245,15 @@ and the original colors will be used when redrawing
238245
##### `fillColorPickerEnabled: boolean` (default: false)
239246
This shows/hides the fill color picker. Note: if this field has been to `false`, but the `colorPickerEnabled` field has been to `true`, the color picker will be shown, as per reverse-compat needs.
240247
248+
##### `fillColorPickerText: string` (default: 'Fill')
249+
Specify the text to add to the fill color picker button. Default is 'Fill' for reverse-compat needs.
250+
241251
##### `strokeColorPickerEnabled: boolean` (default: false)
242252
This shows/hides the stroke color picker. Note: if this field has been to `false`, but the `colorPickerEnabled` field has been set to `true`, the color picker will be shown, as per reverse-compat needs.
243253
254+
##### `strokeColorPickerText: string` (default: 'Stroke')
255+
Specify the text to add to the stroke color picker button. Default is 'Stroke' for reverse-compat needs.
256+
244257
##### `lineWidth: number` (default: 2)
245258
This input controls the drawing pencil size
246259

projects/ng2-canvas-whiteboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-canvas-whiteboard",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"author": "webfactory",
55
"license": "MIT",
66
"description": "A Canvas component for Angular which supports free drawing.",

0 commit comments

Comments
 (0)