@asyra/core 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-test$colon$ci.log +132 -0
- package/.turbo/turbo-test$colon$local.log +30 -0
- package/.turbo/turbo-test.log +0 -0
- package/README.md +1 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +991 -0
- package/coverage/coverage-final.json +14952 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +236 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/coverage/src/apis/element-selection.ts.html +133 -0
- package/coverage/src/apis/index.html +266 -0
- package/coverage/src/apis/index.ts.html +175 -0
- package/coverage/src/apis/input-system.ts.html +121 -0
- package/coverage/src/apis/interaction-core.ts.html +190 -0
- package/coverage/src/apis/props.ts.html +124 -0
- package/coverage/src/apis/render.ts.html +130 -0
- package/coverage/src/apis/scene-tree.ts.html +292 -0
- package/coverage/src/apis/system-context.ts.html +154 -0
- package/coverage/src/apis/transaction.ts.html +124 -0
- package/coverage/src/apis/undo.ts.html +124 -0
- package/coverage/src/apis/viewport.ts.html +193 -0
- package/coverage/src/combinations.ts.html +223 -0
- package/coverage/src/core.ts.html +559 -0
- package/coverage/src/index.html +146 -0
- package/coverage/src/index.ts.html +97 -0
- package/coverage/src/requests/factory.ts.html +127 -0
- package/coverage/src/requests/index.html +206 -0
- package/coverage/src/requests/index.ts.html +154 -0
- package/coverage/src/requests/props.ts.html +133 -0
- package/coverage/src/requests/render.ts.html +187 -0
- package/coverage/src/requests/scene-tree.ts.html +163 -0
- package/coverage/src/requests/selection.ts.html +127 -0
- package/coverage/src/requests/system-context.ts.html +130 -0
- package/coverage/src/subscribes/index.html +116 -0
- package/coverage/src/subscribes/index.ts.html +109 -0
- package/coverage/src/subscribes/input-system/index.html +176 -0
- package/coverage/src/subscribes/input-system/index.ts.html +226 -0
- package/coverage/src/subscribes/input-system/primary-tool.ts.html +160 -0
- package/coverage/src/subscribes/input-system/render.ts.html +484 -0
- package/coverage/src/subscribes/input-system/undo.ts.html +172 -0
- package/coverage/src/subscribes/input-system/viewport.ts.html +259 -0
- package/coverage/src/subscribes/interaction-core/create-element.ts.html +151 -0
- package/coverage/src/subscribes/interaction-core/index.html +236 -0
- package/coverage/src/subscribes/interaction-core/index.ts.html +289 -0
- package/coverage/src/subscribes/interaction-core/primary-tool.ts.html +109 -0
- package/coverage/src/subscribes/interaction-core/reset-element-size.ts.html +127 -0
- package/coverage/src/subscribes/interaction-core/resize-element.ts.html +181 -0
- package/coverage/src/subscribes/interaction-core/select-elements.ts.html +109 -0
- package/coverage/src/subscribes/interaction-core/transaction.ts.html +130 -0
- package/coverage/src/subscribes/interaction-core/undoredo.ts.html +133 -0
- package/coverage/src/subscribes/interaction-core/viewport.ts.html +193 -0
- package/coverage/src/types/deps.ts.html +118 -0
- package/coverage/src/types/element-selection.ts.html +100 -0
- package/coverage/src/types/index.html +266 -0
- package/coverage/src/types/index.ts.html +385 -0
- package/coverage/src/types/input-system.ts.html +100 -0
- package/coverage/src/types/interaction-core.ts.html +127 -0
- package/coverage/src/types/props.ts.html +109 -0
- package/coverage/src/types/render.ts.html +106 -0
- package/coverage/src/types/requests/factory.ts.html +127 -0
- package/coverage/src/types/requests/index.html +206 -0
- package/coverage/src/types/requests/index.ts.html +214 -0
- package/coverage/src/types/requests/props.ts.html +133 -0
- package/coverage/src/types/requests/render.ts.html +139 -0
- package/coverage/src/types/requests/scene-tree.ts.html +133 -0
- package/coverage/src/types/requests/selection.ts.html +127 -0
- package/coverage/src/types/requests/system-context.ts.html +142 -0
- package/coverage/src/types/scene-tree.ts.html +178 -0
- package/coverage/src/types/system-context/index.html +161 -0
- package/coverage/src/types/system-context/index.ts.html +112 -0
- package/coverage/src/types/system-context/key-state.ts.html +106 -0
- package/coverage/src/types/system-context/mouse-state.ts.html +106 -0
- package/coverage/src/types/system-context/primary-tool.ts.html +112 -0
- package/coverage/src/types/transaction.ts.html +103 -0
- package/coverage/src/types/undo.ts.html +103 -0
- package/coverage/src/types/viewport.ts.html +127 -0
- package/dist/__tests__/core.test.d.ts +2 -0
- package/dist/__tests__/core.test.d.ts.map +1 -0
- package/dist/__tests__/core.test.js +122 -0
- package/dist/__tests__/core.test.js.map +1 -0
- package/dist/apis/element-selection.d.ts +3 -0
- package/dist/apis/element-selection.d.ts.map +1 -0
- package/dist/apis/element-selection.js +11 -0
- package/dist/apis/element-selection.js.map +1 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.d.ts.map +1 -0
- package/dist/apis/index.js +25 -0
- package/dist/apis/index.js.map +1 -0
- package/dist/apis/input-system.d.ts +3 -0
- package/dist/apis/input-system.d.ts.map +1 -0
- package/dist/apis/input-system.js +11 -0
- package/dist/apis/input-system.js.map +1 -0
- package/dist/apis/interaction-core.d.ts +3 -0
- package/dist/apis/interaction-core.d.ts.map +1 -0
- package/dist/apis/interaction-core.js +22 -0
- package/dist/apis/interaction-core.js.map +1 -0
- package/dist/apis/props.d.ts +3 -0
- package/dist/apis/props.d.ts.map +1 -0
- package/dist/apis/props.js +11 -0
- package/dist/apis/props.js.map +1 -0
- package/dist/apis/render.d.ts +3 -0
- package/dist/apis/render.d.ts.map +1 -0
- package/dist/apis/render.js +12 -0
- package/dist/apis/render.js.map +1 -0
- package/dist/apis/scene-tree.d.ts +3 -0
- package/dist/apis/scene-tree.d.ts.map +1 -0
- package/dist/apis/scene-tree.js +39 -0
- package/dist/apis/scene-tree.js.map +1 -0
- package/dist/apis/system-context.d.ts +3 -0
- package/dist/apis/system-context.d.ts.map +1 -0
- package/dist/apis/system-context.js +16 -0
- package/dist/apis/system-context.js.map +1 -0
- package/dist/apis/transaction.d.ts +3 -0
- package/dist/apis/transaction.d.ts.map +1 -0
- package/dist/apis/transaction.js +12 -0
- package/dist/apis/transaction.js.map +1 -0
- package/dist/apis/undo.d.ts +3 -0
- package/dist/apis/undo.d.ts.map +1 -0
- package/dist/apis/undo.js +12 -0
- package/dist/apis/undo.js.map +1 -0
- package/dist/apis/viewport.d.ts +4 -0
- package/dist/apis/viewport.d.ts.map +1 -0
- package/dist/apis/viewport.js +27 -0
- package/dist/apis/viewport.js.map +1 -0
- package/dist/combinations.d.ts +4 -0
- package/dist/combinations.d.ts.map +1 -0
- package/dist/combinations.js +42 -0
- package/dist/combinations.js.map +1 -0
- package/dist/core.d.ts +68 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +76 -0
- package/dist/core.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/requests/factory copy.d.ts +7 -0
- package/dist/requests/factory copy.d.ts.map +1 -0
- package/dist/requests/factory copy.js +10 -0
- package/dist/requests/factory copy.js.map +1 -0
- package/dist/requests/factory.d.ts +7 -0
- package/dist/requests/factory.d.ts.map +1 -0
- package/dist/requests/factory.js +10 -0
- package/dist/requests/factory.js.map +1 -0
- package/dist/requests/index.d.ts +3 -0
- package/dist/requests/index.d.ts.map +1 -0
- package/dist/requests/index.js +21 -0
- package/dist/requests/index.js.map +1 -0
- package/dist/requests/primary-tool.d.ts +7 -0
- package/dist/requests/primary-tool.d.ts.map +1 -0
- package/dist/requests/primary-tool.js +13 -0
- package/dist/requests/primary-tool.js.map +1 -0
- package/dist/requests/props copy.d.ts +7 -0
- package/dist/requests/props copy.d.ts.map +1 -0
- package/dist/requests/props copy.js +13 -0
- package/dist/requests/props copy.js.map +1 -0
- package/dist/requests/props.d.ts +7 -0
- package/dist/requests/props.d.ts.map +1 -0
- package/dist/requests/props.js +13 -0
- package/dist/requests/props.js.map +1 -0
- package/dist/requests/render.d.ts +3 -0
- package/dist/requests/render.d.ts.map +1 -0
- package/dist/requests/render.js +22 -0
- package/dist/requests/render.js.map +1 -0
- package/dist/requests/scene-tree.d.ts +7 -0
- package/dist/requests/scene-tree.d.ts.map +1 -0
- package/dist/requests/scene-tree.js +17 -0
- package/dist/requests/scene-tree.js.map +1 -0
- package/dist/requests/selection.d.ts +7 -0
- package/dist/requests/selection.d.ts.map +1 -0
- package/dist/requests/selection.js +10 -0
- package/dist/requests/selection.js.map +1 -0
- package/dist/requests/system-context copy.d.ts +7 -0
- package/dist/requests/system-context copy.d.ts.map +1 -0
- package/dist/requests/system-context copy.js +19 -0
- package/dist/requests/system-context copy.js.map +1 -0
- package/dist/requests/system-context.d.ts +7 -0
- package/dist/requests/system-context.d.ts.map +1 -0
- package/dist/requests/system-context.js +10 -0
- package/dist/requests/system-context.js.map +1 -0
- package/dist/requests/types.d.ts +7 -0
- package/dist/requests/types.d.ts.map +1 -0
- package/dist/requests/types.js +4 -0
- package/dist/requests/types.js.map +1 -0
- package/dist/requests/viewport.d.ts +19 -0
- package/dist/requests/viewport.d.ts.map +1 -0
- package/dist/requests/viewport.js +6 -0
- package/dist/requests/viewport.js.map +1 -0
- package/dist/subscribes/index.d.ts +3 -0
- package/dist/subscribes/index.d.ts.map +1 -0
- package/dist/subscribes/index.js +7 -0
- package/dist/subscribes/index.js.map +1 -0
- package/dist/subscribes/input-system/index.d.ts +3 -0
- package/dist/subscribes/input-system/index.d.ts.map +1 -0
- package/dist/subscribes/input-system/index.js +26 -0
- package/dist/subscribes/input-system/index.js.map +1 -0
- package/dist/subscribes/input-system/primary-tool.d.ts +10 -0
- package/dist/subscribes/input-system/primary-tool.d.ts.map +1 -0
- package/dist/subscribes/input-system/primary-tool.js +15 -0
- package/dist/subscribes/input-system/primary-tool.js.map +1 -0
- package/dist/subscribes/input-system/render.d.ts +16 -0
- package/dist/subscribes/input-system/render.d.ts.map +1 -0
- package/dist/subscribes/input-system/render.js +97 -0
- package/dist/subscribes/input-system/render.js.map +1 -0
- package/dist/subscribes/input-system/undo.d.ts +10 -0
- package/dist/subscribes/input-system/undo.d.ts.map +1 -0
- package/dist/subscribes/input-system/undo.js +18 -0
- package/dist/subscribes/input-system/undo.js.map +1 -0
- package/dist/subscribes/input-system/viewport.d.ts +11 -0
- package/dist/subscribes/input-system/viewport.d.ts.map +1 -0
- package/dist/subscribes/input-system/viewport.js +36 -0
- package/dist/subscribes/input-system/viewport.js.map +1 -0
- package/dist/subscribes/interaction-core/create-and-resize.d.ts +5 -0
- package/dist/subscribes/interaction-core/create-and-resize.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/create-and-resize.js +86 -0
- package/dist/subscribes/interaction-core/create-and-resize.js.map +1 -0
- package/dist/subscribes/interaction-core/create-element copy.d.ts +3 -0
- package/dist/subscribes/interaction-core/create-element copy.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/create-element copy.js +17 -0
- package/dist/subscribes/interaction-core/create-element copy.js.map +1 -0
- package/dist/subscribes/interaction-core/create-element.d.ts +3 -0
- package/dist/subscribes/interaction-core/create-element.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/create-element.js +17 -0
- package/dist/subscribes/interaction-core/create-element.js.map +1 -0
- package/dist/subscribes/interaction-core/index.d.ts +3 -0
- package/dist/subscribes/interaction-core/index.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/index.js +42 -0
- package/dist/subscribes/interaction-core/index.js.map +1 -0
- package/dist/subscribes/interaction-core/input-to-decision.d.ts +5 -0
- package/dist/subscribes/interaction-core/input-to-decision.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/input-to-decision.js +48 -0
- package/dist/subscribes/interaction-core/input-to-decision.js.map +1 -0
- package/dist/subscribes/interaction-core/primary-tool.d.ts +3 -0
- package/dist/subscribes/interaction-core/primary-tool.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/primary-tool.js +7 -0
- package/dist/subscribes/interaction-core/primary-tool.js.map +1 -0
- package/dist/subscribes/interaction-core/reset-element-size.d.ts +5 -0
- package/dist/subscribes/interaction-core/reset-element-size.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/reset-element-size.js +9 -0
- package/dist/subscribes/interaction-core/reset-element-size.js.map +1 -0
- package/dist/subscribes/interaction-core/resize-element.d.ts +3 -0
- package/dist/subscribes/interaction-core/resize-element.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/resize-element.js +25 -0
- package/dist/subscribes/interaction-core/resize-element.js.map +1 -0
- package/dist/subscribes/interaction-core/select-elements.d.ts +3 -0
- package/dist/subscribes/interaction-core/select-elements.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/select-elements.js +7 -0
- package/dist/subscribes/interaction-core/select-elements.js.map +1 -0
- package/dist/subscribes/interaction-core/transaction.d.ts +3 -0
- package/dist/subscribes/interaction-core/transaction.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/transaction.js +10 -0
- package/dist/subscribes/interaction-core/transaction.js.map +1 -0
- package/dist/subscribes/interaction-core/undoredo.d.ts +3 -0
- package/dist/subscribes/interaction-core/undoredo.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/undoredo.js +15 -0
- package/dist/subscribes/interaction-core/undoredo.js.map +1 -0
- package/dist/subscribes/interaction-core/viewport.d.ts +3 -0
- package/dist/subscribes/interaction-core/viewport.d.ts.map +1 -0
- package/dist/subscribes/interaction-core/viewport.js +29 -0
- package/dist/subscribes/interaction-core/viewport.js.map +1 -0
- package/dist/subscribes/render.d.ts +6 -0
- package/dist/subscribes/render.d.ts.map +1 -0
- package/dist/subscribes/render.js +28 -0
- package/dist/subscribes/render.js.map +1 -0
- package/dist/types/deps.d.ts +11 -0
- package/dist/types/deps.d.ts.map +1 -0
- package/dist/types/deps.js +2 -0
- package/dist/types/deps.js.map +1 -0
- package/dist/types/element-selection.d.ts +5 -0
- package/dist/types/element-selection.d.ts.map +1 -0
- package/dist/types/element-selection.js +2 -0
- package/dist/types/element-selection.js.map +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/input-system.d.ts +5 -0
- package/dist/types/input-system.d.ts.map +1 -0
- package/dist/types/input-system.js +2 -0
- package/dist/types/input-system.js.map +1 -0
- package/dist/types/interaction-core.d.ts +11 -0
- package/dist/types/interaction-core.d.ts.map +1 -0
- package/dist/types/interaction-core.js +2 -0
- package/dist/types/interaction-core.js.map +1 -0
- package/dist/types/props.d.ts +7 -0
- package/dist/types/props.d.ts.map +1 -0
- package/dist/types/props.js +2 -0
- package/dist/types/props.js.map +1 -0
- package/dist/types/render.d.ts +6 -0
- package/dist/types/render.d.ts.map +1 -0
- package/dist/types/render.js +2 -0
- package/dist/types/render.js.map +1 -0
- package/dist/types/requests/factory copy.d.ts +12 -0
- package/dist/types/requests/factory copy.d.ts.map +1 -0
- package/dist/types/requests/factory copy.js +2 -0
- package/dist/types/requests/factory copy.js.map +1 -0
- package/dist/types/requests/factory.d.ts +12 -0
- package/dist/types/requests/factory.d.ts.map +1 -0
- package/dist/types/requests/factory.js +2 -0
- package/dist/types/requests/factory.js.map +1 -0
- package/dist/types/requests/index.d.ts +17 -0
- package/dist/types/requests/index.d.ts.map +1 -0
- package/dist/types/requests/index.js +4 -0
- package/dist/types/requests/index.js.map +1 -0
- package/dist/types/requests/primary-tool.d.ts +13 -0
- package/dist/types/requests/primary-tool.d.ts.map +1 -0
- package/dist/types/requests/primary-tool.js +2 -0
- package/dist/types/requests/primary-tool.js.map +1 -0
- package/dist/types/requests/props copy.d.ts +14 -0
- package/dist/types/requests/props copy.d.ts.map +1 -0
- package/dist/types/requests/props copy.js +2 -0
- package/dist/types/requests/props copy.js.map +1 -0
- package/dist/types/requests/props.d.ts +14 -0
- package/dist/types/requests/props.d.ts.map +1 -0
- package/dist/types/requests/props.js +2 -0
- package/dist/types/requests/props.js.map +1 -0
- package/dist/types/requests/render.d.ts +15 -0
- package/dist/types/requests/render.d.ts.map +1 -0
- package/dist/types/requests/render.js +2 -0
- package/dist/types/requests/render.js.map +1 -0
- package/dist/types/requests/scene-tree.d.ts +14 -0
- package/dist/types/requests/scene-tree.d.ts.map +1 -0
- package/dist/types/requests/scene-tree.js +2 -0
- package/dist/types/requests/scene-tree.js.map +1 -0
- package/dist/types/requests/selection.d.ts +12 -0
- package/dist/types/requests/selection.d.ts.map +1 -0
- package/dist/types/requests/selection.js +2 -0
- package/dist/types/requests/selection.js.map +1 -0
- package/dist/types/requests/system-context.d.ts +17 -0
- package/dist/types/requests/system-context.d.ts.map +1 -0
- package/dist/types/requests/system-context.js +2 -0
- package/dist/types/requests/system-context.js.map +1 -0
- package/dist/types/requests/system.d.ts +13 -0
- package/dist/types/requests/system.d.ts.map +1 -0
- package/dist/types/requests/system.js +2 -0
- package/dist/types/requests/system.js.map +1 -0
- package/dist/types/requests/viewport.d.ts +20 -0
- package/dist/types/requests/viewport.d.ts.map +1 -0
- package/dist/types/requests/viewport.js +6 -0
- package/dist/types/requests/viewport.js.map +1 -0
- package/dist/types/requests.d.ts +8 -0
- package/dist/types/requests.d.ts.map +1 -0
- package/dist/types/requests.js +2 -0
- package/dist/types/requests.js.map +1 -0
- package/dist/types/scene-tree.d.ts +15 -0
- package/dist/types/scene-tree.d.ts.map +1 -0
- package/dist/types/scene-tree.js +2 -0
- package/dist/types/scene-tree.js.map +1 -0
- package/dist/types/system-context/index.d.ts +8 -0
- package/dist/types/system-context/index.d.ts.map +1 -0
- package/dist/types/system-context/index.js +4 -0
- package/dist/types/system-context/index.js.map +1 -0
- package/dist/types/system-context/key-state.d.ts +6 -0
- package/dist/types/system-context/key-state.d.ts.map +1 -0
- package/dist/types/system-context/key-state.js +2 -0
- package/dist/types/system-context/key-state.js.map +1 -0
- package/dist/types/system-context/mouse-state.d.ts +6 -0
- package/dist/types/system-context/mouse-state.d.ts.map +1 -0
- package/dist/types/system-context/mouse-state.js +2 -0
- package/dist/types/system-context/mouse-state.js.map +1 -0
- package/dist/types/system-context/primary-tool.d.ts +8 -0
- package/dist/types/system-context/primary-tool.d.ts.map +1 -0
- package/dist/types/system-context/primary-tool.js +2 -0
- package/dist/types/system-context/primary-tool.js.map +1 -0
- package/dist/types/transaction.d.ts +6 -0
- package/dist/types/transaction.d.ts.map +1 -0
- package/dist/types/transaction.js +2 -0
- package/dist/types/transaction.js.map +1 -0
- package/dist/types/undo.d.ts +6 -0
- package/dist/types/undo.d.ts.map +1 -0
- package/dist/types/undo.js +2 -0
- package/dist/types/undo.js.map +1 -0
- package/dist/types/viewport.d.ts +12 -0
- package/dist/types/viewport.d.ts.map +1 -0
- package/dist/types/viewport.js +2 -0
- package/dist/types/viewport.js.map +1 -0
- package/package.json +37 -0
- package/src/__tests__/core.test.ts +153 -0
- package/src/apis/element-selection.ts +16 -0
- package/src/apis/index.ts +30 -0
- package/src/apis/input-system.ts +12 -0
- package/src/apis/interaction-core.ts +35 -0
- package/src/apis/props.ts +13 -0
- package/src/apis/render.ts +15 -0
- package/src/apis/scene-tree.ts +69 -0
- package/src/apis/system-context.ts +23 -0
- package/src/apis/transaction.ts +13 -0
- package/src/apis/undo.ts +13 -0
- package/src/apis/viewport.ts +36 -0
- package/src/combinations.ts +46 -0
- package/src/core.ts +158 -0
- package/src/index.ts +4 -0
- package/src/requests/factory.ts +14 -0
- package/src/requests/index.ts +23 -0
- package/src/requests/props.ts +16 -0
- package/src/requests/render.ts +34 -0
- package/src/requests/scene-tree.ts +26 -0
- package/src/requests/selection.ts +14 -0
- package/src/requests/system-context.ts +15 -0
- package/src/subscribes/index.ts +8 -0
- package/src/subscribes/input-system/index.ts +47 -0
- package/src/subscribes/input-system/primary-tool.ts +25 -0
- package/src/subscribes/input-system/render.ts +133 -0
- package/src/subscribes/input-system/undo.ts +29 -0
- package/src/subscribes/input-system/viewport.ts +58 -0
- package/src/subscribes/interaction-core/create-element.ts +22 -0
- package/src/subscribes/interaction-core/index.ts +68 -0
- package/src/subscribes/interaction-core/primary-tool.ts +8 -0
- package/src/subscribes/interaction-core/reset-element-size.ts +12 -0
- package/src/subscribes/interaction-core/resize-element.ts +31 -0
- package/src/subscribes/interaction-core/select-elements.ts +8 -0
- package/src/subscribes/interaction-core/transaction.ts +15 -0
- package/src/subscribes/interaction-core/undoredo.ts +16 -0
- package/src/subscribes/interaction-core/viewport.ts +35 -0
- package/src/types/deps.ts +11 -0
- package/src/types/element-selection.ts +5 -0
- package/src/types/index.ts +100 -0
- package/src/types/input-system.ts +5 -0
- package/src/types/interaction-core.ts +14 -0
- package/src/types/props.ts +8 -0
- package/src/types/render.ts +7 -0
- package/src/types/requests/factory.ts +14 -0
- package/src/types/requests/index.ts +43 -0
- package/src/types/requests/props.ts +16 -0
- package/src/types/requests/render.ts +18 -0
- package/src/types/requests/scene-tree.ts +16 -0
- package/src/types/requests/selection.ts +14 -0
- package/src/types/requests/system-context.ts +19 -0
- package/src/types/scene-tree.ts +31 -0
- package/src/types/system-context/index.ts +9 -0
- package/src/types/system-context/key-state.ts +7 -0
- package/src/types/system-context/mouse-state.ts +7 -0
- package/src/types/system-context/primary-tool.ts +9 -0
- package/src/types/transaction.ts +6 -0
- package/src/types/undo.ts +6 -0
- package/src/types/viewport.ts +14 -0
- package/test-setup.ts +6 -0
- package/tsconfig.json +22 -0
- package/vitest.config.ts +8 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
|
|
2
|
+
[33m[33mThe CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m[39m
|
|
3
|
+
|
|
4
|
+
[1m[7m[36m RUN [39m[27m[22m [36mv2.1.9 [39m[90m/Users/asa/Desktop/workspace/asyra/packages/core[39m
|
|
5
|
+
[2mCoverage enabled with [22m[33mv8[39m
|
|
6
|
+
|
|
7
|
+
[?25l [90m·[39m [2msrc/__tests__/[22mcore[2m.test.ts[22m[2m (7)[22m
|
|
8
|
+
[90m·[39m Core[2m (7)[22m
|
|
9
|
+
[90m·[39m should load data correctly and call appropriate methods
|
|
10
|
+
[90m·[39m should call sceneTreeInit if no sceneTree data is provided
|
|
11
|
+
[90m·[39m should save data correctly and call appropriate methods
|
|
12
|
+
[90m·[39m should delegate startTransaction to factory
|
|
13
|
+
[90m·[39m should delegate switchPrimaryTool to systemContext
|
|
14
|
+
[90m·[39m should delegate addRectangle to sceneTree
|
|
15
|
+
[90m·[39m should call executeAction without error
|
|
16
|
+
[?25l[?25l[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[G [32m✓[39m [2msrc/__tests__/[22mcore[2m.test.ts[22m[2m (7)[22m
|
|
17
|
+
[32m✓[39m Core[2m (7)[22m
|
|
18
|
+
[32m✓[39m should load data correctly and call appropriate methods
|
|
19
|
+
[32m✓[39m should call sceneTreeInit if no sceneTree data is provided
|
|
20
|
+
[32m✓[39m should save data correctly and call appropriate methods
|
|
21
|
+
[32m✓[39m should delegate startTransaction to factory
|
|
22
|
+
[32m✓[39m should delegate switchPrimaryTool to systemContext
|
|
23
|
+
[32m✓[39m should delegate addRectangle to sceneTree
|
|
24
|
+
[32m✓[39m should call executeAction without error
|
|
25
|
+
[?25l[?25l[?25l[?25l[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[G [32m✓[39m [2msrc/__tests__/[22mcore[2m.test.ts[22m[2m (7)[22m
|
|
26
|
+
[32m✓[39m Core[2m (7)[22m
|
|
27
|
+
[32m✓[39m should load data correctly and call appropriate methods
|
|
28
|
+
[32m✓[39m should call sceneTreeInit if no sceneTree data is provided
|
|
29
|
+
[32m✓[39m should save data correctly and call appropriate methods
|
|
30
|
+
[32m✓[39m should delegate startTransaction to factory
|
|
31
|
+
[32m✓[39m should delegate switchPrimaryTool to systemContext
|
|
32
|
+
[32m✓[39m should delegate addRectangle to sceneTree
|
|
33
|
+
[32m✓[39m should call executeAction without error
|
|
34
|
+
|
|
35
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
36
|
+
[2m Tests [22m [1m[32m7 passed[39m[22m[90m (7)[39m
|
|
37
|
+
[2m Start at [22m 02:50:33
|
|
38
|
+
[2m Duration [22m 4.00s[2m (transform 1.28s, setup 20ms, collect 2.09s, tests 7ms, environment 727ms, prepare 443ms)[22m
|
|
39
|
+
|
|
40
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
|
41
|
+
<testsuites name="vitest tests" tests="7" failures="0" errors="0" time="4.004">
|
|
42
|
+
<testsuite name="src/__tests__/core.test.ts" timestamp="2026-01-20T18:50:38.375Z" hostname="Mac.home" tests="7" failures="0" errors="0" skipped="0" time="0.007402417">
|
|
43
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should load data correctly and call appropriate methods" time="0.002315375">
|
|
44
|
+
</testcase>
|
|
45
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should call sceneTreeInit if no sceneTree data is provided" time="0.003507792">
|
|
46
|
+
</testcase>
|
|
47
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should save data correctly and call appropriate methods" time="0.000318209">
|
|
48
|
+
</testcase>
|
|
49
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should delegate startTransaction to factory" time="0.000150958">
|
|
50
|
+
</testcase>
|
|
51
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should delegate switchPrimaryTool to systemContext" time="0.000167375">
|
|
52
|
+
</testcase>
|
|
53
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should delegate addRectangle to sceneTree" time="0.000173458">
|
|
54
|
+
</testcase>
|
|
55
|
+
<testcase classname="src/__tests__/core.test.ts" name="Core > should call executeAction without error" time="0.000175375">
|
|
56
|
+
</testcase>
|
|
57
|
+
</testsuite>
|
|
58
|
+
</testsuites>
|
|
59
|
+
[34m % [39m[2mCoverage report from [22m[33mv8[39m
|
|
60
|
+
---------------------------------|---------|----------|---------|---------|----------------------------
|
|
61
|
+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
62
|
+
---------------------------------|---------|----------|---------|---------|----------------------------
|
|
63
|
+
[33;1mAll files [0m | [33;1m 59.69[0m | [32;1m 88.88[0m | [31;1m 46.26[0m | [33;1m 59.69[0m | [31;1m [0m
|
|
64
|
+
[32;1m src [0m | [32;1m 96.36[0m | [33;1m 62.5[0m | [33;1m 75[0m | [32;1m 96.36[0m | [31;1m [0m
|
|
65
|
+
[32;1m combinations.ts [0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m [0m
|
|
66
|
+
[32;1m core.ts [0m | [32;1m 96.87[0m | [33;1m 66.66[0m | [32;1m 100[0m | [32;1m 96.87[0m | [31;1m115-116 [0m
|
|
67
|
+
[31;1m index.ts [0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m1-4 [0m
|
|
68
|
+
[33;1m src/apis [0m | [33;1m 56[0m | [32;1m 86.66[0m | [31;1m 33.33[0m | [33;1m 56[0m | [31;1m [0m
|
|
69
|
+
[33;1m element-selection.ts [0m | [33;1m 60[0m | [32;1m 100[0m | [33;1m 50[0m | [33;1m 60[0m | [31;1m11-14 [0m
|
|
70
|
+
[32;1m index.ts [0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m [0m
|
|
71
|
+
[33;1m input-system.ts [0m | [33;1m 60[0m | [32;1m 100[0m | [33;1m 50[0m | [33;1m 60[0m | [31;1m7-10 [0m
|
|
72
|
+
[31;1m interaction-core.ts [0m | [31;1m 40.74[0m | [32;1m 100[0m | [31;1m 20[0m | [31;1m 40.74[0m | [31;1m15-18,20-23,25-28,30-33 [0m
|
|
73
|
+
[32;1m props.ts [0m | [32;1m 80[0m | [32;1m 100[0m | [33;1m 66.66[0m | [32;1m 80[0m | [31;1m10-11 [0m
|
|
74
|
+
[33;1m render.ts [0m | [33;1m 69.23[0m | [32;1m 100[0m | [31;1m 33.33[0m | [33;1m 69.23[0m | [31;1m9-10,12-13 [0m
|
|
75
|
+
[31;1m scene-tree.ts [0m | [31;1m 32.6[0m | [32;1m 100[0m | [31;1m 14.28[0m | [31;1m 32.6[0m | [31;1m...40-41,43-48,50-54,56-67[0m
|
|
76
|
+
[33;1m system-context.ts [0m | [33;1m 53.33[0m | [32;1m 100[0m | [31;1m 25[0m | [33;1m 53.33[0m | [31;1m13-15,17-18,20-21 [0m
|
|
77
|
+
[33;1m transaction.ts [0m | [33;1m 63.63[0m | [32;1m 100[0m | [31;1m 33.33[0m | [33;1m 63.63[0m | [31;1m7-8,10-11 [0m
|
|
78
|
+
[33;1m undo.ts [0m | [33;1m 63.63[0m | [32;1m 100[0m | [31;1m 33.33[0m | [33;1m 63.63[0m | [31;1m7-8,10-11 [0m
|
|
79
|
+
[33;1m viewport.ts [0m | [33;1m 57.14[0m | [33;1m 50[0m | [31;1m 33.33[0m | [33;1m 57.14[0m | [31;1m...18-19,24-26,29-30,32-34[0m
|
|
80
|
+
[33;1m src/requests [0m | [33;1m 58.33[0m | [32;1m 100[0m | [31;1m 47.05[0m | [33;1m 58.33[0m | [31;1m [0m
|
|
81
|
+
[33;1m factory.ts [0m | [33;1m 71.42[0m | [32;1m 100[0m | [33;1m 50[0m | [33;1m 71.42[0m | [31;1m12-13 [0m
|
|
82
|
+
[32;1m index.ts [0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m [0m
|
|
83
|
+
[33;1m props.ts [0m | [33;1m 75[0m | [32;1m 100[0m | [33;1m 66.66[0m | [33;1m 75[0m | [31;1m14-15 [0m
|
|
84
|
+
[31;1m render.ts [0m | [31;1m 34.78[0m | [32;1m 100[0m | [31;1m 25[0m | [31;1m 34.78[0m | [31;1m14-27,29-30,32-33 [0m
|
|
85
|
+
[31;1m scene-tree.ts [0m | [31;1m 36.84[0m | [32;1m 100[0m | [31;1m 33.33[0m | [31;1m 36.84[0m | [31;1m13-14,16-25 [0m
|
|
86
|
+
[33;1m selection.ts [0m | [33;1m 71.42[0m | [32;1m 100[0m | [33;1m 50[0m | [33;1m 71.42[0m | [31;1m12-13 [0m
|
|
87
|
+
[33;1m system-context.ts [0m | [33;1m 71.42[0m | [32;1m 100[0m | [33;1m 50[0m | [33;1m 71.42[0m | [31;1m13-14 [0m
|
|
88
|
+
[32;1m src/subscribes [0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m [0m
|
|
89
|
+
[32;1m index.ts [0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m [0m
|
|
90
|
+
[31;1m src/subscribes/input-system [0m | [31;1m 48.86[0m | [32;1m 100[0m | [31;1m 33.33[0m | [31;1m 48.86[0m | [31;1m [0m
|
|
91
|
+
[33;1m index.ts [0m | [33;1m 66.66[0m | [32;1m 100[0m | [31;1m 8.33[0m | [33;1m 66.66[0m | [31;1m...25,27,32,34,36,38,40,45[0m
|
|
92
|
+
[33;1m primary-tool.ts [0m | [33;1m 76.19[0m | [32;1m 100[0m | [33;1m 66.66[0m | [33;1m 76.19[0m | [31;1m20-24 [0m
|
|
93
|
+
[31;1m render.ts [0m | [31;1m 32.03[0m | [32;1m 100[0m | [31;1m 40[0m | [31;1m 32.03[0m | [31;1m52-79,82-107,110-132 [0m
|
|
94
|
+
[33;1m undo.ts [0m | [33;1m 76.19[0m | [32;1m 100[0m | [33;1m 66.66[0m | [33;1m 76.19[0m | [31;1m24-28 [0m
|
|
95
|
+
[31;1m viewport.ts [0m | [31;1m 48.83[0m | [32;1m 100[0m | [33;1m 50[0m | [31;1m 48.83[0m | [31;1m34-35,38-57 [0m
|
|
96
|
+
[33;1m src/subscribes/interaction-core[0m | [33;1m 55.69[0m | [32;1m 100[0m | [31;1m 37.5[0m | [33;1m 55.69[0m | [31;1m [0m
|
|
97
|
+
[31;1m create-element.ts [0m | [31;1m 44.44[0m | [32;1m 100[0m | [32;1m 100[0m | [31;1m 44.44[0m | [31;1m10-20 [0m
|
|
98
|
+
[32;1m index.ts [0m | [32;1m 82.22[0m | [32;1m 100[0m | [31;1m 6.25[0m | [32;1m 82.22[0m | [31;1m29,38,40-43,48,62 [0m
|
|
99
|
+
[32;1m primary-tool.ts [0m | [32;1m 83.33[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 83.33[0m | [31;1m6 [0m
|
|
100
|
+
[33;1m reset-element-size.ts [0m | [33;1m 66.66[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m 66.66[0m | [31;1m8-12 [0m
|
|
101
|
+
[31;1m resize-element.ts [0m | [31;1m 30.76[0m | [32;1m 100[0m | [32;1m 100[0m | [31;1m 30.76[0m | [31;1m10-30 [0m
|
|
102
|
+
[32;1m select-elements.ts [0m | [32;1m 83.33[0m | [32;1m 100[0m | [32;1m 100[0m | [32;1m 83.33[0m | [31;1m6 [0m
|
|
103
|
+
[33;1m transaction.ts [0m | [33;1m 77.77[0m | [32;1m 100[0m | [32;1m 100[0m | [33;1m 77.77[0m | [31;1m9,13 [0m
|
|
104
|
+
[31;1m undoredo.ts [0m | [31;1m 38.46[0m | [32;1m 100[0m | [32;1m 100[0m | [31;1m 38.46[0m | [31;1m7-14 [0m
|
|
105
|
+
[31;1m viewport.ts [0m | [31;1m 26.92[0m | [32;1m 100[0m | [32;1m 100[0m | [31;1m 26.92[0m | [31;1m10,15-34 [0m
|
|
106
|
+
[31;1m src/types [0m | [31;1m 0[0m | [32;1m 90.9[0m | [32;1m 90.9[0m | [31;1m 0[0m | [31;1m [0m
|
|
107
|
+
deps.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
108
|
+
element-selection.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
109
|
+
[31;1m index.ts [0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m1 [0m
|
|
110
|
+
input-system.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
111
|
+
interaction-core.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
112
|
+
props.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
113
|
+
render.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
114
|
+
scene-tree.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
115
|
+
transaction.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
116
|
+
undo.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
117
|
+
viewport.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
118
|
+
[31;1m src/types/requests [0m | [31;1m 0[0m | [32;1m 85.71[0m | [32;1m 85.71[0m | [31;1m 0[0m | [31;1m [0m
|
|
119
|
+
factory.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
120
|
+
[31;1m index.ts [0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m1 [0m
|
|
121
|
+
props.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
122
|
+
render.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
123
|
+
scene-tree.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
124
|
+
selection.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
125
|
+
system-context.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
126
|
+
[31;1m src/types/system-context [0m | [31;1m 0[0m | [33;1m 75[0m | [33;1m 75[0m | [31;1m 0[0m | [31;1m [0m
|
|
127
|
+
[31;1m index.ts [0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m 0[0m | [31;1m1-7 [0m
|
|
128
|
+
key-state.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
129
|
+
mouse-state.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
130
|
+
primary-tool.ts | 0 | 0 | 0 | 0 | [31;1m [0m
|
|
131
|
+
---------------------------------|---------|----------|---------|---------|----------------------------
|
|
132
|
+
[?25h[?25h
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
[33m[33mThe CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m[39m
|
|
3
|
+
|
|
4
|
+
[1m[7m[36m RUN [39m[27m[22m [36mv2.1.9 [39m[90m/Users/asa/Desktop/workspace/asra/packages/core[39m
|
|
5
|
+
|
|
6
|
+
[?25l [32m✓[39m [2msrc/__tests__/[22mcore[2m.test.ts[22m[2m (7)[22m
|
|
7
|
+
[32m✓[39m Core[2m (7)[22m
|
|
8
|
+
[32m✓[39m should load data correctly and call appropriate methods
|
|
9
|
+
[32m✓[39m should call sceneTreeInit if no sceneTree data is provided
|
|
10
|
+
[32m✓[39m should save data correctly and call appropriate methods
|
|
11
|
+
[32m✓[39m should delegate startTransaction to factory
|
|
12
|
+
[32m✓[39m should delegate switchPrimaryTool to systemContext
|
|
13
|
+
[32m✓[39m should delegate addRectangle to sceneTree
|
|
14
|
+
[32m✓[39m should call executeAction without error
|
|
15
|
+
[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[1A[2K[G [32m✓[39m [2msrc/__tests__/[22mcore[2m.test.ts[22m[2m (7)[22m
|
|
16
|
+
[32m✓[39m Core[2m (7)[22m
|
|
17
|
+
[32m✓[39m should load data correctly and call appropriate methods
|
|
18
|
+
[32m✓[39m should call sceneTreeInit if no sceneTree data is provided
|
|
19
|
+
[32m✓[39m should save data correctly and call appropriate methods
|
|
20
|
+
[32m✓[39m should delegate startTransaction to factory
|
|
21
|
+
[32m✓[39m should delegate switchPrimaryTool to systemContext
|
|
22
|
+
[32m✓[39m should delegate addRectangle to sceneTree
|
|
23
|
+
[32m✓[39m should call executeAction without error
|
|
24
|
+
|
|
25
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
26
|
+
[2m Tests [22m [1m[32m7 passed[39m[22m[90m (7)[39m
|
|
27
|
+
[2m Start at [22m 01:58:32
|
|
28
|
+
[2m Duration [22m 1.82s[2m (transform 466ms, setup 22ms, collect 890ms, tests 10ms, environment 244ms, prepare 139ms)[22m
|
|
29
|
+
|
|
30
|
+
[?25h[?25h
|
|
Binary file
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Core
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
body, html {
|
|
2
|
+
margin:0; padding: 0;
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
body {
|
|
6
|
+
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
color:#333;
|
|
9
|
+
}
|
|
10
|
+
.small { font-size: 12px; }
|
|
11
|
+
*, *:after, *:before {
|
|
12
|
+
-webkit-box-sizing:border-box;
|
|
13
|
+
-moz-box-sizing:border-box;
|
|
14
|
+
box-sizing:border-box;
|
|
15
|
+
}
|
|
16
|
+
h1 { font-size: 20px; margin: 0;}
|
|
17
|
+
h2 { font-size: 14px; }
|
|
18
|
+
pre {
|
|
19
|
+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
-moz-tab-size: 2;
|
|
23
|
+
-o-tab-size: 2;
|
|
24
|
+
tab-size: 2;
|
|
25
|
+
}
|
|
26
|
+
a { color:#0074D9; text-decoration:none; }
|
|
27
|
+
a:hover { text-decoration:underline; }
|
|
28
|
+
.strong { font-weight: bold; }
|
|
29
|
+
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
+
.pad2y { padding: 20px 0; }
|
|
31
|
+
.pad1y { padding: 10px 0; }
|
|
32
|
+
.pad2x { padding: 0 20px; }
|
|
33
|
+
.pad2 { padding: 20px; }
|
|
34
|
+
.pad1 { padding: 10px; }
|
|
35
|
+
.space-left2 { padding-left:55px; }
|
|
36
|
+
.space-right2 { padding-right:20px; }
|
|
37
|
+
.center { text-align:center; }
|
|
38
|
+
.clearfix { display:block; }
|
|
39
|
+
.clearfix:after {
|
|
40
|
+
content:'';
|
|
41
|
+
display:block;
|
|
42
|
+
height:0;
|
|
43
|
+
clear:both;
|
|
44
|
+
visibility:hidden;
|
|
45
|
+
}
|
|
46
|
+
.fl { float: left; }
|
|
47
|
+
@media only screen and (max-width:640px) {
|
|
48
|
+
.col3 { width:100%; max-width:100%; }
|
|
49
|
+
.hide-mobile { display:none!important; }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.quiet {
|
|
53
|
+
color: #7f7f7f;
|
|
54
|
+
color: rgba(0,0,0,0.5);
|
|
55
|
+
}
|
|
56
|
+
.quiet a { opacity: 0.7; }
|
|
57
|
+
|
|
58
|
+
.fraction {
|
|
59
|
+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
color: #555;
|
|
62
|
+
background: #E8E8E8;
|
|
63
|
+
padding: 4px 5px;
|
|
64
|
+
border-radius: 3px;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
+
table.coverage {
|
|
70
|
+
border-collapse: collapse;
|
|
71
|
+
margin: 10px 0 0 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
table.coverage td {
|
|
76
|
+
margin: 0;
|
|
77
|
+
padding: 0;
|
|
78
|
+
vertical-align: top;
|
|
79
|
+
}
|
|
80
|
+
table.coverage td.line-count {
|
|
81
|
+
text-align: right;
|
|
82
|
+
padding: 0 5px 0 20px;
|
|
83
|
+
}
|
|
84
|
+
table.coverage td.line-coverage {
|
|
85
|
+
text-align: right;
|
|
86
|
+
padding-right: 10px;
|
|
87
|
+
min-width:20px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
table.coverage td span.cline-any {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
padding: 0 5px;
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
.missing-if-branch {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
margin-right: 5px;
|
|
98
|
+
border-radius: 3px;
|
|
99
|
+
position: relative;
|
|
100
|
+
padding: 0 4px;
|
|
101
|
+
background: #333;
|
|
102
|
+
color: yellow;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.skip-if-branch {
|
|
106
|
+
display: none;
|
|
107
|
+
margin-right: 10px;
|
|
108
|
+
position: relative;
|
|
109
|
+
padding: 0 4px;
|
|
110
|
+
background: #ccc;
|
|
111
|
+
color: white;
|
|
112
|
+
}
|
|
113
|
+
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
+
color: inherit !important;
|
|
115
|
+
}
|
|
116
|
+
.coverage-summary {
|
|
117
|
+
border-collapse: collapse;
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
+
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
+
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
+
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
+
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
+
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
+
.coverage-summary th {
|
|
127
|
+
text-align: left;
|
|
128
|
+
font-weight: normal;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
+
.coverage-summary th.pct { }
|
|
133
|
+
.coverage-summary th.pic,
|
|
134
|
+
.coverage-summary th.abs,
|
|
135
|
+
.coverage-summary td.pct,
|
|
136
|
+
.coverage-summary td.abs { text-align: right; }
|
|
137
|
+
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
+
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
+
.coverage-summary tfoot td { }
|
|
140
|
+
|
|
141
|
+
.coverage-summary .sorter {
|
|
142
|
+
height: 10px;
|
|
143
|
+
width: 7px;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
margin-left: 0.5em;
|
|
146
|
+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
+
}
|
|
148
|
+
.coverage-summary .sorted .sorter {
|
|
149
|
+
background-position: 0 -20px;
|
|
150
|
+
}
|
|
151
|
+
.coverage-summary .sorted-desc .sorter {
|
|
152
|
+
background-position: 0 -10px;
|
|
153
|
+
}
|
|
154
|
+
.status-line { height: 10px; }
|
|
155
|
+
/* yellow */
|
|
156
|
+
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
+
/* dark red */
|
|
158
|
+
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
+
.low .chart { border:1px solid #C21F39 }
|
|
160
|
+
.highlighted,
|
|
161
|
+
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
+
background: #C21F39 !important;
|
|
163
|
+
}
|
|
164
|
+
/* medium red */
|
|
165
|
+
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
+
/* light red */
|
|
167
|
+
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
+
/* light green */
|
|
169
|
+
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
+
/* medium green */
|
|
171
|
+
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
+
/* dark green */
|
|
173
|
+
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
+
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
+
/* dark yellow (gold) */
|
|
176
|
+
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
+
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
+
/* light yellow */
|
|
179
|
+
.medium { background: #fff4c2; }
|
|
180
|
+
|
|
181
|
+
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
+
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
+
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
+
|
|
185
|
+
span.cline-neutral { background: #eaeaea; }
|
|
186
|
+
|
|
187
|
+
.coverage-summary td.empty {
|
|
188
|
+
opacity: .5;
|
|
189
|
+
padding-top: 4px;
|
|
190
|
+
padding-bottom: 4px;
|
|
191
|
+
line-height: 1;
|
|
192
|
+
color: #888;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.cover-fill, .cover-empty {
|
|
196
|
+
display:inline-block;
|
|
197
|
+
height: 12px;
|
|
198
|
+
}
|
|
199
|
+
.chart {
|
|
200
|
+
line-height: 0;
|
|
201
|
+
}
|
|
202
|
+
.cover-empty {
|
|
203
|
+
background: white;
|
|
204
|
+
}
|
|
205
|
+
.cover-full {
|
|
206
|
+
border-right: none !important;
|
|
207
|
+
}
|
|
208
|
+
pre.prettyprint {
|
|
209
|
+
border: none !important;
|
|
210
|
+
padding: 0 !important;
|
|
211
|
+
margin: 0 !important;
|
|
212
|
+
}
|
|
213
|
+
.com { color: #999 !important; }
|
|
214
|
+
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
+
|
|
216
|
+
.wrapper {
|
|
217
|
+
min-height: 100%;
|
|
218
|
+
height: auto !important;
|
|
219
|
+
height: 100%;
|
|
220
|
+
margin: 0 auto -48px;
|
|
221
|
+
}
|
|
222
|
+
.footer, .push {
|
|
223
|
+
height: 48px;
|
|
224
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var jumpToCode = (function init() {
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
+
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
|
+
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
+
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
+
|
|
22
|
+
var currentIndex;
|
|
23
|
+
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
makeCurrent(nextIndex);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
54
|
+
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
makeCurrent(nextIndex);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
})();
|
|
87
|
+
window.addEventListener('keydown', jumpToCode);
|