@fc3/wireframe-renderer 0.0.0-stage → 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/LICENSE +673 -0
- package/README.md +165 -2
- package/bin/bootstrap/terminal-demo +7 -0
- package/bin/compile +55 -0
- package/bin/install +5 -0
- package/bin/lint +12 -0
- package/bin/postpublish +5 -0
- package/bin/precompile +71 -0
- package/bin/prepublish +7 -0
- package/bin/remap-paths +172 -0
- package/bin/test +9 -0
- package/bin/test-one +32 -0
- package/dist/.last-compile-time +1 -0
- package/dist/.last-publish-time +1 -0
- package/dist/src/bootstrap/terminal-demo.d.ts +1 -0
- package/dist/src/bootstrap/terminal-demo.js +14 -0
- package/dist/src/bootstrap/terminal-demo.js.map +1 -0
- package/dist/src/camera.d.ts +26 -0
- package/dist/src/camera.js +90 -0
- package/dist/src/camera.js.map +1 -0
- package/dist/src/canvas-renderer.d.ts +20 -0
- package/dist/src/canvas-renderer.js +137 -0
- package/dist/src/canvas-renderer.js.map +1 -0
- package/dist/src/constant/axis-colors.d.ts +3 -0
- package/dist/src/constant/axis-colors.js +13 -0
- package/dist/src/constant/axis-colors.js.map +1 -0
- package/dist/src/constant/box-edge-index-pairs.d.ts +2 -0
- package/dist/src/constant/box-edge-index-pairs.js +18 -0
- package/dist/src/constant/box-edge-index-pairs.js.map +1 -0
- package/dist/src/constant/camera-limits.d.ts +7 -0
- package/dist/src/constant/camera-limits.js +10 -0
- package/dist/src/constant/camera-limits.js.map +1 -0
- package/dist/src/constant/default-camera-state.d.ts +3 -0
- package/dist/src/constant/default-camera-state.js +19 -0
- package/dist/src/constant/default-camera-state.js.map +1 -0
- package/dist/src/constant/default-palette.d.ts +2 -0
- package/dist/src/constant/default-palette.js +17 -0
- package/dist/src/constant/default-palette.js.map +1 -0
- package/dist/src/constant/default-render-options.d.ts +3 -0
- package/dist/src/constant/default-render-options.js +8 -0
- package/dist/src/constant/default-render-options.js.map +1 -0
- package/dist/src/constant/interaction-rates.d.ts +5 -0
- package/dist/src/constant/interaction-rates.js +8 -0
- package/dist/src/constant/interaction-rates.js.map +1 -0
- package/dist/src/constant/rendering-defaults.d.ts +11 -0
- package/dist/src/constant/rendering-defaults.js +14 -0
- package/dist/src/constant/rendering-defaults.js.map +1 -0
- package/dist/src/constant/stylesheet.d.ts +2 -0
- package/dist/src/constant/stylesheet.js +140 -0
- package/dist/src/constant/stylesheet.js.map +1 -0
- package/dist/src/constant/theme.d.ts +9 -0
- package/dist/src/constant/theme.js +12 -0
- package/dist/src/constant/theme.js.map +1 -0
- package/dist/src/constant/view-orientations.d.ts +4 -0
- package/dist/src/constant/view-orientations.js +19 -0
- package/dist/src/constant/view-orientations.js.map +1 -0
- package/dist/src/enum/axis.d.ts +6 -0
- package/dist/src/enum/axis.js +10 -0
- package/dist/src/enum/axis.js.map +1 -0
- package/dist/src/enum/opening-shape.d.ts +5 -0
- package/dist/src/enum/opening-shape.js +9 -0
- package/dist/src/enum/opening-shape.js.map +1 -0
- package/dist/src/enum/plane.d.ts +6 -0
- package/dist/src/enum/plane.js +10 -0
- package/dist/src/enum/plane.js.map +1 -0
- package/dist/src/enum/primitive-type.d.ts +8 -0
- package/dist/src/enum/primitive-type.js +12 -0
- package/dist/src/enum/primitive-type.js.map +1 -0
- package/dist/src/enum/view-preset.d.ts +10 -0
- package/dist/src/enum/view-preset.js +14 -0
- package/dist/src/enum/view-preset.js.map +1 -0
- package/dist/src/enum/viewer-class-name.d.ts +15 -0
- package/dist/src/enum/viewer-class-name.js +19 -0
- package/dist/src/enum/viewer-class-name.js.map +1 -0
- package/dist/src/example/house-computer.d.ts +3 -0
- package/dist/src/example/house-computer.js +2081 -0
- package/dist/src/example/house-computer.js.map +1 -0
- package/dist/src/index.d.ts +20 -0
- package/dist/src/index.js +27 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/interaction-controller.d.ts +17 -0
- package/dist/src/interaction-controller.js +106 -0
- package/dist/src/interaction-controller.js.map +1 -0
- package/dist/src/sidebar.d.ts +24 -0
- package/dist/src/sidebar.js +121 -0
- package/dist/src/sidebar.js.map +1 -0
- package/dist/src/terminal/braille-canvas.d.ts +17 -0
- package/dist/src/terminal/braille-canvas.js +137 -0
- package/dist/src/terminal/braille-canvas.js.map +1 -0
- package/dist/src/terminal/constant/terminal-key-rates.d.ts +6 -0
- package/dist/src/terminal/constant/terminal-key-rates.js +9 -0
- package/dist/src/terminal/constant/terminal-key-rates.js.map +1 -0
- package/dist/src/terminal/constant/view-preset-keys.d.ts +3 -0
- package/dist/src/terminal/constant/view-preset-keys.js +17 -0
- package/dist/src/terminal/constant/view-preset-keys.js.map +1 -0
- package/dist/src/terminal/enum/terminal-focus.d.ts +5 -0
- package/dist/src/terminal/enum/terminal-focus.js +9 -0
- package/dist/src/terminal/enum/terminal-focus.js.map +1 -0
- package/dist/src/terminal/index.d.ts +3 -0
- package/dist/src/terminal/index.js +11 -0
- package/dist/src/terminal/index.js.map +1 -0
- package/dist/src/terminal/render-frame.d.ts +6 -0
- package/dist/src/terminal/render-frame.js +46 -0
- package/dist/src/terminal/render-frame.js.map +1 -0
- package/dist/src/terminal/terminal-viewer.d.ts +38 -0
- package/dist/src/terminal/terminal-viewer.js +290 -0
- package/dist/src/terminal/terminal-viewer.js.map +1 -0
- package/dist/src/terminal/type/rgb-color.d.ts +6 -0
- package/dist/src/terminal/type/rgb-color.js +3 -0
- package/dist/src/terminal/type/rgb-color.js.map +1 -0
- package/dist/src/terminal/utility/blend-color.d.ts +3 -0
- package/dist/src/terminal/utility/blend-color.js +19 -0
- package/dist/src/terminal/utility/blend-color.js.map +1 -0
- package/dist/src/terminal/utility/clip-segment.d.ts +5 -0
- package/dist/src/terminal/utility/clip-segment.js +38 -0
- package/dist/src/terminal/utility/clip-segment.js.map +1 -0
- package/dist/src/terminal/utility/escape-tags.d.ts +2 -0
- package/dist/src/terminal/utility/escape-tags.js +14 -0
- package/dist/src/terminal/utility/escape-tags.js.map +1 -0
- package/dist/src/terminal/utility/format-component-row.d.ts +3 -0
- package/dist/src/terminal/utility/format-component-row.js +32 -0
- package/dist/src/terminal/utility/format-component-row.js.map +1 -0
- package/dist/src/terminal/utility/format-hex-color.d.ts +3 -0
- package/dist/src/terminal/utility/format-hex-color.js +14 -0
- package/dist/src/terminal/utility/format-hex-color.js.map +1 -0
- package/dist/src/terminal/utility/format-status-line.d.ts +3 -0
- package/dist/src/terminal/utility/format-status-line.js +24 -0
- package/dist/src/terminal/utility/format-status-line.js.map +1 -0
- package/dist/src/terminal/utility/parse-color.d.ts +3 -0
- package/dist/src/terminal/utility/parse-color.js +45 -0
- package/dist/src/terminal/utility/parse-color.js.map +1 -0
- package/dist/src/terminal/utility/resolve-terminal-color.d.ts +2 -0
- package/dist/src/terminal/utility/resolve-terminal-color.js +20 -0
- package/dist/src/terminal/utility/resolve-terminal-color.js.map +1 -0
- package/dist/src/type/bounding-box.d.ts +6 -0
- package/dist/src/type/bounding-box.js +3 -0
- package/dist/src/type/bounding-box.js.map +1 -0
- package/dist/src/type/camera-state.d.ts +10 -0
- package/dist/src/type/camera-state.js +3 -0
- package/dist/src/type/camera-state.js.map +1 -0
- package/dist/src/type/display-component.d.ts +18 -0
- package/dist/src/type/display-component.js +3 -0
- package/dist/src/type/display-component.js.map +1 -0
- package/dist/src/type/drag-state.d.ts +6 -0
- package/dist/src/type/drag-state.js +3 -0
- package/dist/src/type/drag-state.js.map +1 -0
- package/dist/src/type/frame-dot.d.ts +6 -0
- package/dist/src/type/frame-dot.js +3 -0
- package/dist/src/type/frame-dot.js.map +1 -0
- package/dist/src/type/frame-label.d.ts +7 -0
- package/dist/src/type/frame-label.js +3 -0
- package/dist/src/type/frame-label.js.map +1 -0
- package/dist/src/type/frame-path.d.ts +8 -0
- package/dist/src/type/frame-path.js +3 -0
- package/dist/src/type/frame-path.js.map +1 -0
- package/dist/src/type/frame.d.ts +9 -0
- package/dist/src/type/frame.js +3 -0
- package/dist/src/type/frame.js.map +1 -0
- package/dist/src/type/inherited-style.d.ts +8 -0
- package/dist/src/type/inherited-style.js +3 -0
- package/dist/src/type/inherited-style.js.map +1 -0
- package/dist/src/type/plane-axes.d.ts +7 -0
- package/dist/src/type/plane-axes.js +3 -0
- package/dist/src/type/plane-axes.js.map +1 -0
- package/dist/src/type/polyline.d.ts +3 -0
- package/dist/src/type/polyline.js +3 -0
- package/dist/src/type/polyline.js.map +1 -0
- package/dist/src/type/primitive/box.d.ts +8 -0
- package/dist/src/type/primitive/box.js +3 -0
- package/dist/src/type/primitive/box.js.map +1 -0
- package/dist/src/type/primitive/cylinder.d.ts +11 -0
- package/dist/src/type/primitive/cylinder.js +3 -0
- package/dist/src/type/primitive/cylinder.js.map +1 -0
- package/dist/src/type/primitive/opening.d.ts +24 -0
- package/dist/src/type/primitive/opening.js +3 -0
- package/dist/src/type/primitive/opening.js.map +1 -0
- package/dist/src/type/primitive/polyline.d.ts +8 -0
- package/dist/src/type/primitive/polyline.js +3 -0
- package/dist/src/type/primitive/polyline.js.map +1 -0
- package/dist/src/type/primitive/sphere.d.ts +8 -0
- package/dist/src/type/primitive/sphere.js +3 -0
- package/dist/src/type/primitive/sphere.js.map +1 -0
- package/dist/src/type/primitive-geometry.d.ts +9 -0
- package/dist/src/type/primitive-geometry.js +3 -0
- package/dist/src/type/primitive-geometry.js.map +1 -0
- package/dist/src/type/primitive.d.ts +7 -0
- package/dist/src/type/primitive.js +3 -0
- package/dist/src/type/primitive.js.map +1 -0
- package/dist/src/type/render-options.d.ts +5 -0
- package/dist/src/type/render-options.js +3 -0
- package/dist/src/type/render-options.js.map +1 -0
- package/dist/src/type/screen-point.d.ts +5 -0
- package/dist/src/type/screen-point.js +3 -0
- package/dist/src/type/screen-point.js.map +1 -0
- package/dist/src/type/sidebar-callbacks.d.ts +9 -0
- package/dist/src/type/sidebar-callbacks.js +3 -0
- package/dist/src/type/sidebar-callbacks.js.map +1 -0
- package/dist/src/type/stroke.d.ts +6 -0
- package/dist/src/type/stroke.js +3 -0
- package/dist/src/type/stroke.js.map +1 -0
- package/dist/src/type/vector3.d.ts +6 -0
- package/dist/src/type/vector3.js +3 -0
- package/dist/src/type/vector3.js.map +1 -0
- package/dist/src/type/view-orientation.d.ts +5 -0
- package/dist/src/type/view-orientation.js +3 -0
- package/dist/src/type/view-orientation.js.map +1 -0
- package/dist/src/type/viewer-state.d.ts +11 -0
- package/dist/src/type/viewer-state.js +3 -0
- package/dist/src/type/viewer-state.js.map +1 -0
- package/dist/src/type/viewport.d.ts +5 -0
- package/dist/src/type/viewport.js +3 -0
- package/dist/src/type/viewport.js.map +1 -0
- package/dist/src/type/visibility-map.d.ts +2 -0
- package/dist/src/type/visibility-map.js +3 -0
- package/dist/src/type/visibility-map.js.map +1 -0
- package/dist/src/type/wireframe-component.d.ts +13 -0
- package/dist/src/type/wireframe-component.js +3 -0
- package/dist/src/type/wireframe-component.js.map +1 -0
- package/dist/src/type/wireframe-scene.d.ts +10 -0
- package/dist/src/type/wireframe-scene.js +3 -0
- package/dist/src/type/wireframe-scene.js.map +1 -0
- package/dist/src/utility/add-vectors.d.ts +3 -0
- package/dist/src/utility/add-vectors.js +11 -0
- package/dist/src/utility/add-vectors.js.map +1 -0
- package/dist/src/utility/build-box-outlines.d.ts +4 -0
- package/dist/src/utility/build-box-outlines.js +32 -0
- package/dist/src/utility/build-box-outlines.js.map +1 -0
- package/dist/src/utility/build-circle-outline.d.ts +5 -0
- package/dist/src/utility/build-circle-outline.js +25 -0
- package/dist/src/utility/build-circle-outline.js.map +1 -0
- package/dist/src/utility/build-cylinder-outlines.d.ts +4 -0
- package/dist/src/utility/build-cylinder-outlines.js +34 -0
- package/dist/src/utility/build-cylinder-outlines.js.map +1 -0
- package/dist/src/utility/build-frame.d.ts +8 -0
- package/dist/src/utility/build-frame.js +75 -0
- package/dist/src/utility/build-frame.js.map +1 -0
- package/dist/src/utility/build-initial-visibility.d.ts +4 -0
- package/dist/src/utility/build-initial-visibility.js +11 -0
- package/dist/src/utility/build-initial-visibility.js.map +1 -0
- package/dist/src/utility/build-opening-outlines.d.ts +4 -0
- package/dist/src/utility/build-opening-outlines.js +31 -0
- package/dist/src/utility/build-opening-outlines.js.map +1 -0
- package/dist/src/utility/build-primitive-geometry.d.ts +4 -0
- package/dist/src/utility/build-primitive-geometry.js +40 -0
- package/dist/src/utility/build-primitive-geometry.js.map +1 -0
- package/dist/src/utility/build-rectangle-outline.d.ts +5 -0
- package/dist/src/utility/build-rectangle-outline.js +23 -0
- package/dist/src/utility/build-rectangle-outline.js.map +1 -0
- package/dist/src/utility/build-sphere-outlines.d.ts +4 -0
- package/dist/src/utility/build-sphere-outlines.js +16 -0
- package/dist/src/utility/build-sphere-outlines.js.map +1 -0
- package/dist/src/utility/clamp.d.ts +2 -0
- package/dist/src/utility/clamp.js +7 -0
- package/dist/src/utility/clamp.js.map +1 -0
- package/dist/src/utility/collect-display-points.d.ts +4 -0
- package/dist/src/utility/collect-display-points.js +13 -0
- package/dist/src/utility/collect-display-points.js.map +1 -0
- package/dist/src/utility/compute-bounding-box.d.ts +4 -0
- package/dist/src/utility/compute-bounding-box.js +29 -0
- package/dist/src/utility/compute-bounding-box.js.map +1 -0
- package/dist/src/utility/compute-centroid.d.ts +3 -0
- package/dist/src/utility/compute-centroid.js +17 -0
- package/dist/src/utility/compute-centroid.js.map +1 -0
- package/dist/src/utility/create-element.d.ts +2 -0
- package/dist/src/utility/create-element.js +11 -0
- package/dist/src/utility/create-element.js.map +1 -0
- package/dist/src/utility/create-viewer-state.d.ts +4 -0
- package/dist/src/utility/create-viewer-state.js +29 -0
- package/dist/src/utility/create-viewer-state.js.map +1 -0
- package/dist/src/utility/fit-camera-to-bounding-box.d.ts +4 -0
- package/dist/src/utility/fit-camera-to-bounding-box.js +23 -0
- package/dist/src/utility/fit-camera-to-bounding-box.js.map +1 -0
- package/dist/src/utility/flatten-components.d.ts +4 -0
- package/dist/src/utility/flatten-components.js +70 -0
- package/dist/src/utility/flatten-components.js.map +1 -0
- package/dist/src/utility/get-bounding-box-center.d.ts +4 -0
- package/dist/src/utility/get-bounding-box-center.js +14 -0
- package/dist/src/utility/get-bounding-box-center.js.map +1 -0
- package/dist/src/utility/get-bounding-box-size.d.ts +4 -0
- package/dist/src/utility/get-bounding-box-size.js +12 -0
- package/dist/src/utility/get-bounding-box-size.js.map +1 -0
- package/dist/src/utility/get-focal-length.d.ts +2 -0
- package/dist/src/utility/get-focal-length.js +9 -0
- package/dist/src/utility/get-focal-length.js.map +1 -0
- package/dist/src/utility/get-perpendicular-axes.d.ts +3 -0
- package/dist/src/utility/get-perpendicular-axes.js +18 -0
- package/dist/src/utility/get-perpendicular-axes.js.map +1 -0
- package/dist/src/utility/get-plane-axes.d.ts +4 -0
- package/dist/src/utility/get-plane-axes.js +19 -0
- package/dist/src/utility/get-plane-axes.js.map +1 -0
- package/dist/src/utility/get-primitive-anchor.d.ts +4 -0
- package/dist/src/utility/get-primitive-anchor.js +20 -0
- package/dist/src/utility/get-primitive-anchor.js.map +1 -0
- package/dist/src/utility/get-vector-component.d.ts +4 -0
- package/dist/src/utility/get-vector-component.js +18 -0
- package/dist/src/utility/get-vector-component.js.map +1 -0
- package/dist/src/utility/get-vector-length.d.ts +3 -0
- package/dist/src/utility/get-vector-length.js +7 -0
- package/dist/src/utility/get-vector-length.js.map +1 -0
- package/dist/src/utility/has-hidden-ancestor.d.ts +4 -0
- package/dist/src/utility/has-hidden-ancestor.js +9 -0
- package/dist/src/utility/has-hidden-ancestor.js.map +1 -0
- package/dist/src/utility/inject-stylesheet.d.ts +2 -0
- package/dist/src/utility/inject-stylesheet.js +21 -0
- package/dist/src/utility/inject-stylesheet.js.map +1 -0
- package/dist/src/utility/is-component-shown.d.ts +4 -0
- package/dist/src/utility/is-component-shown.js +10 -0
- package/dist/src/utility/is-component-shown.js.map +1 -0
- package/dist/src/utility/offset-vector-along-axis.d.ts +4 -0
- package/dist/src/utility/offset-vector-along-axis.js +14 -0
- package/dist/src/utility/offset-vector-along-axis.js.map +1 -0
- package/dist/src/utility/pick-palette-color.d.ts +2 -0
- package/dist/src/utility/pick-palette-color.js +12 -0
- package/dist/src/utility/pick-palette-color.js.map +1 -0
- package/dist/src/utility/project-polyline.d.ts +5 -0
- package/dist/src/utility/project-polyline.js +22 -0
- package/dist/src/utility/project-polyline.js.map +1 -0
- package/dist/src/utility/project-vector.d.ts +6 -0
- package/dist/src/utility/project-vector.js +30 -0
- package/dist/src/utility/project-vector.js.map +1 -0
- package/dist/src/utility/rotate-vector.d.ts +3 -0
- package/dist/src/utility/rotate-vector.js +17 -0
- package/dist/src/utility/rotate-vector.js.map +1 -0
- package/dist/src/utility/scale-vector.d.ts +3 -0
- package/dist/src/utility/scale-vector.js +11 -0
- package/dist/src/utility/scale-vector.js.map +1 -0
- package/dist/src/utility/subtract-vectors.d.ts +3 -0
- package/dist/src/utility/subtract-vectors.js +11 -0
- package/dist/src/utility/subtract-vectors.js.map +1 -0
- package/dist/src/utility/unrotate-vector.d.ts +3 -0
- package/dist/src/utility/unrotate-vector.js +17 -0
- package/dist/src/utility/unrotate-vector.js.map +1 -0
- package/dist/src/utility/validate-scene.d.ts +3 -0
- package/dist/src/utility/validate-scene.js +70 -0
- package/dist/src/utility/validate-scene.js.map +1 -0
- package/dist/src/utility/with-vector-component.d.ts +4 -0
- package/dist/src/utility/with-vector-component.js +18 -0
- package/dist/src/utility/with-vector-component.js.map +1 -0
- package/dist/src/wireframe-viewer.d.ts +27 -0
- package/dist/src/wireframe-viewer.js +128 -0
- package/dist/src/wireframe-viewer.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +64 -5
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const escape_tags_1 = __importDefault(require("./escape-tags.js"));
|
|
7
|
+
const resolve_terminal_color_1 = __importDefault(require("./resolve-terminal-color.js"));
|
|
8
|
+
const INDENT = ' ';
|
|
9
|
+
const SWATCH = '■';
|
|
10
|
+
const DIM_COLOR = '#8b93a3';
|
|
11
|
+
function getCheckbox(visible, disabled) {
|
|
12
|
+
if (disabled) {
|
|
13
|
+
return '[-]';
|
|
14
|
+
}
|
|
15
|
+
if (visible) {
|
|
16
|
+
return '[x]';
|
|
17
|
+
}
|
|
18
|
+
return '[ ]';
|
|
19
|
+
}
|
|
20
|
+
function formatComponentRow(component, visible, disabled) {
|
|
21
|
+
const indent = INDENT.repeat(component.depth);
|
|
22
|
+
const checkbox = getCheckbox(visible, disabled);
|
|
23
|
+
const swatch_color = (0, resolve_terminal_color_1.default)(component.color, 1);
|
|
24
|
+
const label = (0, escape_tags_1.default)(component.label);
|
|
25
|
+
const row = `${indent}${checkbox} {${swatch_color}-fg}${SWATCH}{/} ${label}`;
|
|
26
|
+
if (disabled) {
|
|
27
|
+
return `{${DIM_COLOR}-fg}${indent}${checkbox} ${SWATCH} ${label}{/}`;
|
|
28
|
+
}
|
|
29
|
+
return row;
|
|
30
|
+
}
|
|
31
|
+
exports.default = formatComponentRow;
|
|
32
|
+
//# sourceMappingURL=format-component-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-component-row.js","sourceRoot":"","sources":["../../../../src/terminal/utility/format-component-row.ts"],"names":[],"mappings":";;;;;AAAA,+EAAsD;AAEtD,qGAA2E;AAE3E,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,MAAM,MAAM,GAAG,GAAG,CAAC;AACnB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,SAAS,WAAW,CAAC,OAAgB,EAAE,QAAiB;IACvD,IAAI,QAAQ,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACd,CAAC;IAED,IAAI,OAAO,EAAE,CAAC;QACb,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,SAAS,kBAAkB,CAC1B,SAA2B,EAC3B,OAAgB,EAChB,QAAiB;IAEjB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAChD,MAAM,YAAY,GAAG,IAAA,gCAAoB,EAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC9D,MAAM,KAAK,GAAG,IAAA,qBAAU,EAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,GAAG,GAAG,GAAG,MAAM,GAAG,QAAQ,KAAK,YAAY,OAAO,MAAM,OAAO,KAAK,EAAE,CAAC;IAE7E,IAAI,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,SAAS,OAAO,MAAM,GAAG,QAAQ,IAAI,MAAM,IAAI,KAAK,KAAK,CAAC;IACtE,CAAC;IAED,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function formatChannel(value) {
|
|
4
|
+
const hex = value.toString(16);
|
|
5
|
+
return hex.padStart(2, '0');
|
|
6
|
+
}
|
|
7
|
+
function formatHexColor(color) {
|
|
8
|
+
const red = formatChannel(color.red);
|
|
9
|
+
const green = formatChannel(color.green);
|
|
10
|
+
const blue = formatChannel(color.blue);
|
|
11
|
+
return `#${red}${green}${blue}`;
|
|
12
|
+
}
|
|
13
|
+
exports.default = formatHexColor;
|
|
14
|
+
//# sourceMappingURL=format-hex-color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-hex-color.js","sourceRoot":"","sources":["../../../../src/terminal/utility/format-hex-color.ts"],"names":[],"mappings":";;AAEA,SAAS,aAAa,CAAC,KAAa;IACnC,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE/B,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,cAAc,CAAC,KAAe;IACtC,MAAM,GAAG,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,IAAI,GAAG,GAAG,KAAK,GAAG,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const escape_tags_1 = __importDefault(require("./escape-tags.js"));
|
|
7
|
+
const KEY_HELP = 'arrows orbit · wasd pan · +/- zoom · 1-7 views · p/t/g toggle · tab focus · q quit';
|
|
8
|
+
function formatToggle(name, enabled) {
|
|
9
|
+
if (enabled) {
|
|
10
|
+
return `${name}:on`;
|
|
11
|
+
}
|
|
12
|
+
return `${name}:off`;
|
|
13
|
+
}
|
|
14
|
+
function formatStatusLine(title, perspective, options) {
|
|
15
|
+
const escaped_title = (0, escape_tags_1.default)(title);
|
|
16
|
+
const toggles = [
|
|
17
|
+
formatToggle('perspective', perspective),
|
|
18
|
+
formatToggle('labels', options.show_labels),
|
|
19
|
+
formatToggle('ground', options.show_ground)
|
|
20
|
+
];
|
|
21
|
+
return `{bold}${escaped_title}{/bold} ${toggles.join(' ')} · ${KEY_HELP}`;
|
|
22
|
+
}
|
|
23
|
+
exports.default = formatStatusLine;
|
|
24
|
+
//# sourceMappingURL=format-status-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-status-line.js","sourceRoot":"","sources":["../../../../src/terminal/utility/format-status-line.ts"],"names":[],"mappings":";;;;;AAAA,+EAAsD;AAGtD,MAAM,QAAQ,GACb,oFAAoF,CAAC;AAEtF,SAAS,YAAY,CAAC,IAAY,EAAE,OAAgB;IACnD,IAAI,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,IAAI,KAAK,CAAC;IACrB,CAAC;IAED,OAAO,GAAG,IAAI,MAAM,CAAC;AACtB,CAAC;AAED,SAAS,gBAAgB,CACxB,KAAa,EACb,WAAoB,EACpB,OAAsB;IAEtB,MAAM,aAAa,GAAG,IAAA,qBAAU,EAAC,KAAK,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG;QACf,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC;QACxC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC;QAC3C,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC;KAC3C,CAAC;IAEF,OAAO,SAAS,aAAa,WAAW,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,QAAQ,EAAE,CAAC;AAC3E,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const SHORT_HEX_PATTERN = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i;
|
|
4
|
+
const LONG_HEX_PATTERN = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
|
|
5
|
+
const RGB_PATTERN = /^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*[\d.]+\s*)?\)$/i;
|
|
6
|
+
const MAXIMUM_CHANNEL = 255;
|
|
7
|
+
function parseChannels(channels, radix, repeat) {
|
|
8
|
+
const values = channels.map((channel) => {
|
|
9
|
+
const digits = (() => {
|
|
10
|
+
if (repeat) {
|
|
11
|
+
return channel + channel;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return channel;
|
|
15
|
+
}
|
|
16
|
+
})();
|
|
17
|
+
return parseInt(digits, radix);
|
|
18
|
+
});
|
|
19
|
+
const out_of_range = values.some((value) => {
|
|
20
|
+
return value > MAXIMUM_CHANNEL;
|
|
21
|
+
});
|
|
22
|
+
if (out_of_range) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const [red, green, blue] = values;
|
|
26
|
+
return { red, green, blue };
|
|
27
|
+
}
|
|
28
|
+
function parseColor(color) {
|
|
29
|
+
const trimmed_color = color.trim();
|
|
30
|
+
const short_match = SHORT_HEX_PATTERN.exec(trimmed_color);
|
|
31
|
+
if (short_match !== null) {
|
|
32
|
+
return parseChannels(short_match.slice(1), 16, true);
|
|
33
|
+
}
|
|
34
|
+
const long_match = LONG_HEX_PATTERN.exec(trimmed_color);
|
|
35
|
+
if (long_match !== null) {
|
|
36
|
+
return parseChannels(long_match.slice(1), 16, false);
|
|
37
|
+
}
|
|
38
|
+
const rgb_match = RGB_PATTERN.exec(trimmed_color);
|
|
39
|
+
if (rgb_match !== null) {
|
|
40
|
+
return parseChannels(rgb_match.slice(1), 10, false);
|
|
41
|
+
}
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
exports.default = parseColor;
|
|
45
|
+
//# sourceMappingURL=parse-color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-color.js","sourceRoot":"","sources":["../../../../src/terminal/utility/parse-color.ts"],"names":[],"mappings":";;AAEA,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAC/D,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AACvE,MAAM,WAAW,GAChB,+EAA+E,CAAC;AACjF,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B,SAAS,aAAa,CACrB,QAAkB,EAClB,KAAa,EACb,MAAe;IAEf,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACvC,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE;YACpB,IAAI,MAAM,EAAE,CAAC;gBACZ,OAAO,OAAO,GAAG,OAAO,CAAC;YAC1B,CAAC;iBAAM,CAAC;gBACP,OAAO,OAAO,CAAC;YAChB,CAAC;QACF,CAAC,CAAC,EAAE,CAAC;QAEL,OAAO,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1C,OAAO,KAAK,GAAG,eAAe,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,IAAI,YAAY,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC;IAElC,OAAO,EAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;AAC3B,CAAC;AAED,SAAS,UAAU,CAAC,KAAa;IAChC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACnC,MAAM,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAE1D,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QAC1B,OAAO,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAExD,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACzB,OAAO,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAElD,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACxB,OAAO,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const theme_1 = __importDefault(require("./../../constant/theme.js"));
|
|
7
|
+
const parse_color_1 = __importDefault(require("./parse-color.js"));
|
|
8
|
+
const blend_color_1 = __importDefault(require("./blend-color.js"));
|
|
9
|
+
const format_hex_color_1 = __importDefault(require("./format-hex-color.js"));
|
|
10
|
+
const FALLBACK_COLOR = { red: 215, green: 219, blue: 227 };
|
|
11
|
+
const BACKGROUND_COLOR = { red: 15, green: 17, blue: 21 };
|
|
12
|
+
function resolveTerminalColor(color, alpha) {
|
|
13
|
+
const parsed_color = (0, parse_color_1.default)(color) ?? (0, parse_color_1.default)(theme_1.default.FOREGROUND);
|
|
14
|
+
const base_color = parsed_color ?? FALLBACK_COLOR;
|
|
15
|
+
const background = (0, parse_color_1.default)(theme_1.default.BACKGROUND) ?? BACKGROUND_COLOR;
|
|
16
|
+
const blended_color = (0, blend_color_1.default)(base_color, background, alpha);
|
|
17
|
+
return (0, format_hex_color_1.default)(blended_color);
|
|
18
|
+
}
|
|
19
|
+
exports.default = resolveTerminalColor;
|
|
20
|
+
//# sourceMappingURL=resolve-terminal-color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-terminal-color.js","sourceRoot":"","sources":["../../../../src/terminal/utility/resolve-terminal-color.ts"],"names":[],"mappings":";;;;;AAAA,2DAAmC;AAEnC,+EAAsD;AACtD,+EAAsD;AACtD,yFAA+D;AAE/D,MAAM,cAAc,GAAa,EAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAC,CAAC;AACnE,MAAM,gBAAgB,GAAa,EAAC,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC;AAElE,SAAS,oBAAoB,CAAC,KAAa,EAAE,KAAa;IACzD,MAAM,YAAY,GAAG,IAAA,qBAAU,EAAC,KAAK,CAAC,IAAI,IAAA,qBAAU,EAAC,eAAK,CAAC,UAAU,CAAC,CAAC;IACvE,MAAM,UAAU,GAAG,YAAY,IAAI,cAAc,CAAC;IAClD,MAAM,UAAU,GAAG,IAAA,qBAAU,EAAC,eAAK,CAAC,UAAU,CAAC,IAAI,gBAAgB,CAAC;IACpE,MAAM,aAAa,GAAG,IAAA,qBAAU,EAAC,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IAEhE,OAAO,IAAA,0BAAc,EAAC,aAAa,CAAC,CAAC;AACtC,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounding-box.js","sourceRoot":"","sources":["../../../src/type/bounding-box.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vector3 from './vector3';
|
|
2
|
+
type CameraState = {
|
|
3
|
+
readonly yaw: number;
|
|
4
|
+
readonly elevation: number;
|
|
5
|
+
readonly distance: number;
|
|
6
|
+
readonly field_of_view: number;
|
|
7
|
+
readonly target: Vector3;
|
|
8
|
+
readonly perspective: boolean;
|
|
9
|
+
};
|
|
10
|
+
export default CameraState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera-state.js","sourceRoot":"","sources":["../../../src/type/camera-state.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Stroke from './stroke';
|
|
2
|
+
import Vector3 from './vector3';
|
|
3
|
+
import Polyline from './polyline';
|
|
4
|
+
type DisplayComponent = {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
readonly note: string;
|
|
8
|
+
readonly color: string;
|
|
9
|
+
readonly alpha: number;
|
|
10
|
+
readonly line_width: number;
|
|
11
|
+
readonly depth: number;
|
|
12
|
+
readonly initially_visible: boolean;
|
|
13
|
+
readonly ancestor_ids: string[];
|
|
14
|
+
readonly outlines: Polyline[];
|
|
15
|
+
readonly strokes: Stroke[];
|
|
16
|
+
readonly centroid: Vector3;
|
|
17
|
+
};
|
|
18
|
+
export default DisplayComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-component.js","sourceRoot":"","sources":["../../../src/type/display-component.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-state.js","sourceRoot":"","sources":["../../../src/type/drag-state.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-dot.js","sourceRoot":"","sources":["../../../src/type/frame-dot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-label.js","sourceRoot":"","sources":["../../../src/type/frame-label.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-path.js","sourceRoot":"","sources":["../../../src/type/frame-path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.js","sourceRoot":"","sources":["../../../src/type/frame.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inherited-style.js","sourceRoot":"","sources":["../../../src/type/inherited-style.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plane-axes.js","sourceRoot":"","sources":["../../../src/type/plane-axes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyline.js","sourceRoot":"","sources":["../../../src/type/polyline.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.js","sourceRoot":"","sources":["../../../../src/type/primitive/box.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Axis from './../../enum/axis';
|
|
2
|
+
import Vector3 from './../vector3';
|
|
3
|
+
import PrimitiveType from './../../enum/primitive-type';
|
|
4
|
+
type CylinderPrimitive = {
|
|
5
|
+
readonly type: PrimitiveType.CYLINDER;
|
|
6
|
+
readonly axis: Axis;
|
|
7
|
+
readonly center: Vector3;
|
|
8
|
+
readonly radius: number;
|
|
9
|
+
readonly length: number;
|
|
10
|
+
};
|
|
11
|
+
export default CylinderPrimitive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cylinder.js","sourceRoot":"","sources":["../../../../src/type/primitive/cylinder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Plane from './../../enum/plane';
|
|
2
|
+
import Vector3 from './../vector3';
|
|
3
|
+
import OpeningShape from './../../enum/opening-shape';
|
|
4
|
+
import PrimitiveType from './../../enum/primitive-type';
|
|
5
|
+
type RectangularOpeningPrimitive = {
|
|
6
|
+
readonly type: PrimitiveType.OPENING;
|
|
7
|
+
readonly shape: OpeningShape.RECTANGLE;
|
|
8
|
+
readonly plane: Plane;
|
|
9
|
+
readonly center: Vector3;
|
|
10
|
+
readonly depth: number;
|
|
11
|
+
readonly width: number;
|
|
12
|
+
readonly height: number;
|
|
13
|
+
};
|
|
14
|
+
type CircularOpeningPrimitive = {
|
|
15
|
+
readonly type: PrimitiveType.OPENING;
|
|
16
|
+
readonly shape: OpeningShape.CIRCLE;
|
|
17
|
+
readonly plane: Plane;
|
|
18
|
+
readonly center: Vector3;
|
|
19
|
+
readonly depth: number;
|
|
20
|
+
readonly radius: number;
|
|
21
|
+
};
|
|
22
|
+
type OpeningPrimitive = RectangularOpeningPrimitive | CircularOpeningPrimitive;
|
|
23
|
+
export { RectangularOpeningPrimitive, CircularOpeningPrimitive };
|
|
24
|
+
export default OpeningPrimitive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opening.js","sourceRoot":"","sources":["../../../../src/type/primitive/opening.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyline.js","sourceRoot":"","sources":["../../../../src/type/primitive/polyline.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sphere.js","sourceRoot":"","sources":["../../../../src/type/primitive/sphere.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-geometry.js","sourceRoot":"","sources":["../../../src/type/primitive-geometry.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import BoxPrimitive from './primitive/box';
|
|
2
|
+
import SpherePrimitive from './primitive/sphere';
|
|
3
|
+
import OpeningPrimitive from './primitive/opening';
|
|
4
|
+
import CylinderPrimitive from './primitive/cylinder';
|
|
5
|
+
import PolylinePrimitive from './primitive/polyline';
|
|
6
|
+
type Primitive = BoxPrimitive | CylinderPrimitive | SpherePrimitive | PolylinePrimitive | OpeningPrimitive;
|
|
7
|
+
export default Primitive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.js","sourceRoot":"","sources":["../../../src/type/primitive.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-options.js","sourceRoot":"","sources":["../../../src/type/render-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen-point.js","sourceRoot":"","sources":["../../../src/type/screen-point.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ViewPreset from './../enum/view-preset';
|
|
2
|
+
type SidebarCallbacks = {
|
|
3
|
+
readonly onViewSelected: (preset: ViewPreset) => void;
|
|
4
|
+
readonly onPerspectiveChanged: (perspective: boolean) => void;
|
|
5
|
+
readonly onLabelsChanged: (show_labels: boolean) => void;
|
|
6
|
+
readonly onGroundChanged: (show_ground: boolean) => void;
|
|
7
|
+
readonly onVisibilityChanged: () => void;
|
|
8
|
+
};
|
|
9
|
+
export default SidebarCallbacks;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-callbacks.js","sourceRoot":"","sources":["../../../src/type/sidebar-callbacks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stroke.js","sourceRoot":"","sources":["../../../src/type/stroke.ts"],"names":[],"mappings":""}
|