1 Star 0 Fork 2

一恒 / kityminder-core

forked from outian / kityminder-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

基于github的kityminder-core 进行自己定制化的二次开发 更多详细的开发资料可以参考 wiki

自定义参数 方向 direction top|down|left|right 类型 nodeType 1-根节点 2-带边框的节点 3.不带边框的普通节点 4-功能节点(带图标FU) 5-失效模式 6-失效原因 7-失效影响 8-预防措施 9.探测措施 10.外部接口 11 内部接口 12 外部部件 13 优化后PC 14 优化后DC

/**
 * 节点方向
 */
public enum Direction {
    top, down, left, right;
}

public enum NodeType {
    root(1), // 根节点
    borderNode(2), // 带边框的节点
    noBorderNode(3), // 不带边框的节点
    function(4), // 功能
    failure(5), // 失效
    failureMode(6), // 失效模式
    failureReason(7), // 失效原因
    failureEffect(8), // 失效影响
    prevent(9), // 预防措施
    detection(10), // 探测措施
    outside(11), // 外部接口
    inside(12), // 内部接口
    outBom(13),// 外部部件
    optimizationPrevent(14),// 优化预防措施
    optimizationDetection(15);// 优化探测措施
    private int value;

    NodeType(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }
}

开发说明 安装 Node版本 8.12.0(高版本构建可能报错) 安装 grunt 构建 npm install

启动 npm run dev 打包 npm build

Copyright (c) 2014, FEX, Baidu. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the KityMinder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

对百度的KityMinder-core进行二次开发 展开 收起
JavaScript
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/mvpred/kityminder-core.git
git@gitee.com:mvpred/kityminder-core.git
mvpred
kityminder-core
kityminder-core
master

搜索帮助