ugcinc-render 1.8.184 → 1.8.185
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/dist/index.d.mts +0 -4
- package/dist/index.d.ts +0 -4
- package/dist/index.js +5 -23
- package/dist/index.mjs +5 -23
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1140,8 +1140,6 @@ interface IMessageDmCompositionProps {
|
|
|
1140
1140
|
recipientTailCurveStartY?: number;
|
|
1141
1141
|
recipientTailTipX?: number;
|
|
1142
1142
|
recipientTailTipY?: number;
|
|
1143
|
-
recipientTailBottomFlatEndX?: number;
|
|
1144
|
-
recipientTailBottomFlatEndY?: number;
|
|
1145
1143
|
recipientTailBottomX?: number;
|
|
1146
1144
|
recipientTailBottomY?: number;
|
|
1147
1145
|
recipientTailTopBend?: number;
|
|
@@ -1150,8 +1148,6 @@ interface IMessageDmCompositionProps {
|
|
|
1150
1148
|
senderTailCurveStartY?: number;
|
|
1151
1149
|
senderTailTipX?: number;
|
|
1152
1150
|
senderTailTipY?: number;
|
|
1153
|
-
senderTailBottomFlatEndX?: number;
|
|
1154
|
-
senderTailBottomFlatEndY?: number;
|
|
1155
1151
|
senderTailBottomX?: number;
|
|
1156
1152
|
senderTailBottomY?: number;
|
|
1157
1153
|
senderTailTopBend?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1140,8 +1140,6 @@ interface IMessageDmCompositionProps {
|
|
|
1140
1140
|
recipientTailCurveStartY?: number;
|
|
1141
1141
|
recipientTailTipX?: number;
|
|
1142
1142
|
recipientTailTipY?: number;
|
|
1143
|
-
recipientTailBottomFlatEndX?: number;
|
|
1144
|
-
recipientTailBottomFlatEndY?: number;
|
|
1145
1143
|
recipientTailBottomX?: number;
|
|
1146
1144
|
recipientTailBottomY?: number;
|
|
1147
1145
|
recipientTailTopBend?: number;
|
|
@@ -1150,8 +1148,6 @@ interface IMessageDmCompositionProps {
|
|
|
1150
1148
|
senderTailCurveStartY?: number;
|
|
1151
1149
|
senderTailTipX?: number;
|
|
1152
1150
|
senderTailTipY?: number;
|
|
1153
|
-
senderTailBottomFlatEndX?: number;
|
|
1154
|
-
senderTailBottomFlatEndY?: number;
|
|
1155
1151
|
senderTailBottomX?: number;
|
|
1156
1152
|
senderTailBottomY?: number;
|
|
1157
1153
|
senderTailTopBend?: number;
|
package/dist/index.js
CHANGED
|
@@ -5944,10 +5944,6 @@ var defaultIMessageDmProps = {
|
|
|
5944
5944
|
// Y where straight line ends and top curve begins
|
|
5945
5945
|
recipientTailTipX: -17,
|
|
5946
5946
|
recipientTailTipY: -1,
|
|
5947
|
-
recipientTailBottomFlatEndX: -10,
|
|
5948
|
-
// X where flat after tip ends and bottom curve begins
|
|
5949
|
-
recipientTailBottomFlatEndY: -1,
|
|
5950
|
-
// Y where flat after tip ends and bottom curve begins
|
|
5951
5947
|
recipientTailBottomX: 19,
|
|
5952
5948
|
// X where bottom curve ends (connects to bubble)
|
|
5953
5949
|
recipientTailBottomY: -12,
|
|
@@ -5964,10 +5960,6 @@ var defaultIMessageDmProps = {
|
|
|
5964
5960
|
// Y where straight line ends and top curve begins
|
|
5965
5961
|
senderTailTipX: 17,
|
|
5966
5962
|
senderTailTipY: -1,
|
|
5967
|
-
senderTailBottomFlatEndX: 10,
|
|
5968
|
-
// X where flat after tip ends and bottom curve begins
|
|
5969
|
-
senderTailBottomFlatEndY: -1,
|
|
5970
|
-
// Y where flat after tip ends and bottom curve begins
|
|
5971
5963
|
senderTailBottomX: -19,
|
|
5972
5964
|
// X where bottom curve ends (connects to bubble)
|
|
5973
5965
|
senderTailBottomY: -12,
|
|
@@ -6155,8 +6147,6 @@ var IMessageDmComposition = (props) => {
|
|
|
6155
6147
|
recipientTailCurveStartY = -33,
|
|
6156
6148
|
recipientTailTipX = -17,
|
|
6157
6149
|
recipientTailTipY = -1,
|
|
6158
|
-
recipientTailBottomFlatEndX = -10,
|
|
6159
|
-
recipientTailBottomFlatEndY = -1,
|
|
6160
6150
|
recipientTailBottomX = 19,
|
|
6161
6151
|
recipientTailBottomY = -12,
|
|
6162
6152
|
recipientTailTopBend = -0.3,
|
|
@@ -6166,8 +6156,6 @@ var IMessageDmComposition = (props) => {
|
|
|
6166
6156
|
senderTailCurveStartY = -33,
|
|
6167
6157
|
senderTailTipX = 17,
|
|
6168
6158
|
senderTailTipY = -1,
|
|
6169
|
-
senderTailBottomFlatEndX = 10,
|
|
6170
|
-
senderTailBottomFlatEndY = -1,
|
|
6171
6159
|
senderTailBottomX = -19,
|
|
6172
6160
|
senderTailBottomY = -12,
|
|
6173
6161
|
senderTailTopBend = -0.3,
|
|
@@ -6429,8 +6417,6 @@ var IMessageDmComposition = (props) => {
|
|
|
6429
6417
|
const curveStartY = refY + (tail.isUser ? senderTailCurveStartY : recipientTailCurveStartY);
|
|
6430
6418
|
const tipX = refX + (tail.isUser ? senderTailTipX : recipientTailTipX);
|
|
6431
6419
|
const tipY = refY + (tail.isUser ? senderTailTipY : recipientTailTipY);
|
|
6432
|
-
const bottomFlatEndX = refX + (tail.isUser ? senderTailBottomFlatEndX : recipientTailBottomFlatEndX);
|
|
6433
|
-
const bottomFlatEndY = refY + (tail.isUser ? senderTailBottomFlatEndY : recipientTailBottomFlatEndY);
|
|
6434
6420
|
const bottomX = refX + (tail.isUser ? senderTailBottomX : recipientTailBottomX);
|
|
6435
6421
|
const bottomY = refY + (tail.isUser ? senderTailBottomY : recipientTailBottomY);
|
|
6436
6422
|
const topBend = tail.isUser ? senderTailTopBend : recipientTailTopBend;
|
|
@@ -6446,17 +6432,17 @@ var IMessageDmComposition = (props) => {
|
|
|
6446
6432
|
const topPerpY = tail.isUser ? -topDx / topLen : topDx / topLen;
|
|
6447
6433
|
const topCurveX = topMidX + topPerpX * topBend * topLen;
|
|
6448
6434
|
const topCurveY = topMidY + topPerpY * topBend * topLen;
|
|
6449
|
-
const bottomMidX = (
|
|
6450
|
-
const bottomMidY = (
|
|
6451
|
-
const bottomDx = bottomX -
|
|
6452
|
-
const bottomDy = bottomY -
|
|
6435
|
+
const bottomMidX = (tipX + bottomX) / 2;
|
|
6436
|
+
const bottomMidY = (tipY + bottomY) / 2;
|
|
6437
|
+
const bottomDx = bottomX - tipX;
|
|
6438
|
+
const bottomDy = bottomY - tipY;
|
|
6453
6439
|
const bottomLen = Math.sqrt(bottomDx * bottomDx + bottomDy * bottomDy);
|
|
6454
6440
|
const bottomPerpX = tail.isUser ? bottomDy / bottomLen : -bottomDy / bottomLen;
|
|
6455
6441
|
const bottomPerpY = tail.isUser ? -bottomDx / bottomLen : bottomDx / bottomLen;
|
|
6456
6442
|
const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
|
|
6457
6443
|
const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
|
|
6458
6444
|
const fillColor = tail.isUser ? senderBubbleColor : recipientBubbleColor;
|
|
6459
|
-
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY}
|
|
6445
|
+
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
|
|
6460
6446
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6461
6447
|
"svg",
|
|
6462
6448
|
{
|
|
@@ -7414,8 +7400,6 @@ var iMessageDmPropsSchema = import_zod.z.object({
|
|
|
7414
7400
|
recipientTailCurveStartY: import_zod.z.number().optional(),
|
|
7415
7401
|
recipientTailTipX: import_zod.z.number().optional(),
|
|
7416
7402
|
recipientTailTipY: import_zod.z.number().optional(),
|
|
7417
|
-
recipientTailBottomFlatEndX: import_zod.z.number().optional(),
|
|
7418
|
-
recipientTailBottomFlatEndY: import_zod.z.number().optional(),
|
|
7419
7403
|
recipientTailBottomX: import_zod.z.number().optional(),
|
|
7420
7404
|
recipientTailBottomY: import_zod.z.number().optional(),
|
|
7421
7405
|
// Recipient tail curve bend
|
|
@@ -7426,8 +7410,6 @@ var iMessageDmPropsSchema = import_zod.z.object({
|
|
|
7426
7410
|
senderTailCurveStartY: import_zod.z.number().optional(),
|
|
7427
7411
|
senderTailTipX: import_zod.z.number().optional(),
|
|
7428
7412
|
senderTailTipY: import_zod.z.number().optional(),
|
|
7429
|
-
senderTailBottomFlatEndX: import_zod.z.number().optional(),
|
|
7430
|
-
senderTailBottomFlatEndY: import_zod.z.number().optional(),
|
|
7431
7413
|
senderTailBottomX: import_zod.z.number().optional(),
|
|
7432
7414
|
senderTailBottomY: import_zod.z.number().optional(),
|
|
7433
7415
|
// Sender tail curve bend
|
package/dist/index.mjs
CHANGED
|
@@ -4990,10 +4990,6 @@ var defaultIMessageDmProps = {
|
|
|
4990
4990
|
// Y where straight line ends and top curve begins
|
|
4991
4991
|
recipientTailTipX: -17,
|
|
4992
4992
|
recipientTailTipY: -1,
|
|
4993
|
-
recipientTailBottomFlatEndX: -10,
|
|
4994
|
-
// X where flat after tip ends and bottom curve begins
|
|
4995
|
-
recipientTailBottomFlatEndY: -1,
|
|
4996
|
-
// Y where flat after tip ends and bottom curve begins
|
|
4997
4993
|
recipientTailBottomX: 19,
|
|
4998
4994
|
// X where bottom curve ends (connects to bubble)
|
|
4999
4995
|
recipientTailBottomY: -12,
|
|
@@ -5010,10 +5006,6 @@ var defaultIMessageDmProps = {
|
|
|
5010
5006
|
// Y where straight line ends and top curve begins
|
|
5011
5007
|
senderTailTipX: 17,
|
|
5012
5008
|
senderTailTipY: -1,
|
|
5013
|
-
senderTailBottomFlatEndX: 10,
|
|
5014
|
-
// X where flat after tip ends and bottom curve begins
|
|
5015
|
-
senderTailBottomFlatEndY: -1,
|
|
5016
|
-
// Y where flat after tip ends and bottom curve begins
|
|
5017
5009
|
senderTailBottomX: -19,
|
|
5018
5010
|
// X where bottom curve ends (connects to bubble)
|
|
5019
5011
|
senderTailBottomY: -12,
|
|
@@ -5201,8 +5193,6 @@ var IMessageDmComposition = (props) => {
|
|
|
5201
5193
|
recipientTailCurveStartY = -33,
|
|
5202
5194
|
recipientTailTipX = -17,
|
|
5203
5195
|
recipientTailTipY = -1,
|
|
5204
|
-
recipientTailBottomFlatEndX = -10,
|
|
5205
|
-
recipientTailBottomFlatEndY = -1,
|
|
5206
5196
|
recipientTailBottomX = 19,
|
|
5207
5197
|
recipientTailBottomY = -12,
|
|
5208
5198
|
recipientTailTopBend = -0.3,
|
|
@@ -5212,8 +5202,6 @@ var IMessageDmComposition = (props) => {
|
|
|
5212
5202
|
senderTailCurveStartY = -33,
|
|
5213
5203
|
senderTailTipX = 17,
|
|
5214
5204
|
senderTailTipY = -1,
|
|
5215
|
-
senderTailBottomFlatEndX = 10,
|
|
5216
|
-
senderTailBottomFlatEndY = -1,
|
|
5217
5205
|
senderTailBottomX = -19,
|
|
5218
5206
|
senderTailBottomY = -12,
|
|
5219
5207
|
senderTailTopBend = -0.3,
|
|
@@ -5475,8 +5463,6 @@ var IMessageDmComposition = (props) => {
|
|
|
5475
5463
|
const curveStartY = refY + (tail.isUser ? senderTailCurveStartY : recipientTailCurveStartY);
|
|
5476
5464
|
const tipX = refX + (tail.isUser ? senderTailTipX : recipientTailTipX);
|
|
5477
5465
|
const tipY = refY + (tail.isUser ? senderTailTipY : recipientTailTipY);
|
|
5478
|
-
const bottomFlatEndX = refX + (tail.isUser ? senderTailBottomFlatEndX : recipientTailBottomFlatEndX);
|
|
5479
|
-
const bottomFlatEndY = refY + (tail.isUser ? senderTailBottomFlatEndY : recipientTailBottomFlatEndY);
|
|
5480
5466
|
const bottomX = refX + (tail.isUser ? senderTailBottomX : recipientTailBottomX);
|
|
5481
5467
|
const bottomY = refY + (tail.isUser ? senderTailBottomY : recipientTailBottomY);
|
|
5482
5468
|
const topBend = tail.isUser ? senderTailTopBend : recipientTailTopBend;
|
|
@@ -5492,17 +5478,17 @@ var IMessageDmComposition = (props) => {
|
|
|
5492
5478
|
const topPerpY = tail.isUser ? -topDx / topLen : topDx / topLen;
|
|
5493
5479
|
const topCurveX = topMidX + topPerpX * topBend * topLen;
|
|
5494
5480
|
const topCurveY = topMidY + topPerpY * topBend * topLen;
|
|
5495
|
-
const bottomMidX = (
|
|
5496
|
-
const bottomMidY = (
|
|
5497
|
-
const bottomDx = bottomX -
|
|
5498
|
-
const bottomDy = bottomY -
|
|
5481
|
+
const bottomMidX = (tipX + bottomX) / 2;
|
|
5482
|
+
const bottomMidY = (tipY + bottomY) / 2;
|
|
5483
|
+
const bottomDx = bottomX - tipX;
|
|
5484
|
+
const bottomDy = bottomY - tipY;
|
|
5499
5485
|
const bottomLen = Math.sqrt(bottomDx * bottomDx + bottomDy * bottomDy);
|
|
5500
5486
|
const bottomPerpX = tail.isUser ? bottomDy / bottomLen : -bottomDy / bottomLen;
|
|
5501
5487
|
const bottomPerpY = tail.isUser ? -bottomDx / bottomLen : bottomDx / bottomLen;
|
|
5502
5488
|
const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
|
|
5503
5489
|
const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
|
|
5504
5490
|
const fillColor = tail.isUser ? senderBubbleColor : recipientBubbleColor;
|
|
5505
|
-
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY}
|
|
5491
|
+
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
|
|
5506
5492
|
return /* @__PURE__ */ jsx12(
|
|
5507
5493
|
"svg",
|
|
5508
5494
|
{
|
|
@@ -6177,8 +6163,6 @@ var iMessageDmPropsSchema = z.object({
|
|
|
6177
6163
|
recipientTailCurveStartY: z.number().optional(),
|
|
6178
6164
|
recipientTailTipX: z.number().optional(),
|
|
6179
6165
|
recipientTailTipY: z.number().optional(),
|
|
6180
|
-
recipientTailBottomFlatEndX: z.number().optional(),
|
|
6181
|
-
recipientTailBottomFlatEndY: z.number().optional(),
|
|
6182
6166
|
recipientTailBottomX: z.number().optional(),
|
|
6183
6167
|
recipientTailBottomY: z.number().optional(),
|
|
6184
6168
|
// Recipient tail curve bend
|
|
@@ -6189,8 +6173,6 @@ var iMessageDmPropsSchema = z.object({
|
|
|
6189
6173
|
senderTailCurveStartY: z.number().optional(),
|
|
6190
6174
|
senderTailTipX: z.number().optional(),
|
|
6191
6175
|
senderTailTipY: z.number().optional(),
|
|
6192
|
-
senderTailBottomFlatEndX: z.number().optional(),
|
|
6193
|
-
senderTailBottomFlatEndY: z.number().optional(),
|
|
6194
6176
|
senderTailBottomX: z.number().optional(),
|
|
6195
6177
|
senderTailBottomY: z.number().optional(),
|
|
6196
6178
|
// Sender tail curve bend
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.185",
|
|
4
4
|
"description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|