Skip to content
The library to use the string read from OuDia file
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
define
dist/js
src
.babelrc
.editorconfig
.gitignore
.prettierrc
.tslint.json
LICENSE
README-ja.md
README.md
package.json
tsconfig.json
webpack.config.js
yarn.lock

README.md

OudOperator

For Japanese

About

Hi> (O_O)/

The library to use the string read from OuDia file.

  • About OuDia The software for editing and displaying railroad diagrams. made by take-okm.

OuDia

Usage

npm / yarn

  1. install on your project.

    • npm i @netgram/oud-operator
    • yarn add @netgram/oud-operator
  2. Load module.

    import O_O from '@netgram/oud-operator'
    
    const dataSet = new O_O.Dataset()
    dataSet.fromOud(someLines)

Browser

<!DOCTYPE html>
<html lang="ja">
    <head>
        <meta charset="UTF-8" />
        <title>O_O</title>
    </head>
    <body>
        <script src="/path/to/O_O.min.js"></script>
        <script>
            const dataSet = new O_O.Dataset()
            dataSet.fromOud(someLines)
        </script>
    </body>
</html>

Notice

This library relies on the window object. So it will not run in a command line environment.

Author

Copyright © 2018-2019 up-tri

Released under the GNU General Public License.

You can’t perform that action at this time.