"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = require("vue");
const Transform = (0, _vue.defineComponent)({
  name: 'Transform',
  inheritAttrs: false,
  props: {
    x: Number,
    y: Number
  },
  setup(props, {
    slots,
    expose
  }) {
    const divRef = (0, _vue.ref)();
    expose({
      divRef
    });
    return () => {
      var _a;
      return (0, _vue.createVNode)("div", {
        "ref": divRef,
        "style": {
          position: 'absolute',
          left: `${props.x}%`,
          top: `${props.y}%`,
          zIndex: 1,
          transform: 'translate(-50%, -50%)'
        }
      }, [(_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)]);
    };
  }
});
var _default = exports.default = Transform;