Configuration:
- PDF.js version: 2.0.550

Steps to reproduce the problem:
1. Render document in SVG mode `renderMode="svg"`

What is the expected behavior? (add screenshot)
Rendering annotations same way as they rendered on canvas

What went wrong? (add screenshot)
```
Warning: Unimplemented operator beginAnnotations
Warning: Unimplemented operator endAnnotations
```
next2Dict.set("JS", "oof()"
      next2Dict.set("S", JS
      dDict.set("JS", "bar()"
      dDict.set("S", JS
      dDict.set("Next", dDictRef
      additionalActionsDict.set("D", dDictRef
      additionalActionsDict.set("X", xDictRef
      textWidgetDict.set("AA", additionalActionsDict
      partialEvaluator.xref = xref;
      const annotation = await AnnotationFactory.create(
        xref,
        textWidgetRef,
        pdfManagerMock,
        idFactoryMock
      
      const fieldObject = await annotation.getFieldObject(
      const actions = fieldObject.actions;
      expect(actions["Mouse Enter"]).toEqual(["hello()"]
      expect(actions["Mouse Exit"]).toEqual([
        "world()",
        "olleh()",
        "foo()",
        "dlrow()",
        "oof()",
      ]
      expect(actions["Mouse Down"]).toEqual(["bar()"]
    }
    it("should save Japanese text", async function () {
      textWidgetDict.get("DR").get("Font").set("Goth", gothRefObj.ref
      textWidgetDict.set("DA", "/Goth 5 Tf"