@markdy/renderer-dom 1.4.11 → 1.4.12

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.
Files changed (2) hide show
  1. package/dist/index.js +63 -16
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -4409,14 +4409,47 @@ function ensureSceneStyles(doc) {
4409
4409
  color: #94a3b8 !important;
4410
4410
  }
4411
4411
  /* Fullscreen & Fallback Pseudo-Fullscreen Views */
4412
+ .markdy-fullscreen-host,
4413
+ .markdy--pseudo-fullscreen,
4412
4414
  .markdy-diagram-root:fullscreen,
4415
+ .markdy-viewport:fullscreen {
4416
+ position: fixed !important;
4417
+ inset: 0 !important;
4418
+ top: 0 !important;
4419
+ left: 0 !important;
4420
+ right: 0 !important;
4421
+ bottom: 0 !important;
4422
+ margin: 0 !important;
4423
+ border: none !important;
4424
+ border-radius: 0 !important;
4425
+ box-shadow: none !important;
4426
+ aspect-ratio: auto !important;
4427
+ transform: none !important;
4428
+ z-index: 999999 !important;
4429
+ width: 100vw !important;
4430
+ width: 100dvw !important;
4431
+ height: 100vh !important;
4432
+ height: 100dvh !important;
4433
+ max-width: 100vw !important;
4434
+ max-width: 100dvw !important;
4435
+ max-height: 100vh !important;
4436
+ max-height: 100dvh !important;
4437
+ background-color: var(--md-canvas, #0b101b) !important;
4438
+ box-sizing: border-box !important;
4439
+ display: flex !important;
4440
+ flex-direction: column !important;
4441
+ justify-content: space-between !important;
4442
+ align-items: center !important;
4443
+ padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
4444
+ padding-left: max(8px, env(safe-area-inset-left, 0px)) !important;
4445
+ padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
4446
+ padding-bottom: 0 !important;
4447
+ overflow: hidden !important;
4448
+ touch-action: pan-x pan-y !important;
4449
+ -webkit-overflow-scrolling: touch !important;
4450
+ }
4413
4451
  .markdy-diagram-root:-webkit-full-screen,
4414
- .markdy-diagram-root:-moz-full-screen,
4415
- .markdy-diagram-root:-ms-fullscreen,
4416
- .markdy-viewport:fullscreen,
4417
- .markdy-viewport:-webkit-full-screen,
4418
- .markdy-fullscreen-host,
4419
- .markdy--pseudo-fullscreen {
4452
+ .markdy-viewport:-webkit-full-screen {
4420
4453
  position: fixed !important;
4421
4454
  inset: 0 !important;
4422
4455
  top: 0 !important;
@@ -4462,12 +4495,21 @@ function ensureSceneStyles(doc) {
4462
4495
  justify-content: space-between !important;
4463
4496
  align-items: center !important;
4464
4497
  }
4465
- .markdy-diagram-root:fullscreen .markdy-viewport,
4466
- .markdy-diagram-root:-webkit-full-screen .markdy-viewport,
4467
- .markdy-diagram-root:-moz-full-screen .markdy-viewport,
4468
- .markdy-diagram-root:-ms-fullscreen .markdy-viewport,
4469
4498
  .markdy-fullscreen-host .markdy-viewport,
4470
- .markdy--pseudo-fullscreen .markdy-viewport {
4499
+ .markdy--pseudo-fullscreen .markdy-viewport,
4500
+ .markdy-diagram-root:fullscreen .markdy-viewport {
4501
+ flex: 1 1 auto !important;
4502
+ width: 100% !important;
4503
+ height: 100% !important;
4504
+ max-width: 100% !important;
4505
+ max-height: calc(100vh - 54px) !important;
4506
+ max-height: calc(100dvh - 54px) !important;
4507
+ aspect-ratio: auto !important;
4508
+ display: flex !important;
4509
+ align-items: center !important;
4510
+ justify-content: center !important;
4511
+ }
4512
+ .markdy-diagram-root:-webkit-full-screen .markdy-viewport {
4471
4513
  flex: 1 1 auto !important;
4472
4514
  width: 100% !important;
4473
4515
  height: 100% !important;
@@ -4479,12 +4521,17 @@ function ensureSceneStyles(doc) {
4479
4521
  align-items: center !important;
4480
4522
  justify-content: center !important;
4481
4523
  }
4482
- .markdy-diagram-root:fullscreen .markdy-footer,
4483
- .markdy-diagram-root:-webkit-full-screen .markdy-footer,
4484
- .markdy-diagram-root:-moz-full-screen .markdy-footer,
4485
- .markdy-diagram-root:-ms-fullscreen .markdy-footer,
4486
4524
  .markdy-fullscreen-host .markdy-footer,
4487
- .markdy--pseudo-fullscreen .markdy-footer {
4525
+ .markdy--pseudo-fullscreen .markdy-footer,
4526
+ .markdy-diagram-root:fullscreen .markdy-footer {
4527
+ flex-shrink: 0 !important;
4528
+ width: 100% !important;
4529
+ max-width: 1400px !important;
4530
+ margin: 0 auto !important;
4531
+ padding: 6px 12px max(12px, env(safe-area-inset-bottom, 12px)) !important;
4532
+ box-sizing: border-box !important;
4533
+ }
4534
+ .markdy-diagram-root:-webkit-full-screen .markdy-footer {
4488
4535
  flex-shrink: 0 !important;
4489
4536
  width: 100% !important;
4490
4537
  max-width: 1400px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/renderer-dom",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "description": "Browser renderer for diagram-native animated MarkdyScript architecture diagrams, built on the Web Animations API.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,14 +46,14 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "html2canvas": "^1.4.1",
49
- "@markdy/core": "1.4.11"
49
+ "@markdy/core": "1.4.12"
50
50
  },
51
51
  "devDependencies": {
52
52
  "jsdom": "^29.1.1",
53
53
  "tsup": "^8.5.1",
54
54
  "typescript": "^5.9.3",
55
55
  "vitest": "^4.1.7",
56
- "@markdy/stdlib-systems": "1.4.11"
56
+ "@markdy/stdlib-systems": "1.4.12"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup",