diff --git a/src/components/CodeEditor.vue b/src/components/CodeEditor.vue index 4296047..37e4476 100644 --- a/src/components/CodeEditor.vue +++ b/src/components/CodeEditor.vue @@ -52,7 +52,7 @@ watch( ) const lang = computed(() => { - if (props.language === "python") { + if (props.language === "python" || props.language === "turtle") { return python() } return cpp() diff --git a/src/desktop/Content.vue b/src/desktop/Content.vue index c44364e..df248d1 100644 --- a/src/desktop/Content.vue +++ b/src/desktop/Content.vue @@ -54,6 +54,8 @@ function runSkulptTurtle() { }) Sk.TurtleGraphics = { target: canvas, + width: canvas.clientWidth, + height: canvas.clientHeight } Sk.misceval .asyncToPromise(function () {