Rachid
07/02/2020, 7:21 PMfillStroke
, but I have no idea how to apply this in a clean hello world where I only draw a circle...Rachid
07/03/2020, 8:46 AMonClick
and onOver
doesn't work?
// clicking DOES work
val cicleStroke = graphics {
stroke(
ColorPaint(Colors.RED),
Context2d.StrokeInfo(thickness = 1.0)
) {
circle(0.0, 0.0, 40.0)
}
}.xy(100.0, 100.0)
cicleStroke.onClick {
println("Clicked cicleStroke")
}
// clicking does NOT work
val circleFilled = graphics {
fillStroke(
ColorPaint(Colors.LAWNGREEN),
ColorPaint(Colors.BLACK),
Context2d.StrokeInfo(thickness = 1.0 )
) {
circle(0.0, 0.0, 30.0)
}
}.xy(200.0, 100.0)
circleFilled.onClick {
println("Clicked circleFilled")
}
Rachid
07/03/2020, 9:01 AMcircleFilled.tween(circleFilled::x[10.0, 100.0], time = 1000)
I got the compilation error:
'operator' modifier is required on 'get' in 'kotlin.reflect.KMutableProperty0'
Type mismatch.
Required: V2<*>
Found: Double
Can it be that I'm using a version that's newer than when the docs were written?tobsef
07/03/2020, 8:16 PMContainer#getLocalBoundsInternal
). It was hard to get out, why my click event doesn't work. It seems to be a performance optimization.
suspend fun main() = Korge(width = 512, height = 512) {
solidRect(100, 100, color = GREEN) {
centerOn(this@Korge)
onClick {
color = if(color == GREEN) BLUE else GREEN
}
}
container {
solidRect(100, 100, color = RED) {
}
solidRect(100, 100, color = RED) {
alignRightToRightOf(this@Korge)
}
solidRect(100, 100, color = RED) {
alignBottomToBottomOf(this@Korge)
}
solidRect(100, 100, color = RED) {
alignBottomToBottomOf(this@Korge)
alignRightToRightOf(this@Korge)
}
}
}
Caleb Hulbert
07/04/2020, 2:09 AMui
Views, like uiButton
, uiComboBox
, etc.Rachid
07/05/2020, 7:59 PMSignal
work are also welcomeNico
07/08/2020, 6:04 AMGabe97330
07/08/2020, 6:40 AMSerVB
07/09/2020, 10:25 PMRachid
07/10/2020, 12:03 PMval line = graphics {
stroke(
ColorPaint(Colors.LIGHTGRAY),
Context2d.StrokeInfo(thickness = 1.0)
) {
moveTo(e1.v1.pos.x + VERTEX_RADIUS, e1.v1.pos.y + VERTEX_RADIUS)
lineTo(e1.v2.pos.x + VERTEX_RADIUS, e1.v2.pos.y + VERTEX_RADIUS)
}
Is it possible to change the color of this line afterwards? If not, what should I use to draw the line instead?Pablo Caviglia
07/13/2020, 8:09 PMRishav Sharan
07/14/2020, 12:21 PMPablo Caviglia
07/14/2020, 2:53 PMCaused by: org.gradle.tooling.BuildException: Failed to process /home/paul/devel/projects/tool_framework_multi_platform/build/platforms/android/build/tmp/kotlin-classes/debug
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
Caused by: java.lang.UnsupportedOperationException
Pablo Caviglia
07/14/2020, 3:19 PMkorgePluginVersion=1.14.0.0
Michal Janos
07/18/2020, 3:36 PMklock
to multiplatform?
I have implemented 1.11.13, everything works fine, with using npm link
,
but it is not possible to publish it to my private nexus NPM repo
what I try, is to change package.json, and change it to my scope before publish, this help me with kotlin-source-map-loader
,
but klock
create require('klock-root-klock')
on end of generated js file
kotlin multiplatform 1.3.72Philipp Karlsson
07/20/2020, 12:02 PMdata class(dates: List<DateTimeTz>)
(Frontend after receiving the objects)
console.log(it.dates[0])
--> Objects look like: Object { adjusted: 1577667600000, offset: 3600000 }
Error during:
console.log(DateFormat("dd.MM.yyyy").format(it.dates[0]))
I just included the implementations for multiplatform, jvm and js. The communication between backend and frontend is via REST.
If I remove the serialization, I get error messages like missing compareTo functions.Deactivated User
07/25/2020, 5:43 PMhttps://www.youtube.com/watch?v=F2UmKH0L-6A▾
Rishav Sharan
07/27/2020, 6:27 PMdependencies {
classpath("com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:1.15.0.0")
}
}
On compiling, I am getting this error
A problem occurred configuring root project 'korpg'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:3.6.0.
Searched in the following locations:
- file:/C:/Users/risharan/.m2/repository/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom
- <https://dl.bintray.com/korlibs/korlibs/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom>
- <https://plugins.gradle.org/m2/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom>
- <https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom>
Required by:
project : > com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:1.15.0.0
Possible solution:
- Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
Nico
08/02/2020, 1:18 PMhttps://www.youtube.com/watch?v=H4vMPpihqdw▾
ja.son
08/03/2020, 11:57 PMja.son
08/04/2020, 12:31 AMja.son
08/04/2020, 12:37 AMDave
08/05/2020, 2:24 PMDave
08/05/2020, 2:37 PMDave
08/06/2020, 1:12 PMfkrauthan
08/06/2020, 4:37 PMCLOVIS
08/13/2020, 8:22 PMDave
08/19/2020, 8:58 AMDave
08/24/2020, 10:02 AMlaith
08/31/2020, 11:39 PMlaith
08/31/2020, 11:39 PMRezMike
09/01/2020, 7:12 AMlaith
09/01/2020, 8:52 PM