import { defineComponent, ref, createVNode as _createVNode } from 'vue';
const Transform = defineComponent({
  name: 'Transform',
  inheritAttrs: false,
  props: {
    x: Number,
    y: Number
  },
  setup(props, {
    slots,
    expose
  }) {
    const divRef = ref();
    expose({
      divRef
    });
    return () => {
      var _a;
      return _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)]);
    };
  }
});
export default Transform;