Giter Site home page Giter Site logo

hinadong / equationdisplayer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vkochenkov/equationdisplayer

0.0 0.0 0.0 138 KB

Library for create and displaying math equations in native way, using Jetpack Compose

License: Apache License 2.0

Kotlin 100.00%

equationdisplayer's Introduction

EquationDisplayer

Hello everyone!

If you use Jetpack Compose in your app and want to display different types of equation - welcome! I started to create native library for displaying equations, using Compose.

The main goal is create DSL based on only one object - EquationItem. You can create and decorate this object for displaying different types of equations. By nesting one object into another, you get more variety.

See some examples below

  1. For display simplest example, add EquationItem object, set value in constructor and call compose functions Show() on the object:

  1. EquationItem has different parameters in constructor. Couple examples below:

  1. You can mix parameters incide EquationItem and include one EquationItem inside another. But don't call Show() on inner EquationItems, it won't work!

  1. You can place list incide EquationItem component. Also, note, that Show() function can take inside FontParams for decorate your equation visibility:

  1. Finally, more complex example:

Android SDK version requirements

  • min sdk version: 21
  • target sdk version: 32

Using the lib in your gradle project

If you project use gradle version '7.1.0' or higher, add maven { url 'https://jitpack.io' } in your root settings.gradle file:

dependencyResolutionManagement {
    ...
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

If you gradle version is lower, add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
}

Finally, add dependency 'com.github.vkochenkov:EquationDisplayer:1.2' in build.gradle dependencies section:

dependencies {
    ...
    implementation 'com.github.vkochenkov:EquationDisplayer:1.2'
}

Feedback

I will be glad to hear any feedback from you. Please, connect me by email [email protected]

equationdisplayer's People

Contributors

kochenkov avatar vkochenkov avatar

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.