Commit 94f13e9a authored by christianrhansen's avatar christianrhansen

renamed function (getAnnotationStyle -> getCellStyle)

parent 10f79f9b
......@@ -75,7 +75,7 @@
@dragstart="event => {handleCellDragStart(event, annotation)}",
@dragend="event => {handleCellDragEnd(event, annotation)}",
@contextmenu="handleCellContextMenu",
:style="getAnnotationStyle(annotation)",
:style="getCellStyle(annotation)",
:class="getAnnotationClasses(annotation._uuid, 'cell-item')",
:key="`cell-${index}`")
......@@ -125,7 +125,7 @@
//----------------------------------------------------------------------------------------------- temporary cell
//------------------------------------------------------------------------------------------------------ desktop
template(v-for="(tmpCell, index) in tmpObjects")
.cell-item.cell-item-tmp(:style="getAnnotationStyle(tmpCell)", :key="`cell-tmp-${index}`")
.cell-item.cell-item-tmp(:style="getCellStyle(tmpCell)", :key="`cell-tmp-${index}`")
cell(:cell="tmpCell")
//------------------------------------------------------------------------------------------------------- mobile
......@@ -174,7 +174,7 @@
// ---------------------------------------------------------------------------------------------------------------
template(v-else)
.cell-item(:style="getAnnotationStyle({x:0,y:0,width:1,height:1})", key="cell-grid-resizer")
.cell-item(:style="getCellStyle({x:0,y:0,width:1,height:1})", key="cell-grid-resizer")
div.cell-item-resize-handle(
draggable="true",
@dragstart="event => {handleGridResizerDragStart(event)}",
......@@ -1054,7 +1054,7 @@
'grid-row-end': `span ${obj.height}`
}
},
getAnnotationStyle (annotation) {
getCellStyle (annotation) {
const parsed = annotation.target.selector.parse()
return {
'grid-column-start': parsed.xywh[0],
......
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