Merge pull request #128 from bckmnn/dev/keep-color-and-width

stroke color and width are now taken from current selection (#82)
This commit is contained in:
mntmn
2020-11-21 16:59:44 +01:00
committed by GitHub

View File

@@ -589,8 +589,8 @@ function setup_whiteboard_directives() {
z: z,
w: 64,
h: 64,
stroke_color: $scope.active_style.stroke_color,
stroke: 2,
stroke_color: $scope.active_style.stroke_color == "rgba(0,0,0,0)" ? "rgba(0,0,0,255)" : $scope.active_style.stroke_color,
stroke: $scope.active_style.stroke == 0 ? 2 : $scope.active_style.stroke,
shape: "scribble"
};
@@ -625,8 +625,8 @@ function setup_whiteboard_directives() {
z: z,
w: 64,
h: 64,
stroke_color: $scope.active_style.stroke_color,
stroke: 2,
stroke_color: $scope.active_style.stroke_color == "rgba(0,0,0,0)" ? "rgba(0,0,0,255)" : $scope.active_style.stroke_color,
stroke: $scope.active_style.stroke == 0 ? 2 : $scope.active_style.stroke,
shape: "arrow"
};