ktsn / vue-designer

Vue component design tool
https://marketplace.visualstudio.com/items?itemName=ktsn.vue-designer
MIT License
368 stars 22 forks source link

feat: allow to update numeric style value by pressing up / down key #70

Closed ktsn closed 5 years ago

ktsn commented 5 years ago

ref #13

This allows the users to update numeric style value by pressing up / down key just like Chrome dev tools.

I wrote very naive style value parser for that. And the range analyzation is quite naive also. But I find it just works in the case.

ktsn commented 5 years ago

style-editing

codecov[bot] commented 5 years ago

Codecov Report

Merging #70 into master will increase coverage by 0.45%. The diff coverage is 72.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   66.97%   67.42%   +0.45%     
==========================================
  Files          65       66       +1     
  Lines        2083     2229     +146     
  Branches      426      449      +23     
==========================================
+ Hits         1395     1503     +108     
- Misses        670      706      +36     
- Partials       18       20       +2
Impacted Files Coverage Δ
src/view/components/StyleDeclaration.vue 100% <ø> (ø) :arrow_up:
src/view/components/VueNode.vue 62.71% <ø> (ø) :arrow_up:
src/view/ui-logic/rendering.ts 98.74% <100%> (ø)
src/view/components/VueComponent.vue 91.3% <100%> (ø) :arrow_up:
src/view/components/VueSlot.vue 100% <100%> (ø) :arrow_up:
src/view/components/StyleValue.vue 43.85% <13.51%> (-56.15%) :arrow_down:
src/view/ui-logic/editing.ts 76.92% <76.92%> (ø)
src/view/ui-logic/style-value-lexer.ts 94.5% <94.5%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 487da34...aa699de. Read the comment docs.