Code Monkey home page Code Monkey logo

ideograph-editor's Introduction

Ideograph Editor for Iframe Embedding

Configure

可以通过修改 static/databaseConfiguration.json 下的内容控制显示的数据库名字(没有其他作用)。

iframe 查看详情时会向上层窗口 postMessage,成员的类型声明可见 src/services/PatternSolution.ts,导出 JSON 和 postMessage 的内容是相同的。

export namespace Solution {
    export type MessageType = {
        pattern: Solution.Pattern;
        data: Solution.PatternSolution;
    }
}

Build

打包

npm run build

后处理

kotlin post-process.kts

后处理用于去除 html 内多余的斜杠,并把 static/databaseConfiguration.json 复制到打包的文件夹内。

或者使用 npm run build! 一次性完成上面两个命令。

打包时如果遇到依赖的类型声明报错可以尝试将 .d.ts 内的错误类型全删掉或 npm run build -f

ideograph-editor's People

Contributors

li3zhen1 avatar

Watchers

 avatar

Forkers

gao8319

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.