Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drawing-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
drawing-app
Commits
c43c4d6b
Commit
c43c4d6b
authored
5 years ago
by
Alexander Harkness
Committed by
Moritz Langenstein
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Vary code style to new homologated manner.
parent
4c421a50
No related branches found
Branches containing commit
No related tags found
1 merge request
!45
Brush size
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/canvas.js
+2
-2
2 additions, 2 deletions
src/canvas.js
with
2 additions
and
2 deletions
src/canvas.js
+
2
−
2
View file @
c43c4d6b
...
...
@@ -17,7 +17,7 @@ const lineFn = line()
const
pathGroupElems
=
new
Map
()
let
stroke_colour
=
"
blue
"
export
var
stroke_radius
=
1
export
let
stroke_radius
=
1
export
const
MIN_STROKE_RADIUS
=
0.1
export
const
MAX_STROKE_RADIUS
=
3.9
...
...
@@ -92,7 +92,7 @@ const createPathElem = (d, width) => {
export
const
renderPath
=
(
id
,
points
)
=>
{
points
=
points
.
filter
(([
x
])
=>
x
!=
null
)
let
colour
=
""
var
radius
=
0
let
radius
=
0
// Split up points into completely non-erased segments.
let
segments
=
[[]]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment