core-graphics
Version:
A core library for creating shape-based graphic editors
43 lines (40 loc) • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isCompressedIdentityEvent = isCompressedIdentityEvent;
exports.isCompressedShapeAddEvent = isCompressedShapeAddEvent;
exports.isCompressedShapeUpdateEvent = isCompressedShapeUpdateEvent;
exports.isCompressedShapeRemoveEvent = isCompressedShapeRemoveEvent;
exports.isCompressedShapeChangeOrderEvent = isCompressedShapeChangeOrderEvent;
exports.isCompressedEraseAllEvent = isCompressedEraseAllEvent;
exports.isCompressedHistoryEventsGroup = isCompressedHistoryEventsGroup;
var _historyEvent = require('../history/history-event');
;
;
;
;
;
;
;
function isCompressedIdentityEvent(base) {
return base[0] === _historyEvent.HistoryEventType.Identity;
}
function isCompressedShapeAddEvent(base) {
return base[0] === _historyEvent.HistoryEventType.AddShape;
}
function isCompressedShapeUpdateEvent(base) {
return base[0] === _historyEvent.HistoryEventType.UpdateShape;
}
function isCompressedShapeRemoveEvent(base) {
return base[0] === _historyEvent.HistoryEventType.RemoveShape;
}
function isCompressedShapeChangeOrderEvent(base) {
return base[0] === _historyEvent.HistoryEventType.ChangeShapeOrder;
}
function isCompressedEraseAllEvent(base) {
return base[0] === _historyEvent.HistoryEventType.EraseAll;
}
function isCompressedHistoryEventsGroup(base) {
return base[0] === _historyEvent.HistoryEventType.Grouped;
}