UNPKG

core-graphics

Version:

A core library for creating shape-based graphic editors

26 lines (23 loc) 1.24 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _historyEvent = require('../history/history-event'); exports.default = [(0, _historyEvent.shapeAddEvent)({ graphicalContextData: { SC: '#1B2B34' }, id: '1', keyPoints: [{ x: 160, y: 80 }, { x: 160, y: 160 }], type: 'LINE' }), (0, _historyEvent.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' }), (0, _historyEvent.shapeUpdateEvent)('2', { graphicalContextData: { SC: '#1B2B34' }, id: '3', keyPoints: [{ x: 240, y: 80 }, { x: 240, y: 160 }], type: 'LINE' }), (0, _historyEvent.shapeRemoveEvent)('2'), (0, _historyEvent.shapeChangeOrderEvent)({ shapeId: '1', value: 2, relative: false }), (0, _historyEvent.eraseAllEvent)(), (0, _historyEvent.historyEventsGroup)([(0, _historyEvent.shapeRemoveEvent)('2'), (0, _historyEvent.shapeChangeOrderEvent)({ shapeId: '2', value: 2, relative: false }), (0, _historyEvent.eraseAllEvent)()])].map(function (ev, index) { return (0, _historyEvent.getPersistedHistoryEvent)({ id: index, author: '0MzUx', applied: true }, ev); });