"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = require("vue");
var Transform = (0, _vue.defineComponent)({
  name: 'Transform',
  props: ['offset'],
  setup: function setup(props, _ref) {
    var slots = _ref.slots,
      expose = _ref.expose;
    var transformDomRef = (0, _vue.shallowRef)();
    expose({
      transformDomRef: transformDomRef
    });
    return function () {
      var _slots$default;
      return (0, _vue.createVNode)("div", {
        "ref": transformDomRef,
        "style": {
          position: 'absolute',
          left: "".concat(props.offset.x, "px"),
          top: "".concat(props.offset.y, "px"),
          zIndex: 1
        }
      }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
    };
  }
});
var _default = Transform;
exports.default = _default;