├── .editorconfig ├── .gitignore ├── LICENSE ├── custom-typings.d.ts ├── docs └── screenshot.jpg ├── package.json ├── readme.md ├── src ├── App.tsx ├── actions │ ├── AddItemAction.ts │ ├── ChangeSelAction.ts │ ├── ChangeZIndexAction.ts │ ├── DeleteItemsAction.ts │ ├── DeleteVertexAction.ts │ ├── EditItemAction.ts │ ├── InsertVertexAction.ts │ ├── LoadAction.ts │ ├── MoveItemsAction.ts │ ├── MoveVertexAction.ts │ ├── ResizeItemAction.ts │ ├── SetTransformAction.ts │ ├── ToggleLockAction.ts │ ├── ToggleSelModeAction.ts │ ├── ToggleSemanticTagAction.ts │ └── index.ts ├── components │ ├── AdjustIndicator.tsx │ ├── Inspector.tsx │ ├── InspectorCommon.tsx │ ├── InspectorGeometricTab.tsx │ ├── InspectorHistoryTab.tsx │ ├── InspectorSemanticTab.tsx │ ├── Menubar.tsx │ ├── Overlay.tsx │ ├── SelectionIndicator.tsx │ ├── StatusBar.tsx │ ├── Structure.tsx │ ├── Svg.tsx │ ├── VertexInsertIndicator.ts │ ├── VerticesIndicator.ts │ └── common │ │ ├── Checkbox.ts │ │ └── DeleteIcon.tsx ├── config.yaml ├── constants.ts ├── interaction │ ├── copyPaste.ts │ ├── dragBoard.ts │ ├── dragItems.ts │ ├── drawLine.ts │ ├── drawPolygon.ts │ ├── drawRect.ts │ ├── editVertex.ts │ ├── file.ts │ ├── index.ts │ ├── resizeItems.ts │ ├── selInteraction.ts │ └── zoom.ts ├── interfaces.ts ├── main.tsx ├── makeDOMRectDriver.ts ├── makeFileDriver.ts ├── makeFileSaverDriver.ts ├── makeKeyboardDriver.ts ├── makeWindowEventDriver.ts ├── preloaded.ts ├── styles │ ├── Menubar.styl │ ├── Overlay.styl │ ├── StatusBar.styl │ ├── Structure.styl │ ├── app.styl │ ├── inspector.styl │ └── svg.styl ├── template.html ├── testData.ts └── utils │ ├── AdjustedMouse.ts │ ├── AppHistory.ts │ ├── ImgItem.ts │ ├── Mouse.ts │ ├── PolygonItem.ts │ ├── PolylineItem.ts │ ├── Sem.ts │ ├── State.ts │ ├── UI.ts │ ├── common.ts │ ├── makeAdjuster.ts │ ├── peek-operator.ts │ ├── serializeUtils.ts │ ├── transition.ts │ └── when-operator.ts ├── tsconfig.json ├── webpack.config.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | build 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/LICENSE -------------------------------------------------------------------------------- /custom-typings.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/custom-typings.d.ts -------------------------------------------------------------------------------- /docs/screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/docs/screenshot.jpg -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/readme.md -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/App.tsx -------------------------------------------------------------------------------- /src/actions/AddItemAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/AddItemAction.ts -------------------------------------------------------------------------------- /src/actions/ChangeSelAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/ChangeSelAction.ts -------------------------------------------------------------------------------- /src/actions/ChangeZIndexAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/ChangeZIndexAction.ts -------------------------------------------------------------------------------- /src/actions/DeleteItemsAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/DeleteItemsAction.ts -------------------------------------------------------------------------------- /src/actions/DeleteVertexAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/DeleteVertexAction.ts -------------------------------------------------------------------------------- /src/actions/EditItemAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/EditItemAction.ts -------------------------------------------------------------------------------- /src/actions/InsertVertexAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/InsertVertexAction.ts -------------------------------------------------------------------------------- /src/actions/LoadAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/LoadAction.ts -------------------------------------------------------------------------------- /src/actions/MoveItemsAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/MoveItemsAction.ts -------------------------------------------------------------------------------- /src/actions/MoveVertexAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/MoveVertexAction.ts -------------------------------------------------------------------------------- /src/actions/ResizeItemAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/ResizeItemAction.ts -------------------------------------------------------------------------------- /src/actions/SetTransformAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/SetTransformAction.ts -------------------------------------------------------------------------------- /src/actions/ToggleLockAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/ToggleLockAction.ts -------------------------------------------------------------------------------- /src/actions/ToggleSelModeAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/ToggleSelModeAction.ts -------------------------------------------------------------------------------- /src/actions/ToggleSemanticTagAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/ToggleSemanticTagAction.ts -------------------------------------------------------------------------------- /src/actions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/actions/index.ts -------------------------------------------------------------------------------- /src/components/AdjustIndicator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/AdjustIndicator.tsx -------------------------------------------------------------------------------- /src/components/Inspector.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/Inspector.tsx -------------------------------------------------------------------------------- /src/components/InspectorCommon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/InspectorCommon.tsx -------------------------------------------------------------------------------- /src/components/InspectorGeometricTab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/InspectorGeometricTab.tsx -------------------------------------------------------------------------------- /src/components/InspectorHistoryTab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/InspectorHistoryTab.tsx -------------------------------------------------------------------------------- /src/components/InspectorSemanticTab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/InspectorSemanticTab.tsx -------------------------------------------------------------------------------- /src/components/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/Menubar.tsx -------------------------------------------------------------------------------- /src/components/Overlay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/Overlay.tsx -------------------------------------------------------------------------------- /src/components/SelectionIndicator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/SelectionIndicator.tsx -------------------------------------------------------------------------------- /src/components/StatusBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/StatusBar.tsx -------------------------------------------------------------------------------- /src/components/Structure.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/Structure.tsx -------------------------------------------------------------------------------- /src/components/Svg.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/Svg.tsx -------------------------------------------------------------------------------- /src/components/VertexInsertIndicator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/VertexInsertIndicator.ts -------------------------------------------------------------------------------- /src/components/VerticesIndicator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/VerticesIndicator.ts -------------------------------------------------------------------------------- /src/components/common/Checkbox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/common/Checkbox.ts -------------------------------------------------------------------------------- /src/components/common/DeleteIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/components/common/DeleteIcon.tsx -------------------------------------------------------------------------------- /src/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/config.yaml -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/interaction/copyPaste.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/copyPaste.ts -------------------------------------------------------------------------------- /src/interaction/dragBoard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/dragBoard.ts -------------------------------------------------------------------------------- /src/interaction/dragItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/dragItems.ts -------------------------------------------------------------------------------- /src/interaction/drawLine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/drawLine.ts -------------------------------------------------------------------------------- /src/interaction/drawPolygon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/drawPolygon.ts -------------------------------------------------------------------------------- /src/interaction/drawRect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/drawRect.ts -------------------------------------------------------------------------------- /src/interaction/editVertex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/editVertex.ts -------------------------------------------------------------------------------- /src/interaction/file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/file.ts -------------------------------------------------------------------------------- /src/interaction/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/index.ts -------------------------------------------------------------------------------- /src/interaction/resizeItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/resizeItems.ts -------------------------------------------------------------------------------- /src/interaction/selInteraction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/selInteraction.ts -------------------------------------------------------------------------------- /src/interaction/zoom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interaction/zoom.ts -------------------------------------------------------------------------------- /src/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/interfaces.ts -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/makeDOMRectDriver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/makeDOMRectDriver.ts -------------------------------------------------------------------------------- /src/makeFileDriver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/makeFileDriver.ts -------------------------------------------------------------------------------- /src/makeFileSaverDriver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/makeFileSaverDriver.ts -------------------------------------------------------------------------------- /src/makeKeyboardDriver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/makeKeyboardDriver.ts -------------------------------------------------------------------------------- /src/makeWindowEventDriver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/makeWindowEventDriver.ts -------------------------------------------------------------------------------- /src/preloaded.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/preloaded.ts -------------------------------------------------------------------------------- /src/styles/Menubar.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/Menubar.styl -------------------------------------------------------------------------------- /src/styles/Overlay.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/Overlay.styl -------------------------------------------------------------------------------- /src/styles/StatusBar.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/StatusBar.styl -------------------------------------------------------------------------------- /src/styles/Structure.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/Structure.styl -------------------------------------------------------------------------------- /src/styles/app.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/app.styl -------------------------------------------------------------------------------- /src/styles/inspector.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/inspector.styl -------------------------------------------------------------------------------- /src/styles/svg.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/styles/svg.styl -------------------------------------------------------------------------------- /src/template.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/template.html -------------------------------------------------------------------------------- /src/testData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/testData.ts -------------------------------------------------------------------------------- /src/utils/AdjustedMouse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/AdjustedMouse.ts -------------------------------------------------------------------------------- /src/utils/AppHistory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/AppHistory.ts -------------------------------------------------------------------------------- /src/utils/ImgItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/ImgItem.ts -------------------------------------------------------------------------------- /src/utils/Mouse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/Mouse.ts -------------------------------------------------------------------------------- /src/utils/PolygonItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/PolygonItem.ts -------------------------------------------------------------------------------- /src/utils/PolylineItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/PolylineItem.ts -------------------------------------------------------------------------------- /src/utils/Sem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/Sem.ts -------------------------------------------------------------------------------- /src/utils/State.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/State.ts -------------------------------------------------------------------------------- /src/utils/UI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/UI.ts -------------------------------------------------------------------------------- /src/utils/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/common.ts -------------------------------------------------------------------------------- /src/utils/makeAdjuster.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/makeAdjuster.ts -------------------------------------------------------------------------------- /src/utils/peek-operator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/peek-operator.ts -------------------------------------------------------------------------------- /src/utils/serializeUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/serializeUtils.ts -------------------------------------------------------------------------------- /src/utils/transition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/transition.ts -------------------------------------------------------------------------------- /src/utils/when-operator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/src/utils/when-operator.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feichao93/trips-editor/HEAD/yarn.lock --------------------------------------------------------------------------------