|
@@ -2,7 +2,7 @@
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
-import { ToIPCKey } from './core'
|
|
|
+import { SERIALIZE_TO_IPC_FN } from './core'
|
|
|
|
|
|
/**
|
|
|
* A size represented in logical pixels.
|
|
@@ -70,7 +70,7 @@ class LogicalSize {
|
|
|
*
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
- [ToIPCKey]() {
|
|
|
+ [SERIALIZE_TO_IPC_FN]() {
|
|
|
return {
|
|
|
Logical: {
|
|
|
width: this.width,
|
|
@@ -94,7 +94,7 @@ class LogicalSize {
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
toJSON() {
|
|
|
- return this[ToIPCKey]()
|
|
|
+ return this[SERIALIZE_TO_IPC_FN]()
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -160,7 +160,7 @@ class PhysicalSize {
|
|
|
*
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
- [ToIPCKey]() {
|
|
|
+ [SERIALIZE_TO_IPC_FN]() {
|
|
|
return {
|
|
|
Physical: {
|
|
|
width: this.width,
|
|
@@ -184,7 +184,7 @@ class PhysicalSize {
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
toJSON() {
|
|
|
- return this[ToIPCKey]()
|
|
|
+ return this[SERIALIZE_TO_IPC_FN]()
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -254,7 +254,7 @@ class LogicalPosition {
|
|
|
*
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
- [ToIPCKey]() {
|
|
|
+ [SERIALIZE_TO_IPC_FN]() {
|
|
|
return {
|
|
|
Logical: {
|
|
|
x: this.x,
|
|
@@ -278,7 +278,7 @@ class LogicalPosition {
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
toJSON() {
|
|
|
- return this[ToIPCKey]()
|
|
|
+ return this[SERIALIZE_TO_IPC_FN]()
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -329,7 +329,7 @@ class PhysicalPosition {
|
|
|
*
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
- [ToIPCKey]() {
|
|
|
+ [SERIALIZE_TO_IPC_FN]() {
|
|
|
return {
|
|
|
Physical: {
|
|
|
x: this.x,
|
|
@@ -353,7 +353,7 @@ class PhysicalPosition {
|
|
|
* @since 2.0.0
|
|
|
*/
|
|
|
toJSON() {
|
|
|
- return this[ToIPCKey]()
|
|
|
+ return this[SERIALIZE_TO_IPC_FN]()
|
|
|
}
|
|
|
}
|
|
|
|