@gorpacrate/core-graphics
Version:
A core library for creating shape-based graphic editors
39 lines • 1.44 kB
JavaScript
"use strict";
exports.__esModule = true;
var history_event_1 = require("../history/history-event");
exports["default"] = [
history_event_1.shapeAddEvent({
graphicalContextData: { SC: '#1B2B34' },
id: '1',
keyPoints: [{ x: 160, y: 80 }, { x: 160, y: 160 }],
type: 'LINE'
}),
history_event_1.shapeAddEvent({
graphicalContextData: { SC: '#1B2B34' },
id: '1',
keyPoints: [
{ x: 160, y: 80 },
{ x: 160, y: 80 },
{ x: 160, y: 80 },
{ x: 160, y: 80 },
{ x: 160, y: 80 },
{ x: 160, y: 160 }
],
type: 'FREEHAND'
}),
history_event_1.shapeUpdateEvent('2', {
graphicalContextData: { SC: '#1B2B34' },
id: '3',
keyPoints: [{ x: 240, y: 80 }, { x: 240, y: 160 }],
type: 'LINE'
}),
history_event_1.shapeRemoveEvent('2'),
history_event_1.shapeChangeOrderEvent({ shapeId: '1', value: 2, relative: false }),
history_event_1.eraseAllEvent(),
history_event_1.historyEventsGroup([
history_event_1.shapeRemoveEvent('2'),
history_event_1.shapeChangeOrderEvent({ shapeId: '2', value: 2, relative: false }),
history_event_1.eraseAllEvent()
])
].map(function (ev, index) { return history_event_1.getPersistedHistoryEvent({ id: index.toString(10), author: '0MzUx', applied: true }, ev); });
//# sourceMappingURL=history.js.map