Commit 7a37a00c authored by Tobias Liese's avatar Tobias Liese

updated quarkus to 1.3

parent 041aff3f
Pipeline #94442 failed with stages
in 2 minutes and 6 seconds
#Gradle properties
#Tue Feb 11 17:11:23 UTC 2020
quarkusPluginVersion=1.2.1.Final
quarkusPluginVersion=1.3.0.CR1
quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformVersion=1.2.1.Final
quarkusPlatformVersion=1.3.0.CR1
quarkusPlatformGroupId=io.quarkus
......@@ -58,11 +58,16 @@ class Field {
this.rePaint()
}
drawLineTo(x: number, y: number) {
this.context.strokeStyle = "white"
drawLineTo(x: number, y: number, curve: number) {
this.context.strokeStyle = getComputedStyle(document.documentElement).getPropertyValue('--main-ac-color')
let orig = this.getStateByIndex(lastSelected)
this.context.beginPath()
this.context.moveTo(this.getStateByIndex(lastSelected).x, this.getStateByIndex(lastSelected).y)
this.context.moveTo(orig.x, orig.y)
this.context.lineWidth = 5
this.context.lineTo(x, y)
// @todo add option to curve the line
// this.context.bezierCurveTo(orig.x / curve, orig.y * curve, x / curve, y * curve, x, y)
// this.context.quadraticCurveTo(((orig.x - x) / 2 + x) * curve, ((orig.y - y) / 2 + y) * curve, x, y)
this.context.stroke()
}
......@@ -81,7 +86,7 @@ class Field {
this.context.arc(
state.x,
state.y,
state.radius, 0, 2 * Math.PI,)
state.radius, 0, 2 * Math.PI)
this.context.fill()
this.context.font = "40px Dancing Script"
this.context.fillStyle = "white"
......@@ -141,7 +146,7 @@ onmousemove = (event: MouseEvent) => {
if (transitionMode) {
document.body.style.cursor = "default"
field.rePaint()
field.drawLineTo(x, y)
field.drawLineTo(x, y, 0.5)
} else if (selected != null) {
document.body.style.cursor = "grab"
} else {
......@@ -170,6 +175,7 @@ onmousedown = (event: MouseEvent) => {
}
}
onmouseup = () => {
dragMode = false
if (!transitionMode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment