Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <template>
  2. <div class="diagram__path"
  3. :style="{ transform: 'rotate(' + theta + 'deg)' }">
  4. <block :object="{ type: object.type, content: object.content }"></block>
  5. <div class="diagram__path diagram__path--true">
  6. <block v-for="block in object.paths.truePath.blocks"
  7. :object="block"></block>
  8. </div>
  9. <div class="diagram__path diagram__path--false">
  10. <block v-for="block in object.paths.falsePath.blocks"
  11. :object="block"></block>
  12. </div>
  13. </div>
  14. </template>
  15.  
  16. <style lang="scss">
  17.  
  18. </style>
  19.  
  20. <script>
  21. import Block from './Block.vue'
  22.  
  23. export default {
  24. name: 'diagram-path',
  25. components: {
  26. Block
  27. },
  28. data: () => {
  29. return {
  30. theta: 0
  31. }
  32. },
  33. props: ['object']
  34. }
  35. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement