Giter Club home page Giter Club logo

vegtex's People

Contributors

qrai avatar

Stargazers

 avatar  avatar

Watchers

 avatar

vegtex's Issues

Media queries in VegtexStyle

Purpose to add a media queries feature in styles. Feature will allow to define styles for media queries.
Example syntax:

new vegtex.VegtexStyle((Style) => ({
    // Mobile (@sm)
    ':host': [
        Style.Width.px(100)
    ],
    // Tablet (@md)
    '@md :host': [
        Style.Width.px(100)
    ],
    // Desktop (@lg)
    '@lg :host': [
        Style.Width.px(100)
    ],
    // TV (@xl)
    '@xl :host': [
        Style.Width.px(100)
    ]
})

Scope event syntax change purpose

Purpose

Change the scope elements event-handling syntax

From

<button @click="someMethod">Text</button>

To

  1. Variant 'long'
<button @event="click" @event-handler="someMethod">Text</button>
  1. Variant 'short'
<button @e="click" @e-handler="someMethod">Text</button>
  1. Variant 'two in one'
<button @event="click:someMethod">Text</button>

Style.Border feature

Add the Style.Border properties to the Style.
API Idea:

Style.Border.Top.px(1)
Style.Border.Bottom.px(1)
Style.Border.Left.px(1)
Style.Border.Right.px(1)
Style.Border.All.px(1)
Style.Border.Color.rgb(0, 0, 0)
Style.Border.Type.solid // solid || dashed || etc

Totally remove VegtexScope

Scopes was a mistake, it should be removed. The states should be handled inside Singleton components.

  • Remove VegtexScope class everywhere

Style.Font feature

Add the ability to apply fonts (font-family)
API Reference:

Style.Font('Inter', 'sans-serif' /* , ...fonts */)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.