mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Will be replaced by manual update logic anyway. Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
15 lines
419 B
CoffeeScript
15 lines
419 B
CoffeeScript
React = require 'react-atom-fork'
|
|
{div} = require 'reactionary-atom-fork'
|
|
{isEqualForProperties} = require 'underscore-plus'
|
|
|
|
module.exports =
|
|
CursorComponent = React.createClass
|
|
displayName: 'CursorComponent'
|
|
|
|
render: ->
|
|
{pixelRect} = @props
|
|
{top, left, height, width} = pixelRect
|
|
WebkitTransform = "translate(#{left}px, #{top}px)"
|
|
|
|
div className: 'cursor', style: {height, width, WebkitTransform}
|