Commit 0c98c607 authored by techird's avatar techird

fix path

parent 4a06382a
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var connect = require('core/connect');
var kity = require('../core/kity');
var connect = require('../core/connect');
var connectMarker = new kity.Marker().pipe(function() {
var r = 7;
......
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var connect = require('core/connect');
var kity = require('../core/kity');
var connect = require('../core/connect');
connect.register('bezier', function(node, parent, connection) {
......
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var connect = require('core/connect');
var kity = require('../core/kity');
var connect = require('../core/connect');
connect.register('fish-bone-master', function(node, parent, connection) {
......
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var connect = require('core/connect');
var kity = require('../core/kity');
var connect = require('../core/connect');
connect.register('l', function(node, parent, connection) {
......
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var connect = require('core/connect');
var kity = require('../core/kity');
var connect = require('../core/connect');
connect.register('poly', function(node, parent, connection, width) {
......
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var connect = require('core/connect');
var kity = require('../core/kity');
var connect = require('../core/connect');
connect.register('under', function(node, parent, connection, width, color) {
......
......@@ -10,87 +10,87 @@
define('kityminder', function(require, exports, module) {
var kityminder = {
version: require('core/minder').version
version: require('./core/minder').version
};
// 核心导出,大写的部分导出类,小写的部分简单 require 一下
// 这里顺序是有讲究的,调整前先弄清楚依赖关系。
require('core/utils');
kityminder.Minder = require('core/minder');
kityminder.Command = require('core/command');
kityminder.Node = require('core/node');
require('core/option');
kityminder.Event = require('core/event');
kityminder.data = require('core/data');
require('core/compatibility');
kityminder.KeyMap = require('core/keymap');
require('core/key');
require('core/status');
require('core/paper');
require('core/select');
kityminder.Module = require('core/module');
require('core/readonly');
kityminder.Render = require('core/render');
kityminder.Connect = require('core/connect');
kityminder.Layout = require('core/layout');
kityminder.Theme = require('core/theme');
kityminder.Template = require('core/template');
kityminder.Promise = require('core/promise');
require('./core/utils');
kityminder.Minder = require('./core/minder');
kityminder.Command = require('./core/command');
kityminder.Node = require('./core/node');
require('./core/option');
kityminder.Event = require('./core/event');
kityminder.data = require('./core/data');
require('./core/compatibility');
kityminder.KeyMap = require('./core/keymap');
require('./core/key');
require('./core/status');
require('./core/paper');
require('./core/select');
kityminder.Module = require('./core/module');
require('./core/readonly');
kityminder.Render = require('./core/render');
kityminder.Connect = require('./core/connect');
kityminder.Layout = require('./core/layout');
kityminder.Theme = require('./core/theme');
kityminder.Template = require('./core/template');
kityminder.Promise = require('./core/promise');
// 模块依赖
require('module/arrange');
require('module/basestyle');
require('module/clipboard');
require('module/dragtree');
require('module/expand');
require('module/font');
require('module/history');
require('module/hyperlink');
require('module/image');
require('module/keynav');
require('module/layout');
require('module/node');
require('module/note');
require('module/outline');
require('module/priority');
require('module/progress');
require('module/resource');
require('module/select');
require('module/style');
require('module/text');
require('module/view');
require('module/zoom');
require('./module/arrange');
require('./module/basestyle');
require('./module/clipboard');
require('./module/dragtree');
require('./module/expand');
require('./module/font');
require('./module/history');
require('./module/hyperlink');
require('./module/image');
require('./module/keynav');
require('./module/layout');
require('./module/node');
require('./module/note');
require('./module/outline');
require('./module/priority');
require('./module/progress');
require('./module/resource');
require('./module/select');
require('./module/style');
require('./module/text');
require('./module/view');
require('./module/zoom');
require('protocol/json');
require('protocol/text');
require('protocol/markdown');
require('protocol/svg');
require('protocol/png');
require('./protocol/json');
require('./protocol/text');
require('./protocol/markdown');
require('./protocol/svg');
require('./protocol/png');
require('layout/mind');
require('layout/btree');
require('layout/filetree');
require('layout/fish-bone-master');
require('layout/fish-bone-slave');
require('./layout/mind');
require('./layout/btree');
require('./layout/filetree');
require('./layout/fish-bone-master');
require('./layout/fish-bone-slave');
require('theme/default');
require('theme/snow');
require('theme/fresh');
require('theme/fish');
require('theme/snow');
require('./theme/default');
require('./theme/snow');
require('./theme/fresh');
require('./theme/fish');
require('./theme/snow');
require('connect/arc');
require('connect/bezier');
require('connect/fish-bone-master');
require('connect/l');
require('connect/poly');
require('connect/under');
require('./connect/arc');
require('./connect/bezier');
require('./connect/fish-bone-master');
require('./connect/l');
require('./connect/poly');
require('./connect/under');
require('template/default');
require('template/structure');
require('template/filetree');
require('template/right');
require('template/fish-bone');
require('./template/default');
require('./template/structure');
require('./template/filetree');
require('./template/right');
require('./template/fish-bone');
module.exports = window.kityminder = kityminder;
});
\ No newline at end of file
define(function(require, exports, module) {
var kity = require('core/kity');
var Layout = require('core/layout');
var kity = require('../core/kity');
var Layout = require('../core/layout');
['left', 'right', 'top', 'bottom'].forEach(registerLayoutForDirection);
......
define(function(require, exports, module) {
var kity = require('core/kity');
var Layout = require('core/layout');
var kity = require('../core/kity');
var Layout = require('../core/layout');
[-1, 1].forEach(registerLayoutForDir);
......
......@@ -8,8 +8,8 @@
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var Layout = require('core/layout');
var kity = require('../core/kity');
var Layout = require('../core/layout');
Layout.register('fish-bone-master', kity.createClass('FishBoneMasterLayout', {
base: Layout,
......
/**
* @fileOverview
*
*
*
*
* @author: techird
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var Layout = require('core/layout');
var kity = require('../core/kity');
var Layout = require('../core/layout');
Layout.register('fish-bone-slave', kity.createClass('FishBoneSlaveLayout', {
base: Layout,
......
define(function(require, exports, module) {
var kity = require('core/kity');
var Layout = require('core/layout');
var Minder = require('core/minder');
var kity = require('../core/kity');
var Layout = require('../core/layout');
var Minder = require('../core/minder');
Layout.register('mind', kity.createClass({
base: Layout,
......
define(function(require, exports, module) {
var kity = require('core/kity');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var kity = require('../core/kity');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
kity.extendClass(MinderNode, {
arrange: function(index) {
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var TextRenderer = require('./text');
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var kity = require('../core/kity');
var utils = require('../core/utils');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
Module.register('ClipboardModule', function() {
var km = this,
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var kity = require('../core/kity');
var utils = require('../core/utils');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
// 矩形的变形动画定义
var MoveToParentCommand = kity.createClass('MoveToParentCommand', {
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var keymap = require('core/keymap');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var keymap = require('../core/keymap');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('Expand', function() {
var minder = this;
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var TextRenderer = require('./text');
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
function compareObject(source, target) {
var tmp;
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
// jscs:disable maximumLineLength
var linkShapePath = 'M16.614,10.224h-1.278c-1.668,0-3.07-1.07-3.599-2.556h4.877c0.707,0,1.278-0.571,1.278-1.278V3.834 c0-0.707-0.571-1.278-1.278-1.278h-4.877C12.266,1.071,13.668,0,15.336,0h1.278c2.116,0,3.834,1.716,3.834,3.834V6.39 C20.448,8.508,18.73,10.224,16.614,10.224z M5.112,5.112c0-0.707,0.573-1.278,1.278-1.278h7.668c0.707,0,1.278,0.571,1.278,1.278 S14.765,6.39,14.058,6.39H6.39C5.685,6.39,5.112,5.819,5.112,5.112z M2.556,3.834V6.39c0,0.707,0.573,1.278,1.278,1.278h4.877 c-0.528,1.486-1.932,2.556-3.599,2.556H3.834C1.716,10.224,0,8.508,0,6.39V3.834C0,1.716,1.716,0,3.834,0h1.278 c1.667,0,3.071,1.071,3.599,2.556H3.834C3.129,2.556,2.556,3.127,2.556,3.834z';
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('image', function() {
function loadImageSize(url, callback) {
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var keymap = require('core/keymap');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var keymap = require('../core/keymap');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('KeyboardModule', function() {
var min = Math.min,
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
/**
* @command AppendChildNode
......
......@@ -7,14 +7,14 @@
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('NoteModule', function() {
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
var OutlineRenderer = kity.createClass('OutlineRenderer', {
base: Renderer,
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('PriorityModule', function() {
var minder = this;
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('ProgressModule', function() {
var minder = this;
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('Resource', function() {
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('Select', function() {
var minder = this;
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('StyleModule', function() {
var styleNames = ['font-size', 'font-family', 'font-weight', 'font-style', 'background', 'color'];
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
var FONT_ADJUST = {
'微软雅黑,Microsoft YaHei': -0.15,
'arial black,avant garde': -0.17,
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
var ViewDragger = kity.createClass('ViewDragger', {
constructor: function(minder) {
......
define(function(require, exports, module) {
var kity = require('core/kity');
var utils = require('core/utils');
var Minder = require('core/minder');
var MinderNode = require('core/node');
var Command = require('core/command');
var Module = require('core/module');
var Renderer = require('core/render');
var kity = require('../core/kity');
var utils = require('../core/utils');
var Minder = require('../core/minder');
var MinderNode = require('../core/node');
var Command = require('../core/command');
var Module = require('../core/module');
var Renderer = require('../core/render');
Module.register('Zoom', function() {
var me = this;
......
......@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var template = require('core/template');
var template = require('../core/template');
template.register('default', {
......
......@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var template = require('core/template');
var template = require('../core/template');
template.register('filetree', {
......
......@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var template = require('core/template');
var template = require('../core/template');
template.register('fish-bone', {
......
......@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var template = require('core/template');
var template = require('../core/template');
template.register('right', {
......
......@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define(function(require, exports, module) {
var template = require('core/template');
var template = require('../core/template');
template.register('structure', {
......
define(function(require, exports, module) {
var theme = require('core/theme');
var theme = require('../core/theme');
['classic', 'classic-compact'].forEach(function(name) {
var compact = name == 'classic-compact';
......
define(function(require, exports, module) {
var theme = require('core/theme');
var theme = require('../core/theme');
theme.register('fish', {
'background': '#3A4144 url(ui/theme/default/images/grid.png) repeat',
......
define(function(require, exports, module) {
var kity = require('core/kity');
var theme = require('core/theme');
var kity = require('../core/kity');
var theme = require('../core/theme');
function hsl(h, s, l) {
return kity.Color.createHSL(h, s, l);
......
define(function(require, exports, module) {
var theme = require('core/theme');
var theme = require('../core/theme');
['snow', 'snow-compact'].forEach(function(name) {
var compact = name == 'snow-compact';
......
define(function(require, exports, module) {
var theme = require('core/theme');
var theme = require('../core/theme');
theme.register('wire', {
'background': 'black',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment