Skip to content

Commit

Permalink
Merge pull request #215 from PrefectHQ/scales
Browse files Browse the repository at this point in the history
Add axes scales that can be dynamically updated
  • Loading branch information
pleek91 authored Oct 2, 2023
2 parents 9753236 + 423a15f commit f2a3dec
Show file tree
Hide file tree
Showing 10 changed files with 1,396 additions and 46 deletions.
16 changes: 13 additions & 3 deletions demo/sections/components/RunGraphDemo.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
<template>
<p-layout-default class="run-graph-demo">
<RunGraph :config="config" class="run-graph-demo__graph" />
<RunGraph :config="config" :zoom="zoom" class="run-graph-demo__graph" />
<p-number-input v-model="zoom" />
</p-layout-default>
</template>

<!-- eslint-disable camelcase -->
<script lang="ts" setup>
import { endOfHour, startOfHour } from 'date-fns'
import { ref } from 'vue'
import RunGraph from '@/components/RunGraph.vue'
import { RunGraphConfig } from '@/models'
import { RunGraphConfig, RunGraphData } from '@/models'

const dummy: any = {}
const zoom = ref(0)
const now = new Date()

const dummy: RunGraphData = {

Check failure on line 18 in demo/sections/components/RunGraphDemo.vue

View workflow job for this annotation

GitHub Actions / Build & Publish Release

Type '{ start_time: Date; end_time: Date; }' is missing the following properties from type 'RunGraphData': root_node_ids, nodes
start_time: startOfHour(now),
end_time: endOfHour(now),
}

const config: RunGraphConfig = {
runId: 'foo',
Expand Down
Loading

0 comments on commit f2a3dec

Please sign in to comment.