@zhongguo168a/yxeditor-common 0.0.170 → 0.0.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +12 -8
- package/dist/index.esm.js +28 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -591,12 +591,6 @@ declare class TreeRoot<NODE = any> extends EventDispatcher {
|
|
|
591
591
|
get firstNode(): TreeNode;
|
|
592
592
|
origin: TreeNode;
|
|
593
593
|
}
|
|
594
|
-
declare class TreeRootPlugin {
|
|
595
|
-
root: TreeRoot;
|
|
596
|
-
}
|
|
597
|
-
declare class TreeNodePlugin {
|
|
598
|
-
node: TreeNode;
|
|
599
|
-
}
|
|
600
594
|
|
|
601
595
|
declare class ListIterator {
|
|
602
596
|
break(reason?: any): void;
|
|
@@ -1143,7 +1137,17 @@ declare class MapUtil {
|
|
|
1143
1137
|
*/
|
|
1144
1138
|
getByPath(obj: any, path: string): any;
|
|
1145
1139
|
flat(obj: any, split?: string): any;
|
|
1146
|
-
_flat(obj: any, result: any, path: string, split?: string): any;
|
|
1140
|
+
protected _flat(obj: any, result: any, path: string, split?: string): any;
|
|
1141
|
+
unflat(object: {
|
|
1142
|
+
[key: string]: any;
|
|
1143
|
+
}, split?: string): any;
|
|
1144
|
+
/**
|
|
1145
|
+
* 返回键值相同的对象,只遍历一层,比较前使用flag展开
|
|
1146
|
+
* @param a
|
|
1147
|
+
* @param b
|
|
1148
|
+
* @returns
|
|
1149
|
+
*/
|
|
1150
|
+
sample(a: any, b: any): any;
|
|
1147
1151
|
/**
|
|
1148
1152
|
* 比较两个对象,包括基础类型
|
|
1149
1153
|
* @param a
|
|
@@ -2221,5 +2225,5 @@ declare class WidgetUtil {
|
|
|
2221
2225
|
}
|
|
2222
2226
|
declare var widgetutil: WidgetUtil;
|
|
2223
2227
|
|
|
2224
|
-
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode,
|
|
2228
|
+
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeRoot, TreeUtil, UIManager, UIObjectRepo, UIPoolConfig, UISingleConfig, UIUtil, ViewDict, ViewEvent, ViewHistory, ViewList, ViewModel, ViewModelComponent, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, create等距图集, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
|
|
2225
2229
|
export type { CreatorFunction, DisposeFunction, IController, IError, IEventDispatcher, IExtend, IListItem, IModel, IModule, ITreeListItem, RecycleFunction };
|
package/dist/index.esm.js
CHANGED
|
@@ -1543,6 +1543,33 @@ class MapUtil {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
|
+
unflat(object, split = "/") {
|
|
1547
|
+
let result = {};
|
|
1548
|
+
for (const path in object) {
|
|
1549
|
+
this.setByPath(result, "/" + path, object[path]);
|
|
1550
|
+
}
|
|
1551
|
+
return result;
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* 返回键值相同的对象,只遍历一层,比较前使用flag展开
|
|
1555
|
+
* @param a
|
|
1556
|
+
* @param b
|
|
1557
|
+
* @returns
|
|
1558
|
+
*/
|
|
1559
|
+
sample(a, b) {
|
|
1560
|
+
let result = {};
|
|
1561
|
+
for (const key in a) {
|
|
1562
|
+
let bval = b[key];
|
|
1563
|
+
if (bval == undefined) {
|
|
1564
|
+
continue;
|
|
1565
|
+
}
|
|
1566
|
+
let aval = a[key];
|
|
1567
|
+
if (aval == bval) {
|
|
1568
|
+
result[key] = aval;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
return result;
|
|
1572
|
+
}
|
|
1546
1573
|
/**
|
|
1547
1574
|
* 比较两个对象,包括基础类型
|
|
1548
1575
|
* @param a
|
|
@@ -2583,11 +2610,6 @@ TreeRoot.EVENT_DATA_SET = "data_set";
|
|
|
2583
2610
|
* dispatchParams = {node:TreeNode, tag:string, value:any}
|
|
2584
2611
|
*/
|
|
2585
2612
|
TreeRoot.EVENT_TAGS_SET = "tags_set";
|
|
2586
|
-
///////////////////////////
|
|
2587
|
-
class TreeRootPlugin {
|
|
2588
|
-
}
|
|
2589
|
-
class TreeNodePlugin {
|
|
2590
|
-
}
|
|
2591
2613
|
|
|
2592
2614
|
class ListIterator {
|
|
2593
2615
|
break(reason) {
|
|
@@ -7051,5 +7073,5 @@ class WidgetUtil {
|
|
|
7051
7073
|
}
|
|
7052
7074
|
var widgetutil = new WidgetUtil();
|
|
7053
7075
|
|
|
7054
|
-
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode,
|
|
7076
|
+
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeRoot, TreeUtil, UIManager, UIObjectRepo, UIPoolConfig, UISingleConfig, UIUtil, ViewDict, ViewEvent, ViewHistory, ViewList, ViewModel, ViewModelComponent, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, create等距图集, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
|
|
7055
7077
|
//# sourceMappingURL=index.esm.js.map
|