19
20<script>
21import { Registry, BareViewManager, ViewManager } from "../app/index";
22import { Examples } from "@/app/index"; 23import ResolutionToolbar from "@/components/ResolutionToolbar";
24import ZoomSlider from "@/components/ZoomSlider";
25import ComponentContextMenu from "@/components/ComponentContextMenu";
18</template>
19
20<script>
21import { Registry, BareViewManager, ViewManager } from "../app/index"; 22import { Examples } from "@/app/index";
23import ResolutionToolbar from "@/components/ResolutionToolbar";
24import ZoomSlider from "@/components/ZoomSlider";
44import ExportUtils, { SerializationError } from "@/app/utils/exportUtils";
45import { LogicalLayerType, InterchangeV1_2, ValveType } from "@/app/core/init";
46
47import { Point } from "@/app/core/init"; 48
49/**
50 * View manager class
42
43import LoadUtils from "@/app/utils/loadUtils";
44import ExportUtils, { SerializationError } from "@/app/utils/exportUtils";
45import { LogicalLayerType, InterchangeV1_2, ValveType } from "@/app/core/init"; 46
47import { Point } from "@/app/core/init";
48
1import paper from "paper";
2import {SymbolDefinition} from "paper"; 3import AdaptiveGrid from "../grid/adaptiveGrid";
4
5export default class GridRenderer {
It is always recommended to group all imports of a single path or source in a single import declaration. These usually happen in a codebase when multiple developers are working on the same codebase. It helps improving code refactoring and code readability as well.
// <!-- index.js -->
import calc from './calc.js'
import { add } from './calc.js'
console.log(add(1, 2))
// <!-- index.js -->
import calc, { add } from './calc.js'
console.log(add(1, 2))