"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createRendererEvent = void 0;
// 创建渲染器事件对象
function createRendererEvent(type, context) {
    var rendererEvent = {
        context: context,
        type: type,
        prevented: false,
        stoped: false,
        preventDefault: function () {
            rendererEvent.prevented = true;
        },
        stopPropagation: function () {
            rendererEvent.stoped = true;
        },
        get data() {
            return rendererEvent.context.data;
        },
        setData: function (data) {
            rendererEvent.context.data = data;
        }
    };
    return rendererEvent;
}
exports.createRendererEvent = createRendererEvent;
exports.default = {};
//# sourceMappingURL=./utils/renderer-event.js.map
