1.0.1 • Published 4 days ago

@meursyphus/flitter v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

Flitter

Flitter is a framework that deals with SVG. Like React, it uses VDOM to manage state and optimize rendering. Since the library directly calculates the layout, it is much easier to visualize data than using D3. This provides a high level of control and flexibility for data visualization.

FlutterJs is a library inspired by Flutter, a cross-platform framework commonly used for mobile app development.

For more details, visit here.

Getting Started

Getting started with Flitter is straightforward. Follow these steps to install and use Flitter in your React or Svelte projects. (Or you can implement widget component manually to support Flitter.)

React

npm i @meursyphus/flitter @meursyphus/flitter-react

Example of using Flitter widgets in a React component:

import { Container, Alignment, Text, TextStyle } from '@meursyphus/flitter';
import Widget from '@meursyphus/flitter-react';

const App = () => {
  return (
    <Widget
      width="600px"
      height="300px"
      widget={Container({
        alignment: Alignment.center,
        color: 'lightblue',
        child: Text("Hello, Flitter!", style: TextStyle({ fontSize: 30, weight: 'bold' }))
      })}
    />
  );
};

Svelte

npm i @meursyphus/flitter @meursyphus/flitter-svelte
<script>
  import { Container, Alignment, Text, TextStyle } from '@meursyphus/flitter';
  import Widget from '@meursyphus/flitter-svelte';
</script>

<Widget
  width="600px"
  height="300px"
  widget={Container({
    alignment: Alignment.center,
    color: 'lightblue',
    child: Text("Hello, Flitter!", style: TextStyle({ fontSize: 30, weight: 'bold' }))
  })}
/>

Features

  • Provides high-resolution, resolution-independent visualizations based on SVG
  • Simplifies SVG manipulation with a component-based approach
  • Allows for quick learning and development with a syntax similar to Flutter

License

Flitter is open-source software freely available under the MIT license.

For more information and documentation, refer to the Flitter official documentation.

1.0.1

4 days ago

1.0.0

1 month ago

0.0.9

1 month ago

0.0.8

1 month ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

2 months ago

0.0.2

2 months ago

0.0.1

2 months ago