Skip to content

Commit

Permalink
Merge branch 'main' of github.com:syncpoint/ODINv2
Browse files Browse the repository at this point in the history
  • Loading branch information
dehmer committed Jun 19, 2024
2 parents b9f34ab + 5f7f4b7 commit 0408536
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/components/print/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const print = ({ map, services, options = {} }) => {
const targetElement = document.getElementById('map-container')
const display = targetElement.parentElement.getBoundingClientRect()

const centerOfMap = map.getView().getCenter()

const paper = paperSizes[printSettings.paperSize][printSettings.orientation]
const virtualPaper = {
width: Math.round(paper.width * DEFAULT_QUALITY / INCH_TO_MM),
Expand All @@ -62,6 +64,7 @@ const print = ({ map, services, options = {} }) => {
map.updateSize()
const viewResolution = printSettings.scale / getPointResolution(map.getView().getProjection(), DEFAULT_QUALITY / INCH_TO_MM, map.getView().getCenter())
map.getView().setResolution(viewResolution)
map.getView().setCenter(centerOfMap)
}

const removePrintStyling = targetElement => {
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/ActivityProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import AdditionalInformation from './AdditionalInformation'
import EvaluationRating from './EvaluationRating'
import Status from './Status'
import GridCols2 from './GridCols2'
import Coordinates from './Coordinates'
import KProperty from './KProperty'

const ActivityProperties = props =>
Expand All @@ -21,6 +22,7 @@ const ActivityProperties = props =>
</ColSpan2>
<HostilityStatus {...props}/>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<Speed {...props}/>
<Direction {...props}/>
<StaffComments {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/EquipmentProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import EvaluationRating from './EvaluationRating'
import Status from './Status'
import Condition from './Condition'
import GridCols2 from './GridCols2'
import Coordinates from './Coordinates'
import KProperty from './KProperty'

const EquipmentProperties = props =>
Expand All @@ -21,6 +22,7 @@ const EquipmentProperties = props =>
<TypeMobility {...props}/>
<HostilityStatus {...props}/>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<Speed {...props}/>
<Direction {...props}/>
<StaffComments {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/InstallationProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import DateTimeGroup from './DateTimeGroup'
import StaffComments from './StaffComments'
import AdditionalInformation from './AdditionalInformation'
import EvaluationRating from './EvaluationRating'
import Coordinates from './Coordinates'
import Status from './Status'
import GridCols2 from './GridCols2'
import KProperty from './KProperty'
Expand All @@ -18,6 +19,7 @@ const InstallationProperties = props =>
<SpecialC2HQ {...props}/>
<HostilityStatus {...props}/>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<StaffComments {...props}/>
<AdditionalInformation {...props}/>
<EvaluationRating {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/PointProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import EffectiveDateTime from './EffectiveDateTime'
import Altitude from './Altitude'
import StaffComments from './StaffComments'
import AdditionalInformation from './AdditionalInformation'
import Coordinates from './Coordinates'
import Status from './Status'
import GridCols2 from './GridCols2'
import KProperty from './KProperty'
Expand All @@ -18,6 +19,7 @@ const PointProperties = props =>
<UniqueDesignation {...props}/>
</ColSpan2>
<HostilityStatus {...props}/>
<Coordinates {...props}/>
<EffectiveDateTime {...props}/>
<Altitude {...props}/>
<StaffComments {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/SKKMCommandProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import SpecialC2HQEchelon from './SpecialC2HQEchelon'
import DateTimeGroup from './DateTimeGroup'
import Speed from './Speed'
import Direction from './Direction'
import Coordinates from './Coordinates'
import AdditionalInformation from './AdditionalInformation'
import GridCols2 from './GridCols2'

Expand All @@ -15,6 +16,7 @@ const SKKMUnitProperties = props => {
<UniqueDesignationHigherFormation {...props}/>
<SpecialC2HQEchelon {...props}/>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<Speed {...props}/>
<Direction {...props}/>
<AdditionalInformation {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/SKKMStandardProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import DateTimeGroup from './DateTimeGroup'
import Speed from './Speed'
import Direction from './Direction'
import AdditionalInformation from './AdditionalInformation'
import Coordinates from './Coordinates'
import GridCols2 from './GridCols2'
import ColSpan2 from './ColSpan2'

Expand All @@ -15,6 +16,7 @@ const SKKMStandardProperties = props => {
<Name {...props}/>
<ColSpan2><UniqueDesignation {...props}/></ColSpan2>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<Speed {...props}/>
<Direction {...props}/>
<AdditionalInformation {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/SKKMUnitProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import DateTimeGroup from './DateTimeGroup'
import Speed from './Speed'
import Direction from './Direction'
import AdditionalInformation from './AdditionalInformation'
import Coordinates from './Coordinates'
import UnitModifiers from './UnitModifiers'
import GridCols2 from './GridCols2'

Expand All @@ -16,6 +17,7 @@ const SKKMUnitProperties = props => {
<UniqueDesignationHigherFormation {...props}/>
<SpecialC2HQEchelon {...props}/>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<Speed {...props}/>
<Direction {...props}/>
<AdditionalInformation {...props}/>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/properties/UnitProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Condition from './Condition'
import Reinforcement from './Reinforcement'
import UnitModifiers from './UnitModifiers'
import GridCols2 from './GridCols2'
import Coordinates from './Coordinates'
import KProperty from './KProperty'

const UnitProperties = props => {
Expand All @@ -24,6 +25,7 @@ const UnitProperties = props => {
<SpecialC2HQEchelon {...props}/>
<HostilityStatus {...props}/>
<DateTimeGroup {...props}/>
<Coordinates {...props}/>
<Speed {...props}/>
<Direction {...props}/>
<StaffComments {...props}/>
Expand Down

0 comments on commit 0408536

Please sign in to comment.