Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there reactivity? #24

Closed
paulvanbladel opened this issue Oct 25, 2018 · 6 comments
Closed

is there reactivity? #24

paulvanbladel opened this issue Oct 25, 2018 · 6 comments

Comments

@paulvanbladel
Copy link

Any idea why following sample is not working
Simple rectangle with btn to update the width.

<template>
  <q-page padding>
    <q-btn @click="changeRect">Update</q-btn>
    <div class="row">
    <v-stage ref='stage' :config="configKonva">
      <v-layer ref='layer'>
        <v-rect ref='rect' :config="configRect"></v-rect>
      </v-layer>
    </v-stage>
</div>
  </q-page>
</template>

<style>
</style>

<script>
export default {
  name: 'PageHome',
   data () {
    return {
      configKonva: {
        width: 600,
        height: 600
      },
      configRect: {
        x: 0,
        y: 0,
        width: 100,
        name: 'rect',
        height: 100,
        fill: 'red',
        stroke: 'black',
        strokeWidth: 1,
      }
    }
  },
  mounted () {
  },
  methods:
  {
    changeRect () {
      this.configRect.width = 150
    }
  }
}
</script>

@paulvanbladel
Copy link
Author

Feels like a 'start' scenario though...

@lavrton
Copy link
Member

lavrton commented Nov 7, 2018

The bug should be fixed with the new vue-konva version. I will keep the issue open until the release.

@lavrton lavrton reopened this Nov 7, 2018
@paulvanbladel
Copy link
Author

@lavrton ok, thanks for the update.

@paulvanbladel
Copy link
Author

@lavrton what is the expected release date?
Cheers.
Paul.

@lavrton
Copy link
Member

lavrton commented Nov 8, 2018

I made a release. Should be fixed now.
https://github.com/konvajs/vue-konva/releases/tag/v2.0.0

@lavrton lavrton closed this as completed Nov 8, 2018
@paulvanbladel
Copy link
Author

@lavrton Anton. Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants