diff --git a/js/temp.js b/js/temp.js index b15a124..dac433e 100644 --- a/js/temp.js +++ b/js/temp.js @@ -114,17 +114,7 @@ function constructBarStyles(layer){ bar.fillDims = {'width': bar.width + "px", 'height': bar.height + "px"} if (dir !== undefined) { - bar.fillDims[DIR_MARGINS[dir]] = "0px" - if (dir == UP || dir == DOWN) - { - bar.fillDims.height = bar.height * bar.progress + "px" - if (dir == UP) bar.fillDims['margin-top'] = bar.height * (1 - Math.min(bar.progress, 1)) + "px" - } - else - { - bar.fillDims.width = bar.width * bar.progress + "px" - if (dir == LEFT) bar.fillDims['margin-left'] = bar.width * (1 - Math.min(bar.progress, 1)) + "px" - } + bar.fillDims['clip-path'] = 'inset(0% 0% 50% 0%)' } } diff --git a/js/v.js b/js/v.js index d4ad027..4aa7e34 100644 --- a/js/v.js +++ b/js/v.js @@ -291,12 +291,12 @@ function loadVue() { Vue.component('bar', { props: ['layer', 'data'], template: ` -