@@ -17210,17 +17210,13 @@ OG.shape.component.DataTable = function () {
1721017210 shape.DELETABLE = false;
1721117211 shape.LABEL_EDITABLE = false;
1721217212 shape.RESIZABLE = false;
17213- shape.onSelectShape = function () {
17214- var me = this;
17215- me.currentCanvas.setShapeStyle(me.currentElement, {
17216- stroke: '#ff0100'
17217- })
17218- }
17219- shape.onDeSelectShape = function () {
17220- var me = this;
17221- me.currentCanvas.setShapeStyle(me.currentElement, {
17222- stroke: '#000'
17223- })
17213+ shape.GUIDE_BBOX = {
17214+ stroke: "#ff5b00",
17215+ 'stroke-width': 4,
17216+ fill: "white",
17217+ "fill-opacity": 0,
17218+ "shape-rendering": "crispEdges",
17219+ cursor: "move"
1722417220 }
1722517221 result.contents.push({
1722617222 /**
@@ -17251,6 +17247,8 @@ OG.shape.component.DataTable = function () {
1725117247
1725217248 //옵션데이터
1725317249 this.options = {
17250+ selectable: 'column',
17251+
1725417252 //mode: 'view',
1725517253 /**
1725617254 * 컨텐트 외부 드래그 가능 여부
@@ -18350,6 +18348,18 @@ OG.shape.component.DataTable.prototype.bindCellEvent = function () {
1835018348
1835118349OG.shape.component.DataTable.prototype.createCellGuid = function (cellView) {
1835218350 var me = this;
18351+
18352+ if(me.options.selectable == 'column'){
18353+ if(cellView.type != 'column'){
18354+ return;
18355+ }
18356+ }
18357+ if(me.options.selectable == 'cell'){
18358+ if(cellView.type != 'cell'){
18359+ return;
18360+ }
18361+ }
18362+
1835318363 //기존 등록된 임시 셀을 모두 삭제토록.
1835418364 var childs = me.currentCanvas.getChilds(me.currentElement);
1835518365 for (var i = 0, leni = childs.length; i < leni; i++) {
@@ -23622,7 +23632,6 @@ OG.renderer.RaphaelRenderer.prototype.drawDropOverGuide = function (element) {
2362223632};
2362323633
2362423634OG.renderer.RaphaelRenderer.prototype.drawGuide = function (element) {
23625-
2362623635 var me = this, rElement = this._getREleById(OG.Util.isElement(element) ? element.id : element),
2362723636 geometry = rElement ? rElement.node.shape.geom : null,
2362823637 envelope,
@@ -23636,6 +23645,7 @@ OG.renderer.RaphaelRenderer.prototype.drawGuide = function (element) {
2363623645 _trash, isEdge, isEssensia, controllers = [], isLane,
2363723646 _qUpper, _qLow, _qBisector, _qThirds;
2363823647
23648+ var bboxStyle = element.shape.GUIDE_BBOX ? element.shape.GUIDE_BBOX : me._CONFIG.DEFAULT_STYLE.GUIDE_BBOX;
2363923649
2364023650 var _isConnectable = rElement && me._CANVAS._HANDLER._isConnectable(element.shape);
2364123651 var _isConnectCloneable = rElement && me._CANVAS._HANDLER._isConnectCloneable(element.shape);
@@ -23707,7 +23717,7 @@ OG.renderer.RaphaelRenderer.prototype.drawGuide = function (element) {
2370723717 if (isEdge) {
2370823718 _bBoxRect = me._PAPER.rect(_upperLeft.x - 10, _upperLeft.y - 10, envelope.getWidth() + 20, envelope.getHeight() + 20);
2370923719 }
23710- _bBoxRect.attr(me._CONFIG.DEFAULT_STYLE.GUIDE_BBOX );
23720+ _bBoxRect.attr(bboxStyle );
2371123721 me._add(_bBoxRect, rElement.id + OG.Constants.GUIDE_SUFFIX.BBOX);
2371223722 guide.bBox = _bBoxRect.node;
2371323723 }
@@ -23720,7 +23730,7 @@ OG.renderer.RaphaelRenderer.prototype.drawGuide = function (element) {
2372023730 if (isEdge) {
2372123731 _bBoxRect = me._PAPER.rect(_upperLeft.x - 10, _upperLeft.y - 10, envelope.getWidth() + 20, envelope.getHeight() + 20);
2372223732 }
23723- _bBoxRect.attr(me._CONFIG.DEFAULT_STYLE.GUIDE_BBOX );
23733+ _bBoxRect.attr(bboxStyle );
2372423734 me._add(_bBoxRect, rElement.id + OG.Constants.GUIDE_SUFFIX.BBOX);
2372523735 }
2372623736
@@ -24297,6 +24307,8 @@ OG.renderer.RaphaelRenderer.prototype.drawEdgeGuide = function (element) {
2429724307 _size = me._CONFIG.GUIDE_RECT_SIZE, _hSize = OG.Util.round(_size / 2), _style = {},
2429824308 i;
2429924309
24310+ var bboxStyle = element.shape.GUIDE_BBOX ? element.shape.GUIDE_BBOX : me._CONFIG.DEFAULT_STYLE.GUIDE_BBOX;
24311+
2430024312 if (rElement && geometry) {
2430124313 OG.Util.apply(_style, geometry.style.map, me._CONFIG.DEFAULT_STYLE.EDGE);
2430224314
@@ -24330,7 +24342,7 @@ OG.renderer.RaphaelRenderer.prototype.drawEdgeGuide = function (element) {
2433024342 }
2433124343
2433224344 _bBoxLine = this._PAPER.path(pathStr);
24333- _bBoxLine.attr(me._CONFIG.DEFAULT_STYLE.GUIDE_BBOX );
24345+ _bBoxLine.attr(bboxStyle );
2433424346 this._add(_bBoxLine, rElement.id + OG.Constants.GUIDE_SUFFIX.BBOX);
2433524347 _bBoxLine.insertBefore(rElement);
2433624348
@@ -24398,7 +24410,7 @@ OG.renderer.RaphaelRenderer.prototype.drawEdgeGuide = function (element) {
2439824410 }
2439924411 }
2440024412 _bBoxLine = this._PAPER.path(pathStr);
24401- _bBoxLine.attr(me._CONFIG.DEFAULT_STYLE.GUIDE_BBOX );
24413+ _bBoxLine.attr(bboxStyle );
2440224414
2440324415 // 시작지점 가이드
2440424416 _fromRect = this._PAPER.rect(vertices[0].x - _hSize, vertices[0].y - _hSize, _size, _size);
@@ -29058,7 +29070,10 @@ OG.handler.EventHandler.prototype = {
2905829070
2905929071 $(this).css({"position": "", "left": "", "top": ""});
2906029072 $.each(bBoxArray, function (k, item) {
29061- renderer.setAttr(item.box, {transform: "t" + dx + "," + dy});
29073+ renderer.setAttr(item.box, {
29074+ transform: "t" + dx + "," + dy,
29075+ 'stroke-width': 1
29076+ });
2906229077 });
2906329078
2906429079 setGroupTarget();
0 commit comments