bruce-models 0.8.6 → 0.8.7
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/bruce-models.es5.js +139 -139
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +139 -139
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/markup/markup.js +139 -139
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/types/markup/markup.d.ts +201 -199
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -6924,147 +6924,147 @@
|
|
|
6924
6924
|
* Description of a "Markup" which is stored in custom-form or bookmark records.
|
|
6925
6925
|
*/
|
|
6926
6926
|
(function (Markup) {
|
|
6927
|
-
var
|
|
6928
|
-
(function (
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6927
|
+
var Div;
|
|
6928
|
+
(function (Div) {
|
|
6929
|
+
// Types of div that can be created.
|
|
6930
|
+
var EType;
|
|
6931
|
+
(function (EType) {
|
|
6932
|
+
// Default, no special handling.
|
|
6933
|
+
EType["Default"] = "default";
|
|
6934
|
+
// Callout, assumes it will be positioned in 3d space.
|
|
6935
|
+
// Assumes existence of line that is used to anchor it.
|
|
6936
|
+
EType["Callout"] = "callout";
|
|
6937
|
+
})(EType = Div.EType || (Div.EType = {}));
|
|
6938
|
+
// Describes expected content of a row cell.
|
|
6939
|
+
var EItemType;
|
|
6940
|
+
(function (EItemType) {
|
|
6941
|
+
// Default, no special handling.
|
|
6942
|
+
EItemType["Default"] = "DEFAULT";
|
|
6943
|
+
// Embed, assume content is html.
|
|
6944
|
+
// Make it take over the whole cell instead of padding it and such.
|
|
6945
|
+
EItemType["Embed"] = "EMBED";
|
|
6946
|
+
})(EItemType = Div.EItemType || (Div.EItemType = {}));
|
|
6947
|
+
var ItemAction;
|
|
6948
|
+
(function (ItemAction) {
|
|
6949
|
+
// Types of actions that can be performed when a cell is clicked.
|
|
6950
|
+
// Null = "NONE".
|
|
6932
6951
|
var EType;
|
|
6933
6952
|
(function (EType) {
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
//
|
|
6938
|
-
EType["
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
//
|
|
6944
|
-
|
|
6945
|
-
//
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
(
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
}
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
Polyline.DEFAULT = {
|
|
7050
|
-
id: null,
|
|
7051
|
-
positions: null,
|
|
7052
|
-
color: "rgba(254, 234, 57, 0.54)",
|
|
7053
|
-
outlineWidth: 4,
|
|
7054
|
-
smoothen: 0
|
|
7055
|
-
};
|
|
7056
|
-
})(Polyline = Entity3d.Polyline || (Entity3d.Polyline = {}));
|
|
7057
|
-
var Circle;
|
|
7058
|
-
(function (Circle) {
|
|
7059
|
-
Circle.DEFAULT = {
|
|
7060
|
-
id: null,
|
|
7061
|
-
position: null,
|
|
7062
|
-
radius: 50,
|
|
7063
|
-
color: "rgba(254, 234, 57, 0.54)"
|
|
7064
|
-
};
|
|
7065
|
-
})(Circle = Entity3d.Circle || (Entity3d.Circle = {}));
|
|
7066
|
-
})(Entity3d = Element.Entity3d || (Element.Entity3d = {}));
|
|
7067
|
-
})(Element = Markup.Element || (Markup.Element = {}));
|
|
6953
|
+
EType["None"] = "NONE";
|
|
6954
|
+
// Open a link specified in params.
|
|
6955
|
+
EType["OpenLink"] = "LINK";
|
|
6956
|
+
// Open the markup's entity's details panel.
|
|
6957
|
+
EType["OpenInfoView"] = "INFOVIEW";
|
|
6958
|
+
// Open the markup's entity's gallery popup.
|
|
6959
|
+
EType["OpenEntityGallery"] = "GALLERY";
|
|
6960
|
+
// Toggle visibility of the markup's entity's relationships.
|
|
6961
|
+
EType["ToggleRelationships"] = "RELATIONSHIPS";
|
|
6962
|
+
// Dictates this cell can be used to drag the div around.
|
|
6963
|
+
EType["Draggable"] = "DRAGABBLE";
|
|
6964
|
+
// Closes the markup.
|
|
6965
|
+
EType["Close"] = "CLOSE";
|
|
6966
|
+
// Opens a bookmark specified in params.
|
|
6967
|
+
EType["OpenBookmark"] = "BOOKMARK";
|
|
6968
|
+
})(EType = ItemAction.EType || (ItemAction.EType = {}));
|
|
6969
|
+
})(ItemAction = Div.ItemAction || (Div.ItemAction = {}));
|
|
6970
|
+
})(Div = Markup.Div || (Markup.Div = {}));
|
|
6971
|
+
var Drawing;
|
|
6972
|
+
(function (Drawing) {
|
|
6973
|
+
var Line;
|
|
6974
|
+
(function (Line) {
|
|
6975
|
+
// Dictates where on a DIV an anchor should snap to.
|
|
6976
|
+
var EAnchorDivSide;
|
|
6977
|
+
(function (EAnchorDivSide) {
|
|
6978
|
+
EAnchorDivSide[EAnchorDivSide["TopLeft"] = 0] = "TopLeft";
|
|
6979
|
+
EAnchorDivSide[EAnchorDivSide["TopRight"] = 1] = "TopRight";
|
|
6980
|
+
EAnchorDivSide[EAnchorDivSide["BottomLeft"] = 2] = "BottomLeft";
|
|
6981
|
+
EAnchorDivSide[EAnchorDivSide["BottomRight"] = 3] = "BottomRight";
|
|
6982
|
+
EAnchorDivSide[EAnchorDivSide["Center"] = 4] = "Center";
|
|
6983
|
+
EAnchorDivSide[EAnchorDivSide["CenterLeft"] = 5] = "CenterLeft";
|
|
6984
|
+
EAnchorDivSide[EAnchorDivSide["CenterRight"] = 6] = "CenterRight";
|
|
6985
|
+
EAnchorDivSide[EAnchorDivSide["CenterTop"] = 7] = "CenterTop";
|
|
6986
|
+
EAnchorDivSide[EAnchorDivSide["CenterBottom"] = 8] = "CenterBottom";
|
|
6987
|
+
})(EAnchorDivSide = Line.EAnchorDivSide || (Line.EAnchorDivSide = {}));
|
|
6988
|
+
// Dictates what end of the line an anchor should render on.
|
|
6989
|
+
var EAnchorLineSide;
|
|
6990
|
+
(function (EAnchorLineSide) {
|
|
6991
|
+
EAnchorLineSide[EAnchorLineSide["Start"] = 0] = "Start";
|
|
6992
|
+
EAnchorLineSide[EAnchorLineSide["End"] = 1] = "End";
|
|
6993
|
+
})(EAnchorLineSide = Line.EAnchorLineSide || (Line.EAnchorLineSide = {}));
|
|
6994
|
+
// Types of anchor heads when anchor is used in context of a line.
|
|
6995
|
+
// None means the anchor is transparent.
|
|
6996
|
+
var EAnchorHeadStyle;
|
|
6997
|
+
(function (EAnchorHeadStyle) {
|
|
6998
|
+
EAnchorHeadStyle["None"] = "NONE";
|
|
6999
|
+
EAnchorHeadStyle["Circle"] = "CIRCLE";
|
|
7000
|
+
EAnchorHeadStyle["Arrow"] = "ARROW";
|
|
7001
|
+
})(EAnchorHeadStyle = Line.EAnchorHeadStyle || (Line.EAnchorHeadStyle = {}));
|
|
7002
|
+
Line.DEFAULT = {
|
|
7003
|
+
brushColor: "rgba(255, 255, 255, 1)",
|
|
7004
|
+
brushSize: 4,
|
|
7005
|
+
path: null,
|
|
7006
|
+
pathType: "LINE",
|
|
7007
|
+
transform: null,
|
|
7008
|
+
snaps: null
|
|
7009
|
+
};
|
|
7010
|
+
})(Line = Drawing.Line || (Drawing.Line = {}));
|
|
7011
|
+
var FreePaint;
|
|
7012
|
+
(function (FreePaint) {
|
|
7013
|
+
FreePaint.DEFAULT = {
|
|
7014
|
+
brushColor: "rgba(255, 255, 255, 1)",
|
|
7015
|
+
brushSize: 4,
|
|
7016
|
+
path: null,
|
|
7017
|
+
pathType: "PLAIN",
|
|
7018
|
+
transform: null
|
|
7019
|
+
};
|
|
7020
|
+
})(FreePaint = Drawing.FreePaint || (Drawing.FreePaint = {}));
|
|
7021
|
+
})(Drawing = Markup.Drawing || (Markup.Drawing = {}));
|
|
7022
|
+
var Entity3d;
|
|
7023
|
+
(function (Entity3d) {
|
|
7024
|
+
var Polygon;
|
|
7025
|
+
(function (Polygon) {
|
|
7026
|
+
// Determines if terrain and 3d models should be overlapped or not.
|
|
7027
|
+
var EClassificationType;
|
|
7028
|
+
(function (EClassificationType) {
|
|
7029
|
+
// 3d models and terrain are overlapped.
|
|
7030
|
+
EClassificationType["Both"] = "BOTH";
|
|
7031
|
+
// Only terrain is overlapped.
|
|
7032
|
+
EClassificationType["Terrain"] = "TERRAIN";
|
|
7033
|
+
})(EClassificationType = Polygon.EClassificationType || (Polygon.EClassificationType = {}));
|
|
7034
|
+
Polygon.DEFAULT = {
|
|
7035
|
+
type: "POLYGON",
|
|
7036
|
+
id: null,
|
|
7037
|
+
positions: null,
|
|
7038
|
+
color: "rgba(254, 234, 57, 0.54)",
|
|
7039
|
+
outlineColor: "rgba(215, 215, 215, 0)",
|
|
7040
|
+
outlineWidth: 2,
|
|
7041
|
+
extrudedHeight: 0,
|
|
7042
|
+
classificationType: EClassificationType.Both,
|
|
7043
|
+
smoothen: 0
|
|
7044
|
+
};
|
|
7045
|
+
})(Polygon = Entity3d.Polygon || (Entity3d.Polygon = {}));
|
|
7046
|
+
var Polyline;
|
|
7047
|
+
(function (Polyline) {
|
|
7048
|
+
Polyline.DEFAULT = {
|
|
7049
|
+
type: "POLYLINE",
|
|
7050
|
+
id: null,
|
|
7051
|
+
positions: null,
|
|
7052
|
+
color: "rgba(254, 234, 57, 0.54)",
|
|
7053
|
+
outlineWidth: 4,
|
|
7054
|
+
smoothen: 0
|
|
7055
|
+
};
|
|
7056
|
+
})(Polyline = Entity3d.Polyline || (Entity3d.Polyline = {}));
|
|
7057
|
+
var Circle;
|
|
7058
|
+
(function (Circle) {
|
|
7059
|
+
Circle.DEFAULT = {
|
|
7060
|
+
type: "CIRCLE",
|
|
7061
|
+
id: null,
|
|
7062
|
+
position: null,
|
|
7063
|
+
radius: 50,
|
|
7064
|
+
color: "rgba(254, 234, 57, 0.54)"
|
|
7065
|
+
};
|
|
7066
|
+
})(Circle = Entity3d.Circle || (Entity3d.Circle = {}));
|
|
7067
|
+
})(Entity3d = Markup.Entity3d || (Markup.Entity3d = {}));
|
|
7068
7068
|
})(exports.Markup || (exports.Markup = {}));
|
|
7069
7069
|
|
|
7070
7070
|
exports.AbstractApi = AbstractApi;
|