@triniwiz/nativescript-masonkit 1.0.0-beta.107 → 1.0.0-beta.108
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/common.d.ts +5 -2
- package/common.js +49 -18
- package/common.js.map +1 -1
- package/img/index.ios.js +1 -1
- package/img/index.ios.js.map +1 -1
- package/input/index.ios.js +1 -1
- package/input/index.ios.js.map +1 -1
- package/li/index.ios.js +1 -1
- package/li/index.ios.js.map +1 -1
- package/list/index.ios.js +2 -2
- package/list/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +8 -8
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +2 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +12945 -4036
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4133 -4130
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +4 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +12945 -4036
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +12945 -4036
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +26 -26
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4128 -4124
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3957 -3954
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Headers/Mason-Swift.h +2 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.abi.json +12945 -4036
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.private.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +3636 -3635
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +2 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.abi.json +12945 -4036
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftinterface +1 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +14 -14
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +3637 -3636
- package/properties.js +86 -0
- package/properties.js.map +1 -1
- package/scroll/index.android.js +3 -1
- package/scroll/index.android.js.map +1 -1
- package/scroll/index.ios.js +4 -2
- package/scroll/index.ios.js.map +1 -1
- package/style.d.ts +29 -6
- package/style.js +251 -193
- package/style.js.map +1 -1
- package/text/index.ios.js +1 -1
- package/text/index.ios.js.map +1 -1
- package/textarea/index.ios.js +1 -1
- package/textarea/index.ios.js.map +1 -1
package/style.js
CHANGED
|
@@ -493,28 +493,43 @@ function parseLengthPercentage(type, value) {
|
|
|
493
493
|
return { value, unit: '%' };
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
+
// The 128-bit dirty mask as four signed 32-bit words, low to high (the
|
|
497
|
+
// syncStyleParts argument order). Plain numbers: BigInt ops allocate.
|
|
496
498
|
class StateKeys {
|
|
497
|
-
constructor(
|
|
498
|
-
this.
|
|
499
|
+
constructor(w0, w1, w2, w3) {
|
|
500
|
+
this.w0 = w0;
|
|
501
|
+
this.w1 = w1;
|
|
502
|
+
this.w2 = w2;
|
|
503
|
+
this.w3 = w3;
|
|
499
504
|
}
|
|
500
505
|
static flag(n) {
|
|
501
|
-
|
|
506
|
+
const bit = (1 << (n & 31)) | 0;
|
|
507
|
+
switch (n >> 5) {
|
|
508
|
+
case 0:
|
|
509
|
+
return new StateKeys(bit, 0, 0, 0);
|
|
510
|
+
case 1:
|
|
511
|
+
return new StateKeys(0, bit, 0, 0);
|
|
512
|
+
case 2:
|
|
513
|
+
return new StateKeys(0, 0, bit, 0);
|
|
514
|
+
default:
|
|
515
|
+
return new StateKeys(0, 0, 0, bit);
|
|
516
|
+
}
|
|
502
517
|
}
|
|
503
|
-
|
|
504
|
-
get
|
|
505
|
-
return this.
|
|
518
|
+
/** The mask as one unsigned 128-bit value (tests and diagnostics). */
|
|
519
|
+
get bits() {
|
|
520
|
+
return wordsToBigInt(this.w0, this.w1, this.w2, this.w3);
|
|
506
521
|
}
|
|
507
522
|
or(other) {
|
|
508
|
-
return new StateKeys(this.
|
|
523
|
+
return new StateKeys(this.w0 | other.w0, this.w1 | other.w1, this.w2 | other.w2, this.w3 | other.w3);
|
|
509
524
|
}
|
|
510
525
|
and(other) {
|
|
511
|
-
return new StateKeys(this.
|
|
526
|
+
return new StateKeys(this.w0 & other.w0, this.w1 & other.w1, this.w2 & other.w2, this.w3 & other.w3);
|
|
512
527
|
}
|
|
513
528
|
hasFlag(flag) {
|
|
514
|
-
return (this.
|
|
529
|
+
return (this.w0 & flag.w0) !== 0 || (this.w1 & flag.w1) !== 0 || (this.w2 & flag.w2) !== 0 || (this.w3 & flag.w3) !== 0;
|
|
515
530
|
}
|
|
516
531
|
}
|
|
517
|
-
StateKeys.NONE = new StateKeys(
|
|
532
|
+
StateKeys.NONE = new StateKeys(0, 0, 0, 0);
|
|
518
533
|
StateKeys.DISPLAY = StateKeys.flag(0);
|
|
519
534
|
StateKeys.POSITION = StateKeys.flag(1);
|
|
520
535
|
StateKeys.DIRECTION = StateKeys.flag(2);
|
|
@@ -594,6 +609,10 @@ StateKeys.HYPHENS = StateKeys.flag(75);
|
|
|
594
609
|
StateKeys.CARET_COLOR = StateKeys.flag(76);
|
|
595
610
|
StateKeys.WORD_SPACING = StateKeys.flag(77);
|
|
596
611
|
StateKeys.FONT_STRETCH = StateKeys.flag(78);
|
|
612
|
+
StateKeys.DISPLAY_AND_MODE = StateKeys.DISPLAY.or(StateKeys.DISPLAY_MODE);
|
|
613
|
+
function wordsToBigInt(w0, w1, w2, w3) {
|
|
614
|
+
return BigInt(w0 >>> 0) | (BigInt(w1 >>> 0) << 32n) | (BigInt(w2 >>> 0) << 64n) | (BigInt(w3 >>> 0) << 96n);
|
|
615
|
+
}
|
|
597
616
|
const getInt8 = (view, offset) => {
|
|
598
617
|
return view.getInt8(offset);
|
|
599
618
|
};
|
|
@@ -606,19 +625,6 @@ const getUint8 = (view, offset) => {
|
|
|
606
625
|
const setUint8 = (view, offset, value) => {
|
|
607
626
|
view.setUint8(offset, value);
|
|
608
627
|
};
|
|
609
|
-
// Splits the 128-bit dirty mask into four signed 32-bit words (plain {N} int
|
|
610
|
-
// marshalling) for Element.syncStyleParts on Android and mason_syncStyleParts on iOS.
|
|
611
|
-
const splitBigIntToInt32Parts = (value) => {
|
|
612
|
-
const MASK64 = (1n << 64n) - 1n;
|
|
613
|
-
const MASK32 = 0xffffffffn;
|
|
614
|
-
const LOW = value & MASK64;
|
|
615
|
-
const HIGH = (value >> 64n) & MASK64;
|
|
616
|
-
const lowLow32 = Number(BigInt.asIntN(32, LOW & MASK32));
|
|
617
|
-
const lowHigh32 = Number(BigInt.asIntN(32, (LOW >> 32n) & MASK32));
|
|
618
|
-
const highLow32 = Number(BigInt.asIntN(32, HIGH & MASK32));
|
|
619
|
-
const highHigh32 = Number(BigInt.asIntN(32, (HIGH >> 32n) & MASK32));
|
|
620
|
-
return [lowLow32, lowHigh32, highLow32, highHigh32];
|
|
621
|
-
};
|
|
622
628
|
const getInt16 = (view, offset) => {
|
|
623
629
|
return view.getInt16(offset, true);
|
|
624
630
|
};
|
|
@@ -1149,6 +1155,14 @@ function androidWritableStyleBuffer(nativeView) {
|
|
|
1149
1155
|
}
|
|
1150
1156
|
return typeof style.getWritableValue === 'function' ? style.getWritableValue() : style.getValues();
|
|
1151
1157
|
}
|
|
1158
|
+
let appleWritableStyleValues;
|
|
1159
|
+
// Newer frameworks return the node's own (copied-on-write) buffer in one call.
|
|
1160
|
+
function appleHasWritableStyleValues(nativeView) {
|
|
1161
|
+
if (appleWritableStyleValues === undefined && nativeView) {
|
|
1162
|
+
appleWritableStyleValues = typeof nativeView.mason_writableStyleValues === 'function';
|
|
1163
|
+
}
|
|
1164
|
+
return !!appleWritableStyleValues;
|
|
1165
|
+
}
|
|
1152
1166
|
function windowsStyleValues(nativeView) {
|
|
1153
1167
|
if (nativeView?.Node)
|
|
1154
1168
|
return masonEngine().StyleValues(nativeView);
|
|
@@ -1170,7 +1184,13 @@ function cssInitialIfReset(value, initial) {
|
|
|
1170
1184
|
}
|
|
1171
1185
|
export class Style {
|
|
1172
1186
|
constructor() {
|
|
1173
|
-
this.
|
|
1187
|
+
this._bufferRequested = false;
|
|
1188
|
+
// Dirty mask words (StateKeys layout); `_hasDirty` false means clean.
|
|
1189
|
+
this._d0 = 0;
|
|
1190
|
+
this._d1 = 0;
|
|
1191
|
+
this._d2 = 0;
|
|
1192
|
+
this._d3 = 0;
|
|
1193
|
+
this._hasDirty = false;
|
|
1174
1194
|
this.inBatch = false;
|
|
1175
1195
|
this._syncScheduled = false;
|
|
1176
1196
|
// Buffer bytes before this turn's first write. Frameworks often undo and
|
|
@@ -1181,39 +1201,86 @@ export class Style {
|
|
|
1181
1201
|
this._synced = false;
|
|
1182
1202
|
}
|
|
1183
1203
|
static fromView(view, nativeView) {
|
|
1184
|
-
//console.time('fromView');
|
|
1185
1204
|
const ret = new Style();
|
|
1186
1205
|
ret.view_ = view;
|
|
1187
1206
|
ret.nativeView = nativeView;
|
|
1207
|
+
return ret;
|
|
1208
|
+
}
|
|
1209
|
+
get style_view() {
|
|
1210
|
+
if (!this._bufferRequested)
|
|
1211
|
+
this.loadBuffer(false);
|
|
1212
|
+
return this._sv;
|
|
1213
|
+
}
|
|
1214
|
+
set style_view(value) {
|
|
1215
|
+
this._bufferRequested = true;
|
|
1216
|
+
this._sv = value;
|
|
1217
|
+
}
|
|
1218
|
+
get i8View() {
|
|
1219
|
+
if (!this._bufferRequested)
|
|
1220
|
+
this.loadBuffer(false);
|
|
1221
|
+
if (this._i8 === undefined && this._sv)
|
|
1222
|
+
this._i8 = new Int8Array(this._sv.buffer, this._sv.byteOffset, this._sv.byteLength);
|
|
1223
|
+
return this._i8;
|
|
1224
|
+
}
|
|
1225
|
+
set i8View(value) {
|
|
1226
|
+
this._i8 = value;
|
|
1227
|
+
}
|
|
1228
|
+
get u8View() {
|
|
1229
|
+
if (!this._bufferRequested)
|
|
1230
|
+
this.loadBuffer(false);
|
|
1231
|
+
if (this._u8 === undefined && this._sv)
|
|
1232
|
+
this._u8 = new Uint8Array(this._sv.buffer, this._sv.byteOffset, this._sv.byteLength);
|
|
1233
|
+
return this._u8;
|
|
1234
|
+
}
|
|
1235
|
+
set u8View(value) {
|
|
1236
|
+
this._u8 = value;
|
|
1237
|
+
}
|
|
1238
|
+
/** The native MasonStyle, fetched once (each `nativeView.style` read is a bridge call). */
|
|
1239
|
+
get appleStyle() {
|
|
1240
|
+
if (this._appleStyle === undefined) {
|
|
1241
|
+
this._appleStyle = (this.nativeView?.style ?? NSCMason.shared.styleForViewOrNode(this.nativeView));
|
|
1242
|
+
}
|
|
1243
|
+
return this._appleStyle;
|
|
1244
|
+
}
|
|
1245
|
+
// The byte views are rarely read, so they are made on demand.
|
|
1246
|
+
setBuffer(buffer) {
|
|
1247
|
+
this._bufferRequested = true;
|
|
1248
|
+
this._sv = new DataView(buffer);
|
|
1249
|
+
this._i8 = undefined;
|
|
1250
|
+
this._u8 = undefined;
|
|
1251
|
+
}
|
|
1252
|
+
// A new node shares the arena's default buffer, so a style whose first use
|
|
1253
|
+
// is a write asks for its own copy up front instead of fetching twice.
|
|
1254
|
+
loadBuffer(writable) {
|
|
1255
|
+
this._bufferRequested = true;
|
|
1188
1256
|
if (__ANDROID__) {
|
|
1189
|
-
|
|
1190
|
-
ret.style_view = new DataView(buffer);
|
|
1191
|
-
ret.i8View = new Int8Array(buffer);
|
|
1192
|
-
ret.u8View = new Uint8Array(buffer);
|
|
1257
|
+
this.setBuffer(ArrayBuffer.from(androidWritableStyleBuffer(this.nativeView)));
|
|
1193
1258
|
}
|
|
1194
1259
|
else if (__APPLE__) {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1260
|
+
const nativeView = this.nativeView;
|
|
1261
|
+
let data = null;
|
|
1262
|
+
if (writable && appleHasWritableStyleValues(nativeView)) {
|
|
1263
|
+
data = nativeView.mason_writableStyleValues();
|
|
1198
1264
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1265
|
+
if (!data) {
|
|
1266
|
+
const style = this.appleStyle;
|
|
1267
|
+
if (writable)
|
|
1268
|
+
style.prepareMut();
|
|
1269
|
+
data = style.values;
|
|
1270
|
+
}
|
|
1271
|
+
this.setBuffer(interop.bufferFromData(data));
|
|
1204
1272
|
}
|
|
1205
1273
|
else if (__WINDOWS__) {
|
|
1206
1274
|
// Live IBuffer over the engine's arena style memory; the @nativescript/windows runtime
|
|
1207
1275
|
// projects it as a writable ArrayBuffer, so the same StyleKeys-offset writes used on
|
|
1208
1276
|
// iOS/Android land straight in the node's style.
|
|
1209
1277
|
//@ts-ignore
|
|
1210
|
-
|
|
1211
|
-
ret.style_view = new DataView(buffer);
|
|
1212
|
-
ret.i8View = new Int8Array(buffer);
|
|
1213
|
-
ret.u8View = new Uint8Array(buffer);
|
|
1278
|
+
this.setBuffer(NSWinRT.interop.arrayBufferFromBuffer(windowsStyleValues(this.nativeView)));
|
|
1214
1279
|
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1280
|
+
}
|
|
1281
|
+
/** The dirty mask as one value, `-1n` when clean (tests and diagnostics). */
|
|
1282
|
+
get isDirty() {
|
|
1283
|
+
return this._hasDirty ? wordsToBigInt(this._d0, this._d1, this._d2, this._d3) : -1n;
|
|
1217
1284
|
}
|
|
1218
1285
|
static fromPseudo(pseudo, view, nativeView) {
|
|
1219
1286
|
var mask = -1;
|
|
@@ -1287,13 +1354,11 @@ export class Style {
|
|
|
1287
1354
|
const HIGH_OFFSET = StyleKeys.PSEUDO_SET_MASK_HIGH;
|
|
1288
1355
|
if (this.style_view.byteLength < HIGH_OFFSET + 8)
|
|
1289
1356
|
return;
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
this.style_view.setBigUint64(LOW_OFFSET, low | keyLow, true);
|
|
1296
|
-
this.style_view.setBigUint64(HIGH_OFFSET, high | keyHigh, true);
|
|
1357
|
+
const v = this.style_view;
|
|
1358
|
+
setInt32(v, LOW_OFFSET, getInt32(v, LOW_OFFSET) | key.w0);
|
|
1359
|
+
setInt32(v, LOW_OFFSET + 4, getInt32(v, LOW_OFFSET + 4) | key.w1);
|
|
1360
|
+
setInt32(v, HIGH_OFFSET, getInt32(v, HIGH_OFFSET) | key.w2);
|
|
1361
|
+
setInt32(v, HIGH_OFFSET + 4, getInt32(v, HIGH_OFFSET + 4) | key.w3);
|
|
1297
1362
|
}
|
|
1298
1363
|
commitState(value) {
|
|
1299
1364
|
if (this._pseudo) {
|
|
@@ -1504,13 +1569,14 @@ export class Style {
|
|
|
1504
1569
|
this.commitState(StateKeys.BORDER_COLOR);
|
|
1505
1570
|
}
|
|
1506
1571
|
resetState() {
|
|
1507
|
-
this.
|
|
1572
|
+
this._hasDirty = false;
|
|
1573
|
+
this._d0 = this._d1 = this._d2 = this._d3 = 0;
|
|
1508
1574
|
}
|
|
1509
1575
|
syncStyle() {
|
|
1510
1576
|
this._synced = true;
|
|
1511
1577
|
const snapshot = this._turnSnapshot;
|
|
1512
1578
|
this._turnSnapshot = undefined;
|
|
1513
|
-
if (snapshot && this.
|
|
1579
|
+
if (snapshot && this._hasDirty && bytesEqual(snapshot, this.u8View)) {
|
|
1514
1580
|
this.resetState();
|
|
1515
1581
|
return;
|
|
1516
1582
|
}
|
|
@@ -1519,18 +1585,16 @@ export class Style {
|
|
|
1519
1585
|
}
|
|
1520
1586
|
_sendSync() {
|
|
1521
1587
|
if (__ANDROID__) {
|
|
1522
|
-
const [lowLow, lowHigh, highLow, highHigh] = splitBigIntToInt32Parts(this.isDirty);
|
|
1523
1588
|
//@ts-ignore
|
|
1524
1589
|
const view = this.view?.android ?? this.view._view;
|
|
1525
1590
|
// @ts-ignore - syncStyleParts is a newer native method; typings regenerate from the AAR separately.
|
|
1526
|
-
view.syncStyleParts(
|
|
1591
|
+
view.syncStyleParts(this._d0, this._d1, this._d2, this._d3);
|
|
1527
1592
|
}
|
|
1528
1593
|
else if (__APPLE__) {
|
|
1529
|
-
const [lowLow, lowHigh, highLow, highHigh] = splitBigIntToInt32Parts(this.isDirty);
|
|
1530
1594
|
//@ts-ignore
|
|
1531
1595
|
const view = this.view?.ios ?? this.view._view;
|
|
1532
1596
|
// @ts-ignore
|
|
1533
|
-
view.mason_syncStyleParts(
|
|
1597
|
+
view.mason_syncStyleParts(this._d0, this._d1, this._d2, this._d3);
|
|
1534
1598
|
}
|
|
1535
1599
|
else if (__WINDOWS__) {
|
|
1536
1600
|
// The Windows elements re-read the whole buffer, so the dirty bits aren't passed.
|
|
@@ -1554,12 +1618,11 @@ export class Style {
|
|
|
1554
1618
|
if (this._turnSnapshot === undefined) {
|
|
1555
1619
|
this._turnSnapshot = false;
|
|
1556
1620
|
}
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1621
|
+
this._d0 |= value.w0;
|
|
1622
|
+
this._d1 |= value.w1;
|
|
1623
|
+
this._d2 |= value.w2;
|
|
1624
|
+
this._d3 |= value.w3;
|
|
1625
|
+
this._hasDirty = true;
|
|
1563
1626
|
if (!this.inBatch) {
|
|
1564
1627
|
// Coalesce rapid-fire property changes (e.g. CSS batch apply) into a
|
|
1565
1628
|
// single syncStyle() call on the next microtask. This avoids N
|
|
@@ -1573,7 +1636,7 @@ export class Style {
|
|
|
1573
1636
|
}
|
|
1574
1637
|
_flushScheduledSync() {
|
|
1575
1638
|
this._syncScheduled = false;
|
|
1576
|
-
if (this.
|
|
1639
|
+
if (this._hasDirty) {
|
|
1577
1640
|
this.syncStyle();
|
|
1578
1641
|
}
|
|
1579
1642
|
}
|
|
@@ -1602,40 +1665,18 @@ export class Style {
|
|
|
1602
1665
|
return own > 0 ? own : cssUnits.rootFontSize;
|
|
1603
1666
|
}
|
|
1604
1667
|
prepareMut() {
|
|
1605
|
-
// always mut
|
|
1606
1668
|
if (this._pseudo) {
|
|
1607
1669
|
return;
|
|
1608
1670
|
}
|
|
1609
|
-
if (this.
|
|
1671
|
+
if (!this._bufferRequested) {
|
|
1672
|
+
this.loadBuffer(true);
|
|
1673
|
+
}
|
|
1674
|
+
if (this._turnSnapshot === undefined && !this._hasDirty && this._sv) {
|
|
1610
1675
|
this._turnSnapshot = this._synced ? this.u8View.slice() : false;
|
|
1611
1676
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
let style = this.nativeView?.style;
|
|
1616
|
-
if (!style) {
|
|
1617
|
-
style = NSCMason.shared.styleForViewOrNode(this.nativeView);
|
|
1618
|
-
}
|
|
1619
|
-
style.prepareMut();
|
|
1620
|
-
const styleBuffer = style.values;
|
|
1621
|
-
const buffer = interop.bufferFromData(styleBuffer);
|
|
1622
|
-
this.style_view = new DataView(buffer);
|
|
1623
|
-
this.i8View = new Int8Array(buffer);
|
|
1624
|
-
this.u8View = new Uint8Array(buffer);
|
|
1625
|
-
}
|
|
1626
|
-
if (__ANDROID__) {
|
|
1627
|
-
const buffer = ArrayBuffer.from(androidWritableStyleBuffer(this.nativeView));
|
|
1628
|
-
this.style_view = new DataView(buffer);
|
|
1629
|
-
this.i8View = new Int8Array(buffer);
|
|
1630
|
-
this.u8View = new Uint8Array(buffer);
|
|
1631
|
-
}
|
|
1632
|
-
if (__WINDOWS__) {
|
|
1633
|
-
//@ts-ignore
|
|
1634
|
-
const buffer = NSWinRT.interop.arrayBufferFromBuffer(windowsStyleValues(this.nativeView));
|
|
1635
|
-
this.style_view = new DataView(buffer);
|
|
1636
|
-
this.i8View = new Int8Array(buffer);
|
|
1637
|
-
this.u8View = new Uint8Array(buffer);
|
|
1638
|
-
}
|
|
1677
|
+
if (getUint32(this._sv, StyleKeys.REF_COUNT) !== 1) {
|
|
1678
|
+
// Still the shared buffer (read before the first write): take a copy.
|
|
1679
|
+
this.loadBuffer(true);
|
|
1639
1680
|
}
|
|
1640
1681
|
}
|
|
1641
1682
|
get boxSizing() {
|
|
@@ -2021,14 +2062,7 @@ export class Style {
|
|
|
2021
2062
|
this.prepareMut();
|
|
2022
2063
|
setInt8(this.style_view, StyleKeys.DISPLAY, display);
|
|
2023
2064
|
setInt8(this.style_view, StyleKeys.DISPLAY_MODE, displayMode);
|
|
2024
|
-
|
|
2025
|
-
this.isDirty = StateKeys.DISPLAY_MODE.bits;
|
|
2026
|
-
}
|
|
2027
|
-
else {
|
|
2028
|
-
this.isDirty = this.isDirty | StateKeys.DISPLAY_MODE.bits;
|
|
2029
|
-
}
|
|
2030
|
-
// DISPLAY/DISPLAY_MODE are disjoint bits; use .or(), not .and()
|
|
2031
|
-
this.commitState(StateKeys.DISPLAY.or(StateKeys.DISPLAY_MODE));
|
|
2065
|
+
this.commitState(StateKeys.DISPLAY_AND_MODE);
|
|
2032
2066
|
}
|
|
2033
2067
|
}
|
|
2034
2068
|
get position() {
|
|
@@ -2183,8 +2217,12 @@ export class Style {
|
|
|
2183
2217
|
setInt8(this.style_view, StyleKeys.MIN_WIDTH_TYPE, 2);
|
|
2184
2218
|
setFloat32(this.style_view, StyleKeys.MIN_WIDTH_VALUE, value.value);
|
|
2185
2219
|
break;
|
|
2220
|
+
default:
|
|
2221
|
+
return;
|
|
2186
2222
|
}
|
|
2187
2223
|
break;
|
|
2224
|
+
default:
|
|
2225
|
+
return;
|
|
2188
2226
|
}
|
|
2189
2227
|
this.commitState(StateKeys.MIN_SIZE);
|
|
2190
2228
|
}
|
|
@@ -2224,8 +2262,12 @@ export class Style {
|
|
|
2224
2262
|
setInt8(this.style_view, StyleKeys.MIN_HEIGHT_TYPE, 2);
|
|
2225
2263
|
setFloat32(this.style_view, StyleKeys.MIN_HEIGHT_VALUE, value.value);
|
|
2226
2264
|
break;
|
|
2265
|
+
default:
|
|
2266
|
+
return;
|
|
2227
2267
|
}
|
|
2228
2268
|
break;
|
|
2269
|
+
default:
|
|
2270
|
+
return;
|
|
2229
2271
|
}
|
|
2230
2272
|
this.commitState(StateKeys.MIN_SIZE);
|
|
2231
2273
|
}
|
|
@@ -2265,8 +2307,12 @@ export class Style {
|
|
|
2265
2307
|
setInt8(this.style_view, StyleKeys.WIDTH_TYPE, 2);
|
|
2266
2308
|
setFloat32(this.style_view, StyleKeys.WIDTH_VALUE, value.value);
|
|
2267
2309
|
break;
|
|
2310
|
+
default:
|
|
2311
|
+
return;
|
|
2268
2312
|
}
|
|
2269
2313
|
break;
|
|
2314
|
+
default:
|
|
2315
|
+
return;
|
|
2270
2316
|
}
|
|
2271
2317
|
this.commitState(StateKeys.SIZE);
|
|
2272
2318
|
}
|
|
@@ -2306,8 +2352,12 @@ export class Style {
|
|
|
2306
2352
|
setInt8(this.style_view, StyleKeys.HEIGHT_TYPE, 2);
|
|
2307
2353
|
setFloat32(this.style_view, StyleKeys.HEIGHT_VALUE, value.value);
|
|
2308
2354
|
break;
|
|
2355
|
+
default:
|
|
2356
|
+
return;
|
|
2309
2357
|
}
|
|
2310
2358
|
break;
|
|
2359
|
+
default:
|
|
2360
|
+
return;
|
|
2311
2361
|
}
|
|
2312
2362
|
this.commitState(StateKeys.SIZE);
|
|
2313
2363
|
}
|
|
@@ -2347,8 +2397,12 @@ export class Style {
|
|
|
2347
2397
|
setInt8(this.style_view, StyleKeys.MAX_WIDTH_TYPE, 2);
|
|
2348
2398
|
setFloat32(this.style_view, StyleKeys.MAX_WIDTH_VALUE, value.value);
|
|
2349
2399
|
break;
|
|
2400
|
+
default:
|
|
2401
|
+
return;
|
|
2350
2402
|
}
|
|
2351
2403
|
break;
|
|
2404
|
+
default:
|
|
2405
|
+
return;
|
|
2352
2406
|
}
|
|
2353
2407
|
this.commitState(StateKeys.MAX_SIZE);
|
|
2354
2408
|
}
|
|
@@ -2388,8 +2442,12 @@ export class Style {
|
|
|
2388
2442
|
setInt8(this.style_view, StyleKeys.MAX_HEIGHT_TYPE, 2);
|
|
2389
2443
|
setFloat32(this.style_view, StyleKeys.MAX_HEIGHT_VALUE, value.value);
|
|
2390
2444
|
break;
|
|
2445
|
+
default:
|
|
2446
|
+
return;
|
|
2391
2447
|
}
|
|
2392
2448
|
break;
|
|
2449
|
+
default:
|
|
2450
|
+
return;
|
|
2393
2451
|
}
|
|
2394
2452
|
this.commitState(StateKeys.MAX_SIZE);
|
|
2395
2453
|
}
|
|
@@ -3702,7 +3760,7 @@ export class Style {
|
|
|
3702
3760
|
return nodeHelper().getGridAutoRows(this.nativeView);
|
|
3703
3761
|
}
|
|
3704
3762
|
if (__APPLE__) {
|
|
3705
|
-
return this.
|
|
3763
|
+
return this.appleStyle.gridAutoRows;
|
|
3706
3764
|
}
|
|
3707
3765
|
return '';
|
|
3708
3766
|
}
|
|
@@ -3716,7 +3774,7 @@ export class Style {
|
|
|
3716
3774
|
nodeHelper().setGridAutoRows(this.nativeView, value);
|
|
3717
3775
|
}
|
|
3718
3776
|
if (__APPLE__) {
|
|
3719
|
-
this.
|
|
3777
|
+
this.appleStyle.gridAutoRows = value;
|
|
3720
3778
|
}
|
|
3721
3779
|
if (__WINDOWS__) {
|
|
3722
3780
|
windowsSetGrid(this.nativeView, 'gridAutoRows', value);
|
|
@@ -3730,7 +3788,7 @@ export class Style {
|
|
|
3730
3788
|
return nodeHelper().getGridAutoColumns(this.nativeView);
|
|
3731
3789
|
}
|
|
3732
3790
|
if (__APPLE__) {
|
|
3733
|
-
return this.
|
|
3791
|
+
return this.appleStyle.gridAutoColumns;
|
|
3734
3792
|
}
|
|
3735
3793
|
return '';
|
|
3736
3794
|
}
|
|
@@ -3744,7 +3802,7 @@ export class Style {
|
|
|
3744
3802
|
nodeHelper().setGridAutoColumns(this.nativeView, value);
|
|
3745
3803
|
}
|
|
3746
3804
|
if (__APPLE__) {
|
|
3747
|
-
this.
|
|
3805
|
+
this.appleStyle.gridAutoColumns = value;
|
|
3748
3806
|
}
|
|
3749
3807
|
if (__WINDOWS__) {
|
|
3750
3808
|
windowsSetGrid(this.nativeView, 'gridAutoColumns', value);
|
|
@@ -3792,7 +3850,7 @@ export class Style {
|
|
|
3792
3850
|
nodeHelper().setGridColumn(this.nativeView, value);
|
|
3793
3851
|
}
|
|
3794
3852
|
if (__APPLE__) {
|
|
3795
|
-
this.
|
|
3853
|
+
this.appleStyle.gridColumn = value;
|
|
3796
3854
|
}
|
|
3797
3855
|
if (__WINDOWS__) {
|
|
3798
3856
|
windowsSetGrid(this.nativeView, 'gridColumn', value);
|
|
@@ -3806,7 +3864,7 @@ export class Style {
|
|
|
3806
3864
|
return nodeHelper().getGridColumn(this.nativeView);
|
|
3807
3865
|
}
|
|
3808
3866
|
if (__APPLE__) {
|
|
3809
|
-
return this.
|
|
3867
|
+
return this.appleStyle.gridColumn;
|
|
3810
3868
|
}
|
|
3811
3869
|
return '';
|
|
3812
3870
|
}
|
|
@@ -3818,7 +3876,7 @@ export class Style {
|
|
|
3818
3876
|
return nodeHelper().getGridColumnStart(this.nativeView);
|
|
3819
3877
|
}
|
|
3820
3878
|
if (__APPLE__) {
|
|
3821
|
-
return this.
|
|
3879
|
+
return this.appleStyle.gridColumnStart;
|
|
3822
3880
|
}
|
|
3823
3881
|
return '';
|
|
3824
3882
|
}
|
|
@@ -3832,7 +3890,7 @@ export class Style {
|
|
|
3832
3890
|
nodeHelper().setGridColumnStart(this.nativeView, value);
|
|
3833
3891
|
}
|
|
3834
3892
|
if (__APPLE__) {
|
|
3835
|
-
this.
|
|
3893
|
+
this.appleStyle.gridColumnStart = value;
|
|
3836
3894
|
}
|
|
3837
3895
|
if (__WINDOWS__) {
|
|
3838
3896
|
windowsSetGrid(this.nativeView, 'gridColumnStart', value);
|
|
@@ -3846,7 +3904,7 @@ export class Style {
|
|
|
3846
3904
|
return nodeHelper().getGridColumnEnd(this.nativeView);
|
|
3847
3905
|
}
|
|
3848
3906
|
if (__APPLE__) {
|
|
3849
|
-
return this.
|
|
3907
|
+
return this.appleStyle.gridColumnEnd;
|
|
3850
3908
|
}
|
|
3851
3909
|
return '';
|
|
3852
3910
|
}
|
|
@@ -3860,7 +3918,7 @@ export class Style {
|
|
|
3860
3918
|
nodeHelper().setGridColumnEnd(this.nativeView, value);
|
|
3861
3919
|
}
|
|
3862
3920
|
if (__APPLE__) {
|
|
3863
|
-
this.
|
|
3921
|
+
this.appleStyle.gridColumnEnd = value;
|
|
3864
3922
|
}
|
|
3865
3923
|
if (__WINDOWS__) {
|
|
3866
3924
|
windowsSetGrid(this.nativeView, 'gridColumnEnd', value);
|
|
@@ -3876,7 +3934,7 @@ export class Style {
|
|
|
3876
3934
|
nodeHelper().setGridRow(this.nativeView, value);
|
|
3877
3935
|
}
|
|
3878
3936
|
if (__APPLE__) {
|
|
3879
|
-
this.
|
|
3937
|
+
this.appleStyle.gridRow = value;
|
|
3880
3938
|
}
|
|
3881
3939
|
if (__WINDOWS__) {
|
|
3882
3940
|
windowsSetGrid(this.nativeView, 'gridRow', value);
|
|
@@ -3890,7 +3948,7 @@ export class Style {
|
|
|
3890
3948
|
return nodeHelper().getGridRow(this.nativeView);
|
|
3891
3949
|
}
|
|
3892
3950
|
if (__APPLE__) {
|
|
3893
|
-
return this.
|
|
3951
|
+
return this.appleStyle.gridRow;
|
|
3894
3952
|
}
|
|
3895
3953
|
return '';
|
|
3896
3954
|
}
|
|
@@ -3902,7 +3960,7 @@ export class Style {
|
|
|
3902
3960
|
return nodeHelper().getGridRowStart(this.nativeView);
|
|
3903
3961
|
}
|
|
3904
3962
|
if (__APPLE__) {
|
|
3905
|
-
return this.
|
|
3963
|
+
return this.appleStyle.gridRowStart;
|
|
3906
3964
|
}
|
|
3907
3965
|
return '';
|
|
3908
3966
|
}
|
|
@@ -3916,7 +3974,7 @@ export class Style {
|
|
|
3916
3974
|
nodeHelper().setGridRowStart(this.nativeView, value);
|
|
3917
3975
|
}
|
|
3918
3976
|
if (__APPLE__) {
|
|
3919
|
-
this.
|
|
3977
|
+
this.appleStyle.gridRowStart = value;
|
|
3920
3978
|
}
|
|
3921
3979
|
if (__WINDOWS__) {
|
|
3922
3980
|
windowsSetGrid(this.nativeView, 'gridRowStart', value);
|
|
@@ -3930,7 +3988,7 @@ export class Style {
|
|
|
3930
3988
|
return nodeHelper().getGridRowEnd(this.nativeView);
|
|
3931
3989
|
}
|
|
3932
3990
|
if (__APPLE__) {
|
|
3933
|
-
return this.
|
|
3991
|
+
return this.appleStyle.gridRowEnd;
|
|
3934
3992
|
}
|
|
3935
3993
|
return '';
|
|
3936
3994
|
}
|
|
@@ -3944,7 +4002,7 @@ export class Style {
|
|
|
3944
4002
|
nodeHelper().setGridRowEnd(this.nativeView, value);
|
|
3945
4003
|
}
|
|
3946
4004
|
if (__APPLE__) {
|
|
3947
|
-
this.
|
|
4005
|
+
this.appleStyle.gridRowEnd = value;
|
|
3948
4006
|
}
|
|
3949
4007
|
if (__WINDOWS__) {
|
|
3950
4008
|
windowsSetGrid(this.nativeView, 'gridRowEnd', value);
|
|
@@ -3960,7 +4018,7 @@ export class Style {
|
|
|
3960
4018
|
nodeHelper().setGridArea(this.nativeView, value);
|
|
3961
4019
|
}
|
|
3962
4020
|
if (__APPLE__) {
|
|
3963
|
-
this.
|
|
4021
|
+
this.appleStyle.gridArea = value;
|
|
3964
4022
|
}
|
|
3965
4023
|
if (__WINDOWS__) {
|
|
3966
4024
|
windowsSetGrid(this.nativeView, 'gridArea', value);
|
|
@@ -3974,7 +4032,7 @@ export class Style {
|
|
|
3974
4032
|
return nodeHelper().getGridArea(this.nativeView);
|
|
3975
4033
|
}
|
|
3976
4034
|
if (__APPLE__) {
|
|
3977
|
-
return this.
|
|
4035
|
+
return this.appleStyle.gridArea;
|
|
3978
4036
|
}
|
|
3979
4037
|
return '';
|
|
3980
4038
|
}
|
|
@@ -3988,7 +4046,7 @@ export class Style {
|
|
|
3988
4046
|
nodeHelper().setGridTemplateRows(this.nativeView, value);
|
|
3989
4047
|
}
|
|
3990
4048
|
if (__APPLE__) {
|
|
3991
|
-
this.
|
|
4049
|
+
this.appleStyle.gridTemplateRows = value;
|
|
3992
4050
|
}
|
|
3993
4051
|
if (__WINDOWS__) {
|
|
3994
4052
|
windowsSetGrid(this.nativeView, 'gridTemplateRows', value);
|
|
@@ -4002,7 +4060,7 @@ export class Style {
|
|
|
4002
4060
|
return nodeHelper().getGridTemplateRows(this.nativeView);
|
|
4003
4061
|
}
|
|
4004
4062
|
if (__APPLE__) {
|
|
4005
|
-
return this.
|
|
4063
|
+
return this.appleStyle.gridTemplateRows;
|
|
4006
4064
|
}
|
|
4007
4065
|
return '';
|
|
4008
4066
|
}
|
|
@@ -4014,7 +4072,7 @@ export class Style {
|
|
|
4014
4072
|
return nodeHelper().getGridTemplateColumns(this.nativeView);
|
|
4015
4073
|
}
|
|
4016
4074
|
if (__APPLE__) {
|
|
4017
|
-
return this.
|
|
4075
|
+
return this.appleStyle.gridTemplateColumns;
|
|
4018
4076
|
}
|
|
4019
4077
|
return '';
|
|
4020
4078
|
}
|
|
@@ -4028,7 +4086,7 @@ export class Style {
|
|
|
4028
4086
|
nodeHelper().setGridTemplateColumns(this.nativeView, value);
|
|
4029
4087
|
}
|
|
4030
4088
|
if (__APPLE__) {
|
|
4031
|
-
this.
|
|
4089
|
+
this.appleStyle.gridTemplateColumns = value;
|
|
4032
4090
|
}
|
|
4033
4091
|
if (__WINDOWS__) {
|
|
4034
4092
|
windowsSetGrid(this.nativeView, 'gridTemplateColumns', value);
|
|
@@ -4042,7 +4100,7 @@ export class Style {
|
|
|
4042
4100
|
return nodeHelper().getGridTemplateAreas(this.nativeView);
|
|
4043
4101
|
}
|
|
4044
4102
|
if (__APPLE__) {
|
|
4045
|
-
return this.
|
|
4103
|
+
return this.appleStyle.gridTemplateAreas;
|
|
4046
4104
|
}
|
|
4047
4105
|
return '';
|
|
4048
4106
|
}
|
|
@@ -4056,7 +4114,7 @@ export class Style {
|
|
|
4056
4114
|
nodeHelper().setGridTemplateAreas(this.nativeView, value);
|
|
4057
4115
|
}
|
|
4058
4116
|
if (__APPLE__) {
|
|
4059
|
-
this.
|
|
4117
|
+
this.appleStyle.gridTemplateAreas = value;
|
|
4060
4118
|
}
|
|
4061
4119
|
if (__WINDOWS__) {
|
|
4062
4120
|
windowsSetGrid(this.nativeView, 'gridTemplateAreas', value);
|
|
@@ -4409,13 +4467,13 @@ export class Style {
|
|
|
4409
4467
|
return nodeHelper().getBackground(this.nativeView);
|
|
4410
4468
|
}
|
|
4411
4469
|
if (__APPLE__) {
|
|
4412
|
-
return this.
|
|
4470
|
+
return this.appleStyle.background;
|
|
4413
4471
|
}
|
|
4414
4472
|
return '';
|
|
4415
4473
|
}
|
|
4416
4474
|
set background(value) {
|
|
4417
4475
|
value = this.coerceCssStringValue(value);
|
|
4418
|
-
this.setPseudoCssStringValue('background', value, () => nodeHelper().setBackground(this.nativeView, value), () => (this.
|
|
4476
|
+
this.setPseudoCssStringValue('background', value, () => nodeHelper().setBackground(this.nativeView, value), () => (this.appleStyle.background = value));
|
|
4419
4477
|
}
|
|
4420
4478
|
get backgroundImage() {
|
|
4421
4479
|
if (!this.nativeView) {
|
|
@@ -4425,13 +4483,13 @@ export class Style {
|
|
|
4425
4483
|
return nodeHelper().getBackgroundImage(this.nativeView);
|
|
4426
4484
|
}
|
|
4427
4485
|
if (__APPLE__) {
|
|
4428
|
-
return this.
|
|
4486
|
+
return this.appleStyle.backgroundImage;
|
|
4429
4487
|
}
|
|
4430
4488
|
return '';
|
|
4431
4489
|
}
|
|
4432
4490
|
set backgroundImage(value) {
|
|
4433
4491
|
value = this.coerceCssStringValue(value);
|
|
4434
|
-
this.setPseudoCssStringValue('background-image', value, () => nodeHelper().setBackgroundImage(this.nativeView, value), () => (this.
|
|
4492
|
+
this.setPseudoCssStringValue('background-image', value, () => nodeHelper().setBackgroundImage(this.nativeView, value), () => (this.appleStyle.backgroundImage = value));
|
|
4435
4493
|
}
|
|
4436
4494
|
get backgroundRepeat() {
|
|
4437
4495
|
if (!this.nativeView) {
|
|
@@ -4441,13 +4499,13 @@ export class Style {
|
|
|
4441
4499
|
return nodeHelper().getBackgroundRepeat(this.nativeView);
|
|
4442
4500
|
}
|
|
4443
4501
|
if (__APPLE__) {
|
|
4444
|
-
return this.
|
|
4502
|
+
return this.appleStyle.backgroundRepeat;
|
|
4445
4503
|
}
|
|
4446
4504
|
return '';
|
|
4447
4505
|
}
|
|
4448
4506
|
set backgroundRepeat(value) {
|
|
4449
4507
|
value = this.coerceCssStringValue(value);
|
|
4450
|
-
this.setPseudoCssStringValue('background-repeat', value, () => nodeHelper().setBackgroundRepeat(this.nativeView, value), () => (this.
|
|
4508
|
+
this.setPseudoCssStringValue('background-repeat', value, () => nodeHelper().setBackgroundRepeat(this.nativeView, value), () => (this.appleStyle.backgroundRepeat = value));
|
|
4451
4509
|
}
|
|
4452
4510
|
get backgroundPosition() {
|
|
4453
4511
|
if (!this.nativeView) {
|
|
@@ -4457,13 +4515,13 @@ export class Style {
|
|
|
4457
4515
|
return nodeHelper().getBackgroundPosition(this.nativeView);
|
|
4458
4516
|
}
|
|
4459
4517
|
if (__APPLE__) {
|
|
4460
|
-
return this.
|
|
4518
|
+
return this.appleStyle.backgroundPosition;
|
|
4461
4519
|
}
|
|
4462
4520
|
return '';
|
|
4463
4521
|
}
|
|
4464
4522
|
set backgroundPosition(value) {
|
|
4465
4523
|
value = this.coerceCssStringValue(value);
|
|
4466
|
-
this.setPseudoCssStringValue('background-position', value, () => nodeHelper().setBackgroundPosition(this.nativeView, value), () => (this.
|
|
4524
|
+
this.setPseudoCssStringValue('background-position', value, () => nodeHelper().setBackgroundPosition(this.nativeView, value), () => (this.appleStyle.backgroundPosition = value));
|
|
4467
4525
|
}
|
|
4468
4526
|
get backgroundSize() {
|
|
4469
4527
|
if (!this.nativeView) {
|
|
@@ -4473,13 +4531,13 @@ export class Style {
|
|
|
4473
4531
|
return nodeHelper().getBackgroundSize(this.nativeView);
|
|
4474
4532
|
}
|
|
4475
4533
|
if (__APPLE__) {
|
|
4476
|
-
return this.
|
|
4534
|
+
return this.appleStyle.backgroundSize;
|
|
4477
4535
|
}
|
|
4478
4536
|
return '';
|
|
4479
4537
|
}
|
|
4480
4538
|
set backgroundSize(value) {
|
|
4481
4539
|
value = this.coerceCssStringValue(value);
|
|
4482
|
-
this.setPseudoCssStringValue('background-size', value, () => nodeHelper().setBackgroundSize(this.nativeView, value), () => (this.
|
|
4540
|
+
this.setPseudoCssStringValue('background-size', value, () => nodeHelper().setBackgroundSize(this.nativeView, value), () => (this.appleStyle.backgroundSize = value));
|
|
4483
4541
|
}
|
|
4484
4542
|
get backgroundClip() {
|
|
4485
4543
|
if (!this.nativeView) {
|
|
@@ -4489,13 +4547,13 @@ export class Style {
|
|
|
4489
4547
|
return nodeHelper().getBackgroundClip(this.nativeView);
|
|
4490
4548
|
}
|
|
4491
4549
|
if (__APPLE__) {
|
|
4492
|
-
return this.
|
|
4550
|
+
return this.appleStyle.backgroundClip;
|
|
4493
4551
|
}
|
|
4494
4552
|
return '';
|
|
4495
4553
|
}
|
|
4496
4554
|
set backgroundClip(value) {
|
|
4497
4555
|
value = this.coerceCssStringValue(value);
|
|
4498
|
-
this.setPseudoCssStringValue('background-clip', value, () => nodeHelper().setBackgroundClip(this.nativeView, value), () => (this.
|
|
4556
|
+
this.setPseudoCssStringValue('background-clip', value, () => nodeHelper().setBackgroundClip(this.nativeView, value), () => (this.appleStyle.backgroundClip = value));
|
|
4499
4557
|
}
|
|
4500
4558
|
get backgroundPositionX() {
|
|
4501
4559
|
if (!this.nativeView) {
|
|
@@ -4505,13 +4563,13 @@ export class Style {
|
|
|
4505
4563
|
return nodeHelper().getBackgroundPositionX(this.nativeView);
|
|
4506
4564
|
}
|
|
4507
4565
|
if (__APPLE__) {
|
|
4508
|
-
return this.
|
|
4566
|
+
return this.appleStyle.backgroundPositionX;
|
|
4509
4567
|
}
|
|
4510
4568
|
return '';
|
|
4511
4569
|
}
|
|
4512
4570
|
set backgroundPositionX(value) {
|
|
4513
4571
|
value = cssInitialIfReset(this.coerceCssStringValue(value), '0%');
|
|
4514
|
-
this.setPseudoCssStringValue('background-position-x', value, () => nodeHelper().setBackgroundPositionX(this.nativeView, value), () => (this.
|
|
4572
|
+
this.setPseudoCssStringValue('background-position-x', value, () => nodeHelper().setBackgroundPositionX(this.nativeView, value), () => (this.appleStyle.backgroundPositionX = value));
|
|
4515
4573
|
}
|
|
4516
4574
|
get backgroundPositionY() {
|
|
4517
4575
|
if (!this.nativeView) {
|
|
@@ -4521,13 +4579,13 @@ export class Style {
|
|
|
4521
4579
|
return nodeHelper().getBackgroundPositionY(this.nativeView);
|
|
4522
4580
|
}
|
|
4523
4581
|
if (__APPLE__) {
|
|
4524
|
-
return this.
|
|
4582
|
+
return this.appleStyle.backgroundPositionY;
|
|
4525
4583
|
}
|
|
4526
4584
|
return '';
|
|
4527
4585
|
}
|
|
4528
4586
|
set backgroundPositionY(value) {
|
|
4529
4587
|
value = cssInitialIfReset(this.coerceCssStringValue(value), '0%');
|
|
4530
|
-
this.setPseudoCssStringValue('background-position-y', value, () => nodeHelper().setBackgroundPositionY(this.nativeView, value), () => (this.
|
|
4588
|
+
this.setPseudoCssStringValue('background-position-y', value, () => nodeHelper().setBackgroundPositionY(this.nativeView, value), () => (this.appleStyle.backgroundPositionY = value));
|
|
4531
4589
|
}
|
|
4532
4590
|
get backgroundOrigin() {
|
|
4533
4591
|
if (!this.nativeView) {
|
|
@@ -4537,13 +4595,13 @@ export class Style {
|
|
|
4537
4595
|
return nodeHelper().getBackgroundOrigin(this.nativeView);
|
|
4538
4596
|
}
|
|
4539
4597
|
if (__APPLE__) {
|
|
4540
|
-
return this.
|
|
4598
|
+
return this.appleStyle.backgroundOrigin;
|
|
4541
4599
|
}
|
|
4542
4600
|
return '';
|
|
4543
4601
|
}
|
|
4544
4602
|
set backgroundOrigin(value) {
|
|
4545
4603
|
value = cssInitialIfReset(this.coerceCssStringValue(value), 'padding-box');
|
|
4546
|
-
this.setPseudoCssStringValue('background-origin', value, () => nodeHelper().setBackgroundOrigin(this.nativeView, value), () => (this.
|
|
4604
|
+
this.setPseudoCssStringValue('background-origin', value, () => nodeHelper().setBackgroundOrigin(this.nativeView, value), () => (this.appleStyle.backgroundOrigin = value));
|
|
4547
4605
|
}
|
|
4548
4606
|
get backgroundAttachment() {
|
|
4549
4607
|
if (!this.nativeView) {
|
|
@@ -4553,13 +4611,13 @@ export class Style {
|
|
|
4553
4611
|
return nodeHelper().getBackgroundAttachment(this.nativeView);
|
|
4554
4612
|
}
|
|
4555
4613
|
if (__APPLE__) {
|
|
4556
|
-
return this.
|
|
4614
|
+
return this.appleStyle.backgroundAttachment;
|
|
4557
4615
|
}
|
|
4558
4616
|
return '';
|
|
4559
4617
|
}
|
|
4560
4618
|
set backgroundAttachment(value) {
|
|
4561
4619
|
value = cssInitialIfReset(this.coerceCssStringValue(value), 'scroll');
|
|
4562
|
-
this.setPseudoCssStringValue('background-attachment', value, () => nodeHelper().setBackgroundAttachment(this.nativeView, value), () => (this.
|
|
4620
|
+
this.setPseudoCssStringValue('background-attachment', value, () => nodeHelper().setBackgroundAttachment(this.nativeView, value), () => (this.appleStyle.backgroundAttachment = value));
|
|
4563
4621
|
}
|
|
4564
4622
|
get backgroundBlendMode() {
|
|
4565
4623
|
if (!this.nativeView) {
|
|
@@ -4569,13 +4627,13 @@ export class Style {
|
|
|
4569
4627
|
return nodeHelper().getBackgroundBlendMode(this.nativeView);
|
|
4570
4628
|
}
|
|
4571
4629
|
if (__APPLE__) {
|
|
4572
|
-
return this.
|
|
4630
|
+
return this.appleStyle.backgroundBlendMode;
|
|
4573
4631
|
}
|
|
4574
4632
|
return '';
|
|
4575
4633
|
}
|
|
4576
4634
|
set backgroundBlendMode(value) {
|
|
4577
4635
|
value = cssInitialIfReset(this.coerceCssStringValue(value), 'normal');
|
|
4578
|
-
this.setPseudoCssStringValue('background-blend-mode', value, () => nodeHelper().setBackgroundBlendMode(this.nativeView, value), () => (this.
|
|
4636
|
+
this.setPseudoCssStringValue('background-blend-mode', value, () => nodeHelper().setBackgroundBlendMode(this.nativeView, value), () => (this.appleStyle.backgroundBlendMode = value));
|
|
4579
4637
|
}
|
|
4580
4638
|
hasBorderRadius() {
|
|
4581
4639
|
const view = this.style_view;
|
|
@@ -4595,7 +4653,7 @@ export class Style {
|
|
|
4595
4653
|
return this._borderRadiusCss ?? nodeHelper().getBorderRadius(this.nativeView);
|
|
4596
4654
|
}
|
|
4597
4655
|
if (__APPLE__) {
|
|
4598
|
-
return this._borderRadiusCss ?? this.
|
|
4656
|
+
return this._borderRadiusCss ?? this.appleStyle.borderRadius;
|
|
4599
4657
|
}
|
|
4600
4658
|
if (__WINDOWS__ && this.style_view) {
|
|
4601
4659
|
// Read back so a single corner longhand keeps the other three instead of resetting them to 0.
|
|
@@ -4613,7 +4671,7 @@ export class Style {
|
|
|
4613
4671
|
}
|
|
4614
4672
|
if (!this._pseudo)
|
|
4615
4673
|
this._borderRadiusCss = undefined;
|
|
4616
|
-
this.setPseudoCssStringValue('border-radius', value, () => nodeHelper().setBorderRadius(this.nativeView, value), () => (this.
|
|
4674
|
+
this.setPseudoCssStringValue('border-radius', value, () => nodeHelper().setBorderRadius(this.nativeView, value), () => (this.appleStyle.borderRadius = value));
|
|
4617
4675
|
}
|
|
4618
4676
|
_writeCornerRadius(corner, radius, shorthand, scale = deviceScale()) {
|
|
4619
4677
|
if (!this.nativeView || this._pseudo || !this.style_view)
|
|
@@ -4724,7 +4782,7 @@ export class Style {
|
|
|
4724
4782
|
return nodeHelper().getFontFamily(this.nativeView);
|
|
4725
4783
|
}
|
|
4726
4784
|
if (__APPLE__) {
|
|
4727
|
-
return this.
|
|
4785
|
+
return this.appleStyle.fontFamily;
|
|
4728
4786
|
}
|
|
4729
4787
|
return '';
|
|
4730
4788
|
}
|
|
@@ -4732,11 +4790,11 @@ export class Style {
|
|
|
4732
4790
|
// style-buffer field, so it can't be written through the shared buffer.
|
|
4733
4791
|
set fontFamily(value) {
|
|
4734
4792
|
value = this.coerceCssStringValue(value);
|
|
4735
|
-
this.setPseudoCssStringValue('font-family', value, () => nodeHelper().setFontFamily(this.nativeView, value), () => (this.
|
|
4793
|
+
this.setPseudoCssStringValue('font-family', value, () => nodeHelper().setFontFamily(this.nativeView, value), () => (this.appleStyle.fontFamily = value));
|
|
4736
4794
|
}
|
|
4737
4795
|
set textDecoration(value) {
|
|
4738
4796
|
value = this.coerceCssStringValue(value);
|
|
4739
|
-
this.setPseudoCssStringValue('text-decoration', value, () => nodeHelper().setTextDecoration(this.nativeView, value), () => this.
|
|
4797
|
+
this.setPseudoCssStringValue('text-decoration', value, () => nodeHelper().setTextDecoration(this.nativeView, value), () => this.appleStyle.setTextDecoration(value));
|
|
4740
4798
|
}
|
|
4741
4799
|
get textDecorationLine() {
|
|
4742
4800
|
if (!this.nativeView) {
|
|
@@ -4746,7 +4804,7 @@ export class Style {
|
|
|
4746
4804
|
return nodeHelper().getTextDecorationLine(this.nativeView);
|
|
4747
4805
|
}
|
|
4748
4806
|
if (__APPLE__) {
|
|
4749
|
-
return this.
|
|
4807
|
+
return this.appleStyle.textDecorationLine;
|
|
4750
4808
|
}
|
|
4751
4809
|
if (__WINDOWS__ && this.style_view) {
|
|
4752
4810
|
return textDecorationLineToCss(getUint8(this.style_view, StyleKeys.DECORATION_LINE));
|
|
@@ -4755,7 +4813,7 @@ export class Style {
|
|
|
4755
4813
|
}
|
|
4756
4814
|
set textDecorationLine(value) {
|
|
4757
4815
|
value = cssInitialIfReset(this.coerceCssStringValue(value), 'none');
|
|
4758
|
-
this.setPseudoCssStringValue('text-decoration-line', value, () => nodeHelper().setTextDecorationLine(this.nativeView, value), () => (this.
|
|
4816
|
+
this.setPseudoCssStringValue('text-decoration-line', value, () => nodeHelper().setTextDecorationLine(this.nativeView, value), () => (this.appleStyle.textDecorationLine = value));
|
|
4759
4817
|
}
|
|
4760
4818
|
get textDecorationStyle() {
|
|
4761
4819
|
if (!this.nativeView) {
|
|
@@ -4765,7 +4823,7 @@ export class Style {
|
|
|
4765
4823
|
return nodeHelper().getTextDecorationStyle(this.nativeView);
|
|
4766
4824
|
}
|
|
4767
4825
|
if (__APPLE__) {
|
|
4768
|
-
return this.
|
|
4826
|
+
return this.appleStyle.textDecorationStyle;
|
|
4769
4827
|
}
|
|
4770
4828
|
if (__WINDOWS__ && this.style_view) {
|
|
4771
4829
|
return textDecorationStyleToCss(getUint8(this.style_view, StyleKeys.DECORATION_STYLE));
|
|
@@ -4774,7 +4832,7 @@ export class Style {
|
|
|
4774
4832
|
}
|
|
4775
4833
|
set textDecorationStyle(value) {
|
|
4776
4834
|
value = cssInitialIfReset(this.coerceCssStringValue(value), 'solid');
|
|
4777
|
-
this.setPseudoCssStringValue('text-decoration-style', value, () => nodeHelper().setTextDecorationStyle(this.nativeView, value), () => (this.
|
|
4835
|
+
this.setPseudoCssStringValue('text-decoration-style', value, () => nodeHelper().setTextDecorationStyle(this.nativeView, value), () => (this.appleStyle.textDecorationStyle = value));
|
|
4778
4836
|
}
|
|
4779
4837
|
get textDecorationColor() {
|
|
4780
4838
|
if (!this.nativeView) {
|
|
@@ -4784,7 +4842,7 @@ export class Style {
|
|
|
4784
4842
|
return nodeHelper().getTextDecorationColor(this.nativeView);
|
|
4785
4843
|
}
|
|
4786
4844
|
if (__APPLE__) {
|
|
4787
|
-
return this.
|
|
4845
|
+
return this.appleStyle.textDecorationColor;
|
|
4788
4846
|
}
|
|
4789
4847
|
if (__WINDOWS__ && this.style_view) {
|
|
4790
4848
|
const argb = getUint32(this.style_view, StyleKeys.DECORATION_COLOR);
|
|
@@ -4794,7 +4852,7 @@ export class Style {
|
|
|
4794
4852
|
}
|
|
4795
4853
|
set textDecorationColor(value) {
|
|
4796
4854
|
value = cssInitialIfReset(this.coerceCssStringValue(value), 'currentcolor');
|
|
4797
|
-
this.setPseudoCssStringValue('text-decoration-color', value, () => nodeHelper().setTextDecorationColor(this.nativeView, value), () => (this.
|
|
4855
|
+
this.setPseudoCssStringValue('text-decoration-color', value, () => nodeHelper().setTextDecorationColor(this.nativeView, value), () => (this.appleStyle.textDecorationColor = value));
|
|
4798
4856
|
}
|
|
4799
4857
|
get border() {
|
|
4800
4858
|
if (!this.nativeView) {
|
|
@@ -4804,13 +4862,13 @@ export class Style {
|
|
|
4804
4862
|
return nodeHelper().getBorder(this.nativeView);
|
|
4805
4863
|
}
|
|
4806
4864
|
if (__APPLE__) {
|
|
4807
|
-
return this.
|
|
4865
|
+
return this.appleStyle.border;
|
|
4808
4866
|
}
|
|
4809
4867
|
return '';
|
|
4810
4868
|
}
|
|
4811
4869
|
set border(value) {
|
|
4812
4870
|
value = this.coerceCssStringValue(value);
|
|
4813
|
-
this.setPseudoCssStringValue('border', value, () => nodeHelper().setBorder(this.nativeView, value), () => (this.
|
|
4871
|
+
this.setPseudoCssStringValue('border', value, () => nodeHelper().setBorder(this.nativeView, value), () => (this.appleStyle.border = value));
|
|
4814
4872
|
}
|
|
4815
4873
|
get paddingCss() {
|
|
4816
4874
|
if (!this.nativeView)
|
|
@@ -4819,7 +4877,7 @@ export class Style {
|
|
|
4819
4877
|
return nodeHelper().getPaddingCssValue(this.nativeView);
|
|
4820
4878
|
}
|
|
4821
4879
|
if (__APPLE__) {
|
|
4822
|
-
return this.
|
|
4880
|
+
return this.appleStyle.paddingCss;
|
|
4823
4881
|
}
|
|
4824
4882
|
return '';
|
|
4825
4883
|
}
|
|
@@ -4827,7 +4885,7 @@ export class Style {
|
|
|
4827
4885
|
// a bare number is dip, matching other numeric setters; Android's
|
|
4828
4886
|
// native parser treats "px" as unscaled device pixels, "dip" as scaled
|
|
4829
4887
|
const strValue = typeof value === 'number' ? `${value}dip` : value;
|
|
4830
|
-
this.setPseudoCssStringValue('padding', strValue, () => nodeHelper().setPaddingCss(this.nativeView, strValue), () => (this.
|
|
4888
|
+
this.setPseudoCssStringValue('padding', strValue, () => nodeHelper().setPaddingCss(this.nativeView, strValue), () => (this.appleStyle.paddingCss = strValue));
|
|
4831
4889
|
}
|
|
4832
4890
|
get marginCss() {
|
|
4833
4891
|
if (!this.nativeView)
|
|
@@ -4836,14 +4894,14 @@ export class Style {
|
|
|
4836
4894
|
return nodeHelper().getMarginCssValue(this.nativeView);
|
|
4837
4895
|
}
|
|
4838
4896
|
if (__APPLE__) {
|
|
4839
|
-
return this.
|
|
4897
|
+
return this.appleStyle.marginCss;
|
|
4840
4898
|
}
|
|
4841
4899
|
return '';
|
|
4842
4900
|
}
|
|
4843
4901
|
set marginCss(value) {
|
|
4844
4902
|
// See the comment on `paddingCss` above — same dip-vs-px mislabeling fix.
|
|
4845
4903
|
const strValue = typeof value === 'number' ? `${value}dip` : value;
|
|
4846
|
-
this.setPseudoCssStringValue('margin', strValue, () => nodeHelper().setMarginCss(this.nativeView, strValue), () => (this.
|
|
4904
|
+
this.setPseudoCssStringValue('margin', strValue, () => nodeHelper().setMarginCss(this.nativeView, strValue), () => (this.appleStyle.marginCss = strValue));
|
|
4847
4905
|
}
|
|
4848
4906
|
get insetCss() {
|
|
4849
4907
|
if (!this.nativeView)
|
|
@@ -4852,42 +4910,42 @@ export class Style {
|
|
|
4852
4910
|
return nodeHelper().getInsetCssValue(this.nativeView);
|
|
4853
4911
|
}
|
|
4854
4912
|
if (__APPLE__) {
|
|
4855
|
-
return this.
|
|
4913
|
+
return this.appleStyle.insetCss;
|
|
4856
4914
|
}
|
|
4857
4915
|
return '';
|
|
4858
4916
|
}
|
|
4859
4917
|
set insetCss(value) {
|
|
4860
4918
|
// See the comment on `paddingCss` above — same dip-vs-px mislabeling fix.
|
|
4861
4919
|
const strValue = typeof value === 'number' ? `${value}dip` : value;
|
|
4862
|
-
this.setPseudoCssStringValue('inset', strValue, () => nodeHelper().setInsetCss(this.nativeView, strValue), () => (this.
|
|
4920
|
+
this.setPseudoCssStringValue('inset', strValue, () => nodeHelper().setInsetCss(this.nativeView, strValue), () => (this.appleStyle.insetCss = strValue));
|
|
4863
4921
|
}
|
|
4864
4922
|
get borderLeft() {
|
|
4865
4923
|
return '';
|
|
4866
4924
|
}
|
|
4867
4925
|
set borderLeft(value) {
|
|
4868
4926
|
value = this.coerceCssStringValue(value);
|
|
4869
|
-
this.setPseudoCssStringValue('border-left', value, () => nodeHelper().setBorderLeft(this.nativeView, value), () => (this.
|
|
4927
|
+
this.setPseudoCssStringValue('border-left', value, () => nodeHelper().setBorderLeft(this.nativeView, value), () => (this.appleStyle.borderLeft = value));
|
|
4870
4928
|
}
|
|
4871
4929
|
get borderTop() {
|
|
4872
4930
|
return '';
|
|
4873
4931
|
}
|
|
4874
4932
|
set borderTop(value) {
|
|
4875
4933
|
value = this.coerceCssStringValue(value);
|
|
4876
|
-
this.setPseudoCssStringValue('border-top', value, () => nodeHelper().setBorderTop(this.nativeView, value), () => (this.
|
|
4934
|
+
this.setPseudoCssStringValue('border-top', value, () => nodeHelper().setBorderTop(this.nativeView, value), () => (this.appleStyle.borderTop = value));
|
|
4877
4935
|
}
|
|
4878
4936
|
get borderRight() {
|
|
4879
4937
|
return '';
|
|
4880
4938
|
}
|
|
4881
4939
|
set borderRight(value) {
|
|
4882
4940
|
value = this.coerceCssStringValue(value);
|
|
4883
|
-
this.setPseudoCssStringValue('border-right', value, () => nodeHelper().setBorderRight(this.nativeView, value), () => (this.
|
|
4941
|
+
this.setPseudoCssStringValue('border-right', value, () => nodeHelper().setBorderRight(this.nativeView, value), () => (this.appleStyle.borderRight = value));
|
|
4884
4942
|
}
|
|
4885
4943
|
get borderBottom() {
|
|
4886
4944
|
return '';
|
|
4887
4945
|
}
|
|
4888
4946
|
set borderBottom(value) {
|
|
4889
4947
|
value = this.coerceCssStringValue(value);
|
|
4890
|
-
this.setPseudoCssStringValue('border-bottom', value, () => nodeHelper().setBorderBottom(this.nativeView, value), () => (this.
|
|
4948
|
+
this.setPseudoCssStringValue('border-bottom', value, () => nodeHelper().setBorderBottom(this.nativeView, value), () => (this.appleStyle.borderBottom = value));
|
|
4891
4949
|
}
|
|
4892
4950
|
get filter() {
|
|
4893
4951
|
if (!this.nativeView) {
|
|
@@ -4897,13 +4955,13 @@ export class Style {
|
|
|
4897
4955
|
return nodeHelper().getFilter(this.nativeView);
|
|
4898
4956
|
}
|
|
4899
4957
|
if (__APPLE__) {
|
|
4900
|
-
return this.
|
|
4958
|
+
return this.appleStyle.filter;
|
|
4901
4959
|
}
|
|
4902
4960
|
return '';
|
|
4903
4961
|
}
|
|
4904
4962
|
set filter(value) {
|
|
4905
4963
|
value = this.coerceCssStringValue(value);
|
|
4906
|
-
this.setPseudoCssStringValue('filter', value, () => nodeHelper().setFilter(this.nativeView, value), () => (this.
|
|
4964
|
+
this.setPseudoCssStringValue('filter', value, () => nodeHelper().setFilter(this.nativeView, value), () => (this.appleStyle.filter = value));
|
|
4907
4965
|
}
|
|
4908
4966
|
get boxShadow() {
|
|
4909
4967
|
if (!this.nativeView) {
|
|
@@ -4913,7 +4971,7 @@ export class Style {
|
|
|
4913
4971
|
return nodeHelper().getBoxShadow(this.nativeView);
|
|
4914
4972
|
}
|
|
4915
4973
|
if (__APPLE__) {
|
|
4916
|
-
return this.
|
|
4974
|
+
return this.appleStyle.boxShadow;
|
|
4917
4975
|
}
|
|
4918
4976
|
return '';
|
|
4919
4977
|
}
|
|
@@ -4925,7 +4983,7 @@ export class Style {
|
|
|
4925
4983
|
}
|
|
4926
4984
|
set boxShadow(value) {
|
|
4927
4985
|
value = this.coerceCssStringValue(value);
|
|
4928
|
-
this.setPseudoCssStringValue('box-shadow', value, () => nodeHelper().setBoxShadow(this.nativeView, value), () => (this.
|
|
4986
|
+
this.setPseudoCssStringValue('box-shadow', value, () => nodeHelper().setBoxShadow(this.nativeView, value), () => (this.appleStyle.boxShadow = value));
|
|
4929
4987
|
}
|
|
4930
4988
|
get transform() {
|
|
4931
4989
|
if (!this.nativeView) {
|
|
@@ -4935,13 +4993,13 @@ export class Style {
|
|
|
4935
4993
|
return nodeHelper().getTransform(this.nativeView);
|
|
4936
4994
|
}
|
|
4937
4995
|
if (__APPLE__) {
|
|
4938
|
-
return this.
|
|
4996
|
+
return this.appleStyle.transform;
|
|
4939
4997
|
}
|
|
4940
4998
|
return '';
|
|
4941
4999
|
}
|
|
4942
5000
|
set transform(value) {
|
|
4943
5001
|
value = this.coerceCssStringValue(value);
|
|
4944
|
-
this.setPseudoCssStringValue('transform', value, () => nodeHelper().setTransform(this.nativeView, value), () => (this.
|
|
5002
|
+
this.setPseudoCssStringValue('transform', value, () => nodeHelper().setTransform(this.nativeView, value), () => (this.appleStyle.transform = value));
|
|
4945
5003
|
}
|
|
4946
5004
|
get verticalAlign() {
|
|
4947
5005
|
const isPercent = getUint8(this.style_view, StyleKeys.VERTICAL_ALIGN_IS_PERCENT_OFFSET) == 1;
|
|
@@ -5099,13 +5157,13 @@ export class Style {
|
|
|
5099
5157
|
return nodeHelper().getTextShadow(this.nativeView);
|
|
5100
5158
|
}
|
|
5101
5159
|
if (__APPLE__) {
|
|
5102
|
-
return this.
|
|
5160
|
+
return this.appleStyle.textShadow;
|
|
5103
5161
|
}
|
|
5104
5162
|
return '';
|
|
5105
5163
|
}
|
|
5106
5164
|
set textShadow(value) {
|
|
5107
5165
|
value = this.coerceCssStringValue(value);
|
|
5108
|
-
this.setPseudoCssStringValue('text-shadow', value, () => nodeHelper().setTextShadow(this.nativeView, value), () => (this.
|
|
5166
|
+
this.setPseudoCssStringValue('text-shadow', value, () => nodeHelper().setTextShadow(this.nativeView, value), () => (this.appleStyle.textShadow = value));
|
|
5109
5167
|
}
|
|
5110
5168
|
get zIndex() {
|
|
5111
5169
|
return getInt32(this.style_view, StyleKeys.Z_INDEX);
|
|
@@ -5187,7 +5245,7 @@ export class Style {
|
|
|
5187
5245
|
}
|
|
5188
5246
|
set cornerShape(value) {
|
|
5189
5247
|
value = this.coerceCssStringValue(value);
|
|
5190
|
-
this.setPseudoCssStringValue('corner-shape', value, () => nodeHelper().setCornerShape(this.nativeView, value), () => (this.
|
|
5248
|
+
this.setPseudoCssStringValue('corner-shape', value, () => nodeHelper().setCornerShape(this.nativeView, value), () => (this.appleStyle.cornerShape = value));
|
|
5191
5249
|
}
|
|
5192
5250
|
get cornerShape() {
|
|
5193
5251
|
if (!this.nativeView) {
|
|
@@ -5197,7 +5255,7 @@ export class Style {
|
|
|
5197
5255
|
return nodeHelper().getCornerShape(this.nativeView);
|
|
5198
5256
|
}
|
|
5199
5257
|
if (__APPLE__) {
|
|
5200
|
-
return this.
|
|
5258
|
+
return this.appleStyle.cornerShape;
|
|
5201
5259
|
}
|
|
5202
5260
|
return '';
|
|
5203
5261
|
}
|
|
@@ -5208,13 +5266,13 @@ export class Style {
|
|
|
5208
5266
|
return nodeHelper().getCornerShapeTopLeft(this.nativeView);
|
|
5209
5267
|
}
|
|
5210
5268
|
if (__APPLE__) {
|
|
5211
|
-
return this.
|
|
5269
|
+
return this.appleStyle.cornerShapeTopLeft;
|
|
5212
5270
|
}
|
|
5213
5271
|
return '';
|
|
5214
5272
|
}
|
|
5215
5273
|
set cornerShapeTopLeft(value) {
|
|
5216
5274
|
value = this.coerceCssStringValue(value);
|
|
5217
|
-
this.setPseudoCssStringValue('corner-shape-top-left', value, () => nodeHelper().setCornerShapeTopLeft(this.nativeView, value), () => (this.
|
|
5275
|
+
this.setPseudoCssStringValue('corner-shape-top-left', value, () => nodeHelper().setCornerShapeTopLeft(this.nativeView, value), () => (this.appleStyle.cornerShapeTopLeft = value));
|
|
5218
5276
|
}
|
|
5219
5277
|
get cornerShapeTopRight() {
|
|
5220
5278
|
if (!this.nativeView)
|
|
@@ -5223,13 +5281,13 @@ export class Style {
|
|
|
5223
5281
|
return nodeHelper().getCornerShapeTopRight(this.nativeView);
|
|
5224
5282
|
}
|
|
5225
5283
|
if (__APPLE__) {
|
|
5226
|
-
return this.
|
|
5284
|
+
return this.appleStyle.cornerShapeTopRight;
|
|
5227
5285
|
}
|
|
5228
5286
|
return '';
|
|
5229
5287
|
}
|
|
5230
5288
|
set cornerShapeTopRight(value) {
|
|
5231
5289
|
value = this.coerceCssStringValue(value);
|
|
5232
|
-
this.setPseudoCssStringValue('corner-shape-top-right', value, () => nodeHelper().setCornerShapeTopRight(this.nativeView, value), () => (this.
|
|
5290
|
+
this.setPseudoCssStringValue('corner-shape-top-right', value, () => nodeHelper().setCornerShapeTopRight(this.nativeView, value), () => (this.appleStyle.cornerShapeTopRight = value));
|
|
5233
5291
|
}
|
|
5234
5292
|
get cornerShapeBottomRight() {
|
|
5235
5293
|
if (!this.nativeView)
|
|
@@ -5238,13 +5296,13 @@ export class Style {
|
|
|
5238
5296
|
return nodeHelper().getCornerShapeBottomRight(this.nativeView);
|
|
5239
5297
|
}
|
|
5240
5298
|
if (__APPLE__) {
|
|
5241
|
-
return this.
|
|
5299
|
+
return this.appleStyle.cornerShapeBottomRight;
|
|
5242
5300
|
}
|
|
5243
5301
|
return '';
|
|
5244
5302
|
}
|
|
5245
5303
|
set cornerShapeBottomRight(value) {
|
|
5246
5304
|
value = this.coerceCssStringValue(value);
|
|
5247
|
-
this.setPseudoCssStringValue('corner-shape-bottom-right', value, () => nodeHelper().setCornerShapeBottomRight(this.nativeView, value), () => (this.
|
|
5305
|
+
this.setPseudoCssStringValue('corner-shape-bottom-right', value, () => nodeHelper().setCornerShapeBottomRight(this.nativeView, value), () => (this.appleStyle.cornerShapeBottomRight = value));
|
|
5248
5306
|
}
|
|
5249
5307
|
get cornerShapeBottomLeft() {
|
|
5250
5308
|
if (!this.nativeView)
|
|
@@ -5253,13 +5311,13 @@ export class Style {
|
|
|
5253
5311
|
return nodeHelper().getCornerShapeBottomLeft(this.nativeView);
|
|
5254
5312
|
}
|
|
5255
5313
|
if (__APPLE__) {
|
|
5256
|
-
return this.
|
|
5314
|
+
return this.appleStyle.cornerShapeBottomLeft;
|
|
5257
5315
|
}
|
|
5258
5316
|
return '';
|
|
5259
5317
|
}
|
|
5260
5318
|
set cornerShapeBottomLeft(value) {
|
|
5261
5319
|
value = this.coerceCssStringValue(value);
|
|
5262
|
-
this.setPseudoCssStringValue('corner-shape-bottom-left', value, () => nodeHelper().setCornerShapeBottomLeft(this.nativeView, value), () => (this.
|
|
5320
|
+
this.setPseudoCssStringValue('corner-shape-bottom-left', value, () => nodeHelper().setCornerShapeBottomLeft(this.nativeView, value), () => (this.appleStyle.cornerShapeBottomLeft = value));
|
|
5263
5321
|
}
|
|
5264
5322
|
get objectPosition() {
|
|
5265
5323
|
if (!this.style_view)
|
|
@@ -5401,13 +5459,13 @@ export class Style {
|
|
|
5401
5459
|
return nodeHelper().getBorderImage(this.nativeView);
|
|
5402
5460
|
}
|
|
5403
5461
|
if (__APPLE__) {
|
|
5404
|
-
return this.
|
|
5462
|
+
return this.appleStyle.borderImage;
|
|
5405
5463
|
}
|
|
5406
5464
|
return '';
|
|
5407
5465
|
}
|
|
5408
5466
|
set borderImage(value) {
|
|
5409
5467
|
value = this.coerceCssStringValue(value);
|
|
5410
|
-
this.setPseudoCssStringValue('border-image', value, () => nodeHelper().setBorderImage(this.nativeView, value), () => (this.
|
|
5468
|
+
this.setPseudoCssStringValue('border-image', value, () => nodeHelper().setBorderImage(this.nativeView, value), () => (this.appleStyle.borderImage = value));
|
|
5411
5469
|
}
|
|
5412
5470
|
set 'border-image'(value) {
|
|
5413
5471
|
this.borderImage = value;
|
|
@@ -5448,13 +5506,13 @@ export class Style {
|
|
|
5448
5506
|
return nodeHelper().getFontFeatureSettings(this.nativeView);
|
|
5449
5507
|
}
|
|
5450
5508
|
if (__APPLE__) {
|
|
5451
|
-
return this.
|
|
5509
|
+
return this.appleStyle.fontFeatureSettings;
|
|
5452
5510
|
}
|
|
5453
5511
|
return 'normal';
|
|
5454
5512
|
}
|
|
5455
5513
|
set fontFeatureSettings(value) {
|
|
5456
5514
|
value = this.coerceCssStringValue(value);
|
|
5457
|
-
this.setPseudoCssStringValue('font-feature-settings', value, () => nodeHelper().setFontFeatureSettings(this.nativeView, value), () => (this.
|
|
5515
|
+
this.setPseudoCssStringValue('font-feature-settings', value, () => nodeHelper().setFontFeatureSettings(this.nativeView, value), () => (this.appleStyle.fontFeatureSettings = value));
|
|
5458
5516
|
}
|
|
5459
5517
|
set 'font-feature-settings'(value) {
|
|
5460
5518
|
this.fontFeatureSettings = value;
|
|
@@ -5554,13 +5612,13 @@ export class Style {
|
|
|
5554
5612
|
return nodeHelper().getBackdropFilter(this.nativeView);
|
|
5555
5613
|
}
|
|
5556
5614
|
if (__APPLE__) {
|
|
5557
|
-
return this.
|
|
5615
|
+
return this.appleStyle.backdropFilter;
|
|
5558
5616
|
}
|
|
5559
5617
|
return '';
|
|
5560
5618
|
}
|
|
5561
5619
|
set backdropFilter(value) {
|
|
5562
5620
|
value = this.coerceCssStringValue(value);
|
|
5563
|
-
this.setPseudoCssStringValue('backdrop-filter', value, () => nodeHelper().setBackdropFilter(this.nativeView, value), () => (this.
|
|
5621
|
+
this.setPseudoCssStringValue('backdrop-filter', value, () => nodeHelper().setBackdropFilter(this.nativeView, value), () => (this.appleStyle.backdropFilter = value));
|
|
5564
5622
|
}
|
|
5565
5623
|
set 'backdrop-filter'(value) {
|
|
5566
5624
|
this.backdropFilter = value;
|